AngelScriptAPI.h 348 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. // Classes
  10. class Animatable
  11. {
  12. // Methods:
  13. void ApplyAttributes();
  14. Variant GetAttribute(const String&) const;
  15. ValueAnimation GetAttributeAnimation(const String&) const;
  16. float GetAttributeAnimationSpeed(const String&) const;
  17. float GetAttributeAnimationTime(const String&) const;
  18. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19. Variant GetAttributeDefault(const String&) const;
  20. bool GetInterceptNetworkUpdate(const String&) const;
  21. bool Load(File, bool = false);
  22. bool Load(VectorBuffer&, bool = false);
  23. bool LoadJSON(const JSONValue&, bool = false);
  24. bool LoadXML(const XMLElement&, bool = false);
  25. void MarkNetworkUpdate() const;
  26. void RemoveAttributeAnimation(const String&);
  27. void RemoveInstanceDefault();
  28. void RemoveObjectAnimation();
  29. void ResetToDefault();
  30. bool Save(File) const;
  31. bool Save(VectorBuffer&) const;
  32. bool SaveJSON(JSONValue&) const;
  33. bool SaveXML(XMLElement&) const;
  34. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  35. void SetAnimationTime(float);
  36. bool SetAttribute(const String&, const Variant&);
  37. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  38. void SetAttributeAnimationSpeed(const String&, float);
  39. void SetAttributeAnimationTime(const String&, float);
  40. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  41. void SetInterceptNetworkUpdate(const String&, bool);
  42. // Properties:
  43. bool animationEnabled;
  44. /* readonly */
  45. Array<Variant> attributeDefaults;
  46. /* readonly */
  47. Array<AttributeInfo> attributeInfos;
  48. Array<Variant> attributes;
  49. /* readonly */
  50. String category;
  51. /* readonly */
  52. uint numAttributes;
  53. ObjectAnimation objectAnimation;
  54. /* readonly */
  55. int refs;
  56. bool temporary;
  57. /* readonly */
  58. StringHash type;
  59. /* readonly */
  60. String typeName;
  61. /* readonly */
  62. int weakRefs;
  63. };
  64. class AnimatedModel
  65. {
  66. // Methods:
  67. AnimationState AddAnimationState(Animation);
  68. void ApplyAttributes();
  69. void ApplyMaterialList(const String& = String ( ));
  70. void DrawDebugGeometry(DebugRenderer, bool);
  71. AnimationState GetAnimationState(Animation) const;
  72. AnimationState GetAnimationState(uint) const;
  73. Variant GetAttribute(const String&) const;
  74. ValueAnimation GetAttributeAnimation(const String&) const;
  75. float GetAttributeAnimationSpeed(const String&) const;
  76. float GetAttributeAnimationTime(const String&) const;
  77. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  78. Variant GetAttributeDefault(const String&) const;
  79. bool GetInterceptNetworkUpdate(const String&) const;
  80. float GetMorphWeight(uint) const;
  81. bool IsInView(Camera) const;
  82. bool Load(File, bool = false);
  83. bool Load(VectorBuffer&, bool = false);
  84. bool LoadJSON(const JSONValue&, bool = false);
  85. bool LoadXML(const XMLElement&, bool = false);
  86. void MarkNetworkUpdate() const;
  87. void Remove();
  88. void RemoveAllAnimationStates();
  89. void RemoveAnimationState(Animation);
  90. void RemoveAnimationState(AnimationState);
  91. void RemoveAnimationState(const String&);
  92. void RemoveAnimationState(uint);
  93. void RemoveAttributeAnimation(const String&);
  94. void RemoveInstanceDefault();
  95. void RemoveObjectAnimation();
  96. void ResetMorphWeights();
  97. void ResetToDefault();
  98. bool Save(File) const;
  99. bool Save(VectorBuffer&) const;
  100. bool SaveJSON(JSONValue&) const;
  101. bool SaveXML(XMLElement&) const;
  102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  103. void SetAnimationTime(float);
  104. bool SetAttribute(const String&, const Variant&);
  105. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  106. void SetAttributeAnimationSpeed(const String&, float);
  107. void SetAttributeAnimationTime(const String&, float);
  108. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  109. void SetInterceptNetworkUpdate(const String&, bool);
  110. void SetMorphWeight(uint, float);
  111. // Properties:
  112. bool animationEnabled;
  113. float animationLodBias;
  114. /* readonly */
  115. Array<AnimationState> animationStates;
  116. /* readonly */
  117. Array<Variant> attributeDefaults;
  118. /* readonly */
  119. Array<AttributeInfo> attributeInfos;
  120. Array<Variant> attributes;
  121. /* readonly */
  122. BoundingBox boundingBox;
  123. bool castShadows;
  124. /* readonly */
  125. String category;
  126. float drawDistance;
  127. bool enabled;
  128. /* readonly */
  129. bool enabledEffective;
  130. /* readonly */
  131. uint id;
  132. /* readonly */
  133. bool inView;
  134. uint lightMask;
  135. float lodBias;
  136. /* writeonly */
  137. Material material;
  138. Array<Material> materials;
  139. uint maxLights;
  140. Model model;
  141. /* readonly */
  142. Array<String> morphNames;
  143. Array<float> morphWeights;
  144. /* readonly */
  145. Node node;
  146. /* readonly */
  147. uint numAnimationStates;
  148. /* readonly */
  149. uint numAttributes;
  150. /* readonly */
  151. uint numGeometries;
  152. /* readonly */
  153. uint numMorphs;
  154. ObjectAnimation objectAnimation;
  155. bool occludee;
  156. bool occluder;
  157. /* readonly */
  158. int refs;
  159. float shadowDistance;
  160. uint shadowMask;
  161. /* readonly */
  162. Skeleton skeleton;
  163. bool temporary;
  164. /* readonly */
  165. StringHash type;
  166. /* readonly */
  167. String typeName;
  168. bool updateInvisible;
  169. uint viewMask;
  170. /* readonly */
  171. int weakRefs;
  172. /* readonly */
  173. BoundingBox worldBoundingBox;
  174. /* readonly */
  175. Zone zone;
  176. uint zoneMask;
  177. };
  178. class AnimatedSprite2D
  179. {
  180. // Methods:
  181. void ApplyAttributes();
  182. void DrawDebugGeometry(DebugRenderer, bool);
  183. Variant GetAttribute(const String&) const;
  184. ValueAnimation GetAttributeAnimation(const String&) const;
  185. float GetAttributeAnimationSpeed(const String&) const;
  186. float GetAttributeAnimationTime(const String&) const;
  187. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  188. Variant GetAttributeDefault(const String&) const;
  189. bool GetInterceptNetworkUpdate(const String&) const;
  190. bool IsInView(Camera) const;
  191. bool Load(File, bool = false);
  192. bool Load(VectorBuffer&, bool = false);
  193. bool LoadJSON(const JSONValue&, bool = false);
  194. bool LoadXML(const XMLElement&, bool = false);
  195. void MarkNetworkUpdate() const;
  196. void Remove();
  197. void RemoveAttributeAnimation(const String&);
  198. void RemoveInstanceDefault();
  199. void RemoveObjectAnimation();
  200. void ResetToDefault();
  201. bool Save(File) const;
  202. bool Save(VectorBuffer&) const;
  203. bool SaveJSON(JSONValue&) const;
  204. bool SaveXML(XMLElement&) const;
  205. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  206. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  207. void SetAnimationTime(float);
  208. bool SetAttribute(const String&, const Variant&);
  209. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  210. void SetAttributeAnimationSpeed(const String&, float);
  211. void SetAttributeAnimationTime(const String&, float);
  212. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  213. void SetFlip(bool, bool);
  214. void SetInterceptNetworkUpdate(const String&, bool);
  215. // Properties:
  216. float alpha;
  217. String animation;
  218. bool animationEnabled;
  219. AnimationSet2D animationSet;
  220. /* readonly */
  221. Array<Variant> attributeDefaults;
  222. /* readonly */
  223. Array<AttributeInfo> attributeInfos;
  224. Array<Variant> attributes;
  225. BlendMode blendMode;
  226. /* readonly */
  227. BoundingBox boundingBox;
  228. bool castShadows;
  229. /* readonly */
  230. String category;
  231. Color color;
  232. Material customMaterial;
  233. float drawDistance;
  234. bool enabled;
  235. /* readonly */
  236. bool enabledEffective;
  237. String entity;
  238. bool flipX;
  239. bool flipY;
  240. Vector2 hotSpot;
  241. /* readonly */
  242. uint id;
  243. /* readonly */
  244. bool inView;
  245. int layer;
  246. uint lightMask;
  247. float lodBias;
  248. LoopMode2D loopMode;
  249. uint maxLights;
  250. /* readonly */
  251. Node node;
  252. /* readonly */
  253. uint numAttributes;
  254. ObjectAnimation objectAnimation;
  255. bool occludee;
  256. bool occluder;
  257. int orderInLayer;
  258. /* readonly */
  259. int refs;
  260. float shadowDistance;
  261. uint shadowMask;
  262. float speed;
  263. Sprite2D sprite;
  264. bool temporary;
  265. /* readonly */
  266. StringHash type;
  267. /* readonly */
  268. String typeName;
  269. bool useHotSpot;
  270. uint viewMask;
  271. /* readonly */
  272. int weakRefs;
  273. /* readonly */
  274. BoundingBox worldBoundingBox;
  275. uint zoneMask;
  276. };
  277. class Animation
  278. {
  279. // Methods:
  280. void AddTrigger(const AnimationTriggerPoint&);
  281. void AddTrigger(float, bool, const Variant&);
  282. AnimationTrack CreateTrack(const String&);
  283. bool Load(File);
  284. bool Load(VectorBuffer&);
  285. bool RemoveAllTracks();
  286. void RemoveAllTriggers();
  287. bool RemoveTrack(const String&);
  288. void RemoveTrigger(uint);
  289. bool Save(File) const;
  290. bool Save(VectorBuffer&) const;
  291. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  292. // Properties:
  293. String animationName;
  294. /* readonly */
  295. String category;
  296. float length;
  297. /* readonly */
  298. uint memoryUse;
  299. String name;
  300. /* readonly */
  301. uint numTracks;
  302. uint numTriggers;
  303. /* readonly */
  304. int refs;
  305. /* readonly */
  306. Array<AnimationTrack> tracks;
  307. Array<AnimationTriggerPoint> triggers;
  308. /* readonly */
  309. StringHash type;
  310. /* readonly */
  311. String typeName;
  312. /* readonly */
  313. uint useTimer;
  314. /* readonly */
  315. int weakRefs;
  316. };
  317. class AnimationController
  318. {
  319. // Methods:
  320. void ApplyAttributes();
  321. void DrawDebugGeometry(DebugRenderer, bool);
  322. bool Fade(const String&, float, float);
  323. bool FadeOthers(const String&, float, float);
  324. AnimationState GetAnimationState(StringHash) const;
  325. AnimationState GetAnimationState(const String&) const;
  326. Variant GetAttribute(const String&) const;
  327. ValueAnimation GetAttributeAnimation(const String&) const;
  328. float GetAttributeAnimationSpeed(const String&) const;
  329. float GetAttributeAnimationTime(const String&) const;
  330. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  331. Variant GetAttributeDefault(const String&) const;
  332. float GetAutoFade(const String&) const;
  333. float GetFadeTarget(const String&) const;
  334. float GetFadeTime(const String&) const;
  335. bool GetInterceptNetworkUpdate(const String&) const;
  336. uint8 GetLayer(const String&) const;
  337. float GetLength(const String&) const;
  338. bool GetLooped(const String&) const;
  339. bool GetRemoveOnCompletion(const String&);
  340. float GetSpeed(const String&) const;
  341. float GetTime(const String&) const;
  342. float GetWeight(const String&) const;
  343. bool IsAtEnd(const String&) const;
  344. bool IsFadingIn(const String&) const;
  345. bool IsFadingOut(const String&) const;
  346. bool IsPlaying(const String&) const;
  347. bool Load(File, bool = false);
  348. bool Load(VectorBuffer&, bool = false);
  349. bool LoadJSON(const JSONValue&, bool = false);
  350. bool LoadXML(const XMLElement&, bool = false);
  351. void MarkNetworkUpdate() const;
  352. bool Play(const String&, uint8, bool, float = 0.0f);
  353. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  354. void Remove();
  355. void RemoveAttributeAnimation(const String&);
  356. void RemoveInstanceDefault();
  357. void RemoveObjectAnimation();
  358. void ResetToDefault();
  359. bool Save(File) const;
  360. bool Save(VectorBuffer&) const;
  361. bool SaveJSON(JSONValue&) const;
  362. bool SaveXML(XMLElement&) const;
  363. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  364. void SetAnimationTime(float);
  365. bool SetAttribute(const String&, const Variant&);
  366. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  367. void SetAttributeAnimationSpeed(const String&, float);
  368. void SetAttributeAnimationTime(const String&, float);
  369. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  370. bool SetAutoFade(const String&, float);
  371. void SetInterceptNetworkUpdate(const String&, bool);
  372. bool SetLayer(const String&, uint8);
  373. bool SetLooped(const String&, bool);
  374. bool SetRemoveOnCompletion(const String&, bool);
  375. bool SetSpeed(const String&, float);
  376. bool SetStartBone(const String&, const String&);
  377. bool SetTime(const String&, float);
  378. bool SetWeight(const String&, float);
  379. void Stop(const String&, float = 0.0f);
  380. void StopAll(float = 0.0f);
  381. void StopLayer(uint8, float = 0.0f);
  382. const String& GetStartBone(const String&) const;
  383. // Properties:
  384. bool animationEnabled;
  385. /* readonly */
  386. Array<Variant> attributeDefaults;
  387. /* readonly */
  388. Array<AttributeInfo> attributeInfos;
  389. Array<Variant> attributes;
  390. /* readonly */
  391. String category;
  392. bool enabled;
  393. /* readonly */
  394. bool enabledEffective;
  395. /* readonly */
  396. uint id;
  397. /* readonly */
  398. Node node;
  399. /* readonly */
  400. uint numAttributes;
  401. ObjectAnimation objectAnimation;
  402. /* readonly */
  403. int refs;
  404. bool temporary;
  405. /* readonly */
  406. StringHash type;
  407. /* readonly */
  408. String typeName;
  409. /* readonly */
  410. int weakRefs;
  411. };
  412. class AnimationKeyFrame
  413. {
  414. // Properties:
  415. Vector3 position;
  416. Quaternion rotation;
  417. Vector3 scale;
  418. float time;
  419. };
  420. class AnimationSet2D
  421. {
  422. // Methods:
  423. String GetAnimation(uint) const;
  424. bool Load(File);
  425. bool Load(VectorBuffer&);
  426. bool Save(File) const;
  427. bool Save(VectorBuffer&) const;
  428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  429. // Properties:
  430. /* readonly */
  431. String category;
  432. /* readonly */
  433. uint memoryUse;
  434. String name;
  435. /* readonly */
  436. uint numAnimations;
  437. /* readonly */
  438. int refs;
  439. /* readonly */
  440. StringHash type;
  441. /* readonly */
  442. String typeName;
  443. /* readonly */
  444. uint useTimer;
  445. /* readonly */
  446. int weakRefs;
  447. };
  448. class AnimationState
  449. {
  450. // Methods:
  451. void AddTime(float);
  452. void AddWeight(float);
  453. void Apply();
  454. float GetBoneWeight(StringHash) const;
  455. float GetBoneWeight(uint) const;
  456. uint GetTrackIndex(StringHash) const;
  457. uint GetTrackIndex(const String&) const;
  458. void SetBoneWeight(StringHash, float, bool = false);
  459. void SetBoneWeight(const String&, float, bool = false);
  460. void SetBoneWeight(uint, float, bool = false);
  461. // Properties:
  462. /* readonly */
  463. Animation animation;
  464. Array<float> boneWeights;
  465. /* readonly */
  466. bool enabled;
  467. uint8 layer;
  468. /* readonly */
  469. float length;
  470. bool looped;
  471. /* readonly */
  472. AnimatedModel model;
  473. /* readonly */
  474. Node node;
  475. /* readonly */
  476. int refs;
  477. Bone startBone;
  478. float time;
  479. /* readonly */
  480. int weakRefs;
  481. float weight;
  482. };
  483. class AnimationTrack
  484. {
  485. // Methods:
  486. void AddKeyFrame(const AnimationKeyFrame&);
  487. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  488. void RemoveAllKeyFrames();
  489. void RemoveKeyFrame(uint);
  490. // Properties:
  491. uint8 channelMask;
  492. Array<AnimationKeyFrame> keyFrames;
  493. String name;
  494. StringHash nameHash;
  495. /* readonly */
  496. uint numKeyFrames;
  497. };
  498. class AnimationTriggerPoint
  499. {
  500. // Properties:
  501. Variant data;
  502. float time;
  503. };
  504. template <class T> class Array
  505. {
  506. // Methods:
  507. void Clear();
  508. void Erase(uint);
  509. int Find(const T&) const;
  510. int Find(uint, const T&) const;
  511. int FindByRef(const T&) const;
  512. int FindByRef(uint, const T&) const;
  513. void Insert(uint, const T&);
  514. void Pop();
  515. void Push(const T&);
  516. void Reserve(uint);
  517. void Resize(uint);
  518. void Reverse();
  519. void Sort();
  520. void Sort(uint, uint);
  521. void SortReverse();
  522. void SortReverse(uint, uint);
  523. // Properties:
  524. /* readonly */
  525. bool empty;
  526. uint length;
  527. };
  528. class AttributeInfo
  529. {
  530. // Properties:
  531. Variant defaultValue;
  532. /* readonly */
  533. Array<String> enumNames;
  534. uint mode;
  535. String name;
  536. VariantType type;
  537. };
  538. class Audio
  539. {
  540. // Methods:
  541. bool HasMasterGain(const String&) const;
  542. bool Play();
  543. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  544. void SetMode(int, int, bool, bool = true);
  545. void Stop();
  546. // Properties:
  547. /* readonly */
  548. String category;
  549. /* readonly */
  550. bool initialized;
  551. /* readonly */
  552. bool interpolation;
  553. SoundListener listener;
  554. Array<float> masterGain;
  555. /* readonly */
  556. int mixRate;
  557. /* readonly */
  558. bool playing;
  559. /* readonly */
  560. int refs;
  561. /* readonly */
  562. uint sampleSize;
  563. /* readonly */
  564. bool stereo;
  565. /* readonly */
  566. StringHash type;
  567. /* readonly */
  568. String typeName;
  569. /* readonly */
  570. int weakRefs;
  571. };
  572. class BiasParameters
  573. {
  574. // Properties:
  575. float constantBias;
  576. float slopeScaledBias;
  577. };
  578. class Billboard
  579. {
  580. // Properties:
  581. Color color;
  582. bool enabled;
  583. Vector3 position;
  584. float rotation;
  585. Vector2 size;
  586. Rect uv;
  587. };
  588. class BillboardSet
  589. {
  590. // Methods:
  591. void ApplyAttributes();
  592. void Commit();
  593. void DrawDebugGeometry(DebugRenderer, bool);
  594. Variant GetAttribute(const String&) const;
  595. ValueAnimation GetAttributeAnimation(const String&) const;
  596. float GetAttributeAnimationSpeed(const String&) const;
  597. float GetAttributeAnimationTime(const String&) const;
  598. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  599. Variant GetAttributeDefault(const String&) const;
  600. bool GetInterceptNetworkUpdate(const String&) const;
  601. bool IsInView(Camera) const;
  602. bool Load(File, bool = false);
  603. bool Load(VectorBuffer&, bool = false);
  604. bool LoadJSON(const JSONValue&, bool = false);
  605. bool LoadXML(const XMLElement&, bool = false);
  606. void MarkNetworkUpdate() const;
  607. void Remove();
  608. void RemoveAttributeAnimation(const String&);
  609. void RemoveInstanceDefault();
  610. void RemoveObjectAnimation();
  611. void ResetToDefault();
  612. bool Save(File) const;
  613. bool Save(VectorBuffer&) const;
  614. bool SaveJSON(JSONValue&) const;
  615. bool SaveXML(XMLElement&) const;
  616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  617. void SetAnimationTime(float);
  618. bool SetAttribute(const String&, const Variant&);
  619. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  620. void SetAttributeAnimationSpeed(const String&, float);
  621. void SetAttributeAnimationTime(const String&, float);
  622. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  623. void SetInterceptNetworkUpdate(const String&, bool);
  624. // Properties:
  625. bool animationEnabled;
  626. float animationLodBias;
  627. /* readonly */
  628. Array<Variant> attributeDefaults;
  629. /* readonly */
  630. Array<AttributeInfo> attributeInfos;
  631. Array<Variant> attributes;
  632. /* readonly */
  633. Array<Billboard> billboards;
  634. /* readonly */
  635. BoundingBox boundingBox;
  636. bool castShadows;
  637. /* readonly */
  638. String category;
  639. float drawDistance;
  640. bool enabled;
  641. /* readonly */
  642. bool enabledEffective;
  643. FaceCameraMode faceCameraMode;
  644. /* readonly */
  645. uint id;
  646. /* readonly */
  647. bool inView;
  648. uint lightMask;
  649. float lodBias;
  650. Material material;
  651. uint maxLights;
  652. /* readonly */
  653. Node node;
  654. /* readonly */
  655. uint numAttributes;
  656. uint numBillboards;
  657. ObjectAnimation objectAnimation;
  658. bool occludee;
  659. bool occluder;
  660. /* readonly */
  661. int refs;
  662. bool relative;
  663. bool scaled;
  664. float shadowDistance;
  665. uint shadowMask;
  666. bool sorted;
  667. bool temporary;
  668. /* readonly */
  669. StringHash type;
  670. /* readonly */
  671. String typeName;
  672. uint viewMask;
  673. /* readonly */
  674. int weakRefs;
  675. /* readonly */
  676. BoundingBox worldBoundingBox;
  677. /* readonly */
  678. Zone zone;
  679. uint zoneMask;
  680. };
  681. class Bone
  682. {
  683. // Properties:
  684. bool animated;
  685. BoundingBox boundingBox;
  686. Vector3 initialPosition;
  687. Quaternion initialRotation;
  688. Vector3 initialScale;
  689. String name;
  690. Node node;
  691. float radius;
  692. };
  693. class BorderImage
  694. {
  695. // Methods:
  696. void AddChild(UIElement);
  697. void ApplyAttributes();
  698. void BringToFront();
  699. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  700. void DisableLayoutUpdate();
  701. IntVector2 ElementToScreen(const IntVector2&);
  702. void EnableLayoutUpdate();
  703. uint FindChild(UIElement) const;
  704. Variant GetAttribute(const String&) const;
  705. ValueAnimation GetAttributeAnimation(const String&) const;
  706. float GetAttributeAnimationSpeed(const String&) const;
  707. float GetAttributeAnimationTime(const String&) const;
  708. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  709. Variant GetAttributeDefault(const String&) const;
  710. UIElement GetChild(const String&, bool = false) const;
  711. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  712. Array<UIElement> GetChildren(bool = false) const;
  713. UIElement GetElementEventSender() const;
  714. bool GetInterceptNetworkUpdate(const String&) const;
  715. uint GetNumChildren(bool) const;
  716. void InsertChild(uint, UIElement);
  717. bool IsInside(IntVector2, bool);
  718. bool IsInsideCombined(IntVector2, bool);
  719. bool Load(File, bool = false);
  720. bool Load(VectorBuffer&, bool = false);
  721. bool LoadChildXML(XMLFile, XMLFile = null);
  722. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  723. bool LoadJSON(const JSONValue&, bool = false);
  724. bool LoadXML(File);
  725. bool LoadXML(VectorBuffer&);
  726. bool LoadXML(XMLFile, XMLFile);
  727. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  728. bool LoadXML(const XMLElement&, bool = false);
  729. void MarkNetworkUpdate() const;
  730. void Remove();
  731. void RemoveAllChildren();
  732. void RemoveAttributeAnimation(const String&);
  733. void RemoveChild(UIElement, uint = 0);
  734. void RemoveChild(uint);
  735. void RemoveInstanceDefault();
  736. void RemoveObjectAnimation();
  737. void ResetDeepEnabled();
  738. void ResetToDefault();
  739. bool Save(File) const;
  740. bool Save(VectorBuffer&) const;
  741. bool SaveJSON(JSONValue&) const;
  742. bool SaveXML(File, const String& = "\t");
  743. bool SaveXML(VectorBuffer&, const String& = "\t");
  744. bool SaveXML(XMLElement&) const;
  745. IntVector2 ScreenToElement(const IntVector2&);
  746. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  747. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  748. void SetAnimationTime(float);
  749. bool SetAttribute(const String&, const Variant&);
  750. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  751. void SetAttributeAnimationSpeed(const String&, float);
  752. void SetAttributeAnimationTime(const String&, float);
  753. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  754. void SetDeepEnabled(bool);
  755. void SetEnabledRecursive(bool);
  756. void SetFixedHeight(int);
  757. void SetFixedSize(int, int);
  758. void SetFixedWidth(int);
  759. void SetFullImageRect();
  760. void SetHoverOffset(int, int);
  761. void SetInterceptNetworkUpdate(const String&, bool);
  762. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  763. void SetMaxSize(int, int);
  764. void SetMinSize(int, int);
  765. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  766. void SetPosition(int, int);
  767. void SetSize(int, int);
  768. bool SetStyle(const String&, XMLFile = null);
  769. bool SetStyle(const XMLElement&);
  770. bool SetStyleAuto(XMLFile = null);
  771. void UpdateLayout();
  772. const Variant& GetVar(const StringHash&);
  773. // Properties:
  774. bool animationEnabled;
  775. /* readonly */
  776. Array<Variant> attributeDefaults;
  777. /* readonly */
  778. Array<AttributeInfo> attributeInfos;
  779. Array<Variant> attributes;
  780. BlendMode blendMode;
  781. IntRect border;
  782. bool bringToBack;
  783. bool bringToFront;
  784. /* readonly */
  785. String category;
  786. /* readonly */
  787. IntVector2 childOffset;
  788. /* readonly */
  789. Array<UIElement> children;
  790. IntRect clipBorder;
  791. bool clipChildren;
  792. /* writeonly */
  793. Color color;
  794. /* readonly */
  795. bool colorGradient;
  796. Array<Color> colors;
  797. /* readonly */
  798. IntRect combinedScreenRect;
  799. XMLFile defaultStyle;
  800. /* readonly */
  801. float derivedOpacity;
  802. /* readonly */
  803. uint dragButtonCombo;
  804. /* readonly */
  805. int dragButtonCount;
  806. uint dragDropMode;
  807. bool editable;
  808. bool elementEventSender;
  809. bool enabled;
  810. /* readonly */
  811. bool enabledSelf;
  812. /* readonly */
  813. bool fixedHeight;
  814. /* readonly */
  815. bool fixedSize;
  816. /* readonly */
  817. bool fixedWidth;
  818. bool focus;
  819. FocusMode focusMode;
  820. int height;
  821. HorizontalAlignment horizontalAlignment;
  822. IntVector2 hoverOffset;
  823. /* readonly */
  824. bool hovering;
  825. IntRect imageBorder;
  826. IntRect imageRect;
  827. int indent;
  828. int indentSpacing;
  829. /* readonly */
  830. int indentWidth;
  831. bool internal;
  832. IntRect layoutBorder;
  833. Vector2 layoutFlexScale;
  834. LayoutMode layoutMode;
  835. int layoutSpacing;
  836. int maxHeight;
  837. IntVector2 maxSize;
  838. int maxWidth;
  839. int minHeight;
  840. IntVector2 minSize;
  841. int minWidth;
  842. String name;
  843. /* readonly */
  844. uint numAllChildren;
  845. /* readonly */
  846. uint numAttributes;
  847. /* readonly */
  848. uint numChildren;
  849. ObjectAnimation objectAnimation;
  850. float opacity;
  851. UIElement parent;
  852. IntVector2 position;
  853. int priority;
  854. /* readonly */
  855. int refs;
  856. /* readonly */
  857. UIElement root;
  858. /* readonly */
  859. IntVector2 screenPosition;
  860. bool selected;
  861. IntVector2 size;
  862. bool sortChildren;
  863. String style;
  864. bool temporary;
  865. Texture texture;
  866. bool tiled;
  867. TraversalMode traversalMode;
  868. /* readonly */
  869. StringHash type;
  870. /* readonly */
  871. String typeName;
  872. bool useDerivedOpacity;
  873. /* readonly */
  874. VariantMap vars;
  875. VerticalAlignment verticalAlignment;
  876. bool visible;
  877. /* readonly */
  878. bool visibleEffective;
  879. /* readonly */
  880. int weakRefs;
  881. int width;
  882. };
  883. class BoundingBox
  884. {
  885. // Methods:
  886. void Clear();
  887. void Clip(const BoundingBox&);
  888. void Define(const BoundingBox&);
  889. void Define(const Frustum&);
  890. void Define(const Polyhedron&);
  891. void Define(const Sphere&);
  892. void Define(const Vector3&);
  893. void Define(const Vector3&, const Vector3&);
  894. void Define(float, float);
  895. bool Defined() const;
  896. Intersection IsInside(const BoundingBox&) const;
  897. Intersection IsInside(const Sphere&) const;
  898. Intersection IsInside(const Vector3&) const;
  899. Intersection IsInsideFast(const BoundingBox&) const;
  900. Intersection IsInsideFast(const Sphere&) const;
  901. void Merge(const BoundingBox&);
  902. void Merge(const Frustum&);
  903. void Merge(const Polyhedron&);
  904. void Merge(const Sphere&);
  905. void Merge(const Vector3&);
  906. Rect Projected(const Matrix4&) const;
  907. String ToString() const;
  908. void Transform(const Matrix3&);
  909. void Transform(const Matrix3x4&);
  910. BoundingBox Transformed(const Matrix3&) const;
  911. BoundingBox Transformed(const Matrix3x4&) const;
  912. // Properties:
  913. /* readonly */
  914. Vector3 center;
  915. /* readonly */
  916. Vector3 halfSize;
  917. Vector3 max;
  918. Vector3 min;
  919. /* readonly */
  920. Vector3 size;
  921. };
  922. class Button
  923. {
  924. // Methods:
  925. void AddChild(UIElement);
  926. void ApplyAttributes();
  927. void BringToFront();
  928. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  929. void DisableLayoutUpdate();
  930. IntVector2 ElementToScreen(const IntVector2&);
  931. void EnableLayoutUpdate();
  932. uint FindChild(UIElement) const;
  933. Variant GetAttribute(const String&) const;
  934. ValueAnimation GetAttributeAnimation(const String&) const;
  935. float GetAttributeAnimationSpeed(const String&) const;
  936. float GetAttributeAnimationTime(const String&) const;
  937. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  938. Variant GetAttributeDefault(const String&) const;
  939. UIElement GetChild(const String&, bool = false) const;
  940. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  941. Array<UIElement> GetChildren(bool = false) const;
  942. UIElement GetElementEventSender() const;
  943. bool GetInterceptNetworkUpdate(const String&) const;
  944. uint GetNumChildren(bool) const;
  945. void InsertChild(uint, UIElement);
  946. bool IsInside(IntVector2, bool);
  947. bool IsInsideCombined(IntVector2, bool);
  948. bool Load(File, bool = false);
  949. bool Load(VectorBuffer&, bool = false);
  950. bool LoadChildXML(XMLFile, XMLFile = null);
  951. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  952. bool LoadJSON(const JSONValue&, bool = false);
  953. bool LoadXML(File);
  954. bool LoadXML(VectorBuffer&);
  955. bool LoadXML(XMLFile, XMLFile);
  956. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  957. bool LoadXML(const XMLElement&, bool = false);
  958. void MarkNetworkUpdate() const;
  959. void Remove();
  960. void RemoveAllChildren();
  961. void RemoveAttributeAnimation(const String&);
  962. void RemoveChild(UIElement, uint = 0);
  963. void RemoveChild(uint);
  964. void RemoveInstanceDefault();
  965. void RemoveObjectAnimation();
  966. void ResetDeepEnabled();
  967. void ResetToDefault();
  968. bool Save(File) const;
  969. bool Save(VectorBuffer&) const;
  970. bool SaveJSON(JSONValue&) const;
  971. bool SaveXML(File, const String& = "\t");
  972. bool SaveXML(VectorBuffer&, const String& = "\t");
  973. bool SaveXML(XMLElement&) const;
  974. IntVector2 ScreenToElement(const IntVector2&);
  975. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  976. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  977. void SetAnimationTime(float);
  978. bool SetAttribute(const String&, const Variant&);
  979. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  980. void SetAttributeAnimationSpeed(const String&, float);
  981. void SetAttributeAnimationTime(const String&, float);
  982. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  983. void SetDeepEnabled(bool);
  984. void SetEnabledRecursive(bool);
  985. void SetFixedHeight(int);
  986. void SetFixedSize(int, int);
  987. void SetFixedWidth(int);
  988. void SetFullImageRect();
  989. void SetHoverOffset(int, int);
  990. void SetInterceptNetworkUpdate(const String&, bool);
  991. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  992. void SetMaxSize(int, int);
  993. void SetMinSize(int, int);
  994. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  995. void SetPosition(int, int);
  996. void SetPressedChildOffset(int, int);
  997. void SetPressedOffset(int, int);
  998. void SetRepeat(float, float);
  999. void SetSize(int, int);
  1000. bool SetStyle(const String&, XMLFile = null);
  1001. bool SetStyle(const XMLElement&);
  1002. bool SetStyleAuto(XMLFile = null);
  1003. void UpdateLayout();
  1004. const Variant& GetVar(const StringHash&);
  1005. // Properties:
  1006. bool animationEnabled;
  1007. /* readonly */
  1008. Array<Variant> attributeDefaults;
  1009. /* readonly */
  1010. Array<AttributeInfo> attributeInfos;
  1011. Array<Variant> attributes;
  1012. BlendMode blendMode;
  1013. IntRect border;
  1014. bool bringToBack;
  1015. bool bringToFront;
  1016. /* readonly */
  1017. String category;
  1018. /* readonly */
  1019. IntVector2 childOffset;
  1020. /* readonly */
  1021. Array<UIElement> children;
  1022. IntRect clipBorder;
  1023. bool clipChildren;
  1024. /* writeonly */
  1025. Color color;
  1026. /* readonly */
  1027. bool colorGradient;
  1028. Array<Color> colors;
  1029. /* readonly */
  1030. IntRect combinedScreenRect;
  1031. XMLFile defaultStyle;
  1032. /* readonly */
  1033. float derivedOpacity;
  1034. /* readonly */
  1035. uint dragButtonCombo;
  1036. /* readonly */
  1037. int dragButtonCount;
  1038. uint dragDropMode;
  1039. bool editable;
  1040. bool elementEventSender;
  1041. bool enabled;
  1042. /* readonly */
  1043. bool enabledSelf;
  1044. /* readonly */
  1045. bool fixedHeight;
  1046. /* readonly */
  1047. bool fixedSize;
  1048. /* readonly */
  1049. bool fixedWidth;
  1050. bool focus;
  1051. FocusMode focusMode;
  1052. int height;
  1053. HorizontalAlignment horizontalAlignment;
  1054. IntVector2 hoverOffset;
  1055. /* readonly */
  1056. bool hovering;
  1057. IntRect imageBorder;
  1058. IntRect imageRect;
  1059. int indent;
  1060. int indentSpacing;
  1061. /* readonly */
  1062. int indentWidth;
  1063. bool internal;
  1064. IntRect layoutBorder;
  1065. Vector2 layoutFlexScale;
  1066. LayoutMode layoutMode;
  1067. int layoutSpacing;
  1068. int maxHeight;
  1069. IntVector2 maxSize;
  1070. int maxWidth;
  1071. int minHeight;
  1072. IntVector2 minSize;
  1073. int minWidth;
  1074. String name;
  1075. /* readonly */
  1076. uint numAllChildren;
  1077. /* readonly */
  1078. uint numAttributes;
  1079. /* readonly */
  1080. uint numChildren;
  1081. ObjectAnimation objectAnimation;
  1082. float opacity;
  1083. UIElement parent;
  1084. IntVector2 position;
  1085. /* readonly */
  1086. bool pressed;
  1087. IntVector2 pressedChildOffset;
  1088. IntVector2 pressedOffset;
  1089. int priority;
  1090. /* readonly */
  1091. int refs;
  1092. float repeatDelay;
  1093. float repeatRate;
  1094. /* readonly */
  1095. UIElement root;
  1096. /* readonly */
  1097. IntVector2 screenPosition;
  1098. bool selected;
  1099. IntVector2 size;
  1100. bool sortChildren;
  1101. String style;
  1102. bool temporary;
  1103. Texture texture;
  1104. bool tiled;
  1105. TraversalMode traversalMode;
  1106. /* readonly */
  1107. StringHash type;
  1108. /* readonly */
  1109. String typeName;
  1110. bool useDerivedOpacity;
  1111. /* readonly */
  1112. VariantMap vars;
  1113. VerticalAlignment verticalAlignment;
  1114. bool visible;
  1115. /* readonly */
  1116. bool visibleEffective;
  1117. /* readonly */
  1118. int weakRefs;
  1119. int width;
  1120. };
  1121. class Camera
  1122. {
  1123. // Methods:
  1124. void ApplyAttributes();
  1125. void DrawDebugGeometry(DebugRenderer, bool);
  1126. Variant GetAttribute(const String&) const;
  1127. ValueAnimation GetAttributeAnimation(const String&) const;
  1128. float GetAttributeAnimationSpeed(const String&) const;
  1129. float GetAttributeAnimationTime(const String&) const;
  1130. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1131. Variant GetAttributeDefault(const String&) const;
  1132. float GetDistance(const Vector3&) const;
  1133. float GetDistanceSquared(const Vector3&) const;
  1134. bool GetInterceptNetworkUpdate(const String&) const;
  1135. Ray GetScreenRay(float, float) const;
  1136. Frustum GetSplitFrustum(float, float) const;
  1137. bool Load(File, bool = false);
  1138. bool Load(VectorBuffer&, bool = false);
  1139. bool LoadJSON(const JSONValue&, bool = false);
  1140. bool LoadXML(const XMLElement&, bool = false);
  1141. void MarkNetworkUpdate() const;
  1142. void Remove();
  1143. void RemoveAttributeAnimation(const String&);
  1144. void RemoveInstanceDefault();
  1145. void RemoveObjectAnimation();
  1146. void ResetToDefault();
  1147. bool Save(File) const;
  1148. bool Save(VectorBuffer&) const;
  1149. bool SaveJSON(JSONValue&) const;
  1150. bool SaveXML(XMLElement&) const;
  1151. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1152. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1153. void SetAnimationTime(float);
  1154. bool SetAttribute(const String&, const Variant&);
  1155. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1156. void SetAttributeAnimationSpeed(const String&, float);
  1157. void SetAttributeAnimationTime(const String&, float);
  1158. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1159. void SetInterceptNetworkUpdate(const String&, bool);
  1160. void SetOrthoSize(const Vector2&);
  1161. Vector2 WorldToScreenPoint(const Vector3&) const;
  1162. // Properties:
  1163. bool animationEnabled;
  1164. float aspectRatio;
  1165. /* readonly */
  1166. Array<Variant> attributeDefaults;
  1167. /* readonly */
  1168. Array<AttributeInfo> attributeInfos;
  1169. Array<Variant> attributes;
  1170. bool autoAspectRatio;
  1171. /* readonly */
  1172. String category;
  1173. Plane clipPlane;
  1174. /* readonly */
  1175. Matrix3x4 effectiveWorldTransform;
  1176. bool enabled;
  1177. /* readonly */
  1178. bool enabledEffective;
  1179. float farClip;
  1180. FillMode fillMode;
  1181. float fov;
  1182. /* readonly */
  1183. Frustum frustum;
  1184. /* readonly */
  1185. float halfViewSize;
  1186. /* readonly */
  1187. uint id;
  1188. float lodBias;
  1189. float nearClip;
  1190. /* readonly */
  1191. Node node;
  1192. /* readonly */
  1193. uint numAttributes;
  1194. ObjectAnimation objectAnimation;
  1195. float orthoSize;
  1196. bool orthographic;
  1197. /* readonly */
  1198. Matrix4 projection;
  1199. Vector2 projectionOffset;
  1200. Plane reflectionPlane;
  1201. /* readonly */
  1202. int refs;
  1203. bool temporary;
  1204. /* readonly */
  1205. StringHash type;
  1206. /* readonly */
  1207. String typeName;
  1208. bool useClipping;
  1209. bool useReflection;
  1210. /* readonly */
  1211. Matrix3x4 view;
  1212. uint viewMask;
  1213. uint viewOverrideFlags;
  1214. /* readonly */
  1215. Frustum viewSpaceFrustum;
  1216. /* readonly */
  1217. int weakRefs;
  1218. float zoom;
  1219. };
  1220. class CascadeParameters
  1221. {
  1222. // Properties:
  1223. float biasAutoAdjust;
  1224. float fadeStart;
  1225. float split1;
  1226. float split2;
  1227. float split3;
  1228. float split4;
  1229. };
  1230. class CheckBox
  1231. {
  1232. // Methods:
  1233. void AddChild(UIElement);
  1234. void ApplyAttributes();
  1235. void BringToFront();
  1236. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1237. void DisableLayoutUpdate();
  1238. IntVector2 ElementToScreen(const IntVector2&);
  1239. void EnableLayoutUpdate();
  1240. uint FindChild(UIElement) const;
  1241. Variant GetAttribute(const String&) const;
  1242. ValueAnimation GetAttributeAnimation(const String&) const;
  1243. float GetAttributeAnimationSpeed(const String&) const;
  1244. float GetAttributeAnimationTime(const String&) const;
  1245. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1246. Variant GetAttributeDefault(const String&) const;
  1247. UIElement GetChild(const String&, bool = false) const;
  1248. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1249. Array<UIElement> GetChildren(bool = false) const;
  1250. UIElement GetElementEventSender() const;
  1251. bool GetInterceptNetworkUpdate(const String&) const;
  1252. uint GetNumChildren(bool) const;
  1253. void InsertChild(uint, UIElement);
  1254. bool IsInside(IntVector2, bool);
  1255. bool IsInsideCombined(IntVector2, bool);
  1256. bool Load(File, bool = false);
  1257. bool Load(VectorBuffer&, bool = false);
  1258. bool LoadChildXML(XMLFile, XMLFile = null);
  1259. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1260. bool LoadJSON(const JSONValue&, bool = false);
  1261. bool LoadXML(File);
  1262. bool LoadXML(VectorBuffer&);
  1263. bool LoadXML(XMLFile, XMLFile);
  1264. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1265. bool LoadXML(const XMLElement&, bool = false);
  1266. void MarkNetworkUpdate() const;
  1267. void Remove();
  1268. void RemoveAllChildren();
  1269. void RemoveAttributeAnimation(const String&);
  1270. void RemoveChild(UIElement, uint = 0);
  1271. void RemoveChild(uint);
  1272. void RemoveInstanceDefault();
  1273. void RemoveObjectAnimation();
  1274. void ResetDeepEnabled();
  1275. void ResetToDefault();
  1276. bool Save(File) const;
  1277. bool Save(VectorBuffer&) const;
  1278. bool SaveJSON(JSONValue&) const;
  1279. bool SaveXML(File, const String& = "\t");
  1280. bool SaveXML(VectorBuffer&, const String& = "\t");
  1281. bool SaveXML(XMLElement&) const;
  1282. IntVector2 ScreenToElement(const IntVector2&);
  1283. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1284. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1285. void SetAnimationTime(float);
  1286. bool SetAttribute(const String&, const Variant&);
  1287. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1288. void SetAttributeAnimationSpeed(const String&, float);
  1289. void SetAttributeAnimationTime(const String&, float);
  1290. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1291. void SetCheckedOffset(int, int);
  1292. void SetDeepEnabled(bool);
  1293. void SetEnabledRecursive(bool);
  1294. void SetFixedHeight(int);
  1295. void SetFixedSize(int, int);
  1296. void SetFixedWidth(int);
  1297. void SetFullImageRect();
  1298. void SetHoverOffset(int, int);
  1299. void SetInterceptNetworkUpdate(const String&, bool);
  1300. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1301. void SetMaxSize(int, int);
  1302. void SetMinSize(int, int);
  1303. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1304. void SetPosition(int, int);
  1305. void SetSize(int, int);
  1306. bool SetStyle(const String&, XMLFile = null);
  1307. bool SetStyle(const XMLElement&);
  1308. bool SetStyleAuto(XMLFile = null);
  1309. void UpdateLayout();
  1310. const Variant& GetVar(const StringHash&);
  1311. // Properties:
  1312. bool animationEnabled;
  1313. /* readonly */
  1314. Array<Variant> attributeDefaults;
  1315. /* readonly */
  1316. Array<AttributeInfo> attributeInfos;
  1317. Array<Variant> attributes;
  1318. BlendMode blendMode;
  1319. IntRect border;
  1320. bool bringToBack;
  1321. bool bringToFront;
  1322. /* readonly */
  1323. String category;
  1324. bool checked;
  1325. IntVector2 checkedOffset;
  1326. /* readonly */
  1327. IntVector2 childOffset;
  1328. /* readonly */
  1329. Array<UIElement> children;
  1330. IntRect clipBorder;
  1331. bool clipChildren;
  1332. /* writeonly */
  1333. Color color;
  1334. /* readonly */
  1335. bool colorGradient;
  1336. Array<Color> colors;
  1337. /* readonly */
  1338. IntRect combinedScreenRect;
  1339. XMLFile defaultStyle;
  1340. /* readonly */
  1341. float derivedOpacity;
  1342. /* readonly */
  1343. uint dragButtonCombo;
  1344. /* readonly */
  1345. int dragButtonCount;
  1346. uint dragDropMode;
  1347. bool editable;
  1348. bool elementEventSender;
  1349. bool enabled;
  1350. /* readonly */
  1351. bool enabledSelf;
  1352. /* readonly */
  1353. bool fixedHeight;
  1354. /* readonly */
  1355. bool fixedSize;
  1356. /* readonly */
  1357. bool fixedWidth;
  1358. bool focus;
  1359. FocusMode focusMode;
  1360. int height;
  1361. HorizontalAlignment horizontalAlignment;
  1362. IntVector2 hoverOffset;
  1363. /* readonly */
  1364. bool hovering;
  1365. IntRect imageBorder;
  1366. IntRect imageRect;
  1367. int indent;
  1368. int indentSpacing;
  1369. /* readonly */
  1370. int indentWidth;
  1371. bool internal;
  1372. IntRect layoutBorder;
  1373. Vector2 layoutFlexScale;
  1374. LayoutMode layoutMode;
  1375. int layoutSpacing;
  1376. int maxHeight;
  1377. IntVector2 maxSize;
  1378. int maxWidth;
  1379. int minHeight;
  1380. IntVector2 minSize;
  1381. int minWidth;
  1382. String name;
  1383. /* readonly */
  1384. uint numAllChildren;
  1385. /* readonly */
  1386. uint numAttributes;
  1387. /* readonly */
  1388. uint numChildren;
  1389. ObjectAnimation objectAnimation;
  1390. float opacity;
  1391. UIElement parent;
  1392. IntVector2 position;
  1393. int priority;
  1394. /* readonly */
  1395. int refs;
  1396. /* readonly */
  1397. UIElement root;
  1398. /* readonly */
  1399. IntVector2 screenPosition;
  1400. bool selected;
  1401. IntVector2 size;
  1402. bool sortChildren;
  1403. String style;
  1404. bool temporary;
  1405. Texture texture;
  1406. bool tiled;
  1407. TraversalMode traversalMode;
  1408. /* readonly */
  1409. StringHash type;
  1410. /* readonly */
  1411. String typeName;
  1412. bool useDerivedOpacity;
  1413. /* readonly */
  1414. VariantMap vars;
  1415. VerticalAlignment verticalAlignment;
  1416. bool visible;
  1417. /* readonly */
  1418. bool visibleEffective;
  1419. /* readonly */
  1420. int weakRefs;
  1421. int width;
  1422. };
  1423. class CollisionBox2D
  1424. {
  1425. // Methods:
  1426. void ApplyAttributes();
  1427. void DrawDebugGeometry(DebugRenderer, bool);
  1428. Variant GetAttribute(const String&) const;
  1429. ValueAnimation GetAttributeAnimation(const String&) const;
  1430. float GetAttributeAnimationSpeed(const String&) const;
  1431. float GetAttributeAnimationTime(const String&) const;
  1432. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1433. Variant GetAttributeDefault(const String&) const;
  1434. bool GetInterceptNetworkUpdate(const String&) const;
  1435. bool Load(File, bool = false);
  1436. bool Load(VectorBuffer&, bool = false);
  1437. bool LoadJSON(const JSONValue&, bool = false);
  1438. bool LoadXML(const XMLElement&, bool = false);
  1439. void MarkNetworkUpdate() const;
  1440. void Remove();
  1441. void RemoveAttributeAnimation(const String&);
  1442. void RemoveInstanceDefault();
  1443. void RemoveObjectAnimation();
  1444. void ResetToDefault();
  1445. bool Save(File) const;
  1446. bool Save(VectorBuffer&) const;
  1447. bool SaveJSON(JSONValue&) const;
  1448. bool SaveXML(XMLElement&) const;
  1449. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1450. void SetAnimationTime(float);
  1451. bool SetAttribute(const String&, const Variant&);
  1452. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1453. void SetAttributeAnimationSpeed(const String&, float);
  1454. void SetAttributeAnimationTime(const String&, float);
  1455. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1456. void SetCenter(float, float);
  1457. void SetInterceptNetworkUpdate(const String&, bool);
  1458. void SetSize(float, float);
  1459. // Properties:
  1460. float angle;
  1461. bool animationEnabled;
  1462. /* readonly */
  1463. Array<Variant> attributeDefaults;
  1464. /* readonly */
  1465. Array<AttributeInfo> attributeInfos;
  1466. Array<Variant> attributes;
  1467. /* readonly */
  1468. String category;
  1469. int categoryBits;
  1470. Vector2 center;
  1471. float density;
  1472. bool enabled;
  1473. /* readonly */
  1474. bool enabledEffective;
  1475. float friction;
  1476. int groupIndex;
  1477. /* readonly */
  1478. uint id;
  1479. /* readonly */
  1480. float inertia;
  1481. int maskBits;
  1482. /* readonly */
  1483. float mass;
  1484. /* readonly */
  1485. Vector2 massCenter;
  1486. /* readonly */
  1487. Node node;
  1488. /* readonly */
  1489. uint numAttributes;
  1490. ObjectAnimation objectAnimation;
  1491. /* readonly */
  1492. int refs;
  1493. float restitution;
  1494. Vector2 size;
  1495. bool temporary;
  1496. bool trigger;
  1497. /* readonly */
  1498. StringHash type;
  1499. /* readonly */
  1500. String typeName;
  1501. /* readonly */
  1502. int weakRefs;
  1503. };
  1504. class CollisionChain2D
  1505. {
  1506. // Methods:
  1507. void ApplyAttributes();
  1508. void DrawDebugGeometry(DebugRenderer, bool);
  1509. Variant GetAttribute(const String&) const;
  1510. ValueAnimation GetAttributeAnimation(const String&) const;
  1511. float GetAttributeAnimationSpeed(const String&) const;
  1512. float GetAttributeAnimationTime(const String&) const;
  1513. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1514. Variant GetAttributeDefault(const String&) const;
  1515. bool GetInterceptNetworkUpdate(const String&) const;
  1516. Array<Vector2> GetVertices() const;
  1517. bool Load(File, bool = false);
  1518. bool Load(VectorBuffer&, bool = false);
  1519. bool LoadJSON(const JSONValue&, bool = false);
  1520. bool LoadXML(const XMLElement&, bool = false);
  1521. void MarkNetworkUpdate() const;
  1522. void Remove();
  1523. void RemoveAttributeAnimation(const String&);
  1524. void RemoveInstanceDefault();
  1525. void RemoveObjectAnimation();
  1526. void ResetToDefault();
  1527. bool Save(File) const;
  1528. bool Save(VectorBuffer&) const;
  1529. bool SaveJSON(JSONValue&) const;
  1530. bool SaveXML(XMLElement&) const;
  1531. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1532. void SetAnimationTime(float);
  1533. bool SetAttribute(const String&, const Variant&);
  1534. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1535. void SetAttributeAnimationSpeed(const String&, float);
  1536. void SetAttributeAnimationTime(const String&, float);
  1537. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1538. void SetInterceptNetworkUpdate(const String&, bool);
  1539. void SetVertex(uint, const Vector2&);
  1540. void SetVertices(Array<Vector2>);
  1541. const Vector2& GetVertex(uint) const;
  1542. // Properties:
  1543. bool animationEnabled;
  1544. /* readonly */
  1545. Array<Variant> attributeDefaults;
  1546. /* readonly */
  1547. Array<AttributeInfo> attributeInfos;
  1548. Array<Variant> attributes;
  1549. /* readonly */
  1550. String category;
  1551. int categoryBits;
  1552. float density;
  1553. bool enabled;
  1554. /* readonly */
  1555. bool enabledEffective;
  1556. float friction;
  1557. int groupIndex;
  1558. /* readonly */
  1559. uint id;
  1560. /* readonly */
  1561. float inertia;
  1562. bool loop;
  1563. int maskBits;
  1564. /* readonly */
  1565. float mass;
  1566. /* readonly */
  1567. Vector2 massCenter;
  1568. /* readonly */
  1569. Node node;
  1570. /* readonly */
  1571. uint numAttributes;
  1572. ObjectAnimation objectAnimation;
  1573. /* readonly */
  1574. int refs;
  1575. float restitution;
  1576. bool temporary;
  1577. bool trigger;
  1578. /* readonly */
  1579. StringHash type;
  1580. /* readonly */
  1581. String typeName;
  1582. uint vertexCount;
  1583. /* readonly */
  1584. int weakRefs;
  1585. };
  1586. class CollisionCircle2D
  1587. {
  1588. // Methods:
  1589. void ApplyAttributes();
  1590. void DrawDebugGeometry(DebugRenderer, bool);
  1591. Variant GetAttribute(const String&) const;
  1592. ValueAnimation GetAttributeAnimation(const String&) const;
  1593. float GetAttributeAnimationSpeed(const String&) const;
  1594. float GetAttributeAnimationTime(const String&) const;
  1595. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1596. Variant GetAttributeDefault(const String&) const;
  1597. bool GetInterceptNetworkUpdate(const String&) const;
  1598. bool Load(File, bool = false);
  1599. bool Load(VectorBuffer&, bool = false);
  1600. bool LoadJSON(const JSONValue&, bool = false);
  1601. bool LoadXML(const XMLElement&, bool = false);
  1602. void MarkNetworkUpdate() const;
  1603. void Remove();
  1604. void RemoveAttributeAnimation(const String&);
  1605. void RemoveInstanceDefault();
  1606. void RemoveObjectAnimation();
  1607. void ResetToDefault();
  1608. bool Save(File) const;
  1609. bool Save(VectorBuffer&) const;
  1610. bool SaveJSON(JSONValue&) const;
  1611. bool SaveXML(XMLElement&) const;
  1612. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1613. void SetAnimationTime(float);
  1614. bool SetAttribute(const String&, const Variant&);
  1615. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1616. void SetAttributeAnimationSpeed(const String&, float);
  1617. void SetAttributeAnimationTime(const String&, float);
  1618. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1619. void SetCenter(float, float);
  1620. void SetInterceptNetworkUpdate(const String&, bool);
  1621. // Properties:
  1622. bool animationEnabled;
  1623. /* readonly */
  1624. Array<Variant> attributeDefaults;
  1625. /* readonly */
  1626. Array<AttributeInfo> attributeInfos;
  1627. Array<Variant> attributes;
  1628. /* readonly */
  1629. String category;
  1630. int categoryBits;
  1631. Vector2 center;
  1632. float density;
  1633. bool enabled;
  1634. /* readonly */
  1635. bool enabledEffective;
  1636. float friction;
  1637. int groupIndex;
  1638. /* readonly */
  1639. uint id;
  1640. /* readonly */
  1641. float inertia;
  1642. int maskBits;
  1643. /* readonly */
  1644. float mass;
  1645. /* readonly */
  1646. Vector2 massCenter;
  1647. /* readonly */
  1648. Node node;
  1649. /* readonly */
  1650. uint numAttributes;
  1651. ObjectAnimation objectAnimation;
  1652. float radius;
  1653. /* readonly */
  1654. int refs;
  1655. float restitution;
  1656. bool temporary;
  1657. bool trigger;
  1658. /* readonly */
  1659. StringHash type;
  1660. /* readonly */
  1661. String typeName;
  1662. /* readonly */
  1663. int weakRefs;
  1664. };
  1665. class CollisionEdge2D
  1666. {
  1667. // Methods:
  1668. void ApplyAttributes();
  1669. void DrawDebugGeometry(DebugRenderer, bool);
  1670. Variant GetAttribute(const String&) const;
  1671. ValueAnimation GetAttributeAnimation(const String&) const;
  1672. float GetAttributeAnimationSpeed(const String&) const;
  1673. float GetAttributeAnimationTime(const String&) const;
  1674. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1675. Variant GetAttributeDefault(const String&) const;
  1676. bool GetInterceptNetworkUpdate(const String&) const;
  1677. bool Load(File, bool = false);
  1678. bool Load(VectorBuffer&, bool = false);
  1679. bool LoadJSON(const JSONValue&, bool = false);
  1680. bool LoadXML(const XMLElement&, bool = false);
  1681. void MarkNetworkUpdate() const;
  1682. void Remove();
  1683. void RemoveAttributeAnimation(const String&);
  1684. void RemoveInstanceDefault();
  1685. void RemoveObjectAnimation();
  1686. void ResetToDefault();
  1687. bool Save(File) const;
  1688. bool Save(VectorBuffer&) const;
  1689. bool SaveJSON(JSONValue&) const;
  1690. bool SaveXML(XMLElement&) const;
  1691. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1692. void SetAnimationTime(float);
  1693. bool SetAttribute(const String&, const Variant&);
  1694. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1695. void SetAttributeAnimationSpeed(const String&, float);
  1696. void SetAttributeAnimationTime(const String&, float);
  1697. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1698. void SetInterceptNetworkUpdate(const String&, bool);
  1699. void SetVertices(const Vector2&, const Vector2&);
  1700. // Properties:
  1701. bool animationEnabled;
  1702. /* readonly */
  1703. Array<Variant> attributeDefaults;
  1704. /* readonly */
  1705. Array<AttributeInfo> attributeInfos;
  1706. Array<Variant> attributes;
  1707. /* readonly */
  1708. String category;
  1709. int categoryBits;
  1710. float density;
  1711. bool enabled;
  1712. /* readonly */
  1713. bool enabledEffective;
  1714. float friction;
  1715. int groupIndex;
  1716. /* readonly */
  1717. uint id;
  1718. /* readonly */
  1719. float inertia;
  1720. int maskBits;
  1721. /* readonly */
  1722. float mass;
  1723. /* readonly */
  1724. Vector2 massCenter;
  1725. /* readonly */
  1726. Node node;
  1727. /* readonly */
  1728. uint numAttributes;
  1729. ObjectAnimation objectAnimation;
  1730. /* readonly */
  1731. int refs;
  1732. float restitution;
  1733. bool temporary;
  1734. bool trigger;
  1735. /* readonly */
  1736. StringHash type;
  1737. /* readonly */
  1738. String typeName;
  1739. Vector2 vertex1;
  1740. Vector2 vertex2;
  1741. /* readonly */
  1742. int weakRefs;
  1743. };
  1744. class CollisionPolygon2D
  1745. {
  1746. // Methods:
  1747. void ApplyAttributes();
  1748. void DrawDebugGeometry(DebugRenderer, bool);
  1749. Variant GetAttribute(const String&) const;
  1750. ValueAnimation GetAttributeAnimation(const String&) const;
  1751. float GetAttributeAnimationSpeed(const String&) const;
  1752. float GetAttributeAnimationTime(const String&) const;
  1753. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1754. Variant GetAttributeDefault(const String&) const;
  1755. bool GetInterceptNetworkUpdate(const String&) const;
  1756. Array<Vector2> GetVertices() const;
  1757. bool Load(File, bool = false);
  1758. bool Load(VectorBuffer&, bool = false);
  1759. bool LoadJSON(const JSONValue&, bool = false);
  1760. bool LoadXML(const XMLElement&, bool = false);
  1761. void MarkNetworkUpdate() const;
  1762. void Remove();
  1763. void RemoveAttributeAnimation(const String&);
  1764. void RemoveInstanceDefault();
  1765. void RemoveObjectAnimation();
  1766. void ResetToDefault();
  1767. bool Save(File) const;
  1768. bool Save(VectorBuffer&) const;
  1769. bool SaveJSON(JSONValue&) const;
  1770. bool SaveXML(XMLElement&) const;
  1771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1772. void SetAnimationTime(float);
  1773. bool SetAttribute(const String&, const Variant&);
  1774. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1775. void SetAttributeAnimationSpeed(const String&, float);
  1776. void SetAttributeAnimationTime(const String&, float);
  1777. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1778. void SetInterceptNetworkUpdate(const String&, bool);
  1779. void SetVertex(uint, const Vector2&);
  1780. void SetVertices(Array<Vector2>);
  1781. const Vector2& GetVertex(uint) const;
  1782. // Properties:
  1783. bool animationEnabled;
  1784. /* readonly */
  1785. Array<Variant> attributeDefaults;
  1786. /* readonly */
  1787. Array<AttributeInfo> attributeInfos;
  1788. Array<Variant> attributes;
  1789. /* readonly */
  1790. String category;
  1791. int categoryBits;
  1792. float density;
  1793. bool enabled;
  1794. /* readonly */
  1795. bool enabledEffective;
  1796. float friction;
  1797. int groupIndex;
  1798. /* readonly */
  1799. uint id;
  1800. /* readonly */
  1801. float inertia;
  1802. int maskBits;
  1803. /* readonly */
  1804. float mass;
  1805. /* readonly */
  1806. Vector2 massCenter;
  1807. /* readonly */
  1808. Node node;
  1809. /* readonly */
  1810. uint numAttributes;
  1811. ObjectAnimation objectAnimation;
  1812. /* readonly */
  1813. int refs;
  1814. float restitution;
  1815. bool temporary;
  1816. bool trigger;
  1817. /* readonly */
  1818. StringHash type;
  1819. /* readonly */
  1820. String typeName;
  1821. uint vertexCount;
  1822. /* readonly */
  1823. int weakRefs;
  1824. };
  1825. class CollisionShape
  1826. {
  1827. // Methods:
  1828. void ApplyAttributes();
  1829. void DrawDebugGeometry(DebugRenderer, bool);
  1830. Variant GetAttribute(const String&) const;
  1831. ValueAnimation GetAttributeAnimation(const String&) const;
  1832. float GetAttributeAnimationSpeed(const String&) const;
  1833. float GetAttributeAnimationTime(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 LoadJSON(const JSONValue&, bool = false);
  1840. bool LoadXML(const XMLElement&, bool = false);
  1841. void MarkNetworkUpdate() const;
  1842. void Remove();
  1843. void RemoveAttributeAnimation(const String&);
  1844. void RemoveInstanceDefault();
  1845. void RemoveObjectAnimation();
  1846. void ResetToDefault();
  1847. bool Save(File) const;
  1848. bool Save(VectorBuffer&) const;
  1849. bool SaveJSON(JSONValue&) const;
  1850. bool SaveXML(XMLElement&) const;
  1851. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1852. void SetAnimationTime(float);
  1853. bool SetAttribute(const String&, const Variant&);
  1854. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1855. void SetAttributeAnimationSpeed(const String&, float);
  1856. void SetAttributeAnimationTime(const String&, float);
  1857. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1858. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1859. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1860. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1861. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1862. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1863. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1864. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1865. void SetInterceptNetworkUpdate(const String&, bool);
  1866. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1867. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1868. void SetTerrain(uint = 0);
  1869. void SetTransform(const Vector3&, const Quaternion&);
  1870. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1871. // Properties:
  1872. bool animationEnabled;
  1873. /* readonly */
  1874. Array<Variant> attributeDefaults;
  1875. /* readonly */
  1876. Array<AttributeInfo> attributeInfos;
  1877. Array<Variant> attributes;
  1878. /* readonly */
  1879. String category;
  1880. bool enabled;
  1881. /* readonly */
  1882. bool enabledEffective;
  1883. /* readonly */
  1884. uint id;
  1885. uint lodLevel;
  1886. float margin;
  1887. Model model;
  1888. /* readonly */
  1889. Node node;
  1890. /* readonly */
  1891. uint numAttributes;
  1892. ObjectAnimation objectAnimation;
  1893. Vector3 position;
  1894. /* readonly */
  1895. int refs;
  1896. Quaternion rotation;
  1897. ShapeType shapeType;
  1898. Vector3 size;
  1899. bool temporary;
  1900. /* readonly */
  1901. StringHash type;
  1902. /* readonly */
  1903. String typeName;
  1904. /* readonly */
  1905. int weakRefs;
  1906. /* readonly */
  1907. BoundingBox worldBoundingBox;
  1908. };
  1909. class CollisionShape2D
  1910. {
  1911. // Methods:
  1912. void ApplyAttributes();
  1913. void DrawDebugGeometry(DebugRenderer, bool);
  1914. Variant GetAttribute(const String&) const;
  1915. ValueAnimation GetAttributeAnimation(const String&) const;
  1916. float GetAttributeAnimationSpeed(const String&) const;
  1917. float GetAttributeAnimationTime(const String&) const;
  1918. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1919. Variant GetAttributeDefault(const String&) const;
  1920. bool GetInterceptNetworkUpdate(const String&) const;
  1921. bool Load(File, bool = false);
  1922. bool Load(VectorBuffer&, bool = false);
  1923. bool LoadJSON(const JSONValue&, bool = false);
  1924. bool LoadXML(const XMLElement&, bool = false);
  1925. void MarkNetworkUpdate() const;
  1926. void Remove();
  1927. void RemoveAttributeAnimation(const String&);
  1928. void RemoveInstanceDefault();
  1929. void RemoveObjectAnimation();
  1930. void ResetToDefault();
  1931. bool Save(File) const;
  1932. bool Save(VectorBuffer&) const;
  1933. bool SaveJSON(JSONValue&) const;
  1934. bool SaveXML(XMLElement&) const;
  1935. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1936. void SetAnimationTime(float);
  1937. bool SetAttribute(const String&, const Variant&);
  1938. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1939. void SetAttributeAnimationSpeed(const String&, float);
  1940. void SetAttributeAnimationTime(const String&, float);
  1941. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1942. void SetInterceptNetworkUpdate(const String&, bool);
  1943. // Properties:
  1944. bool animationEnabled;
  1945. /* readonly */
  1946. Array<Variant> attributeDefaults;
  1947. /* readonly */
  1948. Array<AttributeInfo> attributeInfos;
  1949. Array<Variant> attributes;
  1950. /* readonly */
  1951. String category;
  1952. int categoryBits;
  1953. float density;
  1954. bool enabled;
  1955. /* readonly */
  1956. bool enabledEffective;
  1957. float friction;
  1958. int groupIndex;
  1959. /* readonly */
  1960. uint id;
  1961. /* readonly */
  1962. float inertia;
  1963. int maskBits;
  1964. /* readonly */
  1965. float mass;
  1966. /* readonly */
  1967. Vector2 massCenter;
  1968. /* readonly */
  1969. Node node;
  1970. /* readonly */
  1971. uint numAttributes;
  1972. ObjectAnimation objectAnimation;
  1973. /* readonly */
  1974. int refs;
  1975. float restitution;
  1976. bool temporary;
  1977. bool trigger;
  1978. /* readonly */
  1979. StringHash type;
  1980. /* readonly */
  1981. String typeName;
  1982. /* readonly */
  1983. int weakRefs;
  1984. };
  1985. class Color
  1986. {
  1987. // Methods:
  1988. Color Abs() const;
  1989. float Average() const;
  1990. float Chroma() const;
  1991. void Clip(bool);
  1992. bool Equals() const;
  1993. void FromHSL(float, float, float, float);
  1994. void FromHSV(float, float, float, float);
  1995. float Hue() const;
  1996. void Invert(bool);
  1997. Color Lerp(const Color&, float) const;
  1998. float Lightness() const;
  1999. float Luma() const;
  2000. float MaxRGB() const;
  2001. float MinRGB() const;
  2002. float Range() const;
  2003. float SaturationHSL() const;
  2004. float SaturationHSV() const;
  2005. float SumRGB() const;
  2006. Vector3 ToHSL() const;
  2007. Vector3 ToHSV() const;
  2008. String ToString() const;
  2009. uint ToUInt() const;
  2010. float Value() const;
  2011. // Properties:
  2012. float a;
  2013. float b;
  2014. /* readonly */
  2015. Array<float> data;
  2016. float g;
  2017. float r;
  2018. /* readonly */
  2019. Vector3 rgb;
  2020. /* readonly */
  2021. Vector4 rgba;
  2022. };
  2023. class ColorFrame
  2024. {
  2025. // Properties:
  2026. Color color;
  2027. float time;
  2028. };
  2029. class Component
  2030. {
  2031. // Methods:
  2032. void ApplyAttributes();
  2033. void DrawDebugGeometry(DebugRenderer, bool);
  2034. Variant GetAttribute(const String&) const;
  2035. ValueAnimation GetAttributeAnimation(const String&) const;
  2036. float GetAttributeAnimationSpeed(const String&) const;
  2037. float GetAttributeAnimationTime(const String&) const;
  2038. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2039. Variant GetAttributeDefault(const String&) const;
  2040. bool GetInterceptNetworkUpdate(const String&) const;
  2041. bool Load(File, bool = false);
  2042. bool Load(VectorBuffer&, bool = false);
  2043. bool LoadJSON(const JSONValue&, bool = false);
  2044. bool LoadXML(const XMLElement&, bool = false);
  2045. void MarkNetworkUpdate() const;
  2046. void Remove();
  2047. void RemoveAttributeAnimation(const String&);
  2048. void RemoveInstanceDefault();
  2049. void RemoveObjectAnimation();
  2050. void ResetToDefault();
  2051. bool Save(File) const;
  2052. bool Save(VectorBuffer&) const;
  2053. bool SaveJSON(JSONValue&) const;
  2054. bool SaveXML(XMLElement&) const;
  2055. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2056. void SetAnimationTime(float);
  2057. bool SetAttribute(const String&, const Variant&);
  2058. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2059. void SetAttributeAnimationSpeed(const String&, float);
  2060. void SetAttributeAnimationTime(const String&, float);
  2061. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2062. void SetInterceptNetworkUpdate(const String&, bool);
  2063. // Properties:
  2064. bool animationEnabled;
  2065. /* readonly */
  2066. Array<Variant> attributeDefaults;
  2067. /* readonly */
  2068. Array<AttributeInfo> attributeInfos;
  2069. Array<Variant> attributes;
  2070. /* readonly */
  2071. String category;
  2072. bool enabled;
  2073. /* readonly */
  2074. bool enabledEffective;
  2075. /* readonly */
  2076. uint id;
  2077. /* readonly */
  2078. Node node;
  2079. /* readonly */
  2080. uint numAttributes;
  2081. ObjectAnimation objectAnimation;
  2082. /* readonly */
  2083. int refs;
  2084. bool temporary;
  2085. /* readonly */
  2086. StringHash type;
  2087. /* readonly */
  2088. String typeName;
  2089. /* readonly */
  2090. int weakRefs;
  2091. };
  2092. class Connection
  2093. {
  2094. // Methods:
  2095. void Disconnect(int = 0);
  2096. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2097. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2098. void SendPackageToClient(PackageFile);
  2099. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2100. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2101. String ToString() const;
  2102. // Properties:
  2103. /* readonly */
  2104. String address;
  2105. /* readonly */
  2106. float bytesInPerSec;
  2107. /* readonly */
  2108. float bytesOutPerSec;
  2109. /* readonly */
  2110. String category;
  2111. /* readonly */
  2112. bool client;
  2113. /* readonly */
  2114. bool connectPending;
  2115. /* readonly */
  2116. bool connected;
  2117. Controls controls;
  2118. /* readonly */
  2119. String downloadName;
  2120. /* readonly */
  2121. float downloadProgress;
  2122. VariantMap identity;
  2123. /* readonly */
  2124. float lastHeardTime;
  2125. bool logStatistics;
  2126. /* readonly */
  2127. uint numDownloads;
  2128. /* readonly */
  2129. float packetsInPerSec;
  2130. /* readonly */
  2131. float packetsOutPerSec;
  2132. /* readonly */
  2133. uint16 port;
  2134. Vector3 position;
  2135. /* readonly */
  2136. int refs;
  2137. Quaternion rotation;
  2138. /* readonly */
  2139. float roundTripTime;
  2140. Scene scene;
  2141. /* readonly */
  2142. bool sceneLoaded;
  2143. uint8 timeStamp;
  2144. /* readonly */
  2145. StringHash type;
  2146. /* readonly */
  2147. String typeName;
  2148. /* readonly */
  2149. int weakRefs;
  2150. };
  2151. class Console
  2152. {
  2153. // Methods:
  2154. void CopySelectedRows() const;
  2155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2156. void Toggle();
  2157. void UpdateElements();
  2158. // Properties:
  2159. bool autoVisibleOnError;
  2160. /* readonly */
  2161. BorderImage background;
  2162. /* readonly */
  2163. String category;
  2164. /* readonly */
  2165. Button closeButton;
  2166. String commandInterpreter;
  2167. XMLFile defaultStyle;
  2168. bool focusOnShow;
  2169. /* readonly */
  2170. uint historyPosition;
  2171. /* readonly */
  2172. Array<String> historyRow;
  2173. /* readonly */
  2174. LineEdit lineEdit;
  2175. uint numBufferedRows;
  2176. uint numHistoryRows;
  2177. uint numRows;
  2178. /* readonly */
  2179. int refs;
  2180. /* readonly */
  2181. StringHash type;
  2182. /* readonly */
  2183. String typeName;
  2184. bool visible;
  2185. /* readonly */
  2186. int weakRefs;
  2187. };
  2188. class Constraint
  2189. {
  2190. // Methods:
  2191. void ApplyAttributes();
  2192. void DrawDebugGeometry(DebugRenderer, bool);
  2193. Variant GetAttribute(const String&) const;
  2194. ValueAnimation GetAttributeAnimation(const String&) const;
  2195. float GetAttributeAnimationSpeed(const String&) const;
  2196. float GetAttributeAnimationTime(const String&) const;
  2197. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2198. Variant GetAttributeDefault(const String&) const;
  2199. bool GetInterceptNetworkUpdate(const String&) const;
  2200. bool Load(File, bool = false);
  2201. bool Load(VectorBuffer&, bool = false);
  2202. bool LoadJSON(const JSONValue&, bool = false);
  2203. bool LoadXML(const XMLElement&, bool = false);
  2204. void MarkNetworkUpdate() const;
  2205. void Remove();
  2206. void RemoveAttributeAnimation(const String&);
  2207. void RemoveInstanceDefault();
  2208. void RemoveObjectAnimation();
  2209. void ResetToDefault();
  2210. bool Save(File) const;
  2211. bool Save(VectorBuffer&) const;
  2212. bool SaveJSON(JSONValue&) const;
  2213. bool SaveXML(XMLElement&) const;
  2214. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2215. void SetAnimationTime(float);
  2216. bool SetAttribute(const String&, const Variant&);
  2217. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2218. void SetAttributeAnimationSpeed(const String&, float);
  2219. void SetAttributeAnimationTime(const String&, float);
  2220. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2221. void SetInterceptNetworkUpdate(const String&, bool);
  2222. // Properties:
  2223. bool animationEnabled;
  2224. /* readonly */
  2225. Array<Variant> attributeDefaults;
  2226. /* readonly */
  2227. Array<AttributeInfo> attributeInfos;
  2228. Array<Variant> attributes;
  2229. /* writeonly */
  2230. Vector3 axis;
  2231. /* readonly */
  2232. String category;
  2233. float cfm;
  2234. ConstraintType constraintType;
  2235. bool disableCollision;
  2236. bool enabled;
  2237. /* readonly */
  2238. bool enabledEffective;
  2239. float erp;
  2240. Vector2 highLimit;
  2241. /* readonly */
  2242. uint id;
  2243. Vector2 lowLimit;
  2244. /* readonly */
  2245. Node node;
  2246. /* readonly */
  2247. uint numAttributes;
  2248. ObjectAnimation objectAnimation;
  2249. /* writeonly */
  2250. Vector3 otherAxis;
  2251. RigidBody otherBody;
  2252. Vector3 otherPosition;
  2253. Quaternion otherRotation;
  2254. /* readonly */
  2255. RigidBody ownBody;
  2256. Vector3 position;
  2257. /* readonly */
  2258. int refs;
  2259. Quaternion rotation;
  2260. bool temporary;
  2261. /* readonly */
  2262. StringHash type;
  2263. /* readonly */
  2264. String typeName;
  2265. /* readonly */
  2266. int weakRefs;
  2267. Vector3 worldPosition;
  2268. };
  2269. class Constraint2D
  2270. {
  2271. // Methods:
  2272. void ApplyAttributes();
  2273. void DrawDebugGeometry(DebugRenderer, bool);
  2274. Variant GetAttribute(const String&) const;
  2275. ValueAnimation GetAttributeAnimation(const String&) const;
  2276. float GetAttributeAnimationSpeed(const String&) const;
  2277. float GetAttributeAnimationTime(const String&) const;
  2278. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2279. Variant GetAttributeDefault(const String&) const;
  2280. bool GetInterceptNetworkUpdate(const String&) const;
  2281. bool Load(File, bool = false);
  2282. bool Load(VectorBuffer&, bool = false);
  2283. bool LoadJSON(const JSONValue&, bool = false);
  2284. bool LoadXML(const XMLElement&, bool = false);
  2285. void MarkNetworkUpdate() const;
  2286. void Remove();
  2287. void RemoveAttributeAnimation(const String&);
  2288. void RemoveInstanceDefault();
  2289. void RemoveObjectAnimation();
  2290. void ResetToDefault();
  2291. bool Save(File) const;
  2292. bool Save(VectorBuffer&) const;
  2293. bool SaveJSON(JSONValue&) const;
  2294. bool SaveXML(XMLElement&) const;
  2295. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2296. void SetAnimationTime(float);
  2297. bool SetAttribute(const String&, const Variant&);
  2298. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2299. void SetAttributeAnimationSpeed(const String&, float);
  2300. void SetAttributeAnimationTime(const String&, float);
  2301. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2302. void SetInterceptNetworkUpdate(const String&, bool);
  2303. // Properties:
  2304. bool animationEnabled;
  2305. /* readonly */
  2306. Array<Variant> attributeDefaults;
  2307. /* readonly */
  2308. Array<AttributeInfo> attributeInfos;
  2309. Array<Variant> attributes;
  2310. /* readonly */
  2311. String category;
  2312. bool collideConnected;
  2313. bool enabled;
  2314. /* readonly */
  2315. bool enabledEffective;
  2316. /* readonly */
  2317. uint id;
  2318. /* readonly */
  2319. Node node;
  2320. /* readonly */
  2321. uint numAttributes;
  2322. ObjectAnimation objectAnimation;
  2323. RigidBody2D otherBody;
  2324. /* readonly */
  2325. RigidBody2D ownerBody;
  2326. /* readonly */
  2327. int refs;
  2328. bool temporary;
  2329. /* readonly */
  2330. StringHash type;
  2331. /* readonly */
  2332. String typeName;
  2333. /* readonly */
  2334. int weakRefs;
  2335. };
  2336. class ConstraintDistance2D
  2337. {
  2338. // Methods:
  2339. void ApplyAttributes();
  2340. void DrawDebugGeometry(DebugRenderer, bool);
  2341. Variant GetAttribute(const String&) const;
  2342. ValueAnimation GetAttributeAnimation(const String&) const;
  2343. float GetAttributeAnimationSpeed(const String&) const;
  2344. float GetAttributeAnimationTime(const String&) const;
  2345. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2346. Variant GetAttributeDefault(const String&) const;
  2347. bool GetInterceptNetworkUpdate(const String&) const;
  2348. bool Load(File, bool = false);
  2349. bool Load(VectorBuffer&, bool = false);
  2350. bool LoadJSON(const JSONValue&, bool = false);
  2351. bool LoadXML(const XMLElement&, bool = false);
  2352. void MarkNetworkUpdate() const;
  2353. void Remove();
  2354. void RemoveAttributeAnimation(const String&);
  2355. void RemoveInstanceDefault();
  2356. void RemoveObjectAnimation();
  2357. void ResetToDefault();
  2358. bool Save(File) const;
  2359. bool Save(VectorBuffer&) const;
  2360. bool SaveJSON(JSONValue&) const;
  2361. bool SaveXML(XMLElement&) const;
  2362. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2363. void SetAnimationTime(float);
  2364. bool SetAttribute(const String&, const Variant&);
  2365. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2366. void SetAttributeAnimationSpeed(const String&, float);
  2367. void SetAttributeAnimationTime(const String&, float);
  2368. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2369. void SetInterceptNetworkUpdate(const String&, bool);
  2370. // Properties:
  2371. bool animationEnabled;
  2372. /* readonly */
  2373. Array<Variant> attributeDefaults;
  2374. /* readonly */
  2375. Array<AttributeInfo> attributeInfos;
  2376. Array<Variant> attributes;
  2377. /* readonly */
  2378. String category;
  2379. bool collideConnected;
  2380. float dampingRatio;
  2381. bool enabled;
  2382. /* readonly */
  2383. bool enabledEffective;
  2384. float frequencyHz;
  2385. /* readonly */
  2386. uint id;
  2387. /* readonly */
  2388. Node node;
  2389. /* readonly */
  2390. uint numAttributes;
  2391. ObjectAnimation objectAnimation;
  2392. RigidBody2D otherBody;
  2393. Vector2 otherBodyAnchor;
  2394. /* readonly */
  2395. RigidBody2D ownerBody;
  2396. Vector2 ownerBodyAnchor;
  2397. /* readonly */
  2398. int refs;
  2399. bool temporary;
  2400. /* readonly */
  2401. StringHash type;
  2402. /* readonly */
  2403. String typeName;
  2404. /* readonly */
  2405. int weakRefs;
  2406. };
  2407. class ConstraintFriction2D
  2408. {
  2409. // Methods:
  2410. void ApplyAttributes();
  2411. void DrawDebugGeometry(DebugRenderer, bool);
  2412. Variant GetAttribute(const String&) const;
  2413. ValueAnimation GetAttributeAnimation(const String&) const;
  2414. float GetAttributeAnimationSpeed(const String&) const;
  2415. float GetAttributeAnimationTime(const String&) const;
  2416. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2417. Variant GetAttributeDefault(const String&) const;
  2418. bool GetInterceptNetworkUpdate(const String&) const;
  2419. bool Load(File, bool = false);
  2420. bool Load(VectorBuffer&, bool = false);
  2421. bool LoadJSON(const JSONValue&, bool = false);
  2422. bool LoadXML(const XMLElement&, bool = false);
  2423. void MarkNetworkUpdate() const;
  2424. void Remove();
  2425. void RemoveAttributeAnimation(const String&);
  2426. void RemoveInstanceDefault();
  2427. void RemoveObjectAnimation();
  2428. void ResetToDefault();
  2429. bool Save(File) const;
  2430. bool Save(VectorBuffer&) const;
  2431. bool SaveJSON(JSONValue&) const;
  2432. bool SaveXML(XMLElement&) const;
  2433. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2434. void SetAnimationTime(float);
  2435. bool SetAttribute(const String&, const Variant&);
  2436. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2437. void SetAttributeAnimationSpeed(const String&, float);
  2438. void SetAttributeAnimationTime(const String&, float);
  2439. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2440. void SetInterceptNetworkUpdate(const String&, bool);
  2441. // Properties:
  2442. Vector2 anchor;
  2443. bool animationEnabled;
  2444. /* readonly */
  2445. Array<Variant> attributeDefaults;
  2446. /* readonly */
  2447. Array<AttributeInfo> attributeInfos;
  2448. Array<Variant> attributes;
  2449. /* readonly */
  2450. String category;
  2451. bool collideConnected;
  2452. bool enabled;
  2453. /* readonly */
  2454. bool enabledEffective;
  2455. /* readonly */
  2456. uint id;
  2457. float maxForce;
  2458. float maxTorque;
  2459. /* readonly */
  2460. Node node;
  2461. /* readonly */
  2462. uint numAttributes;
  2463. ObjectAnimation objectAnimation;
  2464. RigidBody2D otherBody;
  2465. /* readonly */
  2466. RigidBody2D ownerBody;
  2467. /* readonly */
  2468. int refs;
  2469. bool temporary;
  2470. /* readonly */
  2471. StringHash type;
  2472. /* readonly */
  2473. String typeName;
  2474. /* readonly */
  2475. int weakRefs;
  2476. };
  2477. class ConstraintGear2D
  2478. {
  2479. // Methods:
  2480. void ApplyAttributes();
  2481. void DrawDebugGeometry(DebugRenderer, bool);
  2482. Variant GetAttribute(const String&) const;
  2483. ValueAnimation GetAttributeAnimation(const String&) const;
  2484. float GetAttributeAnimationSpeed(const String&) const;
  2485. float GetAttributeAnimationTime(const String&) const;
  2486. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2487. Variant GetAttributeDefault(const String&) const;
  2488. bool GetInterceptNetworkUpdate(const String&) const;
  2489. bool Load(File, bool = false);
  2490. bool Load(VectorBuffer&, bool = false);
  2491. bool LoadJSON(const JSONValue&, bool = false);
  2492. bool LoadXML(const XMLElement&, bool = false);
  2493. void MarkNetworkUpdate() const;
  2494. void Remove();
  2495. void RemoveAttributeAnimation(const String&);
  2496. void RemoveInstanceDefault();
  2497. void RemoveObjectAnimation();
  2498. void ResetToDefault();
  2499. bool Save(File) const;
  2500. bool Save(VectorBuffer&) const;
  2501. bool SaveJSON(JSONValue&) const;
  2502. bool SaveXML(XMLElement&) const;
  2503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2504. void SetAnimationTime(float);
  2505. bool SetAttribute(const String&, const Variant&);
  2506. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2507. void SetAttributeAnimationSpeed(const String&, float);
  2508. void SetAttributeAnimationTime(const String&, float);
  2509. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2510. void SetInterceptNetworkUpdate(const String&, bool);
  2511. // Properties:
  2512. bool animationEnabled;
  2513. /* readonly */
  2514. Array<Variant> attributeDefaults;
  2515. /* readonly */
  2516. Array<AttributeInfo> attributeInfos;
  2517. Array<Variant> attributes;
  2518. /* readonly */
  2519. String category;
  2520. bool collideConnected;
  2521. bool enabled;
  2522. /* readonly */
  2523. bool enabledEffective;
  2524. /* readonly */
  2525. uint id;
  2526. /* readonly */
  2527. Node node;
  2528. /* readonly */
  2529. uint numAttributes;
  2530. ObjectAnimation objectAnimation;
  2531. RigidBody2D otherBody;
  2532. Constraint2D otherConstraint;
  2533. /* readonly */
  2534. RigidBody2D ownerBody;
  2535. Constraint2D ownerConstraint;
  2536. float ratio;
  2537. /* readonly */
  2538. int refs;
  2539. bool temporary;
  2540. /* readonly */
  2541. StringHash type;
  2542. /* readonly */
  2543. String typeName;
  2544. /* readonly */
  2545. int weakRefs;
  2546. };
  2547. class ConstraintMotor2D
  2548. {
  2549. // Methods:
  2550. void ApplyAttributes();
  2551. void DrawDebugGeometry(DebugRenderer, bool);
  2552. Variant GetAttribute(const String&) const;
  2553. ValueAnimation GetAttributeAnimation(const String&) const;
  2554. float GetAttributeAnimationSpeed(const String&) const;
  2555. float GetAttributeAnimationTime(const String&) const;
  2556. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2557. Variant GetAttributeDefault(const String&) const;
  2558. bool GetInterceptNetworkUpdate(const String&) const;
  2559. bool Load(File, bool = false);
  2560. bool Load(VectorBuffer&, bool = false);
  2561. bool LoadJSON(const JSONValue&, bool = false);
  2562. bool LoadXML(const XMLElement&, bool = false);
  2563. void MarkNetworkUpdate() const;
  2564. void Remove();
  2565. void RemoveAttributeAnimation(const String&);
  2566. void RemoveInstanceDefault();
  2567. void RemoveObjectAnimation();
  2568. void ResetToDefault();
  2569. bool Save(File) const;
  2570. bool Save(VectorBuffer&) const;
  2571. bool SaveJSON(JSONValue&) const;
  2572. bool SaveXML(XMLElement&) const;
  2573. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2574. void SetAnimationTime(float);
  2575. bool SetAttribute(const String&, const Variant&);
  2576. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2577. void SetAttributeAnimationSpeed(const String&, float);
  2578. void SetAttributeAnimationTime(const String&, float);
  2579. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2580. void SetInterceptNetworkUpdate(const String&, bool);
  2581. // Properties:
  2582. float angularOffset;
  2583. bool animationEnabled;
  2584. /* readonly */
  2585. Array<Variant> attributeDefaults;
  2586. /* readonly */
  2587. Array<AttributeInfo> attributeInfos;
  2588. Array<Variant> attributes;
  2589. /* readonly */
  2590. String category;
  2591. bool collideConnected;
  2592. float correctionFactor;
  2593. bool enabled;
  2594. /* readonly */
  2595. bool enabledEffective;
  2596. /* readonly */
  2597. uint id;
  2598. Vector2 linearOffset;
  2599. float maxForce;
  2600. float maxTorque;
  2601. /* readonly */
  2602. Node node;
  2603. /* readonly */
  2604. uint numAttributes;
  2605. ObjectAnimation objectAnimation;
  2606. RigidBody2D otherBody;
  2607. /* readonly */
  2608. RigidBody2D ownerBody;
  2609. /* readonly */
  2610. int refs;
  2611. bool temporary;
  2612. /* readonly */
  2613. StringHash type;
  2614. /* readonly */
  2615. String typeName;
  2616. /* readonly */
  2617. int weakRefs;
  2618. };
  2619. class ConstraintMouse2D
  2620. {
  2621. // Methods:
  2622. void ApplyAttributes();
  2623. void DrawDebugGeometry(DebugRenderer, bool);
  2624. Variant GetAttribute(const String&) const;
  2625. ValueAnimation GetAttributeAnimation(const String&) const;
  2626. float GetAttributeAnimationSpeed(const String&) const;
  2627. float GetAttributeAnimationTime(const String&) const;
  2628. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2629. Variant GetAttributeDefault(const String&) const;
  2630. bool GetInterceptNetworkUpdate(const String&) const;
  2631. bool Load(File, bool = false);
  2632. bool Load(VectorBuffer&, bool = false);
  2633. bool LoadJSON(const JSONValue&, bool = false);
  2634. bool LoadXML(const XMLElement&, bool = false);
  2635. void MarkNetworkUpdate() const;
  2636. void Remove();
  2637. void RemoveAttributeAnimation(const String&);
  2638. void RemoveInstanceDefault();
  2639. void RemoveObjectAnimation();
  2640. void ResetToDefault();
  2641. bool Save(File) const;
  2642. bool Save(VectorBuffer&) const;
  2643. bool SaveJSON(JSONValue&) const;
  2644. bool SaveXML(XMLElement&) const;
  2645. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2646. void SetAnimationTime(float);
  2647. bool SetAttribute(const String&, const Variant&);
  2648. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2649. void SetAttributeAnimationSpeed(const String&, float);
  2650. void SetAttributeAnimationTime(const String&, float);
  2651. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2652. void SetInterceptNetworkUpdate(const String&, bool);
  2653. // Properties:
  2654. bool animationEnabled;
  2655. /* readonly */
  2656. Array<Variant> attributeDefaults;
  2657. /* readonly */
  2658. Array<AttributeInfo> attributeInfos;
  2659. Array<Variant> attributes;
  2660. /* readonly */
  2661. String category;
  2662. bool collideConnected;
  2663. float dampingRatio;
  2664. bool enabled;
  2665. /* readonly */
  2666. bool enabledEffective;
  2667. float frequencyHz;
  2668. /* readonly */
  2669. uint id;
  2670. float maxForce;
  2671. /* readonly */
  2672. Node node;
  2673. /* readonly */
  2674. uint numAttributes;
  2675. ObjectAnimation objectAnimation;
  2676. RigidBody2D otherBody;
  2677. /* readonly */
  2678. RigidBody2D ownerBody;
  2679. /* readonly */
  2680. int refs;
  2681. Vector2 target;
  2682. bool temporary;
  2683. /* readonly */
  2684. StringHash type;
  2685. /* readonly */
  2686. String typeName;
  2687. /* readonly */
  2688. int weakRefs;
  2689. };
  2690. class ConstraintPrismatic2D
  2691. {
  2692. // Methods:
  2693. void ApplyAttributes();
  2694. void DrawDebugGeometry(DebugRenderer, bool);
  2695. Variant GetAttribute(const String&) const;
  2696. ValueAnimation GetAttributeAnimation(const String&) const;
  2697. float GetAttributeAnimationSpeed(const String&) const;
  2698. float GetAttributeAnimationTime(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 LoadJSON(const JSONValue&, bool = false);
  2705. bool LoadXML(const XMLElement&, bool = false);
  2706. void MarkNetworkUpdate() const;
  2707. void Remove();
  2708. void RemoveAttributeAnimation(const String&);
  2709. void RemoveInstanceDefault();
  2710. void RemoveObjectAnimation();
  2711. void ResetToDefault();
  2712. bool Save(File) const;
  2713. bool Save(VectorBuffer&) const;
  2714. bool SaveJSON(JSONValue&) const;
  2715. bool SaveXML(XMLElement&) const;
  2716. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2717. void SetAnimationTime(float);
  2718. bool SetAttribute(const String&, const Variant&);
  2719. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2720. void SetAttributeAnimationSpeed(const String&, float);
  2721. void SetAttributeAnimationTime(const String&, float);
  2722. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2723. void SetInterceptNetworkUpdate(const String&, bool);
  2724. // Properties:
  2725. Vector2 anchor;
  2726. bool animationEnabled;
  2727. /* readonly */
  2728. Array<Variant> attributeDefaults;
  2729. /* readonly */
  2730. Array<AttributeInfo> attributeInfos;
  2731. Array<Variant> attributes;
  2732. Vector2 axis;
  2733. /* readonly */
  2734. String category;
  2735. bool collideConnected;
  2736. bool enableLimit;
  2737. bool enableMotor;
  2738. bool enabled;
  2739. /* readonly */
  2740. bool enabledEffective;
  2741. /* readonly */
  2742. uint id;
  2743. float lowerTranslation;
  2744. float maxMotorForce;
  2745. float motorSpeed;
  2746. /* readonly */
  2747. Node node;
  2748. /* readonly */
  2749. uint numAttributes;
  2750. ObjectAnimation objectAnimation;
  2751. RigidBody2D otherBody;
  2752. /* readonly */
  2753. RigidBody2D ownerBody;
  2754. /* readonly */
  2755. int refs;
  2756. bool temporary;
  2757. /* readonly */
  2758. StringHash type;
  2759. /* readonly */
  2760. String typeName;
  2761. float upperTranslation;
  2762. /* readonly */
  2763. int weakRefs;
  2764. };
  2765. class ConstraintPulley2D
  2766. {
  2767. // Methods:
  2768. void ApplyAttributes();
  2769. void DrawDebugGeometry(DebugRenderer, bool);
  2770. Variant GetAttribute(const String&) const;
  2771. ValueAnimation GetAttributeAnimation(const String&) const;
  2772. float GetAttributeAnimationSpeed(const String&) const;
  2773. float GetAttributeAnimationTime(const String&) const;
  2774. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2775. Variant GetAttributeDefault(const String&) const;
  2776. bool GetInterceptNetworkUpdate(const String&) const;
  2777. bool Load(File, bool = false);
  2778. bool Load(VectorBuffer&, bool = false);
  2779. bool LoadJSON(const JSONValue&, bool = false);
  2780. bool LoadXML(const XMLElement&, bool = false);
  2781. void MarkNetworkUpdate() const;
  2782. void Remove();
  2783. void RemoveAttributeAnimation(const String&);
  2784. void RemoveInstanceDefault();
  2785. void RemoveObjectAnimation();
  2786. void ResetToDefault();
  2787. bool Save(File) const;
  2788. bool Save(VectorBuffer&) const;
  2789. bool SaveJSON(JSONValue&) const;
  2790. bool SaveXML(XMLElement&) const;
  2791. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2792. void SetAnimationTime(float);
  2793. bool SetAttribute(const String&, const Variant&);
  2794. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2795. void SetAttributeAnimationSpeed(const String&, float);
  2796. void SetAttributeAnimationTime(const String&, float);
  2797. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2798. void SetInterceptNetworkUpdate(const String&, bool);
  2799. // Properties:
  2800. bool animationEnabled;
  2801. /* readonly */
  2802. Array<Variant> attributeDefaults;
  2803. /* readonly */
  2804. Array<AttributeInfo> attributeInfos;
  2805. Array<Variant> attributes;
  2806. /* readonly */
  2807. String category;
  2808. bool collideConnected;
  2809. bool enabled;
  2810. /* readonly */
  2811. bool enabledEffective;
  2812. /* readonly */
  2813. uint id;
  2814. /* readonly */
  2815. Node node;
  2816. /* readonly */
  2817. uint numAttributes;
  2818. ObjectAnimation objectAnimation;
  2819. RigidBody2D otherBody;
  2820. Vector2 otherBodyAnchor;
  2821. Vector2 otherBodyGroundAnchor;
  2822. /* readonly */
  2823. RigidBody2D ownerBody;
  2824. Vector2 ownerBodyAnchor;
  2825. Vector2 ownerBodyGroundAnchor;
  2826. float ratio;
  2827. /* readonly */
  2828. int refs;
  2829. bool temporary;
  2830. /* readonly */
  2831. StringHash type;
  2832. /* readonly */
  2833. String typeName;
  2834. /* readonly */
  2835. int weakRefs;
  2836. };
  2837. class ConstraintRevolute2D
  2838. {
  2839. // Methods:
  2840. void ApplyAttributes();
  2841. void DrawDebugGeometry(DebugRenderer, bool);
  2842. Variant GetAttribute(const String&) const;
  2843. ValueAnimation GetAttributeAnimation(const String&) const;
  2844. float GetAttributeAnimationSpeed(const String&) const;
  2845. float GetAttributeAnimationTime(const String&) const;
  2846. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2847. Variant GetAttributeDefault(const String&) const;
  2848. bool GetInterceptNetworkUpdate(const String&) const;
  2849. bool Load(File, bool = false);
  2850. bool Load(VectorBuffer&, bool = false);
  2851. bool LoadJSON(const JSONValue&, bool = false);
  2852. bool LoadXML(const XMLElement&, bool = false);
  2853. void MarkNetworkUpdate() const;
  2854. void Remove();
  2855. void RemoveAttributeAnimation(const String&);
  2856. void RemoveInstanceDefault();
  2857. void RemoveObjectAnimation();
  2858. void ResetToDefault();
  2859. bool Save(File) const;
  2860. bool Save(VectorBuffer&) const;
  2861. bool SaveJSON(JSONValue&) const;
  2862. bool SaveXML(XMLElement&) const;
  2863. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2864. void SetAnimationTime(float);
  2865. bool SetAttribute(const String&, const Variant&);
  2866. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2867. void SetAttributeAnimationSpeed(const String&, float);
  2868. void SetAttributeAnimationTime(const String&, float);
  2869. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2870. void SetInterceptNetworkUpdate(const String&, bool);
  2871. // Properties:
  2872. Vector2 anchor;
  2873. bool animationEnabled;
  2874. /* readonly */
  2875. Array<Variant> attributeDefaults;
  2876. /* readonly */
  2877. Array<AttributeInfo> attributeInfos;
  2878. Array<Variant> attributes;
  2879. /* readonly */
  2880. String category;
  2881. bool collideConnected;
  2882. bool enableLimit;
  2883. bool enableMotor;
  2884. bool enabled;
  2885. /* readonly */
  2886. bool enabledEffective;
  2887. /* readonly */
  2888. uint id;
  2889. float lowerAngle;
  2890. float maxMotorTorque;
  2891. float motorSpeed;
  2892. /* readonly */
  2893. Node node;
  2894. /* readonly */
  2895. uint numAttributes;
  2896. ObjectAnimation objectAnimation;
  2897. RigidBody2D otherBody;
  2898. /* readonly */
  2899. RigidBody2D ownerBody;
  2900. /* readonly */
  2901. int refs;
  2902. bool temporary;
  2903. /* readonly */
  2904. StringHash type;
  2905. /* readonly */
  2906. String typeName;
  2907. float upperAngle;
  2908. /* readonly */
  2909. int weakRefs;
  2910. };
  2911. class ConstraintRope2D
  2912. {
  2913. // Methods:
  2914. void ApplyAttributes();
  2915. void DrawDebugGeometry(DebugRenderer, bool);
  2916. Variant GetAttribute(const String&) const;
  2917. ValueAnimation GetAttributeAnimation(const String&) const;
  2918. float GetAttributeAnimationSpeed(const String&) const;
  2919. float GetAttributeAnimationTime(const String&) const;
  2920. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2921. Variant GetAttributeDefault(const String&) const;
  2922. bool GetInterceptNetworkUpdate(const String&) const;
  2923. bool Load(File, bool = false);
  2924. bool Load(VectorBuffer&, bool = false);
  2925. bool LoadJSON(const JSONValue&, bool = false);
  2926. bool LoadXML(const XMLElement&, bool = false);
  2927. void MarkNetworkUpdate() const;
  2928. void Remove();
  2929. void RemoveAttributeAnimation(const String&);
  2930. void RemoveInstanceDefault();
  2931. void RemoveObjectAnimation();
  2932. void ResetToDefault();
  2933. bool Save(File) const;
  2934. bool Save(VectorBuffer&) const;
  2935. bool SaveJSON(JSONValue&) const;
  2936. bool SaveXML(XMLElement&) const;
  2937. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2938. void SetAnimationTime(float);
  2939. bool SetAttribute(const String&, const Variant&);
  2940. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2941. void SetAttributeAnimationSpeed(const String&, float);
  2942. void SetAttributeAnimationTime(const String&, float);
  2943. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2944. void SetInterceptNetworkUpdate(const String&, bool);
  2945. // Properties:
  2946. bool animationEnabled;
  2947. /* readonly */
  2948. Array<Variant> attributeDefaults;
  2949. /* readonly */
  2950. Array<AttributeInfo> attributeInfos;
  2951. Array<Variant> attributes;
  2952. /* readonly */
  2953. String category;
  2954. bool collideConnected;
  2955. bool enabled;
  2956. /* readonly */
  2957. bool enabledEffective;
  2958. /* readonly */
  2959. uint id;
  2960. float maxLength;
  2961. /* readonly */
  2962. Node node;
  2963. /* readonly */
  2964. uint numAttributes;
  2965. ObjectAnimation objectAnimation;
  2966. RigidBody2D otherBody;
  2967. Vector2 otherBodyAnchor;
  2968. /* readonly */
  2969. RigidBody2D ownerBody;
  2970. Vector2 ownerBodyAnchor;
  2971. /* readonly */
  2972. int refs;
  2973. bool temporary;
  2974. /* readonly */
  2975. StringHash type;
  2976. /* readonly */
  2977. String typeName;
  2978. /* readonly */
  2979. int weakRefs;
  2980. };
  2981. class ConstraintWeld2D
  2982. {
  2983. // Methods:
  2984. void ApplyAttributes();
  2985. void DrawDebugGeometry(DebugRenderer, bool);
  2986. Variant GetAttribute(const String&) const;
  2987. ValueAnimation GetAttributeAnimation(const String&) const;
  2988. float GetAttributeAnimationSpeed(const String&) const;
  2989. float GetAttributeAnimationTime(const String&) const;
  2990. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2991. Variant GetAttributeDefault(const String&) const;
  2992. bool GetInterceptNetworkUpdate(const String&) const;
  2993. bool Load(File, bool = false);
  2994. bool Load(VectorBuffer&, bool = false);
  2995. bool LoadJSON(const JSONValue&, bool = false);
  2996. bool LoadXML(const XMLElement&, bool = false);
  2997. void MarkNetworkUpdate() const;
  2998. void Remove();
  2999. void RemoveAttributeAnimation(const String&);
  3000. void RemoveInstanceDefault();
  3001. void RemoveObjectAnimation();
  3002. void ResetToDefault();
  3003. bool Save(File) const;
  3004. bool Save(VectorBuffer&) const;
  3005. bool SaveJSON(JSONValue&) const;
  3006. bool SaveXML(XMLElement&) const;
  3007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3008. void SetAnimationTime(float);
  3009. bool SetAttribute(const String&, const Variant&);
  3010. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3011. void SetAttributeAnimationSpeed(const String&, float);
  3012. void SetAttributeAnimationTime(const String&, float);
  3013. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3014. void SetInterceptNetworkUpdate(const String&, bool);
  3015. // Properties:
  3016. Vector2 anchor;
  3017. bool animationEnabled;
  3018. /* readonly */
  3019. Array<Variant> attributeDefaults;
  3020. /* readonly */
  3021. Array<AttributeInfo> attributeInfos;
  3022. Array<Variant> attributes;
  3023. /* readonly */
  3024. String category;
  3025. bool collideConnected;
  3026. float dampingRatio;
  3027. bool enabled;
  3028. /* readonly */
  3029. bool enabledEffective;
  3030. float frequencyHz;
  3031. /* readonly */
  3032. uint id;
  3033. /* readonly */
  3034. Node node;
  3035. /* readonly */
  3036. uint numAttributes;
  3037. ObjectAnimation objectAnimation;
  3038. RigidBody2D otherBody;
  3039. /* readonly */
  3040. RigidBody2D ownerBody;
  3041. /* readonly */
  3042. int refs;
  3043. bool temporary;
  3044. /* readonly */
  3045. StringHash type;
  3046. /* readonly */
  3047. String typeName;
  3048. /* readonly */
  3049. int weakRefs;
  3050. };
  3051. class ConstraintWheel2D
  3052. {
  3053. // Methods:
  3054. void ApplyAttributes();
  3055. void DrawDebugGeometry(DebugRenderer, bool);
  3056. Variant GetAttribute(const String&) const;
  3057. ValueAnimation GetAttributeAnimation(const String&) const;
  3058. float GetAttributeAnimationSpeed(const String&) const;
  3059. float GetAttributeAnimationTime(const String&) const;
  3060. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3061. Variant GetAttributeDefault(const String&) const;
  3062. bool GetInterceptNetworkUpdate(const String&) const;
  3063. bool Load(File, bool = false);
  3064. bool Load(VectorBuffer&, bool = false);
  3065. bool LoadJSON(const JSONValue&, bool = false);
  3066. bool LoadXML(const XMLElement&, bool = false);
  3067. void MarkNetworkUpdate() const;
  3068. void Remove();
  3069. void RemoveAttributeAnimation(const String&);
  3070. void RemoveInstanceDefault();
  3071. void RemoveObjectAnimation();
  3072. void ResetToDefault();
  3073. bool Save(File) const;
  3074. bool Save(VectorBuffer&) const;
  3075. bool SaveJSON(JSONValue&) const;
  3076. bool SaveXML(XMLElement&) const;
  3077. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3078. void SetAnimationTime(float);
  3079. bool SetAttribute(const String&, const Variant&);
  3080. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3081. void SetAttributeAnimationSpeed(const String&, float);
  3082. void SetAttributeAnimationTime(const String&, float);
  3083. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3084. void SetInterceptNetworkUpdate(const String&, bool);
  3085. // Properties:
  3086. Vector2 anchor;
  3087. bool animationEnabled;
  3088. /* readonly */
  3089. Array<Variant> attributeDefaults;
  3090. /* readonly */
  3091. Array<AttributeInfo> attributeInfos;
  3092. Array<Variant> attributes;
  3093. Vector2 axis;
  3094. /* readonly */
  3095. String category;
  3096. bool collideConnected;
  3097. float dampingRatio;
  3098. bool enableMotor;
  3099. bool enabled;
  3100. /* readonly */
  3101. bool enabledEffective;
  3102. float frequencyHz;
  3103. /* readonly */
  3104. uint id;
  3105. float maxMotorTorque;
  3106. float motorSpeed;
  3107. /* readonly */
  3108. Node node;
  3109. /* readonly */
  3110. uint numAttributes;
  3111. ObjectAnimation objectAnimation;
  3112. RigidBody2D otherBody;
  3113. /* readonly */
  3114. RigidBody2D ownerBody;
  3115. /* readonly */
  3116. int refs;
  3117. bool temporary;
  3118. /* readonly */
  3119. StringHash type;
  3120. /* readonly */
  3121. String typeName;
  3122. /* readonly */
  3123. int weakRefs;
  3124. };
  3125. class Controls
  3126. {
  3127. // Methods:
  3128. bool IsDown(uint) const;
  3129. bool IsPressed(uint, const Controls&) const;
  3130. void Reset();
  3131. void Set(uint, bool);
  3132. // Properties:
  3133. uint buttons;
  3134. VariantMap extraData;
  3135. float pitch;
  3136. float yaw;
  3137. };
  3138. class CrowdAgent
  3139. {
  3140. // Methods:
  3141. void ApplyAttributes();
  3142. void DrawDebugGeometry(DebugRenderer, bool);
  3143. void DrawDebugGeometry(bool);
  3144. Variant GetAttribute(const String&) const;
  3145. ValueAnimation GetAttributeAnimation(const String&) const;
  3146. float GetAttributeAnimationSpeed(const String&) const;
  3147. float GetAttributeAnimationTime(const String&) const;
  3148. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3149. Variant GetAttributeDefault(const String&) const;
  3150. bool GetInterceptNetworkUpdate(const String&) const;
  3151. bool Load(File, bool = false);
  3152. bool Load(VectorBuffer&, bool = false);
  3153. bool LoadJSON(const JSONValue&, bool = false);
  3154. bool LoadXML(const XMLElement&, bool = false);
  3155. void MarkNetworkUpdate() const;
  3156. void Remove();
  3157. void RemoveAttributeAnimation(const String&);
  3158. void RemoveInstanceDefault();
  3159. void RemoveObjectAnimation();
  3160. void ResetTarget();
  3161. void ResetToDefault();
  3162. bool Save(File) const;
  3163. bool Save(VectorBuffer&) const;
  3164. bool SaveJSON(JSONValue&) const;
  3165. bool SaveXML(XMLElement&) const;
  3166. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3167. void SetAnimationTime(float);
  3168. bool SetAttribute(const String&, const Variant&);
  3169. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3170. void SetAttributeAnimationSpeed(const String&, float);
  3171. void SetAttributeAnimationTime(const String&, float);
  3172. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3173. void SetInterceptNetworkUpdate(const String&, bool);
  3174. // Properties:
  3175. /* readonly */
  3176. Vector3 actualVelocity;
  3177. /* readonly */
  3178. CrowdAgentState agentState;
  3179. bool animationEnabled;
  3180. /* readonly */
  3181. bool arrived;
  3182. /* readonly */
  3183. Array<Variant> attributeDefaults;
  3184. /* readonly */
  3185. Array<AttributeInfo> attributeInfos;
  3186. Array<Variant> attributes;
  3187. /* readonly */
  3188. String category;
  3189. /* readonly */
  3190. Vector3 desiredVelocity;
  3191. bool enabled;
  3192. /* readonly */
  3193. bool enabledEffective;
  3194. float height;
  3195. /* readonly */
  3196. uint id;
  3197. /* readonly */
  3198. bool inCrowd;
  3199. float maxAccel;
  3200. float maxSpeed;
  3201. NavigationPushiness navigationPushiness;
  3202. NavigationQuality navigationQuality;
  3203. /* readonly */
  3204. Node node;
  3205. /* readonly */
  3206. uint numAttributes;
  3207. ObjectAnimation objectAnimation;
  3208. uint obstacleAvoidanceType;
  3209. /* readonly */
  3210. Vector3 position;
  3211. uint queryFilterType;
  3212. float radius;
  3213. /* readonly */
  3214. int refs;
  3215. /* readonly */
  3216. bool requestedTarget;
  3217. /* readonly */
  3218. CrowdAgentRequestedTarget requestedTargetType;
  3219. Vector3 targetPosition;
  3220. /* readonly */
  3221. CrowdAgentTargetState targetState;
  3222. Vector3 targetVelocity;
  3223. bool temporary;
  3224. /* readonly */
  3225. StringHash type;
  3226. /* readonly */
  3227. String typeName;
  3228. bool updateNodePosition;
  3229. /* readonly */
  3230. int weakRefs;
  3231. };
  3232. class CrowdManager
  3233. {
  3234. // Methods:
  3235. void ApplyAttributes();
  3236. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3237. void DrawDebugGeometry(DebugRenderer, bool);
  3238. void DrawDebugGeometry(bool);
  3239. Vector3 FindNearestPoint(const Vector3&, int);
  3240. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3241. float GetAreaCost(uint, uint);
  3242. Variant GetAttribute(const String&) const;
  3243. ValueAnimation GetAttributeAnimation(const String&) const;
  3244. float GetAttributeAnimationSpeed(const String&) const;
  3245. float GetAttributeAnimationTime(const String&) const;
  3246. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3247. Variant GetAttributeDefault(const String&) const;
  3248. float GetDistanceToWall(const Vector3&, float, int);
  3249. uint16 GetExcludeFlags(uint);
  3250. uint16 GetIncludeFlags(uint);
  3251. bool GetInterceptNetworkUpdate(const String&) const;
  3252. Vector3 GetRandomPoint(int);
  3253. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3254. bool Load(File, bool = false);
  3255. bool Load(VectorBuffer&, bool = false);
  3256. bool LoadJSON(const JSONValue&, bool = false);
  3257. bool LoadXML(const XMLElement&, bool = false);
  3258. void MarkNetworkUpdate() const;
  3259. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3260. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3261. void Remove();
  3262. void RemoveAttributeAnimation(const String&);
  3263. void RemoveInstanceDefault();
  3264. void RemoveObjectAnimation();
  3265. void ResetCrowdTarget(Node = null);
  3266. void ResetToDefault();
  3267. bool Save(File) const;
  3268. bool Save(VectorBuffer&) const;
  3269. bool SaveJSON(JSONValue&) const;
  3270. bool SaveXML(XMLElement&) const;
  3271. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3272. void SetAnimationTime(float);
  3273. void SetAreaCost(uint, uint, float);
  3274. bool SetAttribute(const String&, const Variant&);
  3275. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3276. void SetAttributeAnimationSpeed(const String&, float);
  3277. void SetAttributeAnimationTime(const String&, float);
  3278. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3279. void SetCrowdTarget(const Vector3&, Node = null);
  3280. void SetCrowdVelocity(const Vector3&, Node = null);
  3281. void SetExcludeFlags(uint, uint16);
  3282. void SetIncludeFlags(uint, uint16);
  3283. void SetInterceptNetworkUpdate(const String&, bool);
  3284. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3285. // Properties:
  3286. bool animationEnabled;
  3287. /* readonly */
  3288. Array<Variant> attributeDefaults;
  3289. /* readonly */
  3290. Array<AttributeInfo> attributeInfos;
  3291. Array<Variant> attributes;
  3292. /* readonly */
  3293. String category;
  3294. bool enabled;
  3295. /* readonly */
  3296. bool enabledEffective;
  3297. /* readonly */
  3298. uint id;
  3299. float maxAgentRadius;
  3300. int maxAgents;
  3301. NavigationMesh navMesh;
  3302. /* readonly */
  3303. Node node;
  3304. /* readonly */
  3305. Array<uint> numAreas;
  3306. /* readonly */
  3307. uint numAttributes;
  3308. /* readonly */
  3309. uint numObstacleAvoidanceTypes;
  3310. /* readonly */
  3311. uint numQueryFilterTypes;
  3312. ObjectAnimation objectAnimation;
  3313. /* readonly */
  3314. int refs;
  3315. bool temporary;
  3316. /* readonly */
  3317. StringHash type;
  3318. /* readonly */
  3319. String typeName;
  3320. /* readonly */
  3321. int weakRefs;
  3322. };
  3323. class CrowdObstacleAvoidanceParams
  3324. {
  3325. // Properties:
  3326. uint8 adaptiveDepth;
  3327. uint8 adaptiveDivs;
  3328. uint8 adaptiveRings;
  3329. uint8 gridSize;
  3330. float horizTime;
  3331. float velBias;
  3332. float weightCurVel;
  3333. float weightDesVel;
  3334. float weightSide;
  3335. float weightToi;
  3336. };
  3337. class Cursor
  3338. {
  3339. // Methods:
  3340. void AddChild(UIElement);
  3341. void ApplyAttributes();
  3342. void BringToFront();
  3343. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3344. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3345. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3346. void DisableLayoutUpdate();
  3347. IntVector2 ElementToScreen(const IntVector2&);
  3348. void EnableLayoutUpdate();
  3349. uint FindChild(UIElement) const;
  3350. Variant GetAttribute(const String&) const;
  3351. ValueAnimation GetAttributeAnimation(const String&) const;
  3352. float GetAttributeAnimationSpeed(const String&) const;
  3353. float GetAttributeAnimationTime(const String&) const;
  3354. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3355. Variant GetAttributeDefault(const String&) const;
  3356. UIElement GetChild(const String&, bool = false) const;
  3357. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3358. Array<UIElement> GetChildren(bool = false) const;
  3359. UIElement GetElementEventSender() const;
  3360. bool GetInterceptNetworkUpdate(const String&) const;
  3361. uint GetNumChildren(bool) const;
  3362. void InsertChild(uint, UIElement);
  3363. bool IsInside(IntVector2, bool);
  3364. bool IsInsideCombined(IntVector2, bool);
  3365. bool Load(File, bool = false);
  3366. bool Load(VectorBuffer&, bool = false);
  3367. bool LoadChildXML(XMLFile, XMLFile = null);
  3368. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3369. bool LoadJSON(const JSONValue&, bool = false);
  3370. bool LoadXML(File);
  3371. bool LoadXML(VectorBuffer&);
  3372. bool LoadXML(XMLFile, XMLFile);
  3373. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3374. bool LoadXML(const XMLElement&, bool = false);
  3375. void MarkNetworkUpdate() const;
  3376. void Remove();
  3377. void RemoveAllChildren();
  3378. void RemoveAttributeAnimation(const String&);
  3379. void RemoveChild(UIElement, uint = 0);
  3380. void RemoveChild(uint);
  3381. void RemoveInstanceDefault();
  3382. void RemoveObjectAnimation();
  3383. void ResetDeepEnabled();
  3384. void ResetToDefault();
  3385. bool Save(File) const;
  3386. bool Save(VectorBuffer&) const;
  3387. bool SaveJSON(JSONValue&) const;
  3388. bool SaveXML(File, const String& = "\t");
  3389. bool SaveXML(VectorBuffer&, const String& = "\t");
  3390. bool SaveXML(XMLElement&) const;
  3391. IntVector2 ScreenToElement(const IntVector2&);
  3392. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3393. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3394. void SetAnimationTime(float);
  3395. bool SetAttribute(const String&, const Variant&);
  3396. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3397. void SetAttributeAnimationSpeed(const String&, float);
  3398. void SetAttributeAnimationTime(const String&, float);
  3399. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3400. void SetDeepEnabled(bool);
  3401. void SetEnabledRecursive(bool);
  3402. void SetFixedHeight(int);
  3403. void SetFixedSize(int, int);
  3404. void SetFixedWidth(int);
  3405. void SetFullImageRect();
  3406. void SetHoverOffset(int, int);
  3407. void SetInterceptNetworkUpdate(const String&, bool);
  3408. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3409. void SetMaxSize(int, int);
  3410. void SetMinSize(int, int);
  3411. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3412. void SetPosition(int, int);
  3413. void SetShape(CursorShape);
  3414. void SetShape(const String&);
  3415. void SetSize(int, int);
  3416. bool SetStyle(const String&, XMLFile = null);
  3417. bool SetStyle(const XMLElement&);
  3418. bool SetStyleAuto(XMLFile = null);
  3419. void UpdateLayout();
  3420. const Variant& GetVar(const StringHash&);
  3421. // Properties:
  3422. bool animationEnabled;
  3423. /* readonly */
  3424. Array<Variant> attributeDefaults;
  3425. /* readonly */
  3426. Array<AttributeInfo> attributeInfos;
  3427. Array<Variant> attributes;
  3428. BlendMode blendMode;
  3429. IntRect border;
  3430. bool bringToBack;
  3431. bool bringToFront;
  3432. /* readonly */
  3433. String category;
  3434. /* readonly */
  3435. IntVector2 childOffset;
  3436. /* readonly */
  3437. Array<UIElement> children;
  3438. IntRect clipBorder;
  3439. bool clipChildren;
  3440. /* writeonly */
  3441. Color color;
  3442. /* readonly */
  3443. bool colorGradient;
  3444. Array<Color> colors;
  3445. /* readonly */
  3446. IntRect combinedScreenRect;
  3447. XMLFile defaultStyle;
  3448. /* readonly */
  3449. float derivedOpacity;
  3450. /* readonly */
  3451. uint dragButtonCombo;
  3452. /* readonly */
  3453. int dragButtonCount;
  3454. uint dragDropMode;
  3455. bool editable;
  3456. bool elementEventSender;
  3457. bool enabled;
  3458. /* readonly */
  3459. bool enabledSelf;
  3460. /* readonly */
  3461. bool fixedHeight;
  3462. /* readonly */
  3463. bool fixedSize;
  3464. /* readonly */
  3465. bool fixedWidth;
  3466. bool focus;
  3467. FocusMode focusMode;
  3468. int height;
  3469. HorizontalAlignment horizontalAlignment;
  3470. IntVector2 hoverOffset;
  3471. /* readonly */
  3472. bool hovering;
  3473. IntRect imageBorder;
  3474. IntRect imageRect;
  3475. int indent;
  3476. int indentSpacing;
  3477. /* readonly */
  3478. int indentWidth;
  3479. bool internal;
  3480. IntRect layoutBorder;
  3481. Vector2 layoutFlexScale;
  3482. LayoutMode layoutMode;
  3483. int layoutSpacing;
  3484. int maxHeight;
  3485. IntVector2 maxSize;
  3486. int maxWidth;
  3487. int minHeight;
  3488. IntVector2 minSize;
  3489. int minWidth;
  3490. String name;
  3491. /* readonly */
  3492. uint numAllChildren;
  3493. /* readonly */
  3494. uint numAttributes;
  3495. /* readonly */
  3496. uint numChildren;
  3497. ObjectAnimation objectAnimation;
  3498. float opacity;
  3499. UIElement parent;
  3500. IntVector2 position;
  3501. int priority;
  3502. /* readonly */
  3503. int refs;
  3504. /* readonly */
  3505. UIElement root;
  3506. /* readonly */
  3507. IntVector2 screenPosition;
  3508. bool selected;
  3509. String shape;
  3510. IntVector2 size;
  3511. bool sortChildren;
  3512. String style;
  3513. bool temporary;
  3514. Texture texture;
  3515. bool tiled;
  3516. TraversalMode traversalMode;
  3517. /* readonly */
  3518. StringHash type;
  3519. /* readonly */
  3520. String typeName;
  3521. bool useDerivedOpacity;
  3522. bool useSystemShapes;
  3523. /* readonly */
  3524. VariantMap vars;
  3525. VerticalAlignment verticalAlignment;
  3526. bool visible;
  3527. /* readonly */
  3528. bool visibleEffective;
  3529. /* readonly */
  3530. int weakRefs;
  3531. int width;
  3532. };
  3533. class CustomGeometry
  3534. {
  3535. // Methods:
  3536. void ApplyAttributes();
  3537. void BeginGeometry(uint, PrimitiveType);
  3538. void Clear();
  3539. void Commit();
  3540. void DefineColor(const Color&);
  3541. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3542. void DefineNormal(const Vector3&);
  3543. void DefineTangent(const Vector4&);
  3544. void DefineTexCoord(const Vector2&);
  3545. void DefineVertex(const Vector3&);
  3546. void DrawDebugGeometry(DebugRenderer, bool);
  3547. Variant GetAttribute(const String&) const;
  3548. ValueAnimation GetAttributeAnimation(const String&) const;
  3549. float GetAttributeAnimationSpeed(const String&) const;
  3550. float GetAttributeAnimationTime(const String&) const;
  3551. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3552. Variant GetAttributeDefault(const String&) const;
  3553. bool GetInterceptNetworkUpdate(const String&) const;
  3554. CustomGeometryVertex GetVertex(uint, uint);
  3555. bool IsInView(Camera) const;
  3556. bool Load(File, bool = false);
  3557. bool Load(VectorBuffer&, bool = false);
  3558. bool LoadJSON(const JSONValue&, bool = false);
  3559. bool LoadXML(const XMLElement&, bool = false);
  3560. void MarkNetworkUpdate() const;
  3561. void Remove();
  3562. void RemoveAttributeAnimation(const String&);
  3563. void RemoveInstanceDefault();
  3564. void RemoveObjectAnimation();
  3565. void ResetToDefault();
  3566. bool Save(File) const;
  3567. bool Save(VectorBuffer&) const;
  3568. bool SaveJSON(JSONValue&) const;
  3569. bool SaveXML(XMLElement&) const;
  3570. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3571. void SetAnimationTime(float);
  3572. bool SetAttribute(const String&, const Variant&);
  3573. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3574. void SetAttributeAnimationSpeed(const String&, float);
  3575. void SetAttributeAnimationTime(const String&, float);
  3576. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3577. void SetInterceptNetworkUpdate(const String&, bool);
  3578. // Properties:
  3579. bool animationEnabled;
  3580. /* readonly */
  3581. Array<Variant> attributeDefaults;
  3582. /* readonly */
  3583. Array<AttributeInfo> attributeInfos;
  3584. Array<Variant> attributes;
  3585. /* readonly */
  3586. BoundingBox boundingBox;
  3587. bool castShadows;
  3588. /* readonly */
  3589. String category;
  3590. float drawDistance;
  3591. bool dynamic;
  3592. bool enabled;
  3593. /* readonly */
  3594. bool enabledEffective;
  3595. /* readonly */
  3596. uint id;
  3597. /* readonly */
  3598. bool inView;
  3599. uint lightMask;
  3600. float lodBias;
  3601. /* writeonly */
  3602. Material material;
  3603. Array<Material> materials;
  3604. uint maxLights;
  3605. /* readonly */
  3606. Node node;
  3607. /* readonly */
  3608. uint numAttributes;
  3609. uint numGeometries;
  3610. /* readonly */
  3611. Array<uint> numVertices;
  3612. ObjectAnimation objectAnimation;
  3613. bool occludee;
  3614. bool occluder;
  3615. /* readonly */
  3616. int refs;
  3617. float shadowDistance;
  3618. uint shadowMask;
  3619. bool temporary;
  3620. /* readonly */
  3621. StringHash type;
  3622. /* readonly */
  3623. String typeName;
  3624. uint viewMask;
  3625. /* readonly */
  3626. int weakRefs;
  3627. /* readonly */
  3628. BoundingBox worldBoundingBox;
  3629. /* readonly */
  3630. Zone zone;
  3631. uint zoneMask;
  3632. };
  3633. class CustomGeometryVertex
  3634. {
  3635. // Properties:
  3636. uint color;
  3637. Vector3 normal;
  3638. Vector3 position;
  3639. Vector4 tangent;
  3640. Vector2 texCoord;
  3641. };
  3642. class Database
  3643. {
  3644. // Methods:
  3645. DbConnection Connect(const String&);
  3646. void Disconnect(DbConnection);
  3647. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3648. // Properties:
  3649. /* readonly */
  3650. String category;
  3651. uint poolSize;
  3652. /* readonly */
  3653. bool pooling;
  3654. /* readonly */
  3655. int refs;
  3656. /* readonly */
  3657. StringHash type;
  3658. /* readonly */
  3659. String typeName;
  3660. /* readonly */
  3661. int weakRefs;
  3662. };
  3663. class DbConnection
  3664. {
  3665. // Methods:
  3666. DbResult Execute(const String&, bool = false);
  3667. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3668. // Properties:
  3669. /* readonly */
  3670. String category;
  3671. /* readonly */
  3672. bool connected;
  3673. /* readonly */
  3674. String connectionString;
  3675. /* readonly */
  3676. int refs;
  3677. /* readonly */
  3678. StringHash type;
  3679. /* readonly */
  3680. String typeName;
  3681. /* readonly */
  3682. int weakRefs;
  3683. };
  3684. class DbResult
  3685. {
  3686. // Properties:
  3687. /* readonly */
  3688. Array<String> columns;
  3689. /* readonly */
  3690. int64 numAffectedRows;
  3691. /* readonly */
  3692. uint numColumns;
  3693. /* readonly */
  3694. uint numRows;
  3695. /* readonly */
  3696. Array<Array<Variant>> row;
  3697. };
  3698. class DebugHud
  3699. {
  3700. // Methods:
  3701. void ClearAppStats();
  3702. void ResetAppStats(const String&);
  3703. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3704. void SetAppStats(const String&, const String&);
  3705. void SetAppStats(const String&, const Variant&);
  3706. void Toggle(uint);
  3707. void ToggleAll();
  3708. void Update();
  3709. // Properties:
  3710. /* readonly */
  3711. String category;
  3712. XMLFile defaultStyle;
  3713. /* readonly */
  3714. Text memoryText;
  3715. uint mode;
  3716. /* readonly */
  3717. Text modeText;
  3718. float profilerInterval;
  3719. uint profilerMaxDepth;
  3720. /* readonly */
  3721. Text profilerText;
  3722. /* readonly */
  3723. int refs;
  3724. /* readonly */
  3725. Text statsText;
  3726. /* readonly */
  3727. StringHash type;
  3728. /* readonly */
  3729. String typeName;
  3730. bool useRendererStats;
  3731. /* readonly */
  3732. int weakRefs;
  3733. };
  3734. class DebugRenderer
  3735. {
  3736. // Methods:
  3737. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3738. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3739. void AddCross(const Vector3&, float, const Color&, bool = true);
  3740. void AddFrustum(const Frustum&, const Color&, bool = true);
  3741. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3742. void AddNode(Node, float = 1.0, bool = true);
  3743. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3744. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3745. void AddSkeleton(Skeleton, const Color&, bool = true);
  3746. void AddSphere(const Sphere&, const Color&, bool = true);
  3747. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3748. void ApplyAttributes();
  3749. void DrawDebugGeometry(DebugRenderer, bool);
  3750. Variant GetAttribute(const String&) const;
  3751. ValueAnimation GetAttributeAnimation(const String&) const;
  3752. float GetAttributeAnimationSpeed(const String&) const;
  3753. float GetAttributeAnimationTime(const String&) const;
  3754. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3755. Variant GetAttributeDefault(const String&) const;
  3756. bool GetInterceptNetworkUpdate(const String&) const;
  3757. bool Load(File, bool = false);
  3758. bool Load(VectorBuffer&, bool = false);
  3759. bool LoadJSON(const JSONValue&, bool = false);
  3760. bool LoadXML(const XMLElement&, bool = false);
  3761. void MarkNetworkUpdate() const;
  3762. void Remove();
  3763. void RemoveAttributeAnimation(const String&);
  3764. void RemoveInstanceDefault();
  3765. void RemoveObjectAnimation();
  3766. void ResetToDefault();
  3767. bool Save(File) const;
  3768. bool Save(VectorBuffer&) const;
  3769. bool SaveJSON(JSONValue&) const;
  3770. bool SaveXML(XMLElement&) const;
  3771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3772. void SetAnimationTime(float);
  3773. bool SetAttribute(const String&, const Variant&);
  3774. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3775. void SetAttributeAnimationSpeed(const String&, float);
  3776. void SetAttributeAnimationTime(const String&, float);
  3777. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3778. void SetInterceptNetworkUpdate(const String&, bool);
  3779. // Properties:
  3780. bool animationEnabled;
  3781. /* readonly */
  3782. Array<Variant> attributeDefaults;
  3783. /* readonly */
  3784. Array<AttributeInfo> attributeInfos;
  3785. Array<Variant> attributes;
  3786. /* readonly */
  3787. String category;
  3788. bool enabled;
  3789. /* readonly */
  3790. bool enabledEffective;
  3791. /* readonly */
  3792. uint id;
  3793. /* readonly */
  3794. Node node;
  3795. /* readonly */
  3796. uint numAttributes;
  3797. ObjectAnimation objectAnimation;
  3798. /* readonly */
  3799. int refs;
  3800. bool temporary;
  3801. /* readonly */
  3802. StringHash type;
  3803. /* readonly */
  3804. String typeName;
  3805. /* readonly */
  3806. int weakRefs;
  3807. };
  3808. class DecalSet
  3809. {
  3810. // Methods:
  3811. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3812. void ApplyAttributes();
  3813. void DrawDebugGeometry(DebugRenderer, bool);
  3814. Variant GetAttribute(const String&) const;
  3815. ValueAnimation GetAttributeAnimation(const String&) const;
  3816. float GetAttributeAnimationSpeed(const String&) const;
  3817. float GetAttributeAnimationTime(const String&) const;
  3818. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3819. Variant GetAttributeDefault(const String&) const;
  3820. bool GetInterceptNetworkUpdate(const String&) const;
  3821. bool IsInView(Camera) const;
  3822. bool Load(File, bool = false);
  3823. bool Load(VectorBuffer&, bool = false);
  3824. bool LoadJSON(const JSONValue&, bool = false);
  3825. bool LoadXML(const XMLElement&, bool = false);
  3826. void MarkNetworkUpdate() const;
  3827. void Remove();
  3828. void RemoveAllDecals();
  3829. void RemoveAttributeAnimation(const String&);
  3830. void RemoveDecals(uint);
  3831. void RemoveInstanceDefault();
  3832. void RemoveObjectAnimation();
  3833. void ResetToDefault();
  3834. bool Save(File) const;
  3835. bool Save(VectorBuffer&) const;
  3836. bool SaveJSON(JSONValue&) const;
  3837. bool SaveXML(XMLElement&) const;
  3838. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3839. void SetAnimationTime(float);
  3840. bool SetAttribute(const String&, const Variant&);
  3841. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3842. void SetAttributeAnimationSpeed(const String&, float);
  3843. void SetAttributeAnimationTime(const String&, float);
  3844. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3845. void SetInterceptNetworkUpdate(const String&, bool);
  3846. // Properties:
  3847. bool animationEnabled;
  3848. /* readonly */
  3849. Array<Variant> attributeDefaults;
  3850. /* readonly */
  3851. Array<AttributeInfo> attributeInfos;
  3852. Array<Variant> attributes;
  3853. /* readonly */
  3854. BoundingBox boundingBox;
  3855. bool castShadows;
  3856. /* readonly */
  3857. String category;
  3858. float drawDistance;
  3859. bool enabled;
  3860. /* readonly */
  3861. bool enabledEffective;
  3862. /* readonly */
  3863. uint id;
  3864. /* readonly */
  3865. bool inView;
  3866. uint lightMask;
  3867. float lodBias;
  3868. Material material;
  3869. uint maxIndices;
  3870. uint maxLights;
  3871. uint maxVertices;
  3872. /* readonly */
  3873. Node node;
  3874. /* readonly */
  3875. uint numAttributes;
  3876. /* readonly */
  3877. uint numDecals;
  3878. /* readonly */
  3879. uint numIndices;
  3880. /* readonly */
  3881. uint numVertices;
  3882. ObjectAnimation objectAnimation;
  3883. bool occludee;
  3884. bool occluder;
  3885. /* readonly */
  3886. int refs;
  3887. float shadowDistance;
  3888. uint shadowMask;
  3889. bool temporary;
  3890. /* readonly */
  3891. StringHash type;
  3892. /* readonly */
  3893. String typeName;
  3894. uint viewMask;
  3895. /* readonly */
  3896. int weakRefs;
  3897. /* readonly */
  3898. BoundingBox worldBoundingBox;
  3899. /* readonly */
  3900. Zone zone;
  3901. uint zoneMask;
  3902. };
  3903. class Deserializer
  3904. {
  3905. // Methods:
  3906. Array<uint8> Read(uint);
  3907. bool ReadBool();
  3908. BoundingBox ReadBoundingBox();
  3909. int8 ReadByte();
  3910. Color ReadColor();
  3911. double ReadDouble();
  3912. String ReadFileID();
  3913. float ReadFloat();
  3914. int ReadInt();
  3915. IntRect ReadIntRect();
  3916. IntVector2 ReadIntVector2();
  3917. String ReadLine();
  3918. Matrix3 ReadMatrix3();
  3919. Matrix3x4 ReadMatrix3x4();
  3920. Matrix4 ReadMatrix4();
  3921. uint ReadNetID();
  3922. Quaternion ReadPackedQuaternion();
  3923. Vector3 ReadPackedVector3(float);
  3924. Quaternion ReadQuaternion();
  3925. int16 ReadShort();
  3926. String ReadString();
  3927. StringHash ReadStringHash();
  3928. uint8 ReadUByte();
  3929. uint ReadUInt();
  3930. uint16 ReadUShort();
  3931. uint ReadVLE();
  3932. Variant ReadVariant();
  3933. VariantMap ReadVariantMap();
  3934. Vector2 ReadVector2();
  3935. Vector3 ReadVector3();
  3936. Vector4 ReadVector4();
  3937. VectorBuffer ReadVectorBuffer(uint);
  3938. uint Seek(uint);
  3939. // Properties:
  3940. /* readonly */
  3941. uint checksum;
  3942. /* readonly */
  3943. bool eof;
  3944. /* readonly */
  3945. String name;
  3946. /* readonly */
  3947. uint position;
  3948. /* readonly */
  3949. uint size;
  3950. };
  3951. class Dictionary
  3952. {
  3953. // Methods:
  3954. void Clear();
  3955. void Erase(const String&);
  3956. bool Exists(const String&) const;
  3957. bool Get(const String&, void*) const;
  3958. bool Get(const String&, double&) const;
  3959. bool Get(const String&, int64&) const;
  3960. void Set(const String&, const void*);
  3961. void Set(const String&, const double&);
  3962. void Set(const String&, const int64&);
  3963. // Properties:
  3964. /* readonly */
  3965. bool empty;
  3966. /* readonly */
  3967. Array<String> keys;
  3968. /* readonly */
  3969. uint length;
  3970. };
  3971. class DictionaryValue
  3972. {
  3973. };
  3974. class Drawable
  3975. {
  3976. // Methods:
  3977. void ApplyAttributes();
  3978. void DrawDebugGeometry(DebugRenderer, bool);
  3979. Variant GetAttribute(const String&) const;
  3980. ValueAnimation GetAttributeAnimation(const String&) const;
  3981. float GetAttributeAnimationSpeed(const String&) const;
  3982. float GetAttributeAnimationTime(const String&) const;
  3983. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3984. Variant GetAttributeDefault(const String&) const;
  3985. bool GetInterceptNetworkUpdate(const String&) const;
  3986. bool IsInView(Camera) const;
  3987. bool Load(File, bool = false);
  3988. bool Load(VectorBuffer&, bool = false);
  3989. bool LoadJSON(const JSONValue&, bool = false);
  3990. bool LoadXML(const XMLElement&, bool = false);
  3991. void MarkNetworkUpdate() const;
  3992. void Remove();
  3993. void RemoveAttributeAnimation(const String&);
  3994. void RemoveInstanceDefault();
  3995. void RemoveObjectAnimation();
  3996. void ResetToDefault();
  3997. bool Save(File) const;
  3998. bool Save(VectorBuffer&) const;
  3999. bool SaveJSON(JSONValue&) const;
  4000. bool SaveXML(XMLElement&) const;
  4001. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4002. void SetAnimationTime(float);
  4003. bool SetAttribute(const String&, const Variant&);
  4004. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4005. void SetAttributeAnimationSpeed(const String&, float);
  4006. void SetAttributeAnimationTime(const String&, float);
  4007. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4008. void SetInterceptNetworkUpdate(const String&, bool);
  4009. // Properties:
  4010. bool animationEnabled;
  4011. /* readonly */
  4012. Array<Variant> attributeDefaults;
  4013. /* readonly */
  4014. Array<AttributeInfo> attributeInfos;
  4015. Array<Variant> attributes;
  4016. /* readonly */
  4017. BoundingBox boundingBox;
  4018. bool castShadows;
  4019. /* readonly */
  4020. String category;
  4021. float drawDistance;
  4022. bool enabled;
  4023. /* readonly */
  4024. bool enabledEffective;
  4025. /* readonly */
  4026. uint id;
  4027. /* readonly */
  4028. bool inView;
  4029. uint lightMask;
  4030. float lodBias;
  4031. uint maxLights;
  4032. /* readonly */
  4033. Node node;
  4034. /* readonly */
  4035. uint numAttributes;
  4036. ObjectAnimation objectAnimation;
  4037. bool occludee;
  4038. bool occluder;
  4039. /* readonly */
  4040. int refs;
  4041. float shadowDistance;
  4042. uint shadowMask;
  4043. bool temporary;
  4044. /* readonly */
  4045. StringHash type;
  4046. /* readonly */
  4047. String typeName;
  4048. uint viewMask;
  4049. /* readonly */
  4050. int weakRefs;
  4051. /* readonly */
  4052. BoundingBox worldBoundingBox;
  4053. uint zoneMask;
  4054. };
  4055. class Drawable2D
  4056. {
  4057. // Methods:
  4058. void ApplyAttributes();
  4059. void DrawDebugGeometry(DebugRenderer, bool);
  4060. Variant GetAttribute(const String&) const;
  4061. ValueAnimation GetAttributeAnimation(const String&) const;
  4062. float GetAttributeAnimationSpeed(const String&) const;
  4063. float GetAttributeAnimationTime(const String&) const;
  4064. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4065. Variant GetAttributeDefault(const String&) const;
  4066. bool GetInterceptNetworkUpdate(const String&) const;
  4067. bool IsInView(Camera) const;
  4068. bool Load(File, bool = false);
  4069. bool Load(VectorBuffer&, bool = false);
  4070. bool LoadJSON(const JSONValue&, bool = false);
  4071. bool LoadXML(const XMLElement&, bool = false);
  4072. void MarkNetworkUpdate() const;
  4073. void Remove();
  4074. void RemoveAttributeAnimation(const String&);
  4075. void RemoveInstanceDefault();
  4076. void RemoveObjectAnimation();
  4077. void ResetToDefault();
  4078. bool Save(File) const;
  4079. bool Save(VectorBuffer&) const;
  4080. bool SaveJSON(JSONValue&) const;
  4081. bool SaveXML(XMLElement&) const;
  4082. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4083. void SetAnimationTime(float);
  4084. bool SetAttribute(const String&, const Variant&);
  4085. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4086. void SetAttributeAnimationSpeed(const String&, float);
  4087. void SetAttributeAnimationTime(const String&, float);
  4088. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4089. void SetInterceptNetworkUpdate(const String&, bool);
  4090. // Properties:
  4091. bool animationEnabled;
  4092. /* readonly */
  4093. Array<Variant> attributeDefaults;
  4094. /* readonly */
  4095. Array<AttributeInfo> attributeInfos;
  4096. Array<Variant> attributes;
  4097. /* readonly */
  4098. BoundingBox boundingBox;
  4099. bool castShadows;
  4100. /* readonly */
  4101. String category;
  4102. float drawDistance;
  4103. bool enabled;
  4104. /* readonly */
  4105. bool enabledEffective;
  4106. /* readonly */
  4107. uint id;
  4108. /* readonly */
  4109. bool inView;
  4110. int layer;
  4111. uint lightMask;
  4112. float lodBias;
  4113. uint maxLights;
  4114. /* readonly */
  4115. Node node;
  4116. /* readonly */
  4117. uint numAttributes;
  4118. ObjectAnimation objectAnimation;
  4119. bool occludee;
  4120. bool occluder;
  4121. int orderInLayer;
  4122. /* readonly */
  4123. int refs;
  4124. float shadowDistance;
  4125. uint shadowMask;
  4126. bool temporary;
  4127. /* readonly */
  4128. StringHash type;
  4129. /* readonly */
  4130. String typeName;
  4131. uint viewMask;
  4132. /* readonly */
  4133. int weakRefs;
  4134. /* readonly */
  4135. BoundingBox worldBoundingBox;
  4136. uint zoneMask;
  4137. };
  4138. class DropDownList
  4139. {
  4140. // Methods:
  4141. void AddChild(UIElement);
  4142. void AddItem(UIElement);
  4143. void ApplyAttributes();
  4144. void BringToFront();
  4145. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4146. void DisableLayoutUpdate();
  4147. IntVector2 ElementToScreen(const IntVector2&);
  4148. void EnableLayoutUpdate();
  4149. uint FindChild(UIElement) const;
  4150. Variant GetAttribute(const String&) const;
  4151. ValueAnimation GetAttributeAnimation(const String&) const;
  4152. float GetAttributeAnimationSpeed(const String&) const;
  4153. float GetAttributeAnimationTime(const String&) const;
  4154. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4155. Variant GetAttributeDefault(const String&) const;
  4156. UIElement GetChild(const String&, bool = false) const;
  4157. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4158. Array<UIElement> GetChildren(bool = false) const;
  4159. UIElement GetElementEventSender() const;
  4160. bool GetInterceptNetworkUpdate(const String&) const;
  4161. Array<UIElement> GetItems() const;
  4162. uint GetNumChildren(bool) const;
  4163. void InsertChild(uint, UIElement);
  4164. void InsertItem(uint, UIElement);
  4165. bool IsInside(IntVector2, bool);
  4166. bool IsInsideCombined(IntVector2, bool);
  4167. bool Load(File, bool = false);
  4168. bool Load(VectorBuffer&, bool = false);
  4169. bool LoadChildXML(XMLFile, XMLFile = null);
  4170. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4171. bool LoadJSON(const JSONValue&, bool = false);
  4172. bool LoadXML(File);
  4173. bool LoadXML(VectorBuffer&);
  4174. bool LoadXML(XMLFile, XMLFile);
  4175. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4176. bool LoadXML(const XMLElement&, bool = false);
  4177. void MarkNetworkUpdate() const;
  4178. void Remove();
  4179. void RemoveAllChildren();
  4180. void RemoveAllItems();
  4181. void RemoveAttributeAnimation(const String&);
  4182. void RemoveChild(UIElement, uint = 0);
  4183. void RemoveChild(uint);
  4184. void RemoveInstanceDefault();
  4185. void RemoveItem(UIElement);
  4186. void RemoveItem(uint);
  4187. void RemoveObjectAnimation();
  4188. void ResetDeepEnabled();
  4189. void ResetToDefault();
  4190. bool Save(File) const;
  4191. bool Save(VectorBuffer&) const;
  4192. bool SaveJSON(JSONValue&) const;
  4193. bool SaveXML(File, const String& = "\t");
  4194. bool SaveXML(VectorBuffer&, const String& = "\t");
  4195. bool SaveXML(XMLElement&) const;
  4196. IntVector2 ScreenToElement(const IntVector2&);
  4197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4198. void SetAccelerator(int, int);
  4199. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4200. void SetAnimationTime(float);
  4201. bool SetAttribute(const String&, const Variant&);
  4202. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4203. void SetAttributeAnimationSpeed(const String&, float);
  4204. void SetAttributeAnimationTime(const String&, float);
  4205. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4206. void SetDeepEnabled(bool);
  4207. void SetEnabledRecursive(bool);
  4208. void SetFixedHeight(int);
  4209. void SetFixedSize(int, int);
  4210. void SetFixedWidth(int);
  4211. void SetFullImageRect();
  4212. void SetHoverOffset(int, int);
  4213. void SetInterceptNetworkUpdate(const String&, bool);
  4214. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4215. void SetMaxSize(int, int);
  4216. void SetMinSize(int, int);
  4217. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4218. void SetPosition(int, int);
  4219. void SetPressedChildOffset(int, int);
  4220. void SetPressedOffset(int, int);
  4221. void SetRepeat(float, float);
  4222. void SetSize(int, int);
  4223. bool SetStyle(const String&, XMLFile = null);
  4224. bool SetStyle(const XMLElement&);
  4225. bool SetStyleAuto(XMLFile = null);
  4226. void UpdateLayout();
  4227. const Variant& GetVar(const StringHash&);
  4228. UIElement getPopup() const;
  4229. // Properties:
  4230. /* readonly */
  4231. int acceleratorKey;
  4232. /* readonly */
  4233. int acceleratorQualifiers;
  4234. bool animationEnabled;
  4235. /* readonly */
  4236. Array<Variant> attributeDefaults;
  4237. /* readonly */
  4238. Array<AttributeInfo> attributeInfos;
  4239. Array<Variant> attributes;
  4240. BlendMode blendMode;
  4241. IntRect border;
  4242. bool bringToBack;
  4243. bool bringToFront;
  4244. /* readonly */
  4245. String category;
  4246. /* readonly */
  4247. IntVector2 childOffset;
  4248. /* readonly */
  4249. Array<UIElement> children;
  4250. IntRect clipBorder;
  4251. bool clipChildren;
  4252. /* writeonly */
  4253. Color color;
  4254. /* readonly */
  4255. bool colorGradient;
  4256. Array<Color> colors;
  4257. /* readonly */
  4258. IntRect combinedScreenRect;
  4259. XMLFile defaultStyle;
  4260. /* readonly */
  4261. float derivedOpacity;
  4262. /* readonly */
  4263. uint dragButtonCombo;
  4264. /* readonly */
  4265. int dragButtonCount;
  4266. uint dragDropMode;
  4267. bool editable;
  4268. bool elementEventSender;
  4269. bool enabled;
  4270. /* readonly */
  4271. bool enabledSelf;
  4272. /* readonly */
  4273. bool fixedHeight;
  4274. /* readonly */
  4275. bool fixedSize;
  4276. /* readonly */
  4277. bool fixedWidth;
  4278. bool focus;
  4279. FocusMode focusMode;
  4280. int height;
  4281. HorizontalAlignment horizontalAlignment;
  4282. IntVector2 hoverOffset;
  4283. /* readonly */
  4284. bool hovering;
  4285. IntRect imageBorder;
  4286. IntRect imageRect;
  4287. int indent;
  4288. int indentSpacing;
  4289. /* readonly */
  4290. int indentWidth;
  4291. bool internal;
  4292. /* readonly */
  4293. Array<UIElement> items;
  4294. IntRect layoutBorder;
  4295. Vector2 layoutFlexScale;
  4296. LayoutMode layoutMode;
  4297. int layoutSpacing;
  4298. /* readonly */
  4299. ListView listView;
  4300. int maxHeight;
  4301. IntVector2 maxSize;
  4302. int maxWidth;
  4303. int minHeight;
  4304. IntVector2 minSize;
  4305. int minWidth;
  4306. String name;
  4307. /* readonly */
  4308. uint numAllChildren;
  4309. /* readonly */
  4310. uint numAttributes;
  4311. /* readonly */
  4312. uint numChildren;
  4313. /* readonly */
  4314. uint numItems;
  4315. ObjectAnimation objectAnimation;
  4316. float opacity;
  4317. UIElement parent;
  4318. /* readonly */
  4319. UIElement placeholder;
  4320. String placeholderText;
  4321. IntVector2 position;
  4322. /* readonly */
  4323. bool pressed;
  4324. IntVector2 pressedChildOffset;
  4325. IntVector2 pressedOffset;
  4326. int priority;
  4327. /* readonly */
  4328. int refs;
  4329. float repeatDelay;
  4330. float repeatRate;
  4331. bool resizePopup;
  4332. /* readonly */
  4333. UIElement root;
  4334. /* readonly */
  4335. IntVector2 screenPosition;
  4336. bool selected;
  4337. /* readonly */
  4338. UIElement selectedItem;
  4339. uint selection;
  4340. bool showPopup;
  4341. IntVector2 size;
  4342. bool sortChildren;
  4343. String style;
  4344. bool temporary;
  4345. Texture texture;
  4346. bool tiled;
  4347. TraversalMode traversalMode;
  4348. /* readonly */
  4349. StringHash type;
  4350. /* readonly */
  4351. String typeName;
  4352. bool useDerivedOpacity;
  4353. /* readonly */
  4354. VariantMap vars;
  4355. VerticalAlignment verticalAlignment;
  4356. bool visible;
  4357. /* readonly */
  4358. bool visibleEffective;
  4359. /* readonly */
  4360. int weakRefs;
  4361. int width;
  4362. };
  4363. class DynamicNavigationMesh
  4364. {
  4365. // Methods:
  4366. void ApplyAttributes();
  4367. bool Build();
  4368. bool Build(const BoundingBox&);
  4369. void DrawDebugGeometry(DebugRenderer, bool);
  4370. void DrawDebugGeometry(bool);
  4371. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4372. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4373. float GetAreaCost(uint) const;
  4374. Variant GetAttribute(const String&) const;
  4375. ValueAnimation GetAttributeAnimation(const String&) const;
  4376. float GetAttributeAnimationSpeed(const String&) const;
  4377. float GetAttributeAnimationTime(const String&) const;
  4378. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4379. Variant GetAttributeDefault(const String&) const;
  4380. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4381. bool GetInterceptNetworkUpdate(const String&) const;
  4382. Vector3 GetRandomPoint();
  4383. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4384. bool Load(File, bool = false);
  4385. bool Load(VectorBuffer&, bool = false);
  4386. bool LoadJSON(const JSONValue&, bool = false);
  4387. bool LoadXML(const XMLElement&, bool = false);
  4388. void MarkNetworkUpdate() const;
  4389. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4390. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4391. void Remove();
  4392. void RemoveAttributeAnimation(const String&);
  4393. void RemoveInstanceDefault();
  4394. void RemoveObjectAnimation();
  4395. void ResetToDefault();
  4396. bool Save(File) const;
  4397. bool Save(VectorBuffer&) const;
  4398. bool SaveJSON(JSONValue&) const;
  4399. bool SaveXML(XMLElement&) const;
  4400. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4401. void SetAnimationTime(float);
  4402. void SetAreaCost(uint, float);
  4403. bool SetAttribute(const String&, const Variant&);
  4404. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4405. void SetAttributeAnimationSpeed(const String&, float);
  4406. void SetAttributeAnimationTime(const String&, float);
  4407. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4408. void SetInterceptNetworkUpdate(const String&, bool);
  4409. // Properties:
  4410. float agentHeight;
  4411. float agentMaxClimb;
  4412. float agentMaxSlope;
  4413. float agentRadius;
  4414. bool animationEnabled;
  4415. /* readonly */
  4416. Array<Variant> attributeDefaults;
  4417. /* readonly */
  4418. Array<AttributeInfo> attributeInfos;
  4419. Array<Variant> attributes;
  4420. /* readonly */
  4421. BoundingBox boundingBox;
  4422. /* readonly */
  4423. String category;
  4424. float cellHeight;
  4425. float cellSize;
  4426. float detailSampleDistance;
  4427. float detailSampleMaxError;
  4428. bool drawNavAreas;
  4429. bool drawObstacles;
  4430. bool drawOffMeshConnections;
  4431. float edgeMaxError;
  4432. float edgeMaxLength;
  4433. bool enabled;
  4434. /* readonly */
  4435. bool enabledEffective;
  4436. /* readonly */
  4437. uint id;
  4438. /* readonly */
  4439. bool initialized;
  4440. bool maxLayers;
  4441. uint maxObstacles;
  4442. /* readonly */
  4443. Node node;
  4444. /* readonly */
  4445. uint numAttributes;
  4446. /* readonly */
  4447. IntVector2 numTiles;
  4448. ObjectAnimation objectAnimation;
  4449. Vector3 padding;
  4450. NavmeshPartitionType partitionType;
  4451. /* readonly */
  4452. int refs;
  4453. float regionMergeSize;
  4454. float regionMinSize;
  4455. bool temporary;
  4456. int tileSize;
  4457. /* readonly */
  4458. StringHash type;
  4459. /* readonly */
  4460. String typeName;
  4461. /* readonly */
  4462. int weakRefs;
  4463. /* readonly */
  4464. BoundingBox worldBoundingBox;
  4465. };
  4466. class Engine
  4467. {
  4468. // Methods:
  4469. Console CreateConsole();
  4470. DebugHud CreateDebugHud();
  4471. void DumpMemory();
  4472. void DumpProfiler();
  4473. void DumpResources(bool = false);
  4474. void Exit();
  4475. void RunFrame();
  4476. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4477. // Properties:
  4478. bool autoExit;
  4479. /* readonly */
  4480. String category;
  4481. /* readonly */
  4482. bool exiting;
  4483. /* readonly */
  4484. bool headless;
  4485. /* readonly */
  4486. bool initialized;
  4487. int maxFps;
  4488. int maxInactiveFps;
  4489. int minFps;
  4490. bool pauseMinimized;
  4491. /* readonly */
  4492. int refs;
  4493. int timeStepSmoothing;
  4494. /* readonly */
  4495. StringHash type;
  4496. /* readonly */
  4497. String typeName;
  4498. /* readonly */
  4499. int weakRefs;
  4500. };
  4501. class File
  4502. {
  4503. // Methods:
  4504. void Close();
  4505. bool Open(const String&, FileMode = FILE_READ);
  4506. Array<uint8> Read(uint);
  4507. bool ReadBool();
  4508. BoundingBox ReadBoundingBox();
  4509. int8 ReadByte();
  4510. Color ReadColor();
  4511. double ReadDouble();
  4512. String ReadFileID();
  4513. float ReadFloat();
  4514. int ReadInt();
  4515. IntRect ReadIntRect();
  4516. IntVector2 ReadIntVector2();
  4517. String ReadLine();
  4518. Matrix3 ReadMatrix3();
  4519. Matrix3x4 ReadMatrix3x4();
  4520. Matrix4 ReadMatrix4();
  4521. uint ReadNetID();
  4522. Quaternion ReadPackedQuaternion();
  4523. Vector3 ReadPackedVector3(float);
  4524. Quaternion ReadQuaternion();
  4525. int16 ReadShort();
  4526. String ReadString();
  4527. StringHash ReadStringHash();
  4528. uint8 ReadUByte();
  4529. uint ReadUInt();
  4530. uint16 ReadUShort();
  4531. uint ReadVLE();
  4532. Variant ReadVariant();
  4533. VariantMap ReadVariantMap();
  4534. Vector2 ReadVector2();
  4535. Vector3 ReadVector3();
  4536. Vector4 ReadVector4();
  4537. VectorBuffer ReadVectorBuffer(uint);
  4538. uint Seek(uint);
  4539. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4540. uint Write(Array<uint8>);
  4541. bool WriteBool(bool);
  4542. bool WriteBoundingBox(const BoundingBox&);
  4543. bool WriteByte(int8);
  4544. bool WriteColor(const Color&);
  4545. bool WriteDouble(double);
  4546. bool WriteFileID(const String&);
  4547. bool WriteFloat(float);
  4548. bool WriteInt(int);
  4549. bool WriteIntRect(const IntRect&);
  4550. bool WriteIntVector2(const IntVector2&);
  4551. bool WriteLine(const String&);
  4552. bool WriteMatrix3(const Matrix3&);
  4553. bool WriteMatrix3x4(const Matrix3x4&);
  4554. bool WriteMatrix4(const Matrix4&);
  4555. bool WriteNetID(uint);
  4556. bool WritePackedQuaternion(const Quaternion&);
  4557. bool WritePackedVector3(const Vector3&, float);
  4558. bool WriteQuaternion(const Quaternion&);
  4559. bool WriteShort(int16);
  4560. bool WriteString(const String&);
  4561. bool WriteStringHash(const StringHash&);
  4562. bool WriteUByte(uint8);
  4563. bool WriteUInt(uint);
  4564. bool WriteUShort(uint16);
  4565. bool WriteVLE(uint);
  4566. bool WriteVariant(const Variant&);
  4567. bool WriteVariantMap(const VariantMap&);
  4568. bool WriteVector2(const Vector2&);
  4569. bool WriteVector3(const Vector3&);
  4570. bool WriteVector4(const Vector4&);
  4571. bool WriteVectorBuffer(const VectorBuffer&);
  4572. // Properties:
  4573. /* readonly */
  4574. String category;
  4575. /* readonly */
  4576. uint checksum;
  4577. /* readonly */
  4578. bool eof;
  4579. /* readonly */
  4580. FileMode mode;
  4581. /* readonly */
  4582. String name;
  4583. /* readonly */
  4584. bool open;
  4585. /* readonly */
  4586. bool packaged;
  4587. /* readonly */
  4588. uint position;
  4589. /* readonly */
  4590. int refs;
  4591. /* readonly */
  4592. uint size;
  4593. /* readonly */
  4594. StringHash type;
  4595. /* readonly */
  4596. String typeName;
  4597. /* readonly */
  4598. int weakRefs;
  4599. };
  4600. class FileSelector
  4601. {
  4602. // Methods:
  4603. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4604. void SetButtonTexts(const String&, const String&);
  4605. void SetFilters(Array<String>, uint);
  4606. void UpdateElements();
  4607. // Properties:
  4608. /* readonly */
  4609. Button cancelButton;
  4610. /* readonly */
  4611. String category;
  4612. XMLFile defaultStyle;
  4613. bool directoryMode;
  4614. /* readonly */
  4615. ListView fileList;
  4616. String fileName;
  4617. /* readonly */
  4618. LineEdit fileNameEdit;
  4619. /* readonly */
  4620. String filter;
  4621. /* readonly */
  4622. uint filterIndex;
  4623. /* readonly */
  4624. DropDownList filterList;
  4625. /* readonly */
  4626. Button okButton;
  4627. String path;
  4628. /* readonly */
  4629. LineEdit pathEdit;
  4630. /* readonly */
  4631. int refs;
  4632. String title;
  4633. /* readonly */
  4634. Text titleText;
  4635. /* readonly */
  4636. StringHash type;
  4637. /* readonly */
  4638. String typeName;
  4639. /* readonly */
  4640. int weakRefs;
  4641. /* readonly */
  4642. Window window;
  4643. };
  4644. class FileSystem
  4645. {
  4646. // Methods:
  4647. bool Copy(const String&, const String&);
  4648. bool CreateDir(const String&);
  4649. bool Delete(const String&);
  4650. bool DirExists(const String&) const;
  4651. bool FileExists(const String&) const;
  4652. String GetAppPreferencesDir(const String&, const String&) const;
  4653. uint GetLastModifiedTime(const String&) const;
  4654. bool Rename(const String&, const String&);
  4655. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4656. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4657. bool SetLastModifiedTime(const String&, uint);
  4658. int SystemCommand(const String&, bool = false);
  4659. uint SystemCommandAsync(const String&);
  4660. bool SystemOpen(const String&, const String&);
  4661. int SystemRun(const String&, Array<String>);
  4662. uint SystemRunAsync(const String&, Array<String>);
  4663. // Properties:
  4664. /* readonly */
  4665. String category;
  4666. String currentDir;
  4667. bool executeConsoleCommands;
  4668. /* readonly */
  4669. String programDir;
  4670. /* readonly */
  4671. int refs;
  4672. /* readonly */
  4673. StringHash type;
  4674. /* readonly */
  4675. String typeName;
  4676. /* readonly */
  4677. String userDocumentsDir;
  4678. /* readonly */
  4679. int weakRefs;
  4680. };
  4681. class FocusParameters
  4682. {
  4683. // Properties:
  4684. bool autoSize;
  4685. bool focus;
  4686. float minView;
  4687. bool nonUniform;
  4688. float quantize;
  4689. };
  4690. class Font
  4691. {
  4692. // Methods:
  4693. IntVector2 GetTotalGlyphOffset(int) const;
  4694. bool Load(File);
  4695. bool Load(VectorBuffer&);
  4696. bool Save(File) const;
  4697. bool Save(VectorBuffer&) const;
  4698. bool SaveXML(File, int, bool = false, const String& = "\t");
  4699. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4700. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4701. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4702. // Properties:
  4703. IntVector2 absoluteGlyphOffset;
  4704. /* readonly */
  4705. String category;
  4706. /* readonly */
  4707. uint memoryUse;
  4708. String name;
  4709. /* readonly */
  4710. int refs;
  4711. Vector2 scaledGlyphOffset;
  4712. /* readonly */
  4713. StringHash type;
  4714. /* readonly */
  4715. String typeName;
  4716. /* readonly */
  4717. uint useTimer;
  4718. /* readonly */
  4719. int weakRefs;
  4720. };
  4721. class Frustum
  4722. {
  4723. // Methods:
  4724. void Define(const BoundingBox&, const Matrix3x4&);
  4725. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4726. void Define(float, float, float, float, float, const Matrix3x4&);
  4727. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4728. float Distance(const Vector3&) const;
  4729. Intersection IsInside(const BoundingBox&);
  4730. Intersection IsInside(const Sphere&);
  4731. Intersection IsInside(const Vector3&);
  4732. Intersection IsInsideFast(const BoundingBox&) const;
  4733. Intersection IsInsideFast(const Sphere&) const;
  4734. void Transform(const Matrix3&);
  4735. void Transform(const Matrix3x4&);
  4736. Frustum Transformed(const Matrix3&) const;
  4737. Frustum Transformed(const Matrix3x4&) const;
  4738. // Properties:
  4739. /* readonly */
  4740. Array<Vector3> vertices;
  4741. };
  4742. class Geometry
  4743. {
  4744. // Methods:
  4745. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4746. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4747. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4748. void SetIndexBuffer(IndexBuffer);
  4749. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4750. // Properties:
  4751. /* readonly */
  4752. String category;
  4753. /* readonly */
  4754. bool empty;
  4755. IndexBuffer indexBuffer;
  4756. /* readonly */
  4757. uint indexCount;
  4758. /* readonly */
  4759. uint indexStart;
  4760. float lodDistance;
  4761. uint numVertexBuffers;
  4762. /* readonly */
  4763. PrimitiveType primitiveType;
  4764. /* readonly */
  4765. int refs;
  4766. /* readonly */
  4767. StringHash type;
  4768. /* readonly */
  4769. String typeName;
  4770. /* readonly */
  4771. Array<VertexBuffer> vertexBuffers;
  4772. /* readonly */
  4773. uint vertexCount;
  4774. /* readonly */
  4775. Array<uint> vertexElementMasks;
  4776. /* readonly */
  4777. uint vertexStart;
  4778. /* readonly */
  4779. int weakRefs;
  4780. };
  4781. class Graphics
  4782. {
  4783. // Methods:
  4784. void BeginDumpShaders(const String&);
  4785. void Close();
  4786. void EndDumpShaders();
  4787. void Maximize();
  4788. void Minimize();
  4789. void PrecacheShaders(File);
  4790. void PrecacheShaders(VectorBuffer&);
  4791. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4792. bool SetMode(int, int);
  4793. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4794. void SetWindowPosition(int, int);
  4795. bool TakeScreenShot(Image);
  4796. bool ToggleFullscreen();
  4797. // Properties:
  4798. /* readonly */
  4799. String apiName;
  4800. /* readonly */
  4801. bool borderless;
  4802. /* readonly */
  4803. String category;
  4804. /* readonly */
  4805. bool deferredSupport;
  4806. /* readonly */
  4807. IntVector2 desktopResolution;
  4808. /* readonly */
  4809. bool deviceLost;
  4810. bool flushGPU;
  4811. /* readonly */
  4812. bool fullscreen;
  4813. /* readonly */
  4814. bool hardwareShadowSupport;
  4815. /* readonly */
  4816. int height;
  4817. /* readonly */
  4818. bool initialized;
  4819. /* readonly */
  4820. bool instancingSupport;
  4821. /* readonly */
  4822. bool lightPrepassSupport;
  4823. /* readonly */
  4824. int multiSample;
  4825. /* readonly */
  4826. Array<int> multiSampleLevels;
  4827. /* readonly */
  4828. uint numBatches;
  4829. /* readonly */
  4830. uint numPrimitives;
  4831. String orientations;
  4832. /* readonly */
  4833. bool readableDepthSupport;
  4834. /* readonly */
  4835. int refs;
  4836. /* readonly */
  4837. bool resizable;
  4838. /* readonly */
  4839. Array<IntVector2> resolutions;
  4840. bool sRGB;
  4841. /* readonly */
  4842. bool sRGBSupport;
  4843. /* readonly */
  4844. bool sRGBWriteSupport;
  4845. /* readonly */
  4846. bool tripleBuffer;
  4847. /* readonly */
  4848. StringHash type;
  4849. /* readonly */
  4850. String typeName;
  4851. /* readonly */
  4852. bool vsync;
  4853. /* readonly */
  4854. int weakRefs;
  4855. /* readonly */
  4856. int width;
  4857. /* writeonly */
  4858. Image windowIcon;
  4859. IntVector2 windowPosition;
  4860. String windowTitle;
  4861. };
  4862. class HttpRequest
  4863. {
  4864. // Methods:
  4865. Array<uint8> Read(uint);
  4866. bool ReadBool();
  4867. BoundingBox ReadBoundingBox();
  4868. int8 ReadByte();
  4869. Color ReadColor();
  4870. double ReadDouble();
  4871. String ReadFileID();
  4872. float ReadFloat();
  4873. int ReadInt();
  4874. IntRect ReadIntRect();
  4875. IntVector2 ReadIntVector2();
  4876. String ReadLine();
  4877. Matrix3 ReadMatrix3();
  4878. Matrix3x4 ReadMatrix3x4();
  4879. Matrix4 ReadMatrix4();
  4880. uint ReadNetID();
  4881. Quaternion ReadPackedQuaternion();
  4882. Vector3 ReadPackedVector3(float);
  4883. Quaternion ReadQuaternion();
  4884. int16 ReadShort();
  4885. String ReadString();
  4886. StringHash ReadStringHash();
  4887. uint8 ReadUByte();
  4888. uint ReadUInt();
  4889. uint16 ReadUShort();
  4890. uint ReadVLE();
  4891. Variant ReadVariant();
  4892. VariantMap ReadVariantMap();
  4893. Vector2 ReadVector2();
  4894. Vector3 ReadVector3();
  4895. Vector4 ReadVector4();
  4896. VectorBuffer ReadVectorBuffer(uint);
  4897. uint Seek(uint);
  4898. // Properties:
  4899. /* readonly */
  4900. uint availableSize;
  4901. /* readonly */
  4902. uint checksum;
  4903. /* readonly */
  4904. bool eof;
  4905. /* readonly */
  4906. String error;
  4907. /* readonly */
  4908. String name;
  4909. /* readonly */
  4910. bool open;
  4911. /* readonly */
  4912. uint position;
  4913. /* readonly */
  4914. int refs;
  4915. /* readonly */
  4916. uint size;
  4917. /* readonly */
  4918. HttpRequestState state;
  4919. /* readonly */
  4920. String url;
  4921. /* readonly */
  4922. String verb;
  4923. /* readonly */
  4924. int weakRefs;
  4925. };
  4926. class Image
  4927. {
  4928. // Methods:
  4929. void Clear(const Color&);
  4930. void ClearInt(uint);
  4931. bool FlipHorizontal();
  4932. bool FlipVertical();
  4933. Color GetPixel(int, int) const;
  4934. Color GetPixel(int, int, int) const;
  4935. Color GetPixelBilinear(float, float) const;
  4936. uint GetPixelInt(int, int) const;
  4937. uint GetPixelInt(int, int, int) const;
  4938. Color GetPixelTrilinear(float, float, float) const;
  4939. Image GetSubimage(const IntRect&) const;
  4940. bool Load(File);
  4941. bool Load(VectorBuffer&);
  4942. bool LoadColorLUT(File);
  4943. bool LoadColorLUT(VectorBuffer&);
  4944. bool Resize(int, int);
  4945. bool Save(File) const;
  4946. bool Save(VectorBuffer&) const;
  4947. bool SaveBMP(const String&) const;
  4948. bool SaveJPG(const String&, int) const;
  4949. bool SavePNG(const String&) const;
  4950. bool SaveTGA(const String&) const;
  4951. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4952. void SetPixel(int, int, const Color&);
  4953. void SetPixel(int, int, int, const Color&);
  4954. void SetPixelInt(int, int, int, uint);
  4955. void SetPixelInt(int, int, uint);
  4956. bool SetSize(int, int, int, uint);
  4957. bool SetSize(int, int, uint);
  4958. // Properties:
  4959. /* readonly */
  4960. bool array;
  4961. /* readonly */
  4962. String category;
  4963. /* readonly */
  4964. uint components;
  4965. /* readonly */
  4966. bool compressed;
  4967. /* readonly */
  4968. CompressedFormat compressedFormat;
  4969. /* readonly */
  4970. bool cubemap;
  4971. /* readonly */
  4972. int depth;
  4973. /* readonly */
  4974. int height;
  4975. /* readonly */
  4976. uint memoryUse;
  4977. String name;
  4978. /* readonly */
  4979. uint numCompressedLevels;
  4980. /* readonly */
  4981. int refs;
  4982. /* readonly */
  4983. bool sRGB;
  4984. /* readonly */
  4985. StringHash type;
  4986. /* readonly */
  4987. String typeName;
  4988. /* readonly */
  4989. uint useTimer;
  4990. /* readonly */
  4991. int weakRefs;
  4992. /* readonly */
  4993. int width;
  4994. };
  4995. class IndexBuffer
  4996. {
  4997. // Methods:
  4998. VectorBuffer GetData();
  4999. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5000. bool SetData(VectorBuffer&);
  5001. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5002. void SetSize(uint, bool, bool = false);
  5003. // Properties:
  5004. /* readonly */
  5005. String category;
  5006. /* readonly */
  5007. bool dynamic;
  5008. /* readonly */
  5009. uint indexCount;
  5010. /* readonly */
  5011. uint indexSize;
  5012. /* readonly */
  5013. int refs;
  5014. bool shadowed;
  5015. /* readonly */
  5016. StringHash type;
  5017. /* readonly */
  5018. String typeName;
  5019. /* readonly */
  5020. int weakRefs;
  5021. };
  5022. class Input
  5023. {
  5024. // Methods:
  5025. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5026. int GetKeyFromName(const String&) const;
  5027. int GetKeyFromScancode(int) const;
  5028. String GetKeyName(int) const;
  5029. int GetScancodeFromKey(int) const;
  5030. int GetScancodeFromName(const String&) const;
  5031. String GetScancodeName(int) const;
  5032. uint LoadGestures(File);
  5033. uint LoadGestures(VectorBuffer&);
  5034. bool RecordGesture();
  5035. void RemoveAllGestures();
  5036. bool RemoveGesture(uint);
  5037. bool RemoveScreenJoystick(int);
  5038. void ResetMouseVisible();
  5039. bool SaveGesture(File, uint);
  5040. bool SaveGesture(VectorBuffer&, uint);
  5041. bool SaveGestures(File);
  5042. bool SaveGestures(VectorBuffer&);
  5043. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5044. void SetMouseVisible(bool, bool = false);
  5045. // Properties:
  5046. /* readonly */
  5047. String category;
  5048. /* readonly */
  5049. bool focus;
  5050. /* readonly */
  5051. Array<JoystickState> joysticks;
  5052. /* readonly */
  5053. Array<JoystickState> joysticksByIndex;
  5054. /* readonly */
  5055. Array<bool> keyDown;
  5056. /* readonly */
  5057. Array<bool> keyPress;
  5058. /* readonly */
  5059. bool minimized;
  5060. /* readonly */
  5061. Array<bool> mouseButtonDown;
  5062. /* readonly */
  5063. Array<bool> mouseButtonPress;
  5064. bool mouseGrabbed;
  5065. MouseMode mouseMode;
  5066. /* readonly */
  5067. IntVector2 mouseMove;
  5068. /* readonly */
  5069. int mouseMoveWheel;
  5070. /* readonly */
  5071. int mouseMoveX;
  5072. /* readonly */
  5073. int mouseMoveY;
  5074. /* readonly */
  5075. IntVector2 mousePosition;
  5076. bool mouseVisible;
  5077. /* readonly */
  5078. uint numJoysticks;
  5079. /* readonly */
  5080. uint numTouches;
  5081. /* readonly */
  5082. Array<bool> qualifierDown;
  5083. /* readonly */
  5084. Array<bool> qualifierPress;
  5085. /* readonly */
  5086. int qualifiers;
  5087. /* readonly */
  5088. int refs;
  5089. /* readonly */
  5090. Array<bool> scancodeDown;
  5091. /* readonly */
  5092. Array<bool> scancodePress;
  5093. Array<bool> screenJoystickVisible;
  5094. /* readonly */
  5095. bool screenKeyboardSupport;
  5096. bool screenKeyboardVisible;
  5097. bool toggleFullscreen;
  5098. bool touchEmulation;
  5099. /* readonly */
  5100. Array<TouchState> touches;
  5101. /* readonly */
  5102. StringHash type;
  5103. /* readonly */
  5104. String typeName;
  5105. /* readonly */
  5106. int weakRefs;
  5107. };
  5108. class IntRect
  5109. {
  5110. // Methods:
  5111. Intersection IsInside(const IntVector2&) const;
  5112. // Properties:
  5113. int bottom;
  5114. /* readonly */
  5115. Array<int> data;
  5116. /* readonly */
  5117. int height;
  5118. int left;
  5119. int right;
  5120. /* readonly */
  5121. IntVector2 size;
  5122. int top;
  5123. /* readonly */
  5124. int width;
  5125. };
  5126. class IntVector2
  5127. {
  5128. // Methods:
  5129. String ToString() const;
  5130. // Properties:
  5131. /* readonly */
  5132. Array<int> data;
  5133. int x;
  5134. int y;
  5135. };
  5136. class JSONFile
  5137. {
  5138. // Methods:
  5139. JSONValue& GetRoot();
  5140. bool Load(File);
  5141. bool Load(VectorBuffer&);
  5142. bool Save(File) const;
  5143. bool Save(File, const String&) const;
  5144. bool Save(VectorBuffer&) const;
  5145. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5146. // Properties:
  5147. /* readonly */
  5148. String category;
  5149. /* readonly */
  5150. uint memoryUse;
  5151. String name;
  5152. /* readonly */
  5153. int refs;
  5154. /* readonly */
  5155. JSONValue root;
  5156. /* readonly */
  5157. StringHash type;
  5158. /* readonly */
  5159. String typeName;
  5160. /* readonly */
  5161. uint useTimer;
  5162. /* readonly */
  5163. int weakRefs;
  5164. };
  5165. class JSONValue
  5166. {
  5167. // Methods:
  5168. void Clear();
  5169. bool Contains(const String&) const;
  5170. void Erase(const String&);
  5171. void Erase(uint, uint = 1);
  5172. bool GetBool() const;
  5173. double GetDouble() const;
  5174. float GetFloat() const;
  5175. int GetInt() const;
  5176. uint GetUInt() const;
  5177. void Insert(uint, const JSONValue&);
  5178. const JSONValue& Get(const String&) const;
  5179. void Pop();
  5180. void Push(const JSONValue&);
  5181. void Resize(uint);
  5182. void Set(const String&, const JSONValue&);
  5183. const String& GetString() const;
  5184. // Properties:
  5185. /* readonly */
  5186. bool isArray;
  5187. /* readonly */
  5188. bool isBool;
  5189. /* readonly */
  5190. bool isNull;
  5191. /* readonly */
  5192. bool isNumber;
  5193. /* readonly */
  5194. bool isObject;
  5195. /* readonly */
  5196. bool isString;
  5197. /* readonly */
  5198. uint size;
  5199. /* readonly */
  5200. JSONValueType valueType;
  5201. };
  5202. class JoystickState
  5203. {
  5204. // Properties:
  5205. /* readonly */
  5206. Array<float> axisPosition;
  5207. /* readonly */
  5208. Array<bool> buttonDown;
  5209. /* readonly */
  5210. Array<bool> buttonPress;
  5211. /* readonly */
  5212. bool controller;
  5213. /* readonly */
  5214. Array<int> hatPosition;
  5215. int joystickID;
  5216. String name;
  5217. /* readonly */
  5218. uint numAxes;
  5219. /* readonly */
  5220. uint numButtons;
  5221. /* readonly */
  5222. uint numHats;
  5223. };
  5224. class Light
  5225. {
  5226. // Methods:
  5227. void ApplyAttributes();
  5228. void DrawDebugGeometry(DebugRenderer, bool);
  5229. Variant GetAttribute(const String&) const;
  5230. ValueAnimation GetAttributeAnimation(const String&) const;
  5231. float GetAttributeAnimationSpeed(const String&) const;
  5232. float GetAttributeAnimationTime(const String&) const;
  5233. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5234. Variant GetAttributeDefault(const String&) const;
  5235. bool GetInterceptNetworkUpdate(const String&) const;
  5236. bool IsInView(Camera) const;
  5237. bool Load(File, bool = false);
  5238. bool Load(VectorBuffer&, bool = false);
  5239. bool LoadJSON(const JSONValue&, bool = false);
  5240. bool LoadXML(const XMLElement&, bool = false);
  5241. void MarkNetworkUpdate() const;
  5242. void Remove();
  5243. void RemoveAttributeAnimation(const String&);
  5244. void RemoveInstanceDefault();
  5245. void RemoveObjectAnimation();
  5246. void ResetToDefault();
  5247. bool Save(File) const;
  5248. bool Save(VectorBuffer&) const;
  5249. bool SaveJSON(JSONValue&) const;
  5250. bool SaveXML(XMLElement&) const;
  5251. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5252. void SetAnimationTime(float);
  5253. bool SetAttribute(const String&, const Variant&);
  5254. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5255. void SetAttributeAnimationSpeed(const String&, float);
  5256. void SetAttributeAnimationTime(const String&, float);
  5257. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5258. void SetInterceptNetworkUpdate(const String&, bool);
  5259. // Properties:
  5260. bool animationEnabled;
  5261. float aspectRatio;
  5262. /* readonly */
  5263. Array<Variant> attributeDefaults;
  5264. /* readonly */
  5265. Array<AttributeInfo> attributeInfos;
  5266. Array<Variant> attributes;
  5267. /* readonly */
  5268. BoundingBox boundingBox;
  5269. float brightness;
  5270. bool castShadows;
  5271. /* readonly */
  5272. String category;
  5273. Color color;
  5274. float drawDistance;
  5275. /* readonly */
  5276. Color effectiveColor;
  5277. /* readonly */
  5278. float effectiveSpecularIntensity;
  5279. bool enabled;
  5280. /* readonly */
  5281. bool enabledEffective;
  5282. float fadeDistance;
  5283. float fov;
  5284. /* readonly */
  5285. Frustum frustum;
  5286. /* readonly */
  5287. uint id;
  5288. /* readonly */
  5289. bool inView;
  5290. uint lightMask;
  5291. LightType lightType;
  5292. float lodBias;
  5293. uint maxLights;
  5294. /* readonly */
  5295. bool negative;
  5296. /* readonly */
  5297. Node node;
  5298. /* readonly */
  5299. uint numAttributes;
  5300. /* readonly */
  5301. int numShadowSplits;
  5302. ObjectAnimation objectAnimation;
  5303. bool occludee;
  5304. bool occluder;
  5305. bool perVertex;
  5306. Texture rampTexture;
  5307. float range;
  5308. /* readonly */
  5309. int refs;
  5310. BiasParameters shadowBias;
  5311. CascadeParameters shadowCascade;
  5312. float shadowDistance;
  5313. float shadowFadeDistance;
  5314. FocusParameters shadowFocus;
  5315. float shadowIntensity;
  5316. uint shadowMask;
  5317. float shadowNearFarRatio;
  5318. float shadowResolution;
  5319. Texture shapeTexture;
  5320. float specularIntensity;
  5321. bool temporary;
  5322. /* readonly */
  5323. StringHash type;
  5324. /* readonly */
  5325. String typeName;
  5326. uint viewMask;
  5327. /* readonly */
  5328. int weakRefs;
  5329. /* readonly */
  5330. BoundingBox worldBoundingBox;
  5331. uint zoneMask;
  5332. };
  5333. class LineEdit
  5334. {
  5335. // Methods:
  5336. void AddChild(UIElement);
  5337. void ApplyAttributes();
  5338. void BringToFront();
  5339. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5340. void DisableLayoutUpdate();
  5341. IntVector2 ElementToScreen(const IntVector2&);
  5342. void EnableLayoutUpdate();
  5343. uint FindChild(UIElement) const;
  5344. Variant GetAttribute(const String&) const;
  5345. ValueAnimation GetAttributeAnimation(const String&) const;
  5346. float GetAttributeAnimationSpeed(const String&) const;
  5347. float GetAttributeAnimationTime(const String&) const;
  5348. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5349. Variant GetAttributeDefault(const String&) const;
  5350. UIElement GetChild(const String&, bool = false) const;
  5351. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5352. Array<UIElement> GetChildren(bool = false) const;
  5353. UIElement GetElementEventSender() const;
  5354. bool GetInterceptNetworkUpdate(const String&) const;
  5355. uint GetNumChildren(bool) const;
  5356. void InsertChild(uint, UIElement);
  5357. bool IsInside(IntVector2, bool);
  5358. bool IsInsideCombined(IntVector2, bool);
  5359. bool Load(File, bool = false);
  5360. bool Load(VectorBuffer&, bool = false);
  5361. bool LoadChildXML(XMLFile, XMLFile = null);
  5362. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5363. bool LoadJSON(const JSONValue&, bool = false);
  5364. bool LoadXML(File);
  5365. bool LoadXML(VectorBuffer&);
  5366. bool LoadXML(XMLFile, XMLFile);
  5367. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5368. bool LoadXML(const XMLElement&, bool = false);
  5369. void MarkNetworkUpdate() const;
  5370. void Remove();
  5371. void RemoveAllChildren();
  5372. void RemoveAttributeAnimation(const String&);
  5373. void RemoveChild(UIElement, uint = 0);
  5374. void RemoveChild(uint);
  5375. void RemoveInstanceDefault();
  5376. void RemoveObjectAnimation();
  5377. void ResetDeepEnabled();
  5378. void ResetToDefault();
  5379. bool Save(File) const;
  5380. bool Save(VectorBuffer&) const;
  5381. bool SaveJSON(JSONValue&) const;
  5382. bool SaveXML(File, const String& = "\t");
  5383. bool SaveXML(VectorBuffer&, const String& = "\t");
  5384. bool SaveXML(XMLElement&) const;
  5385. IntVector2 ScreenToElement(const IntVector2&);
  5386. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5387. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5388. void SetAnimationTime(float);
  5389. bool SetAttribute(const String&, const Variant&);
  5390. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5391. void SetAttributeAnimationSpeed(const String&, float);
  5392. void SetAttributeAnimationTime(const String&, float);
  5393. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5394. void SetDeepEnabled(bool);
  5395. void SetEnabledRecursive(bool);
  5396. void SetFixedHeight(int);
  5397. void SetFixedSize(int, int);
  5398. void SetFixedWidth(int);
  5399. void SetFullImageRect();
  5400. void SetHoverOffset(int, int);
  5401. void SetInterceptNetworkUpdate(const String&, bool);
  5402. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5403. void SetMaxSize(int, int);
  5404. void SetMinSize(int, int);
  5405. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5406. void SetPosition(int, int);
  5407. void SetSize(int, int);
  5408. bool SetStyle(const String&, XMLFile = null);
  5409. bool SetStyle(const XMLElement&);
  5410. bool SetStyleAuto(XMLFile = null);
  5411. void UpdateLayout();
  5412. const Variant& GetVar(const StringHash&);
  5413. // Properties:
  5414. bool animationEnabled;
  5415. /* readonly */
  5416. Array<Variant> attributeDefaults;
  5417. /* readonly */
  5418. Array<AttributeInfo> attributeInfos;
  5419. Array<Variant> attributes;
  5420. BlendMode blendMode;
  5421. IntRect border;
  5422. bool bringToBack;
  5423. bool bringToFront;
  5424. /* readonly */
  5425. String category;
  5426. /* readonly */
  5427. IntVector2 childOffset;
  5428. /* readonly */
  5429. Array<UIElement> children;
  5430. IntRect clipBorder;
  5431. bool clipChildren;
  5432. /* writeonly */
  5433. Color color;
  5434. /* readonly */
  5435. bool colorGradient;
  5436. Array<Color> colors;
  5437. /* readonly */
  5438. IntRect combinedScreenRect;
  5439. /* readonly */
  5440. BorderImage cursor;
  5441. float cursorBlinkRate;
  5442. bool cursorMovable;
  5443. uint cursorPosition;
  5444. XMLFile defaultStyle;
  5445. /* readonly */
  5446. float derivedOpacity;
  5447. /* readonly */
  5448. uint dragButtonCombo;
  5449. /* readonly */
  5450. int dragButtonCount;
  5451. uint dragDropMode;
  5452. uint echoCharacter;
  5453. bool editable;
  5454. bool elementEventSender;
  5455. bool enabled;
  5456. /* readonly */
  5457. bool enabledSelf;
  5458. /* readonly */
  5459. bool fixedHeight;
  5460. /* readonly */
  5461. bool fixedSize;
  5462. /* readonly */
  5463. bool fixedWidth;
  5464. bool focus;
  5465. FocusMode focusMode;
  5466. int height;
  5467. HorizontalAlignment horizontalAlignment;
  5468. IntVector2 hoverOffset;
  5469. /* readonly */
  5470. bool hovering;
  5471. IntRect imageBorder;
  5472. IntRect imageRect;
  5473. int indent;
  5474. int indentSpacing;
  5475. /* readonly */
  5476. int indentWidth;
  5477. bool internal;
  5478. IntRect layoutBorder;
  5479. Vector2 layoutFlexScale;
  5480. LayoutMode layoutMode;
  5481. int layoutSpacing;
  5482. int maxHeight;
  5483. uint maxLength;
  5484. IntVector2 maxSize;
  5485. int maxWidth;
  5486. int minHeight;
  5487. IntVector2 minSize;
  5488. int minWidth;
  5489. String name;
  5490. /* readonly */
  5491. uint numAllChildren;
  5492. /* readonly */
  5493. uint numAttributes;
  5494. /* readonly */
  5495. uint numChildren;
  5496. ObjectAnimation objectAnimation;
  5497. float opacity;
  5498. UIElement parent;
  5499. IntVector2 position;
  5500. int priority;
  5501. /* readonly */
  5502. int refs;
  5503. /* readonly */
  5504. UIElement root;
  5505. /* readonly */
  5506. IntVector2 screenPosition;
  5507. bool selected;
  5508. IntVector2 size;
  5509. bool sortChildren;
  5510. String style;
  5511. bool temporary;
  5512. String text;
  5513. bool textCopyable;
  5514. /* readonly */
  5515. Text textElement;
  5516. bool textSelectable;
  5517. Texture texture;
  5518. bool tiled;
  5519. TraversalMode traversalMode;
  5520. /* readonly */
  5521. StringHash type;
  5522. /* readonly */
  5523. String typeName;
  5524. bool useDerivedOpacity;
  5525. /* readonly */
  5526. VariantMap vars;
  5527. VerticalAlignment verticalAlignment;
  5528. bool visible;
  5529. /* readonly */
  5530. bool visibleEffective;
  5531. /* readonly */
  5532. int weakRefs;
  5533. int width;
  5534. };
  5535. class ListView
  5536. {
  5537. // Methods:
  5538. void AddChild(UIElement);
  5539. void AddItem(UIElement);
  5540. void AddSelection(uint);
  5541. void ApplyAttributes();
  5542. void BringToFront();
  5543. void ChangeSelection(int, bool);
  5544. void ClearSelection();
  5545. void CopySelectedItemsToClipboard();
  5546. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5547. void DisableLayoutUpdate();
  5548. IntVector2 ElementToScreen(const IntVector2&);
  5549. void EnableLayoutUpdate();
  5550. void Expand(uint, bool, bool = false);
  5551. uint FindChild(UIElement) const;
  5552. uint FindItem(UIElement);
  5553. Variant GetAttribute(const String&) const;
  5554. ValueAnimation GetAttributeAnimation(const String&) const;
  5555. float GetAttributeAnimationSpeed(const String&) const;
  5556. float GetAttributeAnimationTime(const String&) const;
  5557. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5558. Variant GetAttributeDefault(const String&) const;
  5559. UIElement GetChild(const String&, bool = false) const;
  5560. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5561. Array<UIElement> GetChildren(bool = false) const;
  5562. UIElement GetElementEventSender() const;
  5563. bool GetInterceptNetworkUpdate(const String&) const;
  5564. Array<UIElement> GetItems() const;
  5565. uint GetNumChildren(bool) const;
  5566. void InsertChild(uint, UIElement);
  5567. void InsertItem(uint, UIElement, UIElement = null);
  5568. bool IsExpanded(uint) const;
  5569. bool IsInside(IntVector2, bool);
  5570. bool IsInsideCombined(IntVector2, bool);
  5571. bool IsSelected(uint) const;
  5572. bool Load(File, bool = false);
  5573. bool Load(VectorBuffer&, bool = false);
  5574. bool LoadChildXML(XMLFile, XMLFile = null);
  5575. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5576. bool LoadJSON(const JSONValue&, bool = false);
  5577. bool LoadXML(File);
  5578. bool LoadXML(VectorBuffer&);
  5579. bool LoadXML(XMLFile, XMLFile);
  5580. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5581. bool LoadXML(const XMLElement&, bool = false);
  5582. void MarkNetworkUpdate() const;
  5583. void Remove();
  5584. void RemoveAllChildren();
  5585. void RemoveAllItems();
  5586. void RemoveAttributeAnimation(const String&);
  5587. void RemoveChild(UIElement, uint = 0);
  5588. void RemoveChild(uint);
  5589. void RemoveInstanceDefault();
  5590. void RemoveItem(UIElement, uint = 0);
  5591. void RemoveItem(uint);
  5592. void RemoveObjectAnimation();
  5593. void RemoveSelection(uint);
  5594. void ResetDeepEnabled();
  5595. void ResetToDefault();
  5596. bool Save(File) const;
  5597. bool Save(VectorBuffer&) const;
  5598. bool SaveJSON(JSONValue&) const;
  5599. bool SaveXML(File, const String& = "\t");
  5600. bool SaveXML(VectorBuffer&, const String& = "\t");
  5601. bool SaveXML(XMLElement&) const;
  5602. IntVector2 ScreenToElement(const IntVector2&);
  5603. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5604. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5605. void SetAnimationTime(float);
  5606. bool SetAttribute(const String&, const Variant&);
  5607. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5608. void SetAttributeAnimationSpeed(const String&, float);
  5609. void SetAttributeAnimationTime(const String&, float);
  5610. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5611. void SetDeepEnabled(bool);
  5612. void SetEnabledRecursive(bool);
  5613. void SetFixedHeight(int);
  5614. void SetFixedSize(int, int);
  5615. void SetFixedWidth(int);
  5616. void SetInterceptNetworkUpdate(const String&, bool);
  5617. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5618. void SetMaxSize(int, int);
  5619. void SetMinSize(int, int);
  5620. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5621. void SetPosition(int, int);
  5622. void SetScrollBarsVisible(bool, bool);
  5623. void SetSelections(Array<uint>);
  5624. void SetSize(int, int);
  5625. bool SetStyle(const String&, XMLFile = null);
  5626. bool SetStyle(const XMLElement&);
  5627. bool SetStyleAuto(XMLFile = null);
  5628. void SetViewPosition(int, int);
  5629. void ToggleExpand(uint, bool = false);
  5630. void ToggleSelection(uint);
  5631. void UpdateLayout();
  5632. const Variant& GetVar(const StringHash&);
  5633. // Properties:
  5634. bool animationEnabled;
  5635. /* readonly */
  5636. Array<Variant> attributeDefaults;
  5637. /* readonly */
  5638. Array<AttributeInfo> attributeInfos;
  5639. Array<Variant> attributes;
  5640. bool autoDisableChildren;
  5641. float autoDisableThreshold;
  5642. int baseIndent;
  5643. bool bringToBack;
  5644. bool bringToFront;
  5645. /* readonly */
  5646. String category;
  5647. /* readonly */
  5648. IntVector2 childOffset;
  5649. /* readonly */
  5650. Array<UIElement> children;
  5651. bool clearSelectionOnDefocus;
  5652. IntRect clipBorder;
  5653. bool clipChildren;
  5654. /* writeonly */
  5655. Color color;
  5656. /* readonly */
  5657. bool colorGradient;
  5658. Array<Color> colors;
  5659. /* readonly */
  5660. IntRect combinedScreenRect;
  5661. /* readonly */
  5662. UIElement contentElement;
  5663. XMLFile defaultStyle;
  5664. /* readonly */
  5665. float derivedOpacity;
  5666. /* readonly */
  5667. uint dragButtonCombo;
  5668. /* readonly */
  5669. int dragButtonCount;
  5670. uint dragDropMode;
  5671. bool editable;
  5672. bool elementEventSender;
  5673. bool enabled;
  5674. /* readonly */
  5675. bool enabledSelf;
  5676. /* readonly */
  5677. bool fixedHeight;
  5678. /* readonly */
  5679. bool fixedSize;
  5680. /* readonly */
  5681. bool fixedWidth;
  5682. bool focus;
  5683. FocusMode focusMode;
  5684. int height;
  5685. bool hierarchyMode;
  5686. HighlightMode highlightMode;
  5687. HorizontalAlignment horizontalAlignment;
  5688. /* readonly */
  5689. ScrollBar horizontalScrollBar;
  5690. /* readonly */
  5691. bool hovering;
  5692. int indent;
  5693. int indentSpacing;
  5694. /* readonly */
  5695. int indentWidth;
  5696. bool internal;
  5697. /* readonly */
  5698. Array<UIElement> items;
  5699. IntRect layoutBorder;
  5700. Vector2 layoutFlexScale;
  5701. LayoutMode layoutMode;
  5702. int layoutSpacing;
  5703. int maxHeight;
  5704. IntVector2 maxSize;
  5705. int maxWidth;
  5706. int minHeight;
  5707. IntVector2 minSize;
  5708. int minWidth;
  5709. bool multiselect;
  5710. String name;
  5711. /* readonly */
  5712. uint numAllChildren;
  5713. /* readonly */
  5714. uint numAttributes;
  5715. /* readonly */
  5716. uint numChildren;
  5717. /* readonly */
  5718. uint numItems;
  5719. ObjectAnimation objectAnimation;
  5720. float opacity;
  5721. float pageStep;
  5722. UIElement parent;
  5723. IntVector2 position;
  5724. int priority;
  5725. /* readonly */
  5726. int refs;
  5727. /* readonly */
  5728. UIElement root;
  5729. /* readonly */
  5730. IntVector2 screenPosition;
  5731. bool scrollBarsAutoVisible;
  5732. float scrollDeceleration;
  5733. /* readonly */
  5734. BorderImage scrollPanel;
  5735. float scrollSnapEpsilon;
  5736. float scrollStep;
  5737. bool selectOnClickEnd;
  5738. bool selected;
  5739. /* readonly */
  5740. UIElement selectedItem;
  5741. /* readonly */
  5742. Array<UIElement> selectedItems;
  5743. uint selection;
  5744. /* readonly */
  5745. Array<uint> selections;
  5746. IntVector2 size;
  5747. bool sortChildren;
  5748. String style;
  5749. bool temporary;
  5750. TraversalMode traversalMode;
  5751. /* readonly */
  5752. StringHash type;
  5753. /* readonly */
  5754. String typeName;
  5755. bool useDerivedOpacity;
  5756. /* readonly */
  5757. VariantMap vars;
  5758. VerticalAlignment verticalAlignment;
  5759. /* readonly */
  5760. ScrollBar verticalScrollBar;
  5761. IntVector2 viewPosition;
  5762. bool visible;
  5763. /* readonly */
  5764. bool visibleEffective;
  5765. /* readonly */
  5766. int weakRefs;
  5767. int width;
  5768. };
  5769. class Localization
  5770. {
  5771. // Methods:
  5772. String Get(const String&);
  5773. String GetLanguage(int);
  5774. int GetLanguageIndex(const String&);
  5775. void LoadJSON(const JSONValue&);
  5776. void LoadJSONFile(const String&);
  5777. void Reset();
  5778. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5779. void SetLanguage(const String&);
  5780. void SetLanguage(int);
  5781. // Properties:
  5782. /* readonly */
  5783. String category;
  5784. /* readonly */
  5785. String language;
  5786. /* readonly */
  5787. int languageIndex;
  5788. /* readonly */
  5789. int numLanguages;
  5790. /* readonly */
  5791. int refs;
  5792. /* readonly */
  5793. StringHash type;
  5794. /* readonly */
  5795. String typeName;
  5796. /* readonly */
  5797. int weakRefs;
  5798. };
  5799. class Log
  5800. {
  5801. // Methods:
  5802. void Close();
  5803. void Debug(const String&);
  5804. void Error(const String&);
  5805. void Info(const String&);
  5806. void Open(const String&);
  5807. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5808. void Warning(const String&);
  5809. void Write(const String&, bool = false);
  5810. // Properties:
  5811. /* readonly */
  5812. String category;
  5813. /* readonly */
  5814. String lastMessage;
  5815. int level;
  5816. bool quiet;
  5817. /* readonly */
  5818. int refs;
  5819. bool timeStamp;
  5820. /* readonly */
  5821. StringHash type;
  5822. /* readonly */
  5823. String typeName;
  5824. /* readonly */
  5825. int weakRefs;
  5826. };
  5827. class Material
  5828. {
  5829. // Methods:
  5830. Material Clone(const String& = String ( )) const;
  5831. Pass GetPass(uint, const String&);
  5832. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5833. float GetShaderParameterAnimationSpeed(const String&) const;
  5834. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5835. bool Load(File);
  5836. bool Load(VectorBuffer&);
  5837. bool Load(const JSONValue&);
  5838. bool Load(const XMLElement&);
  5839. void RemoveShaderParameter(const String&);
  5840. bool Save(File) const;
  5841. bool Save(JSONValue&) const;
  5842. bool Save(VectorBuffer&) const;
  5843. bool Save(XMLElement&) const;
  5844. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5845. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5846. void SetShaderParameterAnimationSpeed(const String&, float);
  5847. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5848. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5849. void SetUVTransform(const Vector2&, float, const Vector2&);
  5850. void SetUVTransform(const Vector2&, float, float);
  5851. void SortTechniques();
  5852. // Properties:
  5853. /* readonly */
  5854. String category;
  5855. CullMode cullMode;
  5856. BiasParameters depthBias;
  5857. FillMode fillMode;
  5858. /* readonly */
  5859. uint memoryUse;
  5860. String name;
  5861. uint numTechniques;
  5862. /* readonly */
  5863. bool occlusion;
  5864. /* readonly */
  5865. int refs;
  5866. uint8 renderOrder;
  5867. Scene scene;
  5868. /* readonly */
  5869. Array<String> shaderParameterNames;
  5870. Array<Variant> shaderParameters;
  5871. CullMode shadowCullMode;
  5872. /* readonly */
  5873. Array<TechniqueEntry> techniqueEntries;
  5874. /* readonly */
  5875. Array<Technique> techniques;
  5876. Array<Texture> textures;
  5877. /* readonly */
  5878. StringHash type;
  5879. /* readonly */
  5880. String typeName;
  5881. /* readonly */
  5882. uint useTimer;
  5883. /* readonly */
  5884. int weakRefs;
  5885. };
  5886. class Matrix3
  5887. {
  5888. // Methods:
  5889. bool Equals(const Matrix3&) const;
  5890. Matrix3 Inverse() const;
  5891. Vector3 Scale() const;
  5892. Matrix3 Scaled(const Vector3&) const;
  5893. void SetScale(const Vector3&);
  5894. void SetScale(float);
  5895. String ToString() const;
  5896. Matrix3 Transpose() const;
  5897. // Properties:
  5898. float m00;
  5899. float m01;
  5900. float m02;
  5901. float m10;
  5902. float m11;
  5903. float m12;
  5904. float m20;
  5905. float m21;
  5906. float m22;
  5907. };
  5908. class Matrix3x4
  5909. {
  5910. // Methods:
  5911. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5912. bool Equals(const Matrix3x4&) const;
  5913. Matrix3x4 Inverse() const;
  5914. Quaternion Rotation() const;
  5915. Matrix3 RotationMatrix() const;
  5916. Vector3 Scale() const;
  5917. void SetRotation(const Matrix3&);
  5918. void SetScale(const Vector3&);
  5919. void SetScale(float);
  5920. void SetTranslation(const Vector3&);
  5921. Matrix3 ToMatrix3() const;
  5922. Matrix4 ToMatrix4() const;
  5923. String ToString() const;
  5924. Vector3 Translation() const;
  5925. // Properties:
  5926. float m00;
  5927. float m01;
  5928. float m02;
  5929. float m03;
  5930. float m10;
  5931. float m11;
  5932. float m12;
  5933. float m13;
  5934. float m20;
  5935. float m21;
  5936. float m22;
  5937. float m23;
  5938. };
  5939. class Matrix4
  5940. {
  5941. // Methods:
  5942. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5943. bool Equals(const Matrix4&) const;
  5944. Matrix4 Inverse() const;
  5945. Quaternion Rotation() const;
  5946. Matrix3 RotationMatrix() const;
  5947. Vector3 Scale() const;
  5948. void SetRotation(const Matrix3&);
  5949. void SetScale(const Vector3&);
  5950. void SetScale(float);
  5951. void SetTranslation(const Vector3&);
  5952. Matrix3 ToMatrix3() const;
  5953. String ToString() const;
  5954. Vector3 Translation() const;
  5955. Matrix4 Transpose() const;
  5956. // Properties:
  5957. float m00;
  5958. float m01;
  5959. float m02;
  5960. float m03;
  5961. float m10;
  5962. float m11;
  5963. float m12;
  5964. float m13;
  5965. float m20;
  5966. float m21;
  5967. float m22;
  5968. float m23;
  5969. float m30;
  5970. float m31;
  5971. float m32;
  5972. float m33;
  5973. };
  5974. class Menu
  5975. {
  5976. // Methods:
  5977. void AddChild(UIElement);
  5978. void ApplyAttributes();
  5979. void BringToFront();
  5980. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5981. void DisableLayoutUpdate();
  5982. IntVector2 ElementToScreen(const IntVector2&);
  5983. void EnableLayoutUpdate();
  5984. uint FindChild(UIElement) const;
  5985. Variant GetAttribute(const String&) const;
  5986. ValueAnimation GetAttributeAnimation(const String&) const;
  5987. float GetAttributeAnimationSpeed(const String&) const;
  5988. float GetAttributeAnimationTime(const String&) const;
  5989. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5990. Variant GetAttributeDefault(const String&) const;
  5991. UIElement GetChild(const String&, bool = false) const;
  5992. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5993. Array<UIElement> GetChildren(bool = false) const;
  5994. UIElement GetElementEventSender() const;
  5995. bool GetInterceptNetworkUpdate(const String&) const;
  5996. uint GetNumChildren(bool) const;
  5997. void InsertChild(uint, UIElement);
  5998. bool IsInside(IntVector2, bool);
  5999. bool IsInsideCombined(IntVector2, bool);
  6000. bool Load(File, bool = false);
  6001. bool Load(VectorBuffer&, bool = false);
  6002. bool LoadChildXML(XMLFile, XMLFile = null);
  6003. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6004. bool LoadJSON(const JSONValue&, bool = false);
  6005. bool LoadXML(File);
  6006. bool LoadXML(VectorBuffer&);
  6007. bool LoadXML(XMLFile, XMLFile);
  6008. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6009. bool LoadXML(const XMLElement&, bool = false);
  6010. void MarkNetworkUpdate() const;
  6011. void Remove();
  6012. void RemoveAllChildren();
  6013. void RemoveAttributeAnimation(const String&);
  6014. void RemoveChild(UIElement, uint = 0);
  6015. void RemoveChild(uint);
  6016. void RemoveInstanceDefault();
  6017. void RemoveObjectAnimation();
  6018. void ResetDeepEnabled();
  6019. void ResetToDefault();
  6020. bool Save(File) const;
  6021. bool Save(VectorBuffer&) const;
  6022. bool SaveJSON(JSONValue&) const;
  6023. bool SaveXML(File, const String& = "\t");
  6024. bool SaveXML(VectorBuffer&, const String& = "\t");
  6025. bool SaveXML(XMLElement&) const;
  6026. IntVector2 ScreenToElement(const IntVector2&);
  6027. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6028. void SetAccelerator(int, int);
  6029. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6030. void SetAnimationTime(float);
  6031. bool SetAttribute(const String&, const Variant&);
  6032. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6033. void SetAttributeAnimationSpeed(const String&, float);
  6034. void SetAttributeAnimationTime(const String&, float);
  6035. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6036. void SetDeepEnabled(bool);
  6037. void SetEnabledRecursive(bool);
  6038. void SetFixedHeight(int);
  6039. void SetFixedSize(int, int);
  6040. void SetFixedWidth(int);
  6041. void SetFullImageRect();
  6042. void SetHoverOffset(int, int);
  6043. void SetInterceptNetworkUpdate(const String&, bool);
  6044. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6045. void SetMaxSize(int, int);
  6046. void SetMinSize(int, int);
  6047. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6048. void SetPopupOffset(int, int);
  6049. void SetPosition(int, int);
  6050. void SetPressedChildOffset(int, int);
  6051. void SetPressedOffset(int, int);
  6052. void SetRepeat(float, float);
  6053. void SetSize(int, int);
  6054. bool SetStyle(const String&, XMLFile = null);
  6055. bool SetStyle(const XMLElement&);
  6056. bool SetStyleAuto(XMLFile = null);
  6057. void UpdateLayout();
  6058. const Variant& GetVar(const StringHash&);
  6059. // Properties:
  6060. /* readonly */
  6061. int acceleratorKey;
  6062. /* readonly */
  6063. int acceleratorQualifiers;
  6064. bool animationEnabled;
  6065. /* readonly */
  6066. Array<Variant> attributeDefaults;
  6067. /* readonly */
  6068. Array<AttributeInfo> attributeInfos;
  6069. Array<Variant> attributes;
  6070. BlendMode blendMode;
  6071. IntRect border;
  6072. bool bringToBack;
  6073. bool bringToFront;
  6074. /* readonly */
  6075. String category;
  6076. /* readonly */
  6077. IntVector2 childOffset;
  6078. /* readonly */
  6079. Array<UIElement> children;
  6080. IntRect clipBorder;
  6081. bool clipChildren;
  6082. /* writeonly */
  6083. Color color;
  6084. /* readonly */
  6085. bool colorGradient;
  6086. Array<Color> colors;
  6087. /* readonly */
  6088. IntRect combinedScreenRect;
  6089. XMLFile defaultStyle;
  6090. /* readonly */
  6091. float derivedOpacity;
  6092. /* readonly */
  6093. uint dragButtonCombo;
  6094. /* readonly */
  6095. int dragButtonCount;
  6096. uint dragDropMode;
  6097. bool editable;
  6098. bool elementEventSender;
  6099. bool enabled;
  6100. /* readonly */
  6101. bool enabledSelf;
  6102. /* readonly */
  6103. bool fixedHeight;
  6104. /* readonly */
  6105. bool fixedSize;
  6106. /* readonly */
  6107. bool fixedWidth;
  6108. bool focus;
  6109. FocusMode focusMode;
  6110. int height;
  6111. HorizontalAlignment horizontalAlignment;
  6112. IntVector2 hoverOffset;
  6113. /* readonly */
  6114. bool hovering;
  6115. IntRect imageBorder;
  6116. IntRect imageRect;
  6117. int indent;
  6118. int indentSpacing;
  6119. /* readonly */
  6120. int indentWidth;
  6121. bool internal;
  6122. IntRect layoutBorder;
  6123. Vector2 layoutFlexScale;
  6124. LayoutMode layoutMode;
  6125. int layoutSpacing;
  6126. int maxHeight;
  6127. IntVector2 maxSize;
  6128. int maxWidth;
  6129. int minHeight;
  6130. IntVector2 minSize;
  6131. int minWidth;
  6132. String name;
  6133. /* readonly */
  6134. uint numAllChildren;
  6135. /* readonly */
  6136. uint numAttributes;
  6137. /* readonly */
  6138. uint numChildren;
  6139. ObjectAnimation objectAnimation;
  6140. float opacity;
  6141. UIElement parent;
  6142. UIElement popup;
  6143. IntVector2 popupOffset;
  6144. IntVector2 position;
  6145. /* readonly */
  6146. bool pressed;
  6147. IntVector2 pressedChildOffset;
  6148. IntVector2 pressedOffset;
  6149. int priority;
  6150. /* readonly */
  6151. int refs;
  6152. float repeatDelay;
  6153. float repeatRate;
  6154. /* readonly */
  6155. UIElement root;
  6156. /* readonly */
  6157. IntVector2 screenPosition;
  6158. bool selected;
  6159. bool showPopup;
  6160. IntVector2 size;
  6161. bool sortChildren;
  6162. String style;
  6163. bool temporary;
  6164. Texture texture;
  6165. bool tiled;
  6166. TraversalMode traversalMode;
  6167. /* readonly */
  6168. StringHash type;
  6169. /* readonly */
  6170. String typeName;
  6171. bool useDerivedOpacity;
  6172. /* readonly */
  6173. VariantMap vars;
  6174. VerticalAlignment verticalAlignment;
  6175. bool visible;
  6176. /* readonly */
  6177. bool visibleEffective;
  6178. /* readonly */
  6179. int weakRefs;
  6180. int width;
  6181. };
  6182. class MessageBox
  6183. {
  6184. // Methods:
  6185. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6186. // Properties:
  6187. /* readonly */
  6188. String category;
  6189. String message;
  6190. /* readonly */
  6191. int refs;
  6192. String title;
  6193. /* readonly */
  6194. StringHash type;
  6195. /* readonly */
  6196. String typeName;
  6197. /* readonly */
  6198. int weakRefs;
  6199. /* readonly */
  6200. UIElement window;
  6201. };
  6202. class Model
  6203. {
  6204. // Methods:
  6205. Model Clone(const String& = String ( )) const;
  6206. Geometry GetGeometry(uint, uint) const;
  6207. bool Load(File);
  6208. bool Load(VectorBuffer&);
  6209. bool Save(File) const;
  6210. bool Save(VectorBuffer&) const;
  6211. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6212. bool SetGeometry(uint, uint, Geometry);
  6213. // Properties:
  6214. BoundingBox boundingBox;
  6215. /* readonly */
  6216. String category;
  6217. Array<Vector3> geometryCenters;
  6218. /* readonly */
  6219. uint memoryUse;
  6220. String name;
  6221. uint numGeometries;
  6222. Array<uint> numGeometryLodLevels;
  6223. /* readonly */
  6224. uint numMorphs;
  6225. /* readonly */
  6226. int refs;
  6227. /* readonly */
  6228. Skeleton skeleton;
  6229. /* readonly */
  6230. StringHash type;
  6231. /* readonly */
  6232. String typeName;
  6233. /* readonly */
  6234. uint useTimer;
  6235. /* readonly */
  6236. int weakRefs;
  6237. };
  6238. class NavArea
  6239. {
  6240. // Methods:
  6241. void ApplyAttributes();
  6242. void DrawDebugGeometry(DebugRenderer, bool);
  6243. Variant GetAttribute(const String&) const;
  6244. ValueAnimation GetAttributeAnimation(const String&) const;
  6245. float GetAttributeAnimationSpeed(const String&) const;
  6246. float GetAttributeAnimationTime(const String&) const;
  6247. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6248. Variant GetAttributeDefault(const String&) const;
  6249. bool GetInterceptNetworkUpdate(const String&) const;
  6250. bool Load(File, bool = false);
  6251. bool Load(VectorBuffer&, bool = false);
  6252. bool LoadJSON(const JSONValue&, bool = false);
  6253. bool LoadXML(const XMLElement&, bool = false);
  6254. void MarkNetworkUpdate() const;
  6255. void Remove();
  6256. void RemoveAttributeAnimation(const String&);
  6257. void RemoveInstanceDefault();
  6258. void RemoveObjectAnimation();
  6259. void ResetToDefault();
  6260. bool Save(File) const;
  6261. bool Save(VectorBuffer&) const;
  6262. bool SaveJSON(JSONValue&) const;
  6263. bool SaveXML(XMLElement&) const;
  6264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6265. void SetAnimationTime(float);
  6266. bool SetAttribute(const String&, const Variant&);
  6267. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6268. void SetAttributeAnimationSpeed(const String&, float);
  6269. void SetAttributeAnimationTime(const String&, float);
  6270. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6271. void SetInterceptNetworkUpdate(const String&, bool);
  6272. // Properties:
  6273. bool animationEnabled;
  6274. uint areaID;
  6275. /* readonly */
  6276. Array<Variant> attributeDefaults;
  6277. /* readonly */
  6278. Array<AttributeInfo> attributeInfos;
  6279. Array<Variant> attributes;
  6280. BoundingBox boundingBox;
  6281. /* readonly */
  6282. String category;
  6283. bool enabled;
  6284. /* readonly */
  6285. bool enabledEffective;
  6286. /* readonly */
  6287. uint id;
  6288. /* readonly */
  6289. Node node;
  6290. /* readonly */
  6291. uint numAttributes;
  6292. ObjectAnimation objectAnimation;
  6293. /* readonly */
  6294. int refs;
  6295. bool temporary;
  6296. /* readonly */
  6297. StringHash type;
  6298. /* readonly */
  6299. String typeName;
  6300. /* readonly */
  6301. int weakRefs;
  6302. /* readonly */
  6303. BoundingBox worldBoundingBox;
  6304. };
  6305. class Navigable
  6306. {
  6307. // Methods:
  6308. void ApplyAttributes();
  6309. void DrawDebugGeometry(DebugRenderer, bool);
  6310. Variant GetAttribute(const String&) const;
  6311. ValueAnimation GetAttributeAnimation(const String&) const;
  6312. float GetAttributeAnimationSpeed(const String&) const;
  6313. float GetAttributeAnimationTime(const String&) const;
  6314. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6315. Variant GetAttributeDefault(const String&) const;
  6316. bool GetInterceptNetworkUpdate(const String&) const;
  6317. bool Load(File, bool = false);
  6318. bool Load(VectorBuffer&, bool = false);
  6319. bool LoadJSON(const JSONValue&, bool = false);
  6320. bool LoadXML(const XMLElement&, bool = false);
  6321. void MarkNetworkUpdate() const;
  6322. void Remove();
  6323. void RemoveAttributeAnimation(const String&);
  6324. void RemoveInstanceDefault();
  6325. void RemoveObjectAnimation();
  6326. void ResetToDefault();
  6327. bool Save(File) const;
  6328. bool Save(VectorBuffer&) const;
  6329. bool SaveJSON(JSONValue&) const;
  6330. bool SaveXML(XMLElement&) const;
  6331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6332. void SetAnimationTime(float);
  6333. bool SetAttribute(const String&, const Variant&);
  6334. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6335. void SetAttributeAnimationSpeed(const String&, float);
  6336. void SetAttributeAnimationTime(const String&, float);
  6337. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6338. void SetInterceptNetworkUpdate(const String&, bool);
  6339. // Properties:
  6340. bool animationEnabled;
  6341. /* readonly */
  6342. Array<Variant> attributeDefaults;
  6343. /* readonly */
  6344. Array<AttributeInfo> attributeInfos;
  6345. Array<Variant> attributes;
  6346. /* readonly */
  6347. String category;
  6348. bool enabled;
  6349. /* readonly */
  6350. bool enabledEffective;
  6351. /* readonly */
  6352. uint id;
  6353. /* readonly */
  6354. Node node;
  6355. /* readonly */
  6356. uint numAttributes;
  6357. ObjectAnimation objectAnimation;
  6358. bool recursive;
  6359. /* readonly */
  6360. int refs;
  6361. bool temporary;
  6362. /* readonly */
  6363. StringHash type;
  6364. /* readonly */
  6365. String typeName;
  6366. /* readonly */
  6367. int weakRefs;
  6368. };
  6369. class NavigationMesh
  6370. {
  6371. // Methods:
  6372. void ApplyAttributes();
  6373. bool Build();
  6374. bool Build(const BoundingBox&);
  6375. void DrawDebugGeometry(DebugRenderer, bool);
  6376. void DrawDebugGeometry(bool);
  6377. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6378. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6379. float GetAreaCost(uint) const;
  6380. Variant GetAttribute(const String&) const;
  6381. ValueAnimation GetAttributeAnimation(const String&) const;
  6382. float GetAttributeAnimationSpeed(const String&) const;
  6383. float GetAttributeAnimationTime(const String&) const;
  6384. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6385. Variant GetAttributeDefault(const String&) const;
  6386. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6387. bool GetInterceptNetworkUpdate(const String&) const;
  6388. Vector3 GetRandomPoint();
  6389. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6390. bool Load(File, bool = false);
  6391. bool Load(VectorBuffer&, bool = false);
  6392. bool LoadJSON(const JSONValue&, bool = false);
  6393. bool LoadXML(const XMLElement&, bool = false);
  6394. void MarkNetworkUpdate() const;
  6395. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6396. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6397. void Remove();
  6398. void RemoveAttributeAnimation(const String&);
  6399. void RemoveInstanceDefault();
  6400. void RemoveObjectAnimation();
  6401. void ResetToDefault();
  6402. bool Save(File) const;
  6403. bool Save(VectorBuffer&) const;
  6404. bool SaveJSON(JSONValue&) const;
  6405. bool SaveXML(XMLElement&) const;
  6406. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6407. void SetAnimationTime(float);
  6408. void SetAreaCost(uint, float);
  6409. bool SetAttribute(const String&, const Variant&);
  6410. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6411. void SetAttributeAnimationSpeed(const String&, float);
  6412. void SetAttributeAnimationTime(const String&, float);
  6413. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6414. void SetInterceptNetworkUpdate(const String&, bool);
  6415. // Properties:
  6416. float agentHeight;
  6417. float agentMaxClimb;
  6418. float agentMaxSlope;
  6419. float agentRadius;
  6420. bool animationEnabled;
  6421. /* readonly */
  6422. Array<Variant> attributeDefaults;
  6423. /* readonly */
  6424. Array<AttributeInfo> attributeInfos;
  6425. Array<Variant> attributes;
  6426. /* readonly */
  6427. BoundingBox boundingBox;
  6428. /* readonly */
  6429. String category;
  6430. float cellHeight;
  6431. float cellSize;
  6432. float detailSampleDistance;
  6433. float detailSampleMaxError;
  6434. bool drawNavAreas;
  6435. bool drawOffMeshConnections;
  6436. float edgeMaxError;
  6437. float edgeMaxLength;
  6438. bool enabled;
  6439. /* readonly */
  6440. bool enabledEffective;
  6441. /* readonly */
  6442. uint id;
  6443. /* readonly */
  6444. bool initialized;
  6445. /* readonly */
  6446. Node node;
  6447. /* readonly */
  6448. uint numAttributes;
  6449. /* readonly */
  6450. IntVector2 numTiles;
  6451. ObjectAnimation objectAnimation;
  6452. Vector3 padding;
  6453. NavmeshPartitionType partitionType;
  6454. /* readonly */
  6455. int refs;
  6456. float regionMergeSize;
  6457. float regionMinSize;
  6458. bool temporary;
  6459. int tileSize;
  6460. /* readonly */
  6461. StringHash type;
  6462. /* readonly */
  6463. String typeName;
  6464. /* readonly */
  6465. int weakRefs;
  6466. /* readonly */
  6467. BoundingBox worldBoundingBox;
  6468. };
  6469. class Network
  6470. {
  6471. // Methods:
  6472. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6473. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6474. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6475. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6476. bool CheckRemoteEvent(const String&) const;
  6477. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6478. void Disconnect(int = 0);
  6479. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6480. void RegisterRemoteEvent(const String&) const;
  6481. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6482. void SendPackageToClients(Scene, PackageFile);
  6483. bool StartServer(uint16);
  6484. void StopServer();
  6485. void UnregisterAllRemoteEvents();
  6486. void UnregisterRemoteEvent(const String&) const;
  6487. // Properties:
  6488. /* readonly */
  6489. String category;
  6490. /* readonly */
  6491. Array<Connection> clientConnections;
  6492. String packageCacheDir;
  6493. /* readonly */
  6494. int refs;
  6495. /* readonly */
  6496. Connection serverConnection;
  6497. /* readonly */
  6498. bool serverRunning;
  6499. int simulatedLatency;
  6500. float simulatedPacketLoss;
  6501. /* readonly */
  6502. StringHash type;
  6503. /* readonly */
  6504. String typeName;
  6505. int updateFps;
  6506. /* readonly */
  6507. int weakRefs;
  6508. };
  6509. class NetworkPriority
  6510. {
  6511. // Methods:
  6512. void ApplyAttributes();
  6513. void DrawDebugGeometry(DebugRenderer, bool);
  6514. Variant GetAttribute(const String&) const;
  6515. ValueAnimation GetAttributeAnimation(const String&) const;
  6516. float GetAttributeAnimationSpeed(const String&) const;
  6517. float GetAttributeAnimationTime(const String&) const;
  6518. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6519. Variant GetAttributeDefault(const String&) const;
  6520. bool GetInterceptNetworkUpdate(const String&) const;
  6521. bool Load(File, bool = false);
  6522. bool Load(VectorBuffer&, bool = false);
  6523. bool LoadJSON(const JSONValue&, bool = false);
  6524. bool LoadXML(const XMLElement&, bool = false);
  6525. void MarkNetworkUpdate() const;
  6526. void Remove();
  6527. void RemoveAttributeAnimation(const String&);
  6528. void RemoveInstanceDefault();
  6529. void RemoveObjectAnimation();
  6530. void ResetToDefault();
  6531. bool Save(File) const;
  6532. bool Save(VectorBuffer&) const;
  6533. bool SaveJSON(JSONValue&) const;
  6534. bool SaveXML(XMLElement&) const;
  6535. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6536. void SetAnimationTime(float);
  6537. bool SetAttribute(const String&, const Variant&);
  6538. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6539. void SetAttributeAnimationSpeed(const String&, float);
  6540. void SetAttributeAnimationTime(const String&, float);
  6541. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6542. void SetInterceptNetworkUpdate(const String&, bool);
  6543. // Properties:
  6544. bool alwaysUpdateOwner;
  6545. bool animationEnabled;
  6546. /* readonly */
  6547. Array<Variant> attributeDefaults;
  6548. /* readonly */
  6549. Array<AttributeInfo> attributeInfos;
  6550. Array<Variant> attributes;
  6551. float basePriority;
  6552. /* readonly */
  6553. String category;
  6554. float distanceFactor;
  6555. bool enabled;
  6556. /* readonly */
  6557. bool enabledEffective;
  6558. /* readonly */
  6559. uint id;
  6560. float minPriority;
  6561. /* readonly */
  6562. Node node;
  6563. /* readonly */
  6564. uint numAttributes;
  6565. ObjectAnimation objectAnimation;
  6566. /* readonly */
  6567. int refs;
  6568. bool temporary;
  6569. /* readonly */
  6570. StringHash type;
  6571. /* readonly */
  6572. String typeName;
  6573. /* readonly */
  6574. int weakRefs;
  6575. };
  6576. class Node
  6577. {
  6578. // Methods:
  6579. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6580. void ApplyAttributes();
  6581. Node Clone(CreateMode = REPLICATED);
  6582. Component CloneComponent(Component, CreateMode, uint = 0);
  6583. Component CloneComponent(Component, uint = 0);
  6584. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6585. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6586. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6587. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6588. Variant GetAttribute(const String&) const;
  6589. ValueAnimation GetAttributeAnimation(const String&) const;
  6590. float GetAttributeAnimationSpeed(const String&) const;
  6591. float GetAttributeAnimationTime(const String&) const;
  6592. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6593. Variant GetAttributeDefault(const String&) const;
  6594. Node GetChild(const String&, bool = false) const;
  6595. Array<Node> GetChildren(bool = false) const;
  6596. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6597. Array<Node> GetChildrenWithScript(bool = false) const;
  6598. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6599. Component GetComponent(const String&, bool = false) const;
  6600. Array<Component> GetComponents() const;
  6601. Array<Component> GetComponents(const String&, bool = false) const;
  6602. bool GetInterceptNetworkUpdate(const String&) const;
  6603. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6604. Component GetParentComponent(const String&, bool = false) const;
  6605. ScriptObject GetScriptObject() const;
  6606. ScriptObject GetScriptObject(const String&) const;
  6607. bool HasComponent(const String&) const;
  6608. bool Load(File, bool = false);
  6609. bool Load(VectorBuffer&, bool = false);
  6610. bool LoadJSON(const JSONValue&, bool = false);
  6611. bool LoadXML(const XMLElement&, bool = false);
  6612. Vector3 LocalToWorld(const Vector3&) const;
  6613. Vector3 LocalToWorld(const Vector4&) const;
  6614. Vector2 LocalToWorld2D(const Vector2&) const;
  6615. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6616. void MarkDirty();
  6617. void MarkNetworkUpdate() const;
  6618. void Pitch(float, TransformSpace = TS_LOCAL);
  6619. void Remove();
  6620. void RemoveAllChildren();
  6621. void RemoveAllComponents();
  6622. void RemoveAttributeAnimation(const String&);
  6623. void RemoveChild(Node);
  6624. void RemoveChildren(bool, bool, bool);
  6625. void RemoveComponent(Component);
  6626. void RemoveComponent(const String&);
  6627. void RemoveComponents(bool, bool);
  6628. void RemoveComponents(const String&);
  6629. void RemoveInstanceDefault();
  6630. void RemoveObjectAnimation();
  6631. void ResetDeepEnabled();
  6632. void ResetToDefault();
  6633. void Roll(float, TransformSpace = TS_LOCAL);
  6634. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6635. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6636. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6637. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6638. bool Save(File) const;
  6639. bool Save(VectorBuffer&) const;
  6640. bool SaveJSON(File);
  6641. bool SaveJSON(JSONValue&) const;
  6642. bool SaveJSON(VectorBuffer&);
  6643. bool SaveXML(File, const String& = "\t");
  6644. bool SaveXML(VectorBuffer&, const String& = "\t");
  6645. bool SaveXML(XMLElement&) const;
  6646. void Scale(const Vector3&);
  6647. void Scale(float);
  6648. void Scale2D(const Vector2&);
  6649. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6650. void SetAnimationTime(float);
  6651. bool SetAttribute(const String&, const Variant&);
  6652. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6653. void SetAttributeAnimationSpeed(const String&, float);
  6654. void SetAttributeAnimationTime(const String&, float);
  6655. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6656. void SetDeepEnabled(bool);
  6657. void SetEnabledRecursive(bool);
  6658. void SetInterceptNetworkUpdate(const String&, bool);
  6659. void SetPosition2D(float, float);
  6660. void SetScale(float);
  6661. void SetScale2D(float, float);
  6662. void SetTransform(const Vector3&, const Quaternion&);
  6663. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6664. void SetTransform(const Vector3&, const Quaternion&, float);
  6665. void SetTransform2D(const Vector2&, float);
  6666. void SetTransform2D(const Vector2&, float, const Vector2&);
  6667. void SetTransform2D(const Vector2&, float, float);
  6668. void SetWorldTransform(const Vector3&, const Quaternion&);
  6669. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6670. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6671. void SetWorldTransform2D(const Vector2&, float);
  6672. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6673. void SetWorldTransform2D(const Vector2&, float, float);
  6674. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6675. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6676. Vector3 WorldToLocal(const Vector3&) const;
  6677. Vector3 WorldToLocal(const Vector4&) const;
  6678. Vector2 WorldToLocal2D(const Vector2&) const;
  6679. void Yaw(float, TransformSpace = TS_LOCAL);
  6680. // Properties:
  6681. bool animationEnabled;
  6682. /* readonly */
  6683. Array<Variant> attributeDefaults;
  6684. /* readonly */
  6685. Array<AttributeInfo> attributeInfos;
  6686. Array<Variant> attributes;
  6687. /* readonly */
  6688. String category;
  6689. /* readonly */
  6690. Array<Node> children;
  6691. /* readonly */
  6692. Array<Component> components;
  6693. Vector3 direction;
  6694. bool enabled;
  6695. /* readonly */
  6696. bool enabledSelf;
  6697. /* readonly */
  6698. uint id;
  6699. String name;
  6700. /* readonly */
  6701. uint numAllChildren;
  6702. /* readonly */
  6703. uint numAttributes;
  6704. /* readonly */
  6705. uint numChildren;
  6706. /* readonly */
  6707. uint numComponents;
  6708. ObjectAnimation objectAnimation;
  6709. Connection owner;
  6710. Node parent;
  6711. Vector3 position;
  6712. Vector2 position2D;
  6713. /* readonly */
  6714. int refs;
  6715. /* readonly */
  6716. Vector3 right;
  6717. Quaternion rotation;
  6718. float rotation2D;
  6719. Vector3 scale;
  6720. Vector2 scale2D;
  6721. /* readonly */
  6722. Scene scene;
  6723. /* readonly */
  6724. ScriptObject scriptObject;
  6725. bool temporary;
  6726. /* readonly */
  6727. Matrix3x4 transform;
  6728. /* readonly */
  6729. StringHash type;
  6730. /* readonly */
  6731. String typeName;
  6732. /* readonly */
  6733. Vector3 up;
  6734. /* readonly */
  6735. VariantMap vars;
  6736. /* readonly */
  6737. int weakRefs;
  6738. Vector3 worldDirection;
  6739. Vector3 worldPosition;
  6740. Vector2 worldPosition2D;
  6741. /* readonly */
  6742. Vector3 worldRight;
  6743. Quaternion worldRotation;
  6744. float worldRotation2D;
  6745. Vector3 worldScale;
  6746. Vector2 worldScale2D;
  6747. /* readonly */
  6748. Matrix3x4 worldTransform;
  6749. /* readonly */
  6750. Vector3 worldUp;
  6751. };
  6752. class Object
  6753. {
  6754. // Methods:
  6755. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6756. // Properties:
  6757. /* readonly */
  6758. String category;
  6759. /* readonly */
  6760. int refs;
  6761. /* readonly */
  6762. StringHash type;
  6763. /* readonly */
  6764. String typeName;
  6765. /* readonly */
  6766. int weakRefs;
  6767. };
  6768. class ObjectAnimation
  6769. {
  6770. // Methods:
  6771. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6772. ValueAnimation GetAttributeAnimation(const String&) const;
  6773. float GetAttributeAnimationSpeed(const String&) const;
  6774. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6775. bool Load(File);
  6776. bool Load(VectorBuffer&);
  6777. void RemoveAttributeAnimation(ValueAnimation);
  6778. void RemoveAttributeAnimation(const String&);
  6779. bool Save(File) const;
  6780. bool Save(VectorBuffer&) const;
  6781. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6782. // Properties:
  6783. /* readonly */
  6784. Array<Variant> attributeAnimations;
  6785. /* readonly */
  6786. String category;
  6787. /* readonly */
  6788. uint memoryUse;
  6789. String name;
  6790. /* readonly */
  6791. int refs;
  6792. /* readonly */
  6793. Array<Variant> speeds;
  6794. /* readonly */
  6795. StringHash type;
  6796. /* readonly */
  6797. String typeName;
  6798. /* readonly */
  6799. uint useTimer;
  6800. /* readonly */
  6801. int weakRefs;
  6802. /* readonly */
  6803. Array<Variant> wrapModes;
  6804. };
  6805. class Obstacle
  6806. {
  6807. // Methods:
  6808. void ApplyAttributes();
  6809. void DrawDebugGeometry(DebugRenderer, bool);
  6810. void DrawDebugGeometry(bool);
  6811. Variant GetAttribute(const String&) const;
  6812. ValueAnimation GetAttributeAnimation(const String&) const;
  6813. float GetAttributeAnimationSpeed(const String&) const;
  6814. float GetAttributeAnimationTime(const String&) const;
  6815. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6816. Variant GetAttributeDefault(const String&) const;
  6817. bool GetInterceptNetworkUpdate(const String&) const;
  6818. bool Load(File, bool = false);
  6819. bool Load(VectorBuffer&, bool = false);
  6820. bool LoadJSON(const JSONValue&, bool = false);
  6821. bool LoadXML(const XMLElement&, bool = false);
  6822. void MarkNetworkUpdate() const;
  6823. void Remove();
  6824. void RemoveAttributeAnimation(const String&);
  6825. void RemoveInstanceDefault();
  6826. void RemoveObjectAnimation();
  6827. void ResetToDefault();
  6828. bool Save(File) const;
  6829. bool Save(VectorBuffer&) const;
  6830. bool SaveJSON(JSONValue&) const;
  6831. bool SaveXML(XMLElement&) const;
  6832. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6833. void SetAnimationTime(float);
  6834. bool SetAttribute(const String&, const Variant&);
  6835. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6836. void SetAttributeAnimationSpeed(const String&, float);
  6837. void SetAttributeAnimationTime(const String&, float);
  6838. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6839. void SetInterceptNetworkUpdate(const String&, bool);
  6840. // Properties:
  6841. bool animationEnabled;
  6842. /* readonly */
  6843. Array<Variant> attributeDefaults;
  6844. /* readonly */
  6845. Array<AttributeInfo> attributeInfos;
  6846. Array<Variant> attributes;
  6847. /* readonly */
  6848. String category;
  6849. bool enabled;
  6850. /* readonly */
  6851. bool enabledEffective;
  6852. float height;
  6853. /* readonly */
  6854. uint id;
  6855. /* readonly */
  6856. Node node;
  6857. /* readonly */
  6858. uint numAttributes;
  6859. ObjectAnimation objectAnimation;
  6860. /* readonly */
  6861. uint obstacleId;
  6862. float radius;
  6863. /* readonly */
  6864. int refs;
  6865. bool temporary;
  6866. /* readonly */
  6867. StringHash type;
  6868. /* readonly */
  6869. String typeName;
  6870. /* readonly */
  6871. int weakRefs;
  6872. };
  6873. class Octree
  6874. {
  6875. // Methods:
  6876. void AddManualDrawable(Drawable);
  6877. void ApplyAttributes();
  6878. void DrawDebugGeometry(DebugRenderer, bool);
  6879. void DrawDebugGeometry(bool) const;
  6880. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6881. Variant GetAttribute(const String&) const;
  6882. ValueAnimation GetAttributeAnimation(const String&) const;
  6883. float GetAttributeAnimationSpeed(const String&) const;
  6884. float GetAttributeAnimationTime(const String&) const;
  6885. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6886. Variant GetAttributeDefault(const String&) const;
  6887. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6888. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6889. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6890. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6891. bool GetInterceptNetworkUpdate(const String&) const;
  6892. bool Load(File, bool = false);
  6893. bool Load(VectorBuffer&, bool = false);
  6894. bool LoadJSON(const JSONValue&, bool = false);
  6895. bool LoadXML(const XMLElement&, bool = false);
  6896. void MarkNetworkUpdate() const;
  6897. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6898. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6899. void Remove();
  6900. void RemoveAttributeAnimation(const String&);
  6901. void RemoveInstanceDefault();
  6902. void RemoveManualDrawable(Drawable);
  6903. void RemoveObjectAnimation();
  6904. void ResetToDefault();
  6905. bool Save(File) const;
  6906. bool Save(VectorBuffer&) const;
  6907. bool SaveJSON(JSONValue&) const;
  6908. bool SaveXML(XMLElement&) const;
  6909. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6910. void SetAnimationTime(float);
  6911. bool SetAttribute(const String&, const Variant&);
  6912. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6913. void SetAttributeAnimationSpeed(const String&, float);
  6914. void SetAttributeAnimationTime(const String&, float);
  6915. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6916. void SetInterceptNetworkUpdate(const String&, bool);
  6917. void SetSize(const BoundingBox&, uint);
  6918. // Properties:
  6919. bool animationEnabled;
  6920. /* readonly */
  6921. Array<Variant> attributeDefaults;
  6922. /* readonly */
  6923. Array<AttributeInfo> attributeInfos;
  6924. Array<Variant> attributes;
  6925. /* readonly */
  6926. String category;
  6927. bool enabled;
  6928. /* readonly */
  6929. bool enabledEffective;
  6930. /* readonly */
  6931. uint id;
  6932. /* readonly */
  6933. Node node;
  6934. /* readonly */
  6935. uint numAttributes;
  6936. /* readonly */
  6937. uint numLevels;
  6938. ObjectAnimation objectAnimation;
  6939. /* readonly */
  6940. int refs;
  6941. bool temporary;
  6942. /* readonly */
  6943. StringHash type;
  6944. /* readonly */
  6945. String typeName;
  6946. /* readonly */
  6947. int weakRefs;
  6948. /* readonly */
  6949. BoundingBox worldBoundingBox;
  6950. };
  6951. class OffMeshConnection
  6952. {
  6953. // Methods:
  6954. void ApplyAttributes();
  6955. void DrawDebugGeometry(DebugRenderer, bool);
  6956. Variant GetAttribute(const String&) const;
  6957. ValueAnimation GetAttributeAnimation(const String&) const;
  6958. float GetAttributeAnimationSpeed(const String&) const;
  6959. float GetAttributeAnimationTime(const String&) const;
  6960. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6961. Variant GetAttributeDefault(const String&) const;
  6962. bool GetInterceptNetworkUpdate(const String&) const;
  6963. bool Load(File, bool = false);
  6964. bool Load(VectorBuffer&, bool = false);
  6965. bool LoadJSON(const JSONValue&, bool = false);
  6966. bool LoadXML(const XMLElement&, bool = false);
  6967. void MarkNetworkUpdate() const;
  6968. void Remove();
  6969. void RemoveAttributeAnimation(const String&);
  6970. void RemoveInstanceDefault();
  6971. void RemoveObjectAnimation();
  6972. void ResetToDefault();
  6973. bool Save(File) const;
  6974. bool Save(VectorBuffer&) const;
  6975. bool SaveJSON(JSONValue&) const;
  6976. bool SaveXML(XMLElement&) const;
  6977. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6978. void SetAnimationTime(float);
  6979. bool SetAttribute(const String&, const Variant&);
  6980. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6981. void SetAttributeAnimationSpeed(const String&, float);
  6982. void SetAttributeAnimationTime(const String&, float);
  6983. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6984. void SetInterceptNetworkUpdate(const String&, bool);
  6985. // Properties:
  6986. bool animationEnabled;
  6987. uint areaID;
  6988. /* readonly */
  6989. Array<Variant> attributeDefaults;
  6990. /* readonly */
  6991. Array<AttributeInfo> attributeInfos;
  6992. Array<Variant> attributes;
  6993. bool bidirectional;
  6994. /* readonly */
  6995. String category;
  6996. bool enabled;
  6997. /* readonly */
  6998. bool enabledEffective;
  6999. Node endPoint;
  7000. /* readonly */
  7001. uint id;
  7002. uint mask;
  7003. /* readonly */
  7004. Node node;
  7005. /* readonly */
  7006. uint numAttributes;
  7007. ObjectAnimation objectAnimation;
  7008. float radius;
  7009. /* readonly */
  7010. int refs;
  7011. bool temporary;
  7012. /* readonly */
  7013. StringHash type;
  7014. /* readonly */
  7015. String typeName;
  7016. /* readonly */
  7017. int weakRefs;
  7018. };
  7019. class PackageFile
  7020. {
  7021. // Methods:
  7022. bool Exists(const String&) const;
  7023. Array<String> GetEntryNames() const;
  7024. bool Open(const String&, uint = 0) const;
  7025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7026. bool compressed() const;
  7027. // Properties:
  7028. /* readonly */
  7029. String category;
  7030. /* readonly */
  7031. uint checksum;
  7032. /* readonly */
  7033. String name;
  7034. /* readonly */
  7035. uint numFiles;
  7036. /* readonly */
  7037. int refs;
  7038. /* readonly */
  7039. uint totalSize;
  7040. /* readonly */
  7041. StringHash type;
  7042. /* readonly */
  7043. String typeName;
  7044. /* readonly */
  7045. int weakRefs;
  7046. };
  7047. class ParticleEffect
  7048. {
  7049. // Methods:
  7050. void AddColorFrame(ColorFrame);
  7051. void AddColorTime(Color&, float);
  7052. void AddTextureFrame(TextureFrame);
  7053. void AddTextureTime(Rect&, float);
  7054. ColorFrame GetColorFrame(uint) const;
  7055. TextureFrame GetTextureFrame(uint) const;
  7056. bool Load(File);
  7057. bool Load(VectorBuffer&);
  7058. bool Load(const XMLElement&);
  7059. void RemoveColorFrame(uint);
  7060. void RemoveTextureFrame(uint);
  7061. bool Save(File) const;
  7062. bool Save(VectorBuffer&) const;
  7063. bool Save(XMLElement&) const;
  7064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7065. void SetColorFrame(uint, ColorFrame);
  7066. void SetTextureFrame(uint, TextureFrame);
  7067. void SortColorFrames();
  7068. void SortTextureFrames();
  7069. // Properties:
  7070. float activeTime;
  7071. float animationLodBias;
  7072. /* readonly */
  7073. String category;
  7074. Vector3 constantForce;
  7075. float dampingForce;
  7076. Vector3 emitterSize;
  7077. EmitterType emitterType;
  7078. float inactiveTime;
  7079. Material material;
  7080. Vector3 maxDirection;
  7081. float maxEmissionRate;
  7082. Vector2 maxParticleSize;
  7083. float maxRotation;
  7084. float maxRotationSpeed;
  7085. float maxTimeToLive;
  7086. float maxVelocity;
  7087. /* readonly */
  7088. uint memoryUse;
  7089. Vector3 minDirection;
  7090. float minEmissionRate;
  7091. Vector2 minParticleSize;
  7092. float minRotation;
  7093. float minRotationSpeed;
  7094. float minTimeToLive;
  7095. float minVelocity;
  7096. String name;
  7097. uint numColorFrames;
  7098. uint numParticles;
  7099. uint numTextureFrames;
  7100. /* readonly */
  7101. int refs;
  7102. bool relative;
  7103. bool scaled;
  7104. float sizeAdd;
  7105. float sizeMul;
  7106. bool sorted;
  7107. /* readonly */
  7108. StringHash type;
  7109. /* readonly */
  7110. String typeName;
  7111. bool updateInvisible;
  7112. /* readonly */
  7113. uint useTimer;
  7114. /* readonly */
  7115. int weakRefs;
  7116. };
  7117. class ParticleEffect2D
  7118. {
  7119. // Methods:
  7120. bool Load(File);
  7121. bool Load(VectorBuffer&);
  7122. bool Save(File) const;
  7123. bool Save(VectorBuffer&) const;
  7124. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7125. // Properties:
  7126. /* readonly */
  7127. String category;
  7128. /* readonly */
  7129. uint memoryUse;
  7130. String name;
  7131. /* readonly */
  7132. int refs;
  7133. /* readonly */
  7134. StringHash type;
  7135. /* readonly */
  7136. String typeName;
  7137. /* readonly */
  7138. uint useTimer;
  7139. /* readonly */
  7140. int weakRefs;
  7141. };
  7142. class ParticleEmitter
  7143. {
  7144. // Methods:
  7145. void ApplyAttributes();
  7146. void ApplyEffect();
  7147. void Commit();
  7148. void DrawDebugGeometry(DebugRenderer, bool);
  7149. Variant GetAttribute(const String&) const;
  7150. ValueAnimation GetAttributeAnimation(const String&) const;
  7151. float GetAttributeAnimationSpeed(const String&) const;
  7152. float GetAttributeAnimationTime(const String&) const;
  7153. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7154. Variant GetAttributeDefault(const String&) const;
  7155. bool GetInterceptNetworkUpdate(const String&) const;
  7156. bool IsInView(Camera) const;
  7157. bool Load(File, bool = false);
  7158. bool Load(VectorBuffer&, bool = false);
  7159. bool LoadJSON(const JSONValue&, bool = false);
  7160. bool LoadXML(const XMLElement&, bool = false);
  7161. void MarkNetworkUpdate() const;
  7162. void Remove();
  7163. void RemoveAllParticles();
  7164. void RemoveAttributeAnimation(const String&);
  7165. void RemoveInstanceDefault();
  7166. void RemoveObjectAnimation();
  7167. void Reset();
  7168. void ResetEmissionTimer();
  7169. void ResetToDefault();
  7170. bool Save(File) const;
  7171. bool Save(VectorBuffer&) const;
  7172. bool SaveJSON(JSONValue&) const;
  7173. bool SaveXML(XMLElement&) const;
  7174. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7175. void SetAnimationTime(float);
  7176. bool SetAttribute(const String&, const Variant&);
  7177. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7178. void SetAttributeAnimationSpeed(const String&, float);
  7179. void SetAttributeAnimationTime(const String&, float);
  7180. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7181. void SetInterceptNetworkUpdate(const String&, bool);
  7182. // Properties:
  7183. bool animationEnabled;
  7184. float animationLodBias;
  7185. /* readonly */
  7186. Array<Variant> attributeDefaults;
  7187. /* readonly */
  7188. Array<AttributeInfo> attributeInfos;
  7189. Array<Variant> attributes;
  7190. /* readonly */
  7191. Array<Billboard> billboards;
  7192. /* readonly */
  7193. BoundingBox boundingBox;
  7194. bool castShadows;
  7195. /* readonly */
  7196. String category;
  7197. float drawDistance;
  7198. ParticleEffect effect;
  7199. bool emitting;
  7200. bool enabled;
  7201. /* readonly */
  7202. bool enabledEffective;
  7203. FaceCameraMode faceCameraMode;
  7204. /* readonly */
  7205. uint id;
  7206. /* readonly */
  7207. bool inView;
  7208. uint lightMask;
  7209. float lodBias;
  7210. Material material;
  7211. uint maxLights;
  7212. /* readonly */
  7213. Node node;
  7214. /* readonly */
  7215. uint numAttributes;
  7216. uint numBillboards;
  7217. uint numParticles;
  7218. ObjectAnimation objectAnimation;
  7219. bool occludee;
  7220. bool occluder;
  7221. /* readonly */
  7222. int refs;
  7223. bool relative;
  7224. bool scaled;
  7225. bool serializeParticles;
  7226. float shadowDistance;
  7227. uint shadowMask;
  7228. bool sorted;
  7229. bool temporary;
  7230. /* readonly */
  7231. StringHash type;
  7232. /* readonly */
  7233. String typeName;
  7234. uint viewMask;
  7235. /* readonly */
  7236. int weakRefs;
  7237. /* readonly */
  7238. BoundingBox worldBoundingBox;
  7239. /* readonly */
  7240. Zone zone;
  7241. uint zoneMask;
  7242. };
  7243. class ParticleEmitter2D
  7244. {
  7245. // Methods:
  7246. void ApplyAttributes();
  7247. void DrawDebugGeometry(DebugRenderer, bool);
  7248. Variant GetAttribute(const String&) const;
  7249. ValueAnimation GetAttributeAnimation(const String&) const;
  7250. float GetAttributeAnimationSpeed(const String&) const;
  7251. float GetAttributeAnimationTime(const String&) const;
  7252. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7253. Variant GetAttributeDefault(const String&) const;
  7254. bool GetInterceptNetworkUpdate(const String&) const;
  7255. bool IsInView(Camera) const;
  7256. bool Load(File, bool = false);
  7257. bool Load(VectorBuffer&, bool = false);
  7258. bool LoadJSON(const JSONValue&, bool = false);
  7259. bool LoadXML(const XMLElement&, bool = false);
  7260. void MarkNetworkUpdate() const;
  7261. void Remove();
  7262. void RemoveAttributeAnimation(const String&);
  7263. void RemoveInstanceDefault();
  7264. void RemoveObjectAnimation();
  7265. void ResetToDefault();
  7266. bool Save(File) const;
  7267. bool Save(VectorBuffer&) const;
  7268. bool SaveJSON(JSONValue&) const;
  7269. bool SaveXML(XMLElement&) const;
  7270. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7271. void SetAnimationTime(float);
  7272. bool SetAttribute(const String&, const Variant&);
  7273. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7274. void SetAttributeAnimationSpeed(const String&, float);
  7275. void SetAttributeAnimationTime(const String&, float);
  7276. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7277. void SetInterceptNetworkUpdate(const String&, bool);
  7278. // Properties:
  7279. bool animationEnabled;
  7280. /* readonly */
  7281. Array<Variant> attributeDefaults;
  7282. /* readonly */
  7283. Array<AttributeInfo> attributeInfos;
  7284. Array<Variant> attributes;
  7285. BlendMode blendMode;
  7286. /* readonly */
  7287. BoundingBox boundingBox;
  7288. bool castShadows;
  7289. /* readonly */
  7290. String category;
  7291. float drawDistance;
  7292. ParticleEffect2D effect;
  7293. bool enabled;
  7294. /* readonly */
  7295. bool enabledEffective;
  7296. /* readonly */
  7297. uint id;
  7298. /* readonly */
  7299. bool inView;
  7300. int layer;
  7301. uint lightMask;
  7302. float lodBias;
  7303. uint maxLights;
  7304. /* readonly */
  7305. Node node;
  7306. /* readonly */
  7307. uint numAttributes;
  7308. ObjectAnimation objectAnimation;
  7309. bool occludee;
  7310. bool occluder;
  7311. int orderInLayer;
  7312. /* readonly */
  7313. int refs;
  7314. float shadowDistance;
  7315. uint shadowMask;
  7316. Sprite2D sprite;
  7317. bool temporary;
  7318. /* readonly */
  7319. StringHash type;
  7320. /* readonly */
  7321. String typeName;
  7322. uint viewMask;
  7323. /* readonly */
  7324. int weakRefs;
  7325. /* readonly */
  7326. BoundingBox worldBoundingBox;
  7327. uint zoneMask;
  7328. };
  7329. class Pass
  7330. {
  7331. // Properties:
  7332. bool alphaMask;
  7333. BlendMode blendMode;
  7334. CompareMode depthTestMode;
  7335. bool depthWrite;
  7336. bool desktop;
  7337. PassLightingMode lightingMode;
  7338. String pixelShader;
  7339. String pixelShaderDefines;
  7340. /* readonly */
  7341. int refs;
  7342. String vertexShader;
  7343. String vertexShaderDefines;
  7344. /* readonly */
  7345. int weakRefs;
  7346. };
  7347. class PhysicsRaycastResult
  7348. {
  7349. // Properties:
  7350. /* readonly */
  7351. RigidBody body;
  7352. float distance;
  7353. Vector3 normal;
  7354. Vector3 position;
  7355. };
  7356. class PhysicsRaycastResult2D
  7357. {
  7358. // Properties:
  7359. /* readonly */
  7360. RigidBody2D body;
  7361. float distance;
  7362. Vector2 normal;
  7363. Vector2 position;
  7364. };
  7365. class PhysicsWorld
  7366. {
  7367. // Methods:
  7368. void ApplyAttributes();
  7369. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7370. void DrawDebugGeometry(DebugRenderer, bool);
  7371. void DrawDebugGeometry(bool);
  7372. Variant GetAttribute(const String&) const;
  7373. ValueAnimation GetAttributeAnimation(const String&) const;
  7374. float GetAttributeAnimationSpeed(const String&) const;
  7375. float GetAttributeAnimationTime(const String&) const;
  7376. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7377. Variant GetAttributeDefault(const String&) const;
  7378. Array<RigidBody> GetCollidingBodies(RigidBody);
  7379. bool GetInterceptNetworkUpdate(const String&) const;
  7380. Array<RigidBody> GetRigidBodies(RigidBody);
  7381. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7382. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7383. bool Load(File, bool = false);
  7384. bool Load(VectorBuffer&, bool = false);
  7385. bool LoadJSON(const JSONValue&, bool = false);
  7386. bool LoadXML(const XMLElement&, bool = false);
  7387. void MarkNetworkUpdate() const;
  7388. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7389. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7390. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7391. void Remove();
  7392. void RemoveAttributeAnimation(const String&);
  7393. void RemoveCachedGeometry(Model);
  7394. void RemoveInstanceDefault();
  7395. void RemoveObjectAnimation();
  7396. void ResetToDefault();
  7397. bool Save(File) const;
  7398. bool Save(VectorBuffer&) const;
  7399. bool SaveJSON(JSONValue&) const;
  7400. bool SaveXML(XMLElement&) const;
  7401. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7402. void SetAnimationTime(float);
  7403. bool SetAttribute(const String&, const Variant&);
  7404. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7405. void SetAttributeAnimationSpeed(const String&, float);
  7406. void SetAttributeAnimationTime(const String&, float);
  7407. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7408. void SetInterceptNetworkUpdate(const String&, bool);
  7409. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7410. void Update(float);
  7411. void UpdateCollisions();
  7412. // Properties:
  7413. bool animationEnabled;
  7414. /* readonly */
  7415. Array<Variant> attributeDefaults;
  7416. /* readonly */
  7417. Array<AttributeInfo> attributeInfos;
  7418. Array<Variant> attributes;
  7419. /* readonly */
  7420. String category;
  7421. bool enabled;
  7422. /* readonly */
  7423. bool enabledEffective;
  7424. int fps;
  7425. Vector3 gravity;
  7426. /* readonly */
  7427. uint id;
  7428. bool internalEdge;
  7429. bool interpolation;
  7430. int maxSubSteps;
  7431. /* readonly */
  7432. Node node;
  7433. /* readonly */
  7434. uint numAttributes;
  7435. int numIterations;
  7436. ObjectAnimation objectAnimation;
  7437. /* readonly */
  7438. int refs;
  7439. bool splitImpulse;
  7440. bool temporary;
  7441. /* readonly */
  7442. StringHash type;
  7443. /* readonly */
  7444. String typeName;
  7445. bool updateEnabled;
  7446. /* readonly */
  7447. int weakRefs;
  7448. };
  7449. class PhysicsWorld2D
  7450. {
  7451. // Methods:
  7452. void ApplyAttributes();
  7453. void DrawDebugGeometry() const;
  7454. void DrawDebugGeometry(DebugRenderer, bool);
  7455. Variant GetAttribute(const String&) const;
  7456. ValueAnimation GetAttributeAnimation(const String&) const;
  7457. float GetAttributeAnimationSpeed(const String&) const;
  7458. float GetAttributeAnimationTime(const String&) const;
  7459. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7460. Variant GetAttributeDefault(const String&) const;
  7461. bool GetInterceptNetworkUpdate(const String&) const;
  7462. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7463. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7464. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7465. bool Load(File, bool = false);
  7466. bool Load(VectorBuffer&, bool = false);
  7467. bool LoadJSON(const JSONValue&, bool = false);
  7468. bool LoadXML(const XMLElement&, bool = false);
  7469. void MarkNetworkUpdate() const;
  7470. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7471. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7472. void Remove();
  7473. void RemoveAttributeAnimation(const String&);
  7474. void RemoveInstanceDefault();
  7475. void RemoveObjectAnimation();
  7476. void ResetToDefault();
  7477. bool Save(File) const;
  7478. bool Save(VectorBuffer&) const;
  7479. bool SaveJSON(JSONValue&) const;
  7480. bool SaveXML(XMLElement&) const;
  7481. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7482. void SetAnimationTime(float);
  7483. bool SetAttribute(const String&, const Variant&);
  7484. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7485. void SetAttributeAnimationSpeed(const String&, float);
  7486. void SetAttributeAnimationTime(const String&, float);
  7487. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7488. void SetInterceptNetworkUpdate(const String&, bool);
  7489. // Properties:
  7490. bool allowSleeping;
  7491. bool animationEnabled;
  7492. /* readonly */
  7493. Array<Variant> attributeDefaults;
  7494. /* readonly */
  7495. Array<AttributeInfo> attributeInfos;
  7496. Array<Variant> attributes;
  7497. bool autoClearForces;
  7498. /* readonly */
  7499. String category;
  7500. bool continuousPhysics;
  7501. bool drawAabb;
  7502. bool drawCenterOfMass;
  7503. bool drawJoint;
  7504. bool drawPair;
  7505. bool drawShape;
  7506. bool enabled;
  7507. /* readonly */
  7508. bool enabledEffective;
  7509. Vector2 gravity;
  7510. /* readonly */
  7511. uint id;
  7512. /* readonly */
  7513. Node node;
  7514. /* readonly */
  7515. uint numAttributes;
  7516. ObjectAnimation objectAnimation;
  7517. uint positionIterations;
  7518. /* readonly */
  7519. int refs;
  7520. bool subStepping;
  7521. bool temporary;
  7522. /* readonly */
  7523. StringHash type;
  7524. /* readonly */
  7525. String typeName;
  7526. bool updateEnabled;
  7527. uint velocityIterations;
  7528. bool warmStarting;
  7529. /* readonly */
  7530. int weakRefs;
  7531. };
  7532. class Plane
  7533. {
  7534. // Methods:
  7535. void Define(const Vector3&, const Vector3&);
  7536. void Define(const Vector3&, const Vector3&, const Vector3&);
  7537. void Define(const Vector4&);
  7538. float Distance(const Vector3&) const;
  7539. Vector3 Project(const Vector3&) const;
  7540. Vector3 Reflect(const Vector3&) const;
  7541. Vector4 ToVector4() const;
  7542. void Transform(const Matrix3&);
  7543. void Transform(const Matrix3x4&);
  7544. void Transform(const Matrix4&);
  7545. Plane Transformed(const Matrix3&) const;
  7546. Plane Transformed(const Matrix3x4&) const;
  7547. Plane Transformed(const Matrix4&) const;
  7548. // Properties:
  7549. Vector3 absNormal;
  7550. float d;
  7551. Vector3 normal;
  7552. /* readonly */
  7553. Matrix3x4 reflectionMatrix;
  7554. };
  7555. class Polyhedron
  7556. {
  7557. // Methods:
  7558. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7559. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7560. void AddFace(const Array<Vector3>);
  7561. void Clear();
  7562. void Clip(const BoundingBox&);
  7563. void Clip(const Frustum&);
  7564. void Define(const BoundingBox&);
  7565. void Define(const Frustum&);
  7566. void Transform(const Matrix3&);
  7567. void Transform(const Matrix3x4&);
  7568. Polyhedron Transformed(const Matrix3&) const;
  7569. Polyhedron Transformed(const Matrix3x4&) const;
  7570. // Properties:
  7571. /* readonly */
  7572. Array<Array<Vector3>> face;
  7573. /* readonly */
  7574. uint numFaces;
  7575. };
  7576. class PropertySet2D
  7577. {
  7578. // Methods:
  7579. bool HasProperty(const String&) const;
  7580. const String& GetProperty(const String&) const;
  7581. // Properties:
  7582. /* readonly */
  7583. int refs;
  7584. /* readonly */
  7585. int weakRefs;
  7586. };
  7587. class Quaternion
  7588. {
  7589. // Methods:
  7590. float DotProduct(const Quaternion&) const;
  7591. bool Equals(const Quaternion&) const;
  7592. void FromAngleAxis(float, const Vector3&);
  7593. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7594. void FromEulerAngles(float, float, float);
  7595. bool FromLookRotation(const Vector3&, const Vector3&);
  7596. void FromRotationTo(const Vector3&, const Vector3&);
  7597. Quaternion Inverse() const;
  7598. bool IsNaN() const;
  7599. Quaternion Nlerp(Quaternion, float, bool) const;
  7600. void Normalize();
  7601. Quaternion Normalized() const;
  7602. Quaternion Slerp(Quaternion, float) const;
  7603. String ToString() const;
  7604. // Properties:
  7605. /* readonly */
  7606. Vector3 eulerAngles;
  7607. /* readonly */
  7608. float pitch;
  7609. /* readonly */
  7610. float roll;
  7611. float w;
  7612. float x;
  7613. float y;
  7614. /* readonly */
  7615. float yaw;
  7616. float z;
  7617. };
  7618. class Ray
  7619. {
  7620. // Methods:
  7621. Vector3 ClosestPoint(const Ray&) const;
  7622. void Define(const Vector3&, const Vector3&);
  7623. float Distance(const Vector3&) const;
  7624. float HitDistance(const BoundingBox&) const;
  7625. float HitDistance(const Frustum&, bool = true) const;
  7626. float HitDistance(const Plane&) const;
  7627. float HitDistance(const Sphere&) const;
  7628. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7629. Vector3 Project(const Vector3&) const;
  7630. Ray Transformed(const Matrix3x4&) const;
  7631. // Properties:
  7632. Vector3 direction;
  7633. Vector3 origin;
  7634. };
  7635. class RayQueryResult
  7636. {
  7637. // Properties:
  7638. float distance;
  7639. /* readonly */
  7640. Drawable drawable;
  7641. /* readonly */
  7642. Node node;
  7643. Vector3 normal;
  7644. Vector3 position;
  7645. uint subObject;
  7646. Vector2 textureUV;
  7647. };
  7648. class Rect
  7649. {
  7650. // Methods:
  7651. void Clear();
  7652. void Clip(const Rect&);
  7653. void Define(const Vector2&);
  7654. void Define(const Vector2&, const Vector2&);
  7655. bool Defined() const;
  7656. bool Equals(const Rect&) const;
  7657. Intersection IsInside(const Vector2&) const;
  7658. void Merge(const Rect&);
  7659. void Merge(const Vector2&);
  7660. Vector4 ToVector4() const;
  7661. // Properties:
  7662. float bottom;
  7663. /* readonly */
  7664. Vector2 center;
  7665. /* readonly */
  7666. Vector2 halfSize;
  7667. float left;
  7668. Vector2 max;
  7669. Vector2 min;
  7670. float right;
  7671. /* readonly */
  7672. Vector2 size;
  7673. float top;
  7674. };
  7675. class RefCounted
  7676. {
  7677. // Properties:
  7678. /* readonly */
  7679. int refs;
  7680. /* readonly */
  7681. int weakRefs;
  7682. };
  7683. class RenderPath
  7684. {
  7685. // Methods:
  7686. void AddCommand(const RenderPathCommand&);
  7687. void AddRenderTarget(const RenderTargetInfo&);
  7688. bool Append(XMLFile);
  7689. RenderPath Clone();
  7690. void InsertCommand(uint, const RenderPathCommand&);
  7691. bool Load(XMLFile);
  7692. void RemoveCommand(uint);
  7693. void RemoveCommands(const String&);
  7694. void RemoveRenderTarget(const String&);
  7695. void RemoveRenderTarget(uint);
  7696. void RemoveRenderTargts(const String&);
  7697. void SetEnabled(const String&, bool);
  7698. void ToggleEnabled(const String&);
  7699. // Properties:
  7700. Array<RenderPathCommand> commands;
  7701. /* readonly */
  7702. uint numCommands;
  7703. /* readonly */
  7704. uint numRenderTargets;
  7705. /* readonly */
  7706. int refs;
  7707. Array<RenderTargetInfo> renderTargets;
  7708. Array<Variant> shaderParameters;
  7709. /* readonly */
  7710. int weakRefs;
  7711. };
  7712. class RenderPathCommand
  7713. {
  7714. // Methods:
  7715. void RemoveShaderParameter(const String&);
  7716. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7717. // Properties:
  7718. BlendMode blendMode;
  7719. Color clearColor;
  7720. float clearDepth;
  7721. uint clearFlags;
  7722. uint clearStencil;
  7723. String depthStencilName;
  7724. bool enabled;
  7725. bool markToStencil;
  7726. String metadata;
  7727. uint numOutputs;
  7728. Array<CubeMapFace> outputFaces;
  7729. Array<String> outputNames;
  7730. String pass;
  7731. String pixelShaderDefines;
  7732. String pixelShaderName;
  7733. Array<Variant> shaderParameters;
  7734. RenderCommandSortMode sortMode;
  7735. String tag;
  7736. Array<String> textureNames;
  7737. RenderCommandType type;
  7738. bool useFogColor;
  7739. bool useLitBase;
  7740. bool vertexLights;
  7741. String vertexShaderDefines;
  7742. String vertexShaderName;
  7743. };
  7744. class RenderSurface
  7745. {
  7746. // Methods:
  7747. void QueueUpdate();
  7748. // Properties:
  7749. /* readonly */
  7750. int height;
  7751. RenderSurface linkedDepthStencil;
  7752. RenderSurface linkedRenderTarget;
  7753. uint numViewports;
  7754. /* readonly */
  7755. Texture parentTexture;
  7756. RenderSurfaceUpdateMode updateMode;
  7757. /* readonly */
  7758. TextureUsage usage;
  7759. Array<Viewport> viewports;
  7760. /* readonly */
  7761. int width;
  7762. };
  7763. class RenderTargetInfo
  7764. {
  7765. // Properties:
  7766. bool cubemap;
  7767. bool enabled;
  7768. bool filtered;
  7769. uint format;
  7770. String name;
  7771. bool persistent;
  7772. bool sRGB;
  7773. Vector2 size;
  7774. RenderTargetSizeMode sizeMode;
  7775. String tag;
  7776. };
  7777. class Renderer
  7778. {
  7779. // Methods:
  7780. void DrawDebugGeometry(bool) const;
  7781. void ReloadShaders() const;
  7782. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7783. void SetDefaultRenderPath(XMLFile);
  7784. // Properties:
  7785. /* readonly */
  7786. String category;
  7787. /* readonly */
  7788. Material defaultLightRamp;
  7789. /* readonly */
  7790. Material defaultLightSpot;
  7791. /* readonly */
  7792. Material defaultMaterial;
  7793. RenderPath defaultRenderPath;
  7794. /* readonly */
  7795. Zone defaultZone;
  7796. bool drawShadows;
  7797. bool dynamicInstancing;
  7798. bool hdrRendering;
  7799. int materialQuality;
  7800. int maxOccluderTriangles;
  7801. int maxShadowMaps;
  7802. int maxSortedInstances;
  7803. int minInstances;
  7804. float mobileShadowBiasAdd;
  7805. float mobileShadowBiasMul;
  7806. /* readonly */
  7807. uint numBatches;
  7808. /* readonly */
  7809. Array<uint> numGeometries;
  7810. /* readonly */
  7811. Array<uint> numLights;
  7812. /* readonly */
  7813. Array<uint> numOccluders;
  7814. /* readonly */
  7815. uint numPrimitives;
  7816. /* readonly */
  7817. Array<uint> numShadowMaps;
  7818. uint numViewports;
  7819. /* readonly */
  7820. uint numViews;
  7821. float occluderSizeThreshold;
  7822. int occlusionBufferSize;
  7823. /* readonly */
  7824. int refs;
  7825. bool reuseShadowMaps;
  7826. int shadowMapSize;
  7827. int shadowQuality;
  7828. bool specularLighting;
  7829. int textureAnisotropy;
  7830. TextureFilterMode textureFilterMode;
  7831. int textureQuality;
  7832. bool threadedOcclusion;
  7833. /* readonly */
  7834. StringHash type;
  7835. /* readonly */
  7836. String typeName;
  7837. Array<Viewport> viewports;
  7838. /* readonly */
  7839. int weakRefs;
  7840. };
  7841. class Resource
  7842. {
  7843. // Methods:
  7844. bool Load(File);
  7845. bool Load(VectorBuffer&);
  7846. bool Save(File) const;
  7847. bool Save(VectorBuffer&) const;
  7848. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7849. // Properties:
  7850. /* readonly */
  7851. String category;
  7852. /* readonly */
  7853. uint memoryUse;
  7854. String name;
  7855. /* readonly */
  7856. int refs;
  7857. /* readonly */
  7858. StringHash type;
  7859. /* readonly */
  7860. String typeName;
  7861. /* readonly */
  7862. uint useTimer;
  7863. /* readonly */
  7864. int weakRefs;
  7865. };
  7866. class ResourceCache
  7867. {
  7868. // Methods:
  7869. bool AddManualResource(Resource);
  7870. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  7871. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  7872. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  7873. bool BackgroundLoadResource(const String&, const String&, bool = true);
  7874. bool Exists(const String&) const;
  7875. Resource GetExistingResource(StringHash, const String&);
  7876. Resource GetExistingResource(const String&, const String&);
  7877. File GetFile(const String&);
  7878. String GetPreferredResourceDir(const String&) const;
  7879. Resource GetResource(StringHash, const String&, bool = true);
  7880. Resource GetResource(const String&, const String&, bool = true);
  7881. String GetResourceFileName(const String&) const;
  7882. void ReleaseAllResources(bool = false);
  7883. void ReleaseResource(const String&, const String&, bool = false);
  7884. void ReleaseResources(StringHash, bool = false);
  7885. void ReleaseResources(const String&, bool = false);
  7886. void ReleaseResources(const String&, const String&, bool = false);
  7887. bool ReloadResource(Resource);
  7888. void ReloadResourceWithDependencies(const String&);
  7889. void RemovePackageFile(PackageFile, bool = true, bool = false);
  7890. void RemovePackageFile(const String&, bool = true, bool = false);
  7891. void RemoveResourceDir(const String&);
  7892. String SanitateResourceDirName(const String&) const;
  7893. String SanitateResourceName(const String&) const;
  7894. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7895. // Properties:
  7896. bool autoReloadResources;
  7897. /* readonly */
  7898. String category;
  7899. int finishBackgroundResourcesMs;
  7900. Array<uint64> memoryBudget;
  7901. /* readonly */
  7902. Array<uint64> memoryUse;
  7903. /* readonly */
  7904. uint numBackgroundLoadResources;
  7905. /* readonly */
  7906. Array<PackageFile> packageFiles;
  7907. /* readonly */
  7908. int refs;
  7909. /* readonly */
  7910. Array<String> resourceDirs;
  7911. bool returnFailedResources;
  7912. /* readonly */
  7913. bool seachPackagesFirst;
  7914. /* writeonly */
  7915. bool searchPackagesFirst;
  7916. /* readonly */
  7917. uint64 totalMemoryUse;
  7918. /* readonly */
  7919. StringHash type;
  7920. /* readonly */
  7921. String typeName;
  7922. /* readonly */
  7923. int weakRefs;
  7924. };
  7925. class ResourceRef
  7926. {
  7927. // Properties:
  7928. String name;
  7929. StringHash type;
  7930. };
  7931. class ResourceRefList
  7932. {
  7933. // Methods:
  7934. void Resize(uint);
  7935. // Properties:
  7936. /* readonly */
  7937. bool empty;
  7938. /* readonly */
  7939. uint length;
  7940. Array<String> names;
  7941. StringHash type;
  7942. };
  7943. class RigidBody
  7944. {
  7945. // Methods:
  7946. void Activate();
  7947. void ApplyAttributes();
  7948. void ApplyForce(const Vector3&);
  7949. void ApplyForce(const Vector3&, const Vector3&);
  7950. void ApplyImpulse(const Vector3&);
  7951. void ApplyImpulse(const Vector3&, const Vector3&);
  7952. void ApplyTorque(const Vector3&);
  7953. void ApplyTorqueImpulse(const Vector3&);
  7954. void DisableMassUpdate();
  7955. void DrawDebugGeometry(DebugRenderer, bool);
  7956. void EnableMassUpdate();
  7957. Variant GetAttribute(const String&) const;
  7958. ValueAnimation GetAttributeAnimation(const String&) const;
  7959. float GetAttributeAnimationSpeed(const String&) const;
  7960. float GetAttributeAnimationTime(const String&) const;
  7961. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7962. Variant GetAttributeDefault(const String&) const;
  7963. bool GetInterceptNetworkUpdate(const String&) const;
  7964. Vector3 GetVelocityAtPoint(const Vector3&) const;
  7965. bool Load(File, bool = false);
  7966. bool Load(VectorBuffer&, bool = false);
  7967. bool LoadJSON(const JSONValue&, bool = false);
  7968. bool LoadXML(const XMLElement&, bool = false);
  7969. void MarkNetworkUpdate() const;
  7970. void ReAddBodyToWorld();
  7971. void Remove();
  7972. void RemoveAttributeAnimation(const String&);
  7973. void RemoveInstanceDefault();
  7974. void RemoveObjectAnimation();
  7975. void ResetForces();
  7976. void ResetToDefault();
  7977. bool Save(File) const;
  7978. bool Save(VectorBuffer&) const;
  7979. bool SaveJSON(JSONValue&) const;
  7980. bool SaveXML(XMLElement&) const;
  7981. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7982. void SetAnimationTime(float);
  7983. bool SetAttribute(const String&, const Variant&);
  7984. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7985. void SetAttributeAnimationSpeed(const String&, float);
  7986. void SetAttributeAnimationTime(const String&, float);
  7987. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7988. void SetCollisionLayerAndMask(uint, uint);
  7989. void SetInterceptNetworkUpdate(const String&, bool);
  7990. void SetTransform(const Vector3&, const Quaternion&);
  7991. // Properties:
  7992. /* readonly */
  7993. bool active;
  7994. float angularDamping;
  7995. Vector3 angularFactor;
  7996. float angularRestThreshold;
  7997. Vector3 angularVelocity;
  7998. bool animationEnabled;
  7999. Vector3 anisotropicFriction;
  8000. /* readonly */
  8001. Array<Variant> attributeDefaults;
  8002. /* readonly */
  8003. Array<AttributeInfo> attributeInfos;
  8004. Array<Variant> attributes;
  8005. /* readonly */
  8006. String category;
  8007. float ccdMotionThreshold;
  8008. float ccdRadius;
  8009. /* readonly */
  8010. Vector3 centerOfMass;
  8011. /* readonly */
  8012. Array<RigidBody> collidingBodies;
  8013. CollisionEventMode collisionEventMode;
  8014. uint collisionLayer;
  8015. uint collisionMask;
  8016. float contactProcessingThreshold;
  8017. bool enabled;
  8018. /* readonly */
  8019. bool enabledEffective;
  8020. float friction;
  8021. Vector3 gravityOverride;
  8022. /* readonly */
  8023. uint id;
  8024. bool kinematic;
  8025. float linearDamping;
  8026. Vector3 linearFactor;
  8027. float linearRestThreshold;
  8028. Vector3 linearVelocity;
  8029. float mass;
  8030. /* readonly */
  8031. Node node;
  8032. /* readonly */
  8033. uint numAttributes;
  8034. ObjectAnimation objectAnimation;
  8035. Vector3 position;
  8036. /* readonly */
  8037. int refs;
  8038. float restitution;
  8039. float rollingFriction;
  8040. Quaternion rotation;
  8041. bool temporary;
  8042. bool trigger;
  8043. /* readonly */
  8044. StringHash type;
  8045. /* readonly */
  8046. String typeName;
  8047. bool useGravity;
  8048. /* readonly */
  8049. int weakRefs;
  8050. };
  8051. class RigidBody2D
  8052. {
  8053. // Methods:
  8054. void ApplyAngularImpulse(float, bool);
  8055. void ApplyAttributes();
  8056. void ApplyForce(const Vector2&, const Vector2&, bool);
  8057. void ApplyForceToCenter(const Vector2&, bool);
  8058. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8059. void ApplyTorque(float, bool);
  8060. void DrawDebugGeometry(DebugRenderer, bool);
  8061. Variant GetAttribute(const String&) const;
  8062. ValueAnimation GetAttributeAnimation(const String&) const;
  8063. float GetAttributeAnimationSpeed(const String&) const;
  8064. float GetAttributeAnimationTime(const String&) const;
  8065. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8066. Variant GetAttributeDefault(const String&) const;
  8067. bool GetInterceptNetworkUpdate(const String&) const;
  8068. bool Load(File, bool = false);
  8069. bool Load(VectorBuffer&, bool = false);
  8070. bool LoadJSON(const JSONValue&, bool = false);
  8071. bool LoadXML(const XMLElement&, bool = false);
  8072. void MarkNetworkUpdate() const;
  8073. void Remove();
  8074. void RemoveAttributeAnimation(const String&);
  8075. void RemoveInstanceDefault();
  8076. void RemoveObjectAnimation();
  8077. void ResetToDefault();
  8078. bool Save(File) const;
  8079. bool Save(VectorBuffer&) const;
  8080. bool SaveJSON(JSONValue&) const;
  8081. bool SaveXML(XMLElement&) const;
  8082. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8083. void SetAnimationTime(float);
  8084. bool SetAttribute(const String&, const Variant&);
  8085. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8086. void SetAttributeAnimationSpeed(const String&, float);
  8087. void SetAttributeAnimationTime(const String&, float);
  8088. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8089. void SetInterceptNetworkUpdate(const String&, bool);
  8090. // Properties:
  8091. bool allowSleep;
  8092. float angularDamping;
  8093. bool animationEnabled;
  8094. /* readonly */
  8095. Array<Variant> attributeDefaults;
  8096. /* readonly */
  8097. Array<AttributeInfo> attributeInfos;
  8098. Array<Variant> attributes;
  8099. bool awake;
  8100. BodyType2D bodyType;
  8101. bool bullet;
  8102. /* readonly */
  8103. String category;
  8104. bool enabled;
  8105. /* readonly */
  8106. bool enabledEffective;
  8107. bool fixedRotation;
  8108. float gravityScale;
  8109. /* readonly */
  8110. uint id;
  8111. float inertia;
  8112. float linearDamping;
  8113. Vector2 linearVelocity;
  8114. float mass;
  8115. Vector2 massCenter;
  8116. /* readonly */
  8117. Node node;
  8118. /* readonly */
  8119. uint numAttributes;
  8120. ObjectAnimation objectAnimation;
  8121. /* readonly */
  8122. int refs;
  8123. bool temporary;
  8124. /* readonly */
  8125. StringHash type;
  8126. /* readonly */
  8127. String typeName;
  8128. bool useFixtureMass;
  8129. /* readonly */
  8130. int weakRefs;
  8131. };
  8132. class Scene
  8133. {
  8134. // Methods:
  8135. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8136. void AddRequiredPackageFile(PackageFile);
  8137. void ApplyAttributes();
  8138. void Clear(bool = true, bool = true);
  8139. void ClearRequiredPackageFiles();
  8140. Component CloneComponent(Component, CreateMode, uint = 0);
  8141. Component CloneComponent(Component, uint = 0);
  8142. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8143. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8144. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8145. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8146. Variant GetAttribute(const String&) const;
  8147. ValueAnimation GetAttributeAnimation(const String&) const;
  8148. float GetAttributeAnimationSpeed(const String&) const;
  8149. float GetAttributeAnimationTime(const String&) const;
  8150. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8151. Variant GetAttributeDefault(const String&) const;
  8152. Node GetChild(const String&, bool = false) const;
  8153. Array<Node> GetChildren(bool = false) const;
  8154. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8155. Array<Node> GetChildrenWithScript(bool = false) const;
  8156. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8157. Component GetComponent(const String&, bool = false) const;
  8158. Component GetComponent(uint) const;
  8159. Array<Component> GetComponents() const;
  8160. Array<Component> GetComponents(const String&, bool = false) const;
  8161. bool GetInterceptNetworkUpdate(const String&) const;
  8162. Node GetNode(uint) const;
  8163. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8164. Component GetParentComponent(const String&, bool = false) const;
  8165. ScriptObject GetScriptObject() const;
  8166. ScriptObject GetScriptObject(const String&) const;
  8167. bool HasComponent(const String&) const;
  8168. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8169. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8170. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8171. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8172. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8173. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8174. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8175. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8176. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8177. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8178. bool Load(File, bool = false);
  8179. bool Load(VectorBuffer&, bool = false);
  8180. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8181. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8182. bool LoadJSON(File);
  8183. bool LoadJSON(VectorBuffer&);
  8184. bool LoadJSON(const JSONValue&, bool = false);
  8185. bool LoadXML(File);
  8186. bool LoadXML(VectorBuffer&);
  8187. bool LoadXML(const XMLElement&, bool = false);
  8188. Vector3 LocalToWorld(const Vector3&) const;
  8189. Vector3 LocalToWorld(const Vector4&) const;
  8190. Vector2 LocalToWorld2D(const Vector2&) const;
  8191. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8192. void MarkNetworkUpdate() const;
  8193. void Pitch(float, TransformSpace = TS_LOCAL);
  8194. void RegisterVar(const String&);
  8195. void Remove();
  8196. void RemoveAllChildren();
  8197. void RemoveAllComponents();
  8198. void RemoveAttributeAnimation(const String&);
  8199. void RemoveChild(Node);
  8200. void RemoveChildren(bool, bool, bool);
  8201. void RemoveComponent(Component);
  8202. void RemoveComponent(const String&);
  8203. void RemoveComponents(bool, bool);
  8204. void RemoveComponents(const String&);
  8205. void RemoveInstanceDefault();
  8206. void RemoveObjectAnimation();
  8207. void ResetToDefault();
  8208. void Roll(float, TransformSpace = TS_LOCAL);
  8209. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8210. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8211. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8212. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8213. bool Save(File) const;
  8214. bool Save(VectorBuffer&) const;
  8215. bool SaveJSON(File, const String& = "\t");
  8216. bool SaveJSON(JSONValue&) const;
  8217. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8218. bool SaveXML(File, const String& = "\t");
  8219. bool SaveXML(VectorBuffer&, const String& = "\t");
  8220. bool SaveXML(XMLElement&) const;
  8221. void Scale(const Vector3&);
  8222. void Scale(float);
  8223. void Scale2D(const Vector2&);
  8224. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8225. void SetAnimationTime(float);
  8226. bool SetAttribute(const String&, const Variant&);
  8227. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8228. void SetAttributeAnimationSpeed(const String&, float);
  8229. void SetAttributeAnimationTime(const String&, float);
  8230. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8231. void SetInterceptNetworkUpdate(const String&, bool);
  8232. void SetPosition2D(float, float);
  8233. void SetScale(float);
  8234. void SetScale2D(float, float);
  8235. void SetTransform(const Vector3&, const Quaternion&);
  8236. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8237. void SetTransform(const Vector3&, const Quaternion&, float);
  8238. void SetTransform2D(const Vector2&, float);
  8239. void SetTransform2D(const Vector2&, float, const Vector2&);
  8240. void SetTransform2D(const Vector2&, float, float);
  8241. void SetWorldTransform(const Vector3&, const Quaternion&);
  8242. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8243. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8244. void SetWorldTransform2D(const Vector2&, float);
  8245. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8246. void SetWorldTransform2D(const Vector2&, float, float);
  8247. void StopAsyncLoading();
  8248. const String& GetVarName(StringHash) const;
  8249. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8250. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8251. void UnregisterAllVars(const String&);
  8252. void UnregisterVar(const String&);
  8253. void Update(float);
  8254. Vector3 WorldToLocal(const Vector3&) const;
  8255. Vector3 WorldToLocal(const Vector4&) const;
  8256. Vector2 WorldToLocal2D(const Vector2&) const;
  8257. void Yaw(float, TransformSpace = TS_LOCAL);
  8258. // Properties:
  8259. bool animationEnabled;
  8260. /* readonly */
  8261. LoadMode asyncLoadMode;
  8262. /* readonly */
  8263. bool asyncLoading;
  8264. int asyncLoadingMs;
  8265. /* readonly */
  8266. float asyncProgress;
  8267. /* readonly */
  8268. Array<Variant> attributeDefaults;
  8269. /* readonly */
  8270. Array<AttributeInfo> attributeInfos;
  8271. Array<Variant> attributes;
  8272. /* readonly */
  8273. String category;
  8274. /* readonly */
  8275. uint checksum;
  8276. /* readonly */
  8277. Array<Node> children;
  8278. /* readonly */
  8279. Array<Component> components;
  8280. /* readonly */
  8281. DebugRenderer debugRenderer;
  8282. Vector3 direction;
  8283. float elapsedTime;
  8284. /* readonly */
  8285. String fileName;
  8286. /* readonly */
  8287. uint id;
  8288. String name;
  8289. /* readonly */
  8290. uint numAllChildren;
  8291. /* readonly */
  8292. uint numAttributes;
  8293. /* readonly */
  8294. uint numChildren;
  8295. /* readonly */
  8296. uint numComponents;
  8297. ObjectAnimation objectAnimation;
  8298. /* readonly */
  8299. Octree octree;
  8300. Node parent;
  8301. /* readonly */
  8302. PhysicsWorld physicsWorld;
  8303. /* readonly */
  8304. PhysicsWorld2D physicsWorld2D;
  8305. Vector3 position;
  8306. Vector2 position2D;
  8307. /* readonly */
  8308. int refs;
  8309. /* readonly */
  8310. Array<PackageFile> requiredPackageFiles;
  8311. /* readonly */
  8312. Vector3 right;
  8313. Quaternion rotation;
  8314. float rotation2D;
  8315. Vector3 scale;
  8316. Vector2 scale2D;
  8317. /* readonly */
  8318. ScriptObject scriptObject;
  8319. float smoothingConstant;
  8320. float snapThreshold;
  8321. bool temporary;
  8322. float timeScale;
  8323. /* readonly */
  8324. Matrix3x4 transform;
  8325. /* readonly */
  8326. StringHash type;
  8327. /* readonly */
  8328. String typeName;
  8329. /* readonly */
  8330. Vector3 up;
  8331. bool updateEnabled;
  8332. /* readonly */
  8333. VariantMap vars;
  8334. /* readonly */
  8335. int weakRefs;
  8336. Vector3 worldDirection;
  8337. Vector3 worldPosition;
  8338. Vector2 worldPosition2D;
  8339. /* readonly */
  8340. Vector3 worldRight;
  8341. Quaternion worldRotation;
  8342. float worldRotation2D;
  8343. Vector3 worldScale;
  8344. Vector2 worldScale2D;
  8345. /* readonly */
  8346. Matrix3x4 worldTransform;
  8347. /* readonly */
  8348. Vector3 worldUp;
  8349. };
  8350. class Script
  8351. {
  8352. // Methods:
  8353. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8354. bool Execute(const String&);
  8355. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8356. // Properties:
  8357. /* readonly */
  8358. String category;
  8359. Scene defaultScene;
  8360. ScriptFile defaultScriptFile;
  8361. bool executeConsoleCommands;
  8362. /* readonly */
  8363. int refs;
  8364. /* readonly */
  8365. StringHash type;
  8366. /* readonly */
  8367. String typeName;
  8368. /* readonly */
  8369. int weakRefs;
  8370. };
  8371. class ScriptFile
  8372. {
  8373. // Methods:
  8374. void ClearDelayedExecute(const String& = String ( ));
  8375. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8376. bool Execute(const String&, const Array<Variant> = null);
  8377. bool Load(File);
  8378. bool Load(VectorBuffer&);
  8379. bool Save(File) const;
  8380. bool Save(VectorBuffer&) const;
  8381. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8382. // Properties:
  8383. /* readonly */
  8384. String category;
  8385. /* readonly */
  8386. bool compiled;
  8387. /* readonly */
  8388. uint memoryUse;
  8389. String name;
  8390. /* readonly */
  8391. int refs;
  8392. /* readonly */
  8393. StringHash type;
  8394. /* readonly */
  8395. String typeName;
  8396. /* readonly */
  8397. uint useTimer;
  8398. /* readonly */
  8399. int weakRefs;
  8400. };
  8401. class ScriptInstance
  8402. {
  8403. // Methods:
  8404. void ApplyAttributes();
  8405. void ClearDelayedExecute(const String& = String ( ));
  8406. bool CreateObject(ScriptFile, const String&);
  8407. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8408. void DrawDebugGeometry(DebugRenderer, bool);
  8409. bool Execute(const String&, const Array<Variant> = null);
  8410. Variant GetAttribute(const String&) const;
  8411. ValueAnimation GetAttributeAnimation(const String&) const;
  8412. float GetAttributeAnimationSpeed(const String&) const;
  8413. float GetAttributeAnimationTime(const String&) const;
  8414. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8415. Variant GetAttributeDefault(const String&) const;
  8416. bool GetInterceptNetworkUpdate(const String&) const;
  8417. bool HasMethod(const String&) const;
  8418. bool IsA(const String&) const;
  8419. bool Load(File, bool = false);
  8420. bool Load(VectorBuffer&, bool = false);
  8421. bool LoadJSON(const JSONValue&, bool = false);
  8422. bool LoadXML(const XMLElement&, bool = false);
  8423. void MarkNetworkUpdate() const;
  8424. void Remove();
  8425. void RemoveAttributeAnimation(const String&);
  8426. void RemoveInstanceDefault();
  8427. void RemoveObjectAnimation();
  8428. void ResetToDefault();
  8429. bool Save(File) const;
  8430. bool Save(VectorBuffer&) const;
  8431. bool SaveJSON(JSONValue&) const;
  8432. bool SaveXML(XMLElement&) const;
  8433. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8434. void SetAnimationTime(float);
  8435. bool SetAttribute(const String&, const Variant&);
  8436. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8437. void SetAttributeAnimationSpeed(const String&, float);
  8438. void SetAttributeAnimationTime(const String&, float);
  8439. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8440. void SetInterceptNetworkUpdate(const String&, bool);
  8441. // Properties:
  8442. bool animationEnabled;
  8443. /* readonly */
  8444. Array<Variant> attributeDefaults;
  8445. /* readonly */
  8446. Array<AttributeInfo> attributeInfos;
  8447. Array<Variant> attributes;
  8448. /* readonly */
  8449. String category;
  8450. String className;
  8451. bool enabled;
  8452. /* readonly */
  8453. bool enabledEffective;
  8454. /* readonly */
  8455. uint id;
  8456. /* readonly */
  8457. Node node;
  8458. /* readonly */
  8459. uint numAttributes;
  8460. ObjectAnimation objectAnimation;
  8461. /* readonly */
  8462. int refs;
  8463. ScriptFile scriptFile;
  8464. /* readonly */
  8465. ScriptObject scriptObject;
  8466. bool temporary;
  8467. /* readonly */
  8468. StringHash type;
  8469. /* readonly */
  8470. String typeName;
  8471. /* readonly */
  8472. int weakRefs;
  8473. };
  8474. class ScriptObject
  8475. {
  8476. };
  8477. class ScrollBar
  8478. {
  8479. // Methods:
  8480. void AddChild(UIElement);
  8481. void ApplyAttributes();
  8482. void BringToFront();
  8483. void ChangeValue(float);
  8484. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8485. void DisableLayoutUpdate();
  8486. IntVector2 ElementToScreen(const IntVector2&);
  8487. void EnableLayoutUpdate();
  8488. uint FindChild(UIElement) const;
  8489. Variant GetAttribute(const String&) const;
  8490. ValueAnimation GetAttributeAnimation(const String&) const;
  8491. float GetAttributeAnimationSpeed(const String&) const;
  8492. float GetAttributeAnimationTime(const String&) const;
  8493. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8494. Variant GetAttributeDefault(const String&) const;
  8495. UIElement GetChild(const String&, bool = false) const;
  8496. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8497. Array<UIElement> GetChildren(bool = false) const;
  8498. UIElement GetElementEventSender() const;
  8499. bool GetInterceptNetworkUpdate(const String&) const;
  8500. uint GetNumChildren(bool) const;
  8501. void InsertChild(uint, UIElement);
  8502. bool IsInside(IntVector2, bool);
  8503. bool IsInsideCombined(IntVector2, bool);
  8504. bool Load(File, bool = false);
  8505. bool Load(VectorBuffer&, bool = false);
  8506. bool LoadChildXML(XMLFile, XMLFile = null);
  8507. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8508. bool LoadJSON(const JSONValue&, bool = false);
  8509. bool LoadXML(File);
  8510. bool LoadXML(VectorBuffer&);
  8511. bool LoadXML(XMLFile, XMLFile);
  8512. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8513. bool LoadXML(const XMLElement&, bool = false);
  8514. void MarkNetworkUpdate() const;
  8515. void Remove();
  8516. void RemoveAllChildren();
  8517. void RemoveAttributeAnimation(const String&);
  8518. void RemoveChild(UIElement, uint = 0);
  8519. void RemoveChild(uint);
  8520. void RemoveInstanceDefault();
  8521. void RemoveObjectAnimation();
  8522. void ResetDeepEnabled();
  8523. void ResetToDefault();
  8524. bool Save(File) const;
  8525. bool Save(VectorBuffer&) const;
  8526. bool SaveJSON(JSONValue&) const;
  8527. bool SaveXML(File, const String& = "\t");
  8528. bool SaveXML(VectorBuffer&, const String& = "\t");
  8529. bool SaveXML(XMLElement&) const;
  8530. IntVector2 ScreenToElement(const IntVector2&);
  8531. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8532. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8533. void SetAnimationTime(float);
  8534. bool SetAttribute(const String&, const Variant&);
  8535. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8536. void SetAttributeAnimationSpeed(const String&, float);
  8537. void SetAttributeAnimationTime(const String&, float);
  8538. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8539. void SetDeepEnabled(bool);
  8540. void SetEnabledRecursive(bool);
  8541. void SetFixedHeight(int);
  8542. void SetFixedSize(int, int);
  8543. void SetFixedWidth(int);
  8544. void SetInterceptNetworkUpdate(const String&, bool);
  8545. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8546. void SetMaxSize(int, int);
  8547. void SetMinSize(int, int);
  8548. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8549. void SetPosition(int, int);
  8550. void SetSize(int, int);
  8551. bool SetStyle(const String&, XMLFile = null);
  8552. bool SetStyle(const XMLElement&);
  8553. bool SetStyleAuto(XMLFile = null);
  8554. void StepBack();
  8555. void StepForward();
  8556. void UpdateLayout();
  8557. const Variant& GetVar(const StringHash&);
  8558. // Properties:
  8559. bool animationEnabled;
  8560. /* readonly */
  8561. Array<Variant> attributeDefaults;
  8562. /* readonly */
  8563. Array<AttributeInfo> attributeInfos;
  8564. Array<Variant> attributes;
  8565. /* readonly */
  8566. Button backButton;
  8567. bool bringToBack;
  8568. bool bringToFront;
  8569. /* readonly */
  8570. String category;
  8571. /* readonly */
  8572. IntVector2 childOffset;
  8573. /* readonly */
  8574. Array<UIElement> children;
  8575. IntRect clipBorder;
  8576. bool clipChildren;
  8577. /* writeonly */
  8578. Color color;
  8579. /* readonly */
  8580. bool colorGradient;
  8581. Array<Color> colors;
  8582. /* readonly */
  8583. IntRect combinedScreenRect;
  8584. XMLFile defaultStyle;
  8585. /* readonly */
  8586. float derivedOpacity;
  8587. /* readonly */
  8588. uint dragButtonCombo;
  8589. /* readonly */
  8590. int dragButtonCount;
  8591. uint dragDropMode;
  8592. bool editable;
  8593. /* readonly */
  8594. float effectiveScrollStep;
  8595. bool elementEventSender;
  8596. bool enabled;
  8597. /* readonly */
  8598. bool enabledSelf;
  8599. /* readonly */
  8600. bool fixedHeight;
  8601. /* readonly */
  8602. bool fixedSize;
  8603. /* readonly */
  8604. bool fixedWidth;
  8605. bool focus;
  8606. FocusMode focusMode;
  8607. /* readonly */
  8608. Button forwardButton;
  8609. int height;
  8610. HorizontalAlignment horizontalAlignment;
  8611. /* readonly */
  8612. bool hovering;
  8613. int indent;
  8614. int indentSpacing;
  8615. /* readonly */
  8616. int indentWidth;
  8617. bool internal;
  8618. IntRect layoutBorder;
  8619. Vector2 layoutFlexScale;
  8620. LayoutMode layoutMode;
  8621. int layoutSpacing;
  8622. int maxHeight;
  8623. IntVector2 maxSize;
  8624. int maxWidth;
  8625. int minHeight;
  8626. IntVector2 minSize;
  8627. int minWidth;
  8628. String name;
  8629. /* readonly */
  8630. uint numAllChildren;
  8631. /* readonly */
  8632. uint numAttributes;
  8633. /* readonly */
  8634. uint numChildren;
  8635. ObjectAnimation objectAnimation;
  8636. float opacity;
  8637. Orientation orientation;
  8638. UIElement parent;
  8639. IntVector2 position;
  8640. int priority;
  8641. float range;
  8642. /* readonly */
  8643. int refs;
  8644. /* readonly */
  8645. UIElement root;
  8646. /* readonly */
  8647. IntVector2 screenPosition;
  8648. float scrollStep;
  8649. bool selected;
  8650. IntVector2 size;
  8651. /* readonly */
  8652. Slider slider;
  8653. bool sortChildren;
  8654. float stepFactor;
  8655. String style;
  8656. bool temporary;
  8657. TraversalMode traversalMode;
  8658. /* readonly */
  8659. StringHash type;
  8660. /* readonly */
  8661. String typeName;
  8662. bool useDerivedOpacity;
  8663. float value;
  8664. /* readonly */
  8665. VariantMap vars;
  8666. VerticalAlignment verticalAlignment;
  8667. bool visible;
  8668. /* readonly */
  8669. bool visibleEffective;
  8670. /* readonly */
  8671. int weakRefs;
  8672. int width;
  8673. };
  8674. class ScrollView
  8675. {
  8676. // Methods:
  8677. void AddChild(UIElement);
  8678. void ApplyAttributes();
  8679. void BringToFront();
  8680. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8681. void DisableLayoutUpdate();
  8682. IntVector2 ElementToScreen(const IntVector2&);
  8683. void EnableLayoutUpdate();
  8684. uint FindChild(UIElement) const;
  8685. Variant GetAttribute(const String&) const;
  8686. ValueAnimation GetAttributeAnimation(const String&) const;
  8687. float GetAttributeAnimationSpeed(const String&) const;
  8688. float GetAttributeAnimationTime(const String&) const;
  8689. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8690. Variant GetAttributeDefault(const String&) const;
  8691. UIElement GetChild(const String&, bool = false) const;
  8692. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8693. Array<UIElement> GetChildren(bool = false) const;
  8694. UIElement GetElementEventSender() const;
  8695. bool GetInterceptNetworkUpdate(const String&) const;
  8696. uint GetNumChildren(bool) const;
  8697. void InsertChild(uint, UIElement);
  8698. bool IsInside(IntVector2, bool);
  8699. bool IsInsideCombined(IntVector2, bool);
  8700. bool Load(File, bool = false);
  8701. bool Load(VectorBuffer&, bool = false);
  8702. bool LoadChildXML(XMLFile, XMLFile = null);
  8703. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8704. bool LoadJSON(const JSONValue&, bool = false);
  8705. bool LoadXML(File);
  8706. bool LoadXML(VectorBuffer&);
  8707. bool LoadXML(XMLFile, XMLFile);
  8708. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8709. bool LoadXML(const XMLElement&, bool = false);
  8710. void MarkNetworkUpdate() const;
  8711. void Remove();
  8712. void RemoveAllChildren();
  8713. void RemoveAttributeAnimation(const String&);
  8714. void RemoveChild(UIElement, uint = 0);
  8715. void RemoveChild(uint);
  8716. void RemoveInstanceDefault();
  8717. void RemoveObjectAnimation();
  8718. void ResetDeepEnabled();
  8719. void ResetToDefault();
  8720. bool Save(File) const;
  8721. bool Save(VectorBuffer&) const;
  8722. bool SaveJSON(JSONValue&) const;
  8723. bool SaveXML(File, const String& = "\t");
  8724. bool SaveXML(VectorBuffer&, const String& = "\t");
  8725. bool SaveXML(XMLElement&) const;
  8726. IntVector2 ScreenToElement(const IntVector2&);
  8727. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8728. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8729. void SetAnimationTime(float);
  8730. bool SetAttribute(const String&, const Variant&);
  8731. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8732. void SetAttributeAnimationSpeed(const String&, float);
  8733. void SetAttributeAnimationTime(const String&, float);
  8734. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8735. void SetDeepEnabled(bool);
  8736. void SetEnabledRecursive(bool);
  8737. void SetFixedHeight(int);
  8738. void SetFixedSize(int, int);
  8739. void SetFixedWidth(int);
  8740. void SetInterceptNetworkUpdate(const String&, bool);
  8741. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8742. void SetMaxSize(int, int);
  8743. void SetMinSize(int, int);
  8744. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8745. void SetPosition(int, int);
  8746. void SetScrollBarsVisible(bool, bool);
  8747. void SetSize(int, int);
  8748. bool SetStyle(const String&, XMLFile = null);
  8749. bool SetStyle(const XMLElement&);
  8750. bool SetStyleAuto(XMLFile = null);
  8751. void SetViewPosition(int, int);
  8752. void UpdateLayout();
  8753. const Variant& GetVar(const StringHash&);
  8754. // Properties:
  8755. bool animationEnabled;
  8756. /* readonly */
  8757. Array<Variant> attributeDefaults;
  8758. /* readonly */
  8759. Array<AttributeInfo> attributeInfos;
  8760. Array<Variant> attributes;
  8761. bool autoDisableChildren;
  8762. float autoDisableThreshold;
  8763. bool bringToBack;
  8764. bool bringToFront;
  8765. /* readonly */
  8766. String category;
  8767. /* readonly */
  8768. IntVector2 childOffset;
  8769. /* readonly */
  8770. Array<UIElement> children;
  8771. IntRect clipBorder;
  8772. bool clipChildren;
  8773. /* writeonly */
  8774. Color color;
  8775. /* readonly */
  8776. bool colorGradient;
  8777. Array<Color> colors;
  8778. /* readonly */
  8779. IntRect combinedScreenRect;
  8780. UIElement contentElement;
  8781. XMLFile defaultStyle;
  8782. /* readonly */
  8783. float derivedOpacity;
  8784. /* readonly */
  8785. uint dragButtonCombo;
  8786. /* readonly */
  8787. int dragButtonCount;
  8788. uint dragDropMode;
  8789. bool editable;
  8790. bool elementEventSender;
  8791. bool enabled;
  8792. /* readonly */
  8793. bool enabledSelf;
  8794. /* readonly */
  8795. bool fixedHeight;
  8796. /* readonly */
  8797. bool fixedSize;
  8798. /* readonly */
  8799. bool fixedWidth;
  8800. bool focus;
  8801. FocusMode focusMode;
  8802. int height;
  8803. HorizontalAlignment horizontalAlignment;
  8804. /* readonly */
  8805. ScrollBar horizontalScrollBar;
  8806. /* readonly */
  8807. bool hovering;
  8808. int indent;
  8809. int indentSpacing;
  8810. /* readonly */
  8811. int indentWidth;
  8812. bool internal;
  8813. IntRect layoutBorder;
  8814. Vector2 layoutFlexScale;
  8815. LayoutMode layoutMode;
  8816. int layoutSpacing;
  8817. int maxHeight;
  8818. IntVector2 maxSize;
  8819. int maxWidth;
  8820. int minHeight;
  8821. IntVector2 minSize;
  8822. int minWidth;
  8823. String name;
  8824. /* readonly */
  8825. uint numAllChildren;
  8826. /* readonly */
  8827. uint numAttributes;
  8828. /* readonly */
  8829. uint numChildren;
  8830. ObjectAnimation objectAnimation;
  8831. float opacity;
  8832. float pageStep;
  8833. UIElement parent;
  8834. IntVector2 position;
  8835. int priority;
  8836. /* readonly */
  8837. int refs;
  8838. /* readonly */
  8839. UIElement root;
  8840. /* readonly */
  8841. IntVector2 screenPosition;
  8842. bool scrollBarsAutoVisible;
  8843. float scrollDeceleration;
  8844. /* readonly */
  8845. BorderImage scrollPanel;
  8846. float scrollSnapEpsilon;
  8847. float scrollStep;
  8848. bool selected;
  8849. IntVector2 size;
  8850. bool sortChildren;
  8851. String style;
  8852. bool temporary;
  8853. TraversalMode traversalMode;
  8854. /* readonly */
  8855. StringHash type;
  8856. /* readonly */
  8857. String typeName;
  8858. bool useDerivedOpacity;
  8859. /* readonly */
  8860. VariantMap vars;
  8861. VerticalAlignment verticalAlignment;
  8862. /* readonly */
  8863. ScrollBar verticalScrollBar;
  8864. IntVector2 viewPosition;
  8865. bool visible;
  8866. /* readonly */
  8867. bool visibleEffective;
  8868. /* readonly */
  8869. int weakRefs;
  8870. int width;
  8871. };
  8872. class Serializable
  8873. {
  8874. // Methods:
  8875. void ApplyAttributes();
  8876. Variant GetAttribute(const String&) const;
  8877. Variant GetAttributeDefault(const String&) const;
  8878. bool GetInterceptNetworkUpdate(const String&) const;
  8879. bool Load(File, bool = false);
  8880. bool Load(VectorBuffer&, bool = false);
  8881. bool LoadJSON(const JSONValue&, bool = false);
  8882. bool LoadXML(const XMLElement&, bool = false);
  8883. void MarkNetworkUpdate() const;
  8884. void RemoveInstanceDefault();
  8885. void ResetToDefault();
  8886. bool Save(File) const;
  8887. bool Save(VectorBuffer&) const;
  8888. bool SaveJSON(JSONValue&) const;
  8889. bool SaveXML(XMLElement&) const;
  8890. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8891. bool SetAttribute(const String&, const Variant&);
  8892. void SetInterceptNetworkUpdate(const String&, bool);
  8893. // Properties:
  8894. /* readonly */
  8895. Array<Variant> attributeDefaults;
  8896. /* readonly */
  8897. Array<AttributeInfo> attributeInfos;
  8898. Array<Variant> attributes;
  8899. /* readonly */
  8900. String category;
  8901. /* readonly */
  8902. uint numAttributes;
  8903. /* readonly */
  8904. int refs;
  8905. bool temporary;
  8906. /* readonly */
  8907. StringHash type;
  8908. /* readonly */
  8909. String typeName;
  8910. /* readonly */
  8911. int weakRefs;
  8912. };
  8913. class Serializer
  8914. {
  8915. // Methods:
  8916. uint Write(Array<uint8>);
  8917. bool WriteBool(bool);
  8918. bool WriteBoundingBox(const BoundingBox&);
  8919. bool WriteByte(int8);
  8920. bool WriteColor(const Color&);
  8921. bool WriteDouble(double);
  8922. bool WriteFileID(const String&);
  8923. bool WriteFloat(float);
  8924. bool WriteInt(int);
  8925. bool WriteIntRect(const IntRect&);
  8926. bool WriteIntVector2(const IntVector2&);
  8927. bool WriteLine(const String&);
  8928. bool WriteMatrix3(const Matrix3&);
  8929. bool WriteMatrix3x4(const Matrix3x4&);
  8930. bool WriteMatrix4(const Matrix4&);
  8931. bool WriteNetID(uint);
  8932. bool WritePackedQuaternion(const Quaternion&);
  8933. bool WritePackedVector3(const Vector3&, float);
  8934. bool WriteQuaternion(const Quaternion&);
  8935. bool WriteShort(int16);
  8936. bool WriteString(const String&);
  8937. bool WriteStringHash(const StringHash&);
  8938. bool WriteUByte(uint8);
  8939. bool WriteUInt(uint);
  8940. bool WriteUShort(uint16);
  8941. bool WriteVLE(uint);
  8942. bool WriteVariant(const Variant&);
  8943. bool WriteVariantMap(const VariantMap&);
  8944. bool WriteVector2(const Vector2&);
  8945. bool WriteVector3(const Vector3&);
  8946. bool WriteVector4(const Vector4&);
  8947. bool WriteVectorBuffer(const VectorBuffer&);
  8948. };
  8949. class Skeleton
  8950. {
  8951. // Methods:
  8952. Bone GetBone(const String&) const;
  8953. void Reset();
  8954. // Properties:
  8955. /* readonly */
  8956. Array<Bone> bones;
  8957. /* readonly */
  8958. uint numBones;
  8959. /* readonly */
  8960. Bone rootBone;
  8961. };
  8962. class Skybox
  8963. {
  8964. // Methods:
  8965. void ApplyAttributes();
  8966. void ApplyMaterialList(const String& = String ( ));
  8967. void DrawDebugGeometry(DebugRenderer, bool);
  8968. Variant GetAttribute(const String&) const;
  8969. ValueAnimation GetAttributeAnimation(const String&) const;
  8970. float GetAttributeAnimationSpeed(const String&) const;
  8971. float GetAttributeAnimationTime(const String&) const;
  8972. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8973. Variant GetAttributeDefault(const String&) const;
  8974. bool GetInterceptNetworkUpdate(const String&) const;
  8975. bool IsInView(Camera) const;
  8976. bool Load(File, bool = false);
  8977. bool Load(VectorBuffer&, bool = false);
  8978. bool LoadJSON(const JSONValue&, bool = false);
  8979. bool LoadXML(const XMLElement&, bool = false);
  8980. void MarkNetworkUpdate() const;
  8981. void Remove();
  8982. void RemoveAttributeAnimation(const String&);
  8983. void RemoveInstanceDefault();
  8984. void RemoveObjectAnimation();
  8985. void ResetToDefault();
  8986. bool Save(File) const;
  8987. bool Save(VectorBuffer&) const;
  8988. bool SaveJSON(JSONValue&) const;
  8989. bool SaveXML(XMLElement&) const;
  8990. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8991. void SetAnimationTime(float);
  8992. bool SetAttribute(const String&, const Variant&);
  8993. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8994. void SetAttributeAnimationSpeed(const String&, float);
  8995. void SetAttributeAnimationTime(const String&, float);
  8996. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8997. void SetInterceptNetworkUpdate(const String&, bool);
  8998. // Properties:
  8999. bool animationEnabled;
  9000. /* readonly */
  9001. Array<Variant> attributeDefaults;
  9002. /* readonly */
  9003. Array<AttributeInfo> attributeInfos;
  9004. Array<Variant> attributes;
  9005. /* readonly */
  9006. BoundingBox boundingBox;
  9007. bool castShadows;
  9008. /* readonly */
  9009. String category;
  9010. float drawDistance;
  9011. bool enabled;
  9012. /* readonly */
  9013. bool enabledEffective;
  9014. /* readonly */
  9015. uint id;
  9016. /* readonly */
  9017. bool inView;
  9018. uint lightMask;
  9019. float lodBias;
  9020. /* writeonly */
  9021. Material material;
  9022. Array<Material> materials;
  9023. uint maxLights;
  9024. Model model;
  9025. /* readonly */
  9026. Node node;
  9027. /* readonly */
  9028. uint numAttributes;
  9029. /* readonly */
  9030. uint numGeometries;
  9031. ObjectAnimation objectAnimation;
  9032. bool occludee;
  9033. bool occluder;
  9034. /* readonly */
  9035. int refs;
  9036. float shadowDistance;
  9037. uint shadowMask;
  9038. bool temporary;
  9039. /* readonly */
  9040. StringHash type;
  9041. /* readonly */
  9042. String typeName;
  9043. uint viewMask;
  9044. /* readonly */
  9045. int weakRefs;
  9046. /* readonly */
  9047. BoundingBox worldBoundingBox;
  9048. /* readonly */
  9049. Zone zone;
  9050. uint zoneMask;
  9051. };
  9052. class Slider
  9053. {
  9054. // Methods:
  9055. void AddChild(UIElement);
  9056. void ApplyAttributes();
  9057. void BringToFront();
  9058. void ChangeValue(float);
  9059. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9060. void DisableLayoutUpdate();
  9061. IntVector2 ElementToScreen(const IntVector2&);
  9062. void EnableLayoutUpdate();
  9063. uint FindChild(UIElement) const;
  9064. Variant GetAttribute(const String&) const;
  9065. ValueAnimation GetAttributeAnimation(const String&) const;
  9066. float GetAttributeAnimationSpeed(const String&) const;
  9067. float GetAttributeAnimationTime(const String&) const;
  9068. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9069. Variant GetAttributeDefault(const String&) const;
  9070. UIElement GetChild(const String&, bool = false) const;
  9071. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9072. Array<UIElement> GetChildren(bool = false) const;
  9073. UIElement GetElementEventSender() const;
  9074. bool GetInterceptNetworkUpdate(const String&) const;
  9075. uint GetNumChildren(bool) const;
  9076. void InsertChild(uint, UIElement);
  9077. bool IsInside(IntVector2, bool);
  9078. bool IsInsideCombined(IntVector2, bool);
  9079. bool Load(File, bool = false);
  9080. bool Load(VectorBuffer&, bool = false);
  9081. bool LoadChildXML(XMLFile, XMLFile = null);
  9082. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9083. bool LoadJSON(const JSONValue&, bool = false);
  9084. bool LoadXML(File);
  9085. bool LoadXML(VectorBuffer&);
  9086. bool LoadXML(XMLFile, XMLFile);
  9087. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9088. bool LoadXML(const XMLElement&, bool = false);
  9089. void MarkNetworkUpdate() const;
  9090. void Remove();
  9091. void RemoveAllChildren();
  9092. void RemoveAttributeAnimation(const String&);
  9093. void RemoveChild(UIElement, uint = 0);
  9094. void RemoveChild(uint);
  9095. void RemoveInstanceDefault();
  9096. void RemoveObjectAnimation();
  9097. void ResetDeepEnabled();
  9098. void ResetToDefault();
  9099. bool Save(File) const;
  9100. bool Save(VectorBuffer&) const;
  9101. bool SaveJSON(JSONValue&) const;
  9102. bool SaveXML(File, const String& = "\t");
  9103. bool SaveXML(VectorBuffer&, const String& = "\t");
  9104. bool SaveXML(XMLElement&) const;
  9105. IntVector2 ScreenToElement(const IntVector2&);
  9106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9107. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9108. void SetAnimationTime(float);
  9109. bool SetAttribute(const String&, const Variant&);
  9110. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9111. void SetAttributeAnimationSpeed(const String&, float);
  9112. void SetAttributeAnimationTime(const String&, float);
  9113. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9114. void SetDeepEnabled(bool);
  9115. void SetEnabledRecursive(bool);
  9116. void SetFixedHeight(int);
  9117. void SetFixedSize(int, int);
  9118. void SetFixedWidth(int);
  9119. void SetFullImageRect();
  9120. void SetHoverOffset(int, int);
  9121. void SetInterceptNetworkUpdate(const String&, bool);
  9122. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9123. void SetMaxSize(int, int);
  9124. void SetMinSize(int, int);
  9125. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9126. void SetPosition(int, int);
  9127. void SetSize(int, int);
  9128. bool SetStyle(const String&, XMLFile = null);
  9129. bool SetStyle(const XMLElement&);
  9130. bool SetStyleAuto(XMLFile = null);
  9131. void UpdateLayout();
  9132. const Variant& GetVar(const StringHash&);
  9133. // Properties:
  9134. bool animationEnabled;
  9135. /* readonly */
  9136. Array<Variant> attributeDefaults;
  9137. /* readonly */
  9138. Array<AttributeInfo> attributeInfos;
  9139. Array<Variant> attributes;
  9140. BlendMode blendMode;
  9141. IntRect border;
  9142. bool bringToBack;
  9143. bool bringToFront;
  9144. /* readonly */
  9145. String category;
  9146. /* readonly */
  9147. IntVector2 childOffset;
  9148. /* readonly */
  9149. Array<UIElement> children;
  9150. IntRect clipBorder;
  9151. bool clipChildren;
  9152. /* writeonly */
  9153. Color color;
  9154. /* readonly */
  9155. bool colorGradient;
  9156. Array<Color> colors;
  9157. /* readonly */
  9158. IntRect combinedScreenRect;
  9159. XMLFile defaultStyle;
  9160. /* readonly */
  9161. float derivedOpacity;
  9162. /* readonly */
  9163. uint dragButtonCombo;
  9164. /* readonly */
  9165. int dragButtonCount;
  9166. uint dragDropMode;
  9167. bool editable;
  9168. bool elementEventSender;
  9169. bool enabled;
  9170. /* readonly */
  9171. bool enabledSelf;
  9172. /* readonly */
  9173. bool fixedHeight;
  9174. /* readonly */
  9175. bool fixedSize;
  9176. /* readonly */
  9177. bool fixedWidth;
  9178. bool focus;
  9179. FocusMode focusMode;
  9180. int height;
  9181. HorizontalAlignment horizontalAlignment;
  9182. IntVector2 hoverOffset;
  9183. /* readonly */
  9184. bool hovering;
  9185. IntRect imageBorder;
  9186. IntRect imageRect;
  9187. int indent;
  9188. int indentSpacing;
  9189. /* readonly */
  9190. int indentWidth;
  9191. bool internal;
  9192. /* readonly */
  9193. BorderImage knob;
  9194. IntRect layoutBorder;
  9195. Vector2 layoutFlexScale;
  9196. LayoutMode layoutMode;
  9197. int layoutSpacing;
  9198. int maxHeight;
  9199. IntVector2 maxSize;
  9200. int maxWidth;
  9201. int minHeight;
  9202. IntVector2 minSize;
  9203. int minWidth;
  9204. String name;
  9205. /* readonly */
  9206. uint numAllChildren;
  9207. /* readonly */
  9208. uint numAttributes;
  9209. /* readonly */
  9210. uint numChildren;
  9211. ObjectAnimation objectAnimation;
  9212. float opacity;
  9213. Orientation orientation;
  9214. UIElement parent;
  9215. IntVector2 position;
  9216. int priority;
  9217. float range;
  9218. /* readonly */
  9219. int refs;
  9220. float repeatRate;
  9221. /* readonly */
  9222. UIElement root;
  9223. /* readonly */
  9224. IntVector2 screenPosition;
  9225. bool selected;
  9226. IntVector2 size;
  9227. bool sortChildren;
  9228. String style;
  9229. bool temporary;
  9230. Texture texture;
  9231. bool tiled;
  9232. TraversalMode traversalMode;
  9233. /* readonly */
  9234. StringHash type;
  9235. /* readonly */
  9236. String typeName;
  9237. bool useDerivedOpacity;
  9238. float value;
  9239. /* readonly */
  9240. VariantMap vars;
  9241. VerticalAlignment verticalAlignment;
  9242. bool visible;
  9243. /* readonly */
  9244. bool visibleEffective;
  9245. /* readonly */
  9246. int weakRefs;
  9247. int width;
  9248. };
  9249. class SmoothedTransform
  9250. {
  9251. // Methods:
  9252. void ApplyAttributes();
  9253. void DrawDebugGeometry(DebugRenderer, bool);
  9254. Variant GetAttribute(const String&) const;
  9255. ValueAnimation GetAttributeAnimation(const String&) const;
  9256. float GetAttributeAnimationSpeed(const String&) const;
  9257. float GetAttributeAnimationTime(const String&) const;
  9258. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9259. Variant GetAttributeDefault(const String&) const;
  9260. bool GetInterceptNetworkUpdate(const String&) const;
  9261. bool Load(File, bool = false);
  9262. bool Load(VectorBuffer&, bool = false);
  9263. bool LoadJSON(const JSONValue&, bool = false);
  9264. bool LoadXML(const XMLElement&, bool = false);
  9265. void MarkNetworkUpdate() const;
  9266. void Remove();
  9267. void RemoveAttributeAnimation(const String&);
  9268. void RemoveInstanceDefault();
  9269. void RemoveObjectAnimation();
  9270. void ResetToDefault();
  9271. bool Save(File) const;
  9272. bool Save(VectorBuffer&) const;
  9273. bool SaveJSON(JSONValue&) const;
  9274. bool SaveXML(XMLElement&) const;
  9275. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9276. void SetAnimationTime(float);
  9277. bool SetAttribute(const String&, const Variant&);
  9278. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9279. void SetAttributeAnimationSpeed(const String&, float);
  9280. void SetAttributeAnimationTime(const String&, float);
  9281. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9282. void SetInterceptNetworkUpdate(const String&, bool);
  9283. void Update(float, float);
  9284. // Properties:
  9285. bool animationEnabled;
  9286. /* readonly */
  9287. Array<Variant> attributeDefaults;
  9288. /* readonly */
  9289. Array<AttributeInfo> attributeInfos;
  9290. Array<Variant> attributes;
  9291. /* readonly */
  9292. String category;
  9293. bool enabled;
  9294. /* readonly */
  9295. bool enabledEffective;
  9296. /* readonly */
  9297. uint id;
  9298. /* readonly */
  9299. bool inProgress;
  9300. /* readonly */
  9301. Node node;
  9302. /* readonly */
  9303. uint numAttributes;
  9304. ObjectAnimation objectAnimation;
  9305. /* readonly */
  9306. int refs;
  9307. Vector3 targetPosition;
  9308. Quaternion targetRotation;
  9309. Vector3 targetWorldPosition;
  9310. Quaternion targetWorldRotation;
  9311. bool temporary;
  9312. /* readonly */
  9313. StringHash type;
  9314. /* readonly */
  9315. String typeName;
  9316. /* readonly */
  9317. int weakRefs;
  9318. };
  9319. class Sound
  9320. {
  9321. // Methods:
  9322. bool Load(File);
  9323. bool Load(VectorBuffer&);
  9324. bool Save(File) const;
  9325. bool Save(VectorBuffer&) const;
  9326. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9327. // Properties:
  9328. /* readonly */
  9329. String category;
  9330. /* readonly */
  9331. bool compressed;
  9332. /* readonly */
  9333. float frequency;
  9334. /* readonly */
  9335. float length;
  9336. bool looped;
  9337. /* readonly */
  9338. uint memoryUse;
  9339. String name;
  9340. /* readonly */
  9341. int refs;
  9342. /* readonly */
  9343. uint sampleSize;
  9344. /* readonly */
  9345. bool sixteenBit;
  9346. /* readonly */
  9347. bool stereo;
  9348. /* readonly */
  9349. StringHash type;
  9350. /* readonly */
  9351. String typeName;
  9352. /* readonly */
  9353. uint useTimer;
  9354. /* readonly */
  9355. int weakRefs;
  9356. };
  9357. class SoundListener
  9358. {
  9359. // Methods:
  9360. void ApplyAttributes();
  9361. void DrawDebugGeometry(DebugRenderer, bool);
  9362. Variant GetAttribute(const String&) const;
  9363. ValueAnimation GetAttributeAnimation(const String&) const;
  9364. float GetAttributeAnimationSpeed(const String&) const;
  9365. float GetAttributeAnimationTime(const String&) const;
  9366. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9367. Variant GetAttributeDefault(const String&) const;
  9368. bool GetInterceptNetworkUpdate(const String&) const;
  9369. bool Load(File, bool = false);
  9370. bool Load(VectorBuffer&, bool = false);
  9371. bool LoadJSON(const JSONValue&, bool = false);
  9372. bool LoadXML(const XMLElement&, bool = false);
  9373. void MarkNetworkUpdate() const;
  9374. void Remove();
  9375. void RemoveAttributeAnimation(const String&);
  9376. void RemoveInstanceDefault();
  9377. void RemoveObjectAnimation();
  9378. void ResetToDefault();
  9379. bool Save(File) const;
  9380. bool Save(VectorBuffer&) const;
  9381. bool SaveJSON(JSONValue&) const;
  9382. bool SaveXML(XMLElement&) const;
  9383. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9384. void SetAnimationTime(float);
  9385. bool SetAttribute(const String&, const Variant&);
  9386. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9387. void SetAttributeAnimationSpeed(const String&, float);
  9388. void SetAttributeAnimationTime(const String&, float);
  9389. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9390. void SetInterceptNetworkUpdate(const String&, bool);
  9391. // Properties:
  9392. bool animationEnabled;
  9393. /* readonly */
  9394. Array<Variant> attributeDefaults;
  9395. /* readonly */
  9396. Array<AttributeInfo> attributeInfos;
  9397. Array<Variant> attributes;
  9398. /* readonly */
  9399. String category;
  9400. bool enabled;
  9401. /* readonly */
  9402. bool enabledEffective;
  9403. /* readonly */
  9404. uint id;
  9405. /* readonly */
  9406. Node node;
  9407. /* readonly */
  9408. uint numAttributes;
  9409. ObjectAnimation objectAnimation;
  9410. /* readonly */
  9411. int refs;
  9412. bool temporary;
  9413. /* readonly */
  9414. StringHash type;
  9415. /* readonly */
  9416. String typeName;
  9417. /* readonly */
  9418. int weakRefs;
  9419. };
  9420. class SoundSource
  9421. {
  9422. // Methods:
  9423. void ApplyAttributes();
  9424. void DrawDebugGeometry(DebugRenderer, bool);
  9425. Variant GetAttribute(const String&) const;
  9426. ValueAnimation GetAttributeAnimation(const String&) const;
  9427. float GetAttributeAnimationSpeed(const String&) const;
  9428. float GetAttributeAnimationTime(const String&) const;
  9429. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9430. Variant GetAttributeDefault(const String&) const;
  9431. bool GetInterceptNetworkUpdate(const String&) const;
  9432. bool Load(File, bool = false);
  9433. bool Load(VectorBuffer&, bool = false);
  9434. bool LoadJSON(const JSONValue&, bool = false);
  9435. bool LoadXML(const XMLElement&, bool = false);
  9436. void MarkNetworkUpdate() const;
  9437. void Play(Sound);
  9438. void Play(Sound, float);
  9439. void Play(Sound, float, float);
  9440. void Play(Sound, float, float, float);
  9441. void Remove();
  9442. void RemoveAttributeAnimation(const String&);
  9443. void RemoveInstanceDefault();
  9444. void RemoveObjectAnimation();
  9445. void ResetToDefault();
  9446. bool Save(File) const;
  9447. bool Save(VectorBuffer&) const;
  9448. bool SaveJSON(JSONValue&) const;
  9449. bool SaveXML(XMLElement&) const;
  9450. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9451. void SetAnimationTime(float);
  9452. bool SetAttribute(const String&, const Variant&);
  9453. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9454. void SetAttributeAnimationSpeed(const String&, float);
  9455. void SetAttributeAnimationTime(const String&, float);
  9456. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9457. void SetInterceptNetworkUpdate(const String&, bool);
  9458. void Stop();
  9459. // Properties:
  9460. bool animationEnabled;
  9461. /* readonly */
  9462. float attenuation;
  9463. /* readonly */
  9464. Array<Variant> attributeDefaults;
  9465. /* readonly */
  9466. Array<AttributeInfo> attributeInfos;
  9467. Array<Variant> attributes;
  9468. bool autoRemove;
  9469. /* readonly */
  9470. String category;
  9471. bool enabled;
  9472. /* readonly */
  9473. bool enabledEffective;
  9474. float frequency;
  9475. float gain;
  9476. /* readonly */
  9477. uint id;
  9478. /* readonly */
  9479. Node node;
  9480. /* readonly */
  9481. uint numAttributes;
  9482. ObjectAnimation objectAnimation;
  9483. float panning;
  9484. /* readonly */
  9485. bool playing;
  9486. /* readonly */
  9487. int refs;
  9488. /* readonly */
  9489. Sound sound;
  9490. String soundType;
  9491. bool temporary;
  9492. /* readonly */
  9493. float timePosition;
  9494. /* readonly */
  9495. StringHash type;
  9496. /* readonly */
  9497. String typeName;
  9498. /* readonly */
  9499. int weakRefs;
  9500. };
  9501. class SoundSource3D
  9502. {
  9503. // Methods:
  9504. void ApplyAttributes();
  9505. void DrawDebugGeometry(DebugRenderer, bool);
  9506. Variant GetAttribute(const String&) const;
  9507. ValueAnimation GetAttributeAnimation(const String&) const;
  9508. float GetAttributeAnimationSpeed(const String&) const;
  9509. float GetAttributeAnimationTime(const String&) const;
  9510. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9511. Variant GetAttributeDefault(const String&) const;
  9512. bool GetInterceptNetworkUpdate(const String&) const;
  9513. bool Load(File, bool = false);
  9514. bool Load(VectorBuffer&, bool = false);
  9515. bool LoadJSON(const JSONValue&, bool = false);
  9516. bool LoadXML(const XMLElement&, bool = false);
  9517. void MarkNetworkUpdate() const;
  9518. void Play(Sound);
  9519. void Play(Sound, float);
  9520. void Play(Sound, float, float);
  9521. void Play(Sound, float, float, float);
  9522. void Remove();
  9523. void RemoveAttributeAnimation(const String&);
  9524. void RemoveInstanceDefault();
  9525. void RemoveObjectAnimation();
  9526. void ResetToDefault();
  9527. bool Save(File) const;
  9528. bool Save(VectorBuffer&) const;
  9529. bool SaveJSON(JSONValue&) const;
  9530. bool SaveXML(XMLElement&) const;
  9531. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9532. void SetAngleAttenuation(float, float);
  9533. void SetAnimationTime(float);
  9534. bool SetAttribute(const String&, const Variant&);
  9535. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9536. void SetAttributeAnimationSpeed(const String&, float);
  9537. void SetAttributeAnimationTime(const String&, float);
  9538. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9539. void SetDistanceAttenuation(float, float, float);
  9540. void SetInterceptNetworkUpdate(const String&, bool);
  9541. void Stop();
  9542. // Properties:
  9543. bool animationEnabled;
  9544. /* readonly */
  9545. float attenuation;
  9546. /* readonly */
  9547. Array<Variant> attributeDefaults;
  9548. /* readonly */
  9549. Array<AttributeInfo> attributeInfos;
  9550. Array<Variant> attributes;
  9551. bool autoRemove;
  9552. /* readonly */
  9553. String category;
  9554. bool enabled;
  9555. /* readonly */
  9556. bool enabledEffective;
  9557. float farDistance;
  9558. float frequency;
  9559. float gain;
  9560. /* readonly */
  9561. uint id;
  9562. float innerAngle;
  9563. float nearDistance;
  9564. /* readonly */
  9565. Node node;
  9566. /* readonly */
  9567. uint numAttributes;
  9568. ObjectAnimation objectAnimation;
  9569. float outerAngle;
  9570. float panning;
  9571. /* readonly */
  9572. bool playing;
  9573. /* readonly */
  9574. int refs;
  9575. float rolloffFactor;
  9576. /* readonly */
  9577. Sound sound;
  9578. String soundType;
  9579. bool temporary;
  9580. /* readonly */
  9581. float timePosition;
  9582. /* readonly */
  9583. StringHash type;
  9584. /* readonly */
  9585. String typeName;
  9586. /* readonly */
  9587. int weakRefs;
  9588. };
  9589. class Sphere
  9590. {
  9591. // Methods:
  9592. void Clear();
  9593. void Define(const BoundingBox&);
  9594. void Define(const Frustum&);
  9595. void Define(const Polyhedron&);
  9596. void Define(const Sphere&);
  9597. void Define(const Vector3&, float);
  9598. bool Defined() const;
  9599. float Distance(const Vector3&) const;
  9600. Intersection IsInside(const BoundingBox&) const;
  9601. Intersection IsInside(const Sphere&) const;
  9602. Intersection IsInside(const Vector3&) const;
  9603. Intersection IsInsideFast(const BoundingBox&) const;
  9604. Intersection IsInsideFast(const Sphere&) const;
  9605. void Merge(const BoundingBox&);
  9606. void Merge(const Frustum&);
  9607. void Merge(const Sphere&);
  9608. void Merge(const Vector3&);
  9609. // Properties:
  9610. Vector3 center;
  9611. float radius;
  9612. };
  9613. class Spline
  9614. {
  9615. // Methods:
  9616. void AddKnot(const Variant&);
  9617. void AddKnot(const Variant&, uint);
  9618. void Clear();
  9619. Variant GetPoint(float);
  9620. void RemoveKnot();
  9621. void RemoveKnot(uint);
  9622. // Properties:
  9623. InterpolationMode interpolationMode;
  9624. Array<Variant> knot;
  9625. Array<Variant> knots;
  9626. };
  9627. class SplinePath
  9628. {
  9629. // Methods:
  9630. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9631. void ApplyAttributes();
  9632. void ClearControlPoints();
  9633. void DrawDebugGeometry(DebugRenderer, bool);
  9634. Variant GetAttribute(const String&) const;
  9635. ValueAnimation GetAttributeAnimation(const String&) const;
  9636. float GetAttributeAnimationSpeed(const String&) const;
  9637. float GetAttributeAnimationTime(const String&) const;
  9638. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9639. Variant GetAttributeDefault(const String&) const;
  9640. bool GetInterceptNetworkUpdate(const String&) const;
  9641. Vector3 GetPoint(float) const;
  9642. Vector3 GetPosition() const;
  9643. bool Load(File, bool = false);
  9644. bool Load(VectorBuffer&, bool = false);
  9645. bool LoadJSON(const JSONValue&, bool = false);
  9646. bool LoadXML(const XMLElement&, bool = false);
  9647. void MarkNetworkUpdate() const;
  9648. void Move(float);
  9649. void Remove();
  9650. void RemoveAttributeAnimation(const String&);
  9651. void RemoveControlPoint(Node);
  9652. void RemoveInstanceDefault();
  9653. void RemoveObjectAnimation();
  9654. void Reset();
  9655. void ResetToDefault();
  9656. bool Save(File) const;
  9657. bool Save(VectorBuffer&) const;
  9658. bool SaveJSON(JSONValue&) const;
  9659. bool SaveXML(XMLElement&) const;
  9660. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9661. void SetAnimationTime(float);
  9662. bool SetAttribute(const String&, const Variant&);
  9663. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9664. void SetAttributeAnimationSpeed(const String&, float);
  9665. void SetAttributeAnimationTime(const String&, float);
  9666. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9667. void SetInterceptNetworkUpdate(const String&, bool);
  9668. void SetPosition(float);
  9669. // Properties:
  9670. bool animationEnabled;
  9671. /* readonly */
  9672. Array<Variant> attributeDefaults;
  9673. /* readonly */
  9674. Array<AttributeInfo> attributeInfos;
  9675. Array<Variant> attributes;
  9676. /* readonly */
  9677. String category;
  9678. Node controlledNode;
  9679. bool enabled;
  9680. /* readonly */
  9681. bool enabledEffective;
  9682. /* readonly */
  9683. uint id;
  9684. InterpolationMode interpolationMode;
  9685. /* readonly */
  9686. bool isFinished;
  9687. /* readonly */
  9688. float length;
  9689. /* readonly */
  9690. Node node;
  9691. /* readonly */
  9692. uint numAttributes;
  9693. ObjectAnimation objectAnimation;
  9694. /* readonly */
  9695. int refs;
  9696. float speed;
  9697. bool temporary;
  9698. /* readonly */
  9699. StringHash type;
  9700. /* readonly */
  9701. String typeName;
  9702. /* readonly */
  9703. int weakRefs;
  9704. };
  9705. class Sprite
  9706. {
  9707. // Methods:
  9708. void AddChild(UIElement);
  9709. void ApplyAttributes();
  9710. void BringToFront();
  9711. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9712. uint FindChild(UIElement) const;
  9713. Variant GetAttribute(const String&) const;
  9714. ValueAnimation GetAttributeAnimation(const String&) const;
  9715. float GetAttributeAnimationSpeed(const String&) const;
  9716. float GetAttributeAnimationTime(const String&) const;
  9717. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9718. Variant GetAttributeDefault(const String&) const;
  9719. UIElement GetChild(const String&, bool = false) const;
  9720. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9721. Array<UIElement> GetChildren(bool = false) const;
  9722. UIElement GetElementEventSender() const;
  9723. bool GetInterceptNetworkUpdate(const String&) const;
  9724. uint GetNumChildren(bool) const;
  9725. void InsertChild(uint, UIElement);
  9726. bool Load(File, bool = false);
  9727. bool Load(VectorBuffer&, bool = false);
  9728. bool LoadChildXML(XMLFile, XMLFile = null);
  9729. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9730. bool LoadJSON(const JSONValue&, bool = false);
  9731. bool LoadXML(File);
  9732. bool LoadXML(VectorBuffer&);
  9733. bool LoadXML(XMLFile, XMLFile);
  9734. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9735. bool LoadXML(const XMLElement&, bool = false);
  9736. void MarkNetworkUpdate() const;
  9737. void Remove();
  9738. void RemoveAllChildren();
  9739. void RemoveAttributeAnimation(const String&);
  9740. void RemoveChild(UIElement, uint = 0);
  9741. void RemoveChild(uint);
  9742. void RemoveInstanceDefault();
  9743. void RemoveObjectAnimation();
  9744. void ResetToDefault();
  9745. bool Save(File) const;
  9746. bool Save(VectorBuffer&) const;
  9747. bool SaveJSON(JSONValue&) const;
  9748. bool SaveXML(File, const String& = "\t");
  9749. bool SaveXML(VectorBuffer&, const String& = "\t");
  9750. bool SaveXML(XMLElement&) const;
  9751. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9752. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9753. void SetAnimationTime(float);
  9754. bool SetAttribute(const String&, const Variant&);
  9755. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9756. void SetAttributeAnimationSpeed(const String&, float);
  9757. void SetAttributeAnimationTime(const String&, float);
  9758. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9759. void SetFixedHeight(int);
  9760. void SetFixedSize(int, int);
  9761. void SetFixedWidth(int);
  9762. void SetFullImageRect();
  9763. void SetHotSpot(int, int);
  9764. void SetInterceptNetworkUpdate(const String&, bool);
  9765. void SetMaxSize(int, int);
  9766. void SetMinSize(int, int);
  9767. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9768. void SetPosition(float, float);
  9769. void SetScale(float);
  9770. void SetScale(float, float);
  9771. void SetSize(int, int);
  9772. bool SetStyle(const String&, XMLFile = null);
  9773. bool SetStyle(const XMLElement&);
  9774. bool SetStyleAuto(XMLFile = null);
  9775. const Variant& GetVar(const StringHash&);
  9776. // Properties:
  9777. bool animationEnabled;
  9778. /* readonly */
  9779. Array<Variant> attributeDefaults;
  9780. /* readonly */
  9781. Array<AttributeInfo> attributeInfos;
  9782. Array<Variant> attributes;
  9783. BlendMode blendMode;
  9784. bool bringToBack;
  9785. bool bringToFront;
  9786. /* readonly */
  9787. String category;
  9788. /* readonly */
  9789. Array<UIElement> children;
  9790. /* writeonly */
  9791. Color color;
  9792. /* readonly */
  9793. bool colorGradient;
  9794. Array<Color> colors;
  9795. XMLFile defaultStyle;
  9796. /* readonly */
  9797. float derivedOpacity;
  9798. /* readonly */
  9799. uint dragButtonCombo;
  9800. /* readonly */
  9801. int dragButtonCount;
  9802. bool elementEventSender;
  9803. int height;
  9804. HorizontalAlignment horizontalAlignment;
  9805. IntVector2 hotSpot;
  9806. IntRect imageRect;
  9807. String name;
  9808. /* readonly */
  9809. uint numAllChildren;
  9810. /* readonly */
  9811. uint numAttributes;
  9812. /* readonly */
  9813. uint numChildren;
  9814. ObjectAnimation objectAnimation;
  9815. float opacity;
  9816. UIElement parent;
  9817. Vector2 position;
  9818. int priority;
  9819. /* readonly */
  9820. int refs;
  9821. /* readonly */
  9822. UIElement root;
  9823. float rotation;
  9824. Vector2 scale;
  9825. IntVector2 size;
  9826. bool sortChildren;
  9827. String style;
  9828. bool temporary;
  9829. Texture texture;
  9830. /* readonly */
  9831. StringHash type;
  9832. /* readonly */
  9833. String typeName;
  9834. bool useDerivedOpacity;
  9835. /* readonly */
  9836. VariantMap vars;
  9837. VerticalAlignment verticalAlignment;
  9838. bool visible;
  9839. /* readonly */
  9840. bool visibleEffective;
  9841. /* readonly */
  9842. int weakRefs;
  9843. int width;
  9844. };
  9845. class Sprite2D
  9846. {
  9847. // Methods:
  9848. bool Load(File);
  9849. bool Load(VectorBuffer&);
  9850. bool Save(File) const;
  9851. bool Save(VectorBuffer&) const;
  9852. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9853. // Properties:
  9854. /* readonly */
  9855. String category;
  9856. Vector2 hotSpot;
  9857. /* readonly */
  9858. uint memoryUse;
  9859. String name;
  9860. IntVector2 offset;
  9861. IntRect rectangle;
  9862. /* readonly */
  9863. int refs;
  9864. Texture2D texture;
  9865. /* readonly */
  9866. StringHash type;
  9867. /* readonly */
  9868. String typeName;
  9869. /* readonly */
  9870. uint useTimer;
  9871. /* readonly */
  9872. int weakRefs;
  9873. };
  9874. class SpriteSheet2D
  9875. {
  9876. // Methods:
  9877. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  9878. Sprite2D GetSprite(const String&);
  9879. bool Load(File);
  9880. bool Load(VectorBuffer&);
  9881. bool Save(File) const;
  9882. bool Save(VectorBuffer&) const;
  9883. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9884. // Properties:
  9885. /* readonly */
  9886. String category;
  9887. /* readonly */
  9888. uint memoryUse;
  9889. String name;
  9890. /* readonly */
  9891. int refs;
  9892. /* readonly */
  9893. Texture2D texture;
  9894. /* readonly */
  9895. StringHash type;
  9896. /* readonly */
  9897. String typeName;
  9898. /* readonly */
  9899. uint useTimer;
  9900. /* readonly */
  9901. int weakRefs;
  9902. };
  9903. class StaticModel
  9904. {
  9905. // Methods:
  9906. void ApplyAttributes();
  9907. void ApplyMaterialList(const String& = String ( ));
  9908. void DrawDebugGeometry(DebugRenderer, bool);
  9909. Variant GetAttribute(const String&) const;
  9910. ValueAnimation GetAttributeAnimation(const String&) const;
  9911. float GetAttributeAnimationSpeed(const String&) const;
  9912. float GetAttributeAnimationTime(const String&) const;
  9913. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9914. Variant GetAttributeDefault(const String&) const;
  9915. bool GetInterceptNetworkUpdate(const String&) const;
  9916. bool IsInView(Camera) const;
  9917. bool IsInside(const Vector3&) const;
  9918. bool IsInsideLocal(const Vector3&) const;
  9919. bool Load(File, bool = false);
  9920. bool Load(VectorBuffer&, bool = false);
  9921. bool LoadJSON(const JSONValue&, bool = false);
  9922. bool LoadXML(const XMLElement&, bool = false);
  9923. void MarkNetworkUpdate() const;
  9924. void Remove();
  9925. void RemoveAttributeAnimation(const String&);
  9926. void RemoveInstanceDefault();
  9927. void RemoveObjectAnimation();
  9928. void ResetToDefault();
  9929. bool Save(File) const;
  9930. bool Save(VectorBuffer&) const;
  9931. bool SaveJSON(JSONValue&) const;
  9932. bool SaveXML(XMLElement&) const;
  9933. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9934. void SetAnimationTime(float);
  9935. bool SetAttribute(const String&, const Variant&);
  9936. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9937. void SetAttributeAnimationSpeed(const String&, float);
  9938. void SetAttributeAnimationTime(const String&, float);
  9939. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9940. void SetInterceptNetworkUpdate(const String&, bool);
  9941. // Properties:
  9942. bool animationEnabled;
  9943. /* readonly */
  9944. Array<Variant> attributeDefaults;
  9945. /* readonly */
  9946. Array<AttributeInfo> attributeInfos;
  9947. Array<Variant> attributes;
  9948. /* readonly */
  9949. BoundingBox boundingBox;
  9950. bool castShadows;
  9951. /* readonly */
  9952. String category;
  9953. float drawDistance;
  9954. bool enabled;
  9955. /* readonly */
  9956. bool enabledEffective;
  9957. /* readonly */
  9958. uint id;
  9959. /* readonly */
  9960. bool inView;
  9961. uint lightMask;
  9962. float lodBias;
  9963. /* writeonly */
  9964. Material material;
  9965. Array<Material> materials;
  9966. uint maxLights;
  9967. Model model;
  9968. /* readonly */
  9969. Node node;
  9970. /* readonly */
  9971. uint numAttributes;
  9972. /* readonly */
  9973. uint numGeometries;
  9974. ObjectAnimation objectAnimation;
  9975. bool occludee;
  9976. bool occluder;
  9977. uint occlusionLodLevel;
  9978. /* readonly */
  9979. int refs;
  9980. float shadowDistance;
  9981. uint shadowMask;
  9982. bool temporary;
  9983. /* readonly */
  9984. StringHash type;
  9985. /* readonly */
  9986. String typeName;
  9987. uint viewMask;
  9988. /* readonly */
  9989. int weakRefs;
  9990. /* readonly */
  9991. BoundingBox worldBoundingBox;
  9992. uint zoneMask;
  9993. };
  9994. class StaticModelGroup
  9995. {
  9996. // Methods:
  9997. void AddInstanceNode(Node);
  9998. void ApplyAttributes();
  9999. void ApplyMaterialList(const String& = String ( ));
  10000. void DrawDebugGeometry(DebugRenderer, bool);
  10001. Variant GetAttribute(const String&) const;
  10002. ValueAnimation GetAttributeAnimation(const String&) const;
  10003. float GetAttributeAnimationSpeed(const String&) const;
  10004. float GetAttributeAnimationTime(const String&) const;
  10005. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10006. Variant GetAttributeDefault(const String&) const;
  10007. bool GetInterceptNetworkUpdate(const String&) const;
  10008. bool IsInView(Camera) const;
  10009. bool Load(File, bool = false);
  10010. bool Load(VectorBuffer&, bool = false);
  10011. bool LoadJSON(const JSONValue&, bool = false);
  10012. bool LoadXML(const XMLElement&, bool = false);
  10013. void MarkNetworkUpdate() const;
  10014. void Remove();
  10015. void RemoveAllInstanceNodes();
  10016. void RemoveAttributeAnimation(const String&);
  10017. void RemoveInstanceDefault();
  10018. void RemoveInstanceNode(Node);
  10019. void RemoveObjectAnimation();
  10020. void ResetToDefault();
  10021. bool Save(File) const;
  10022. bool Save(VectorBuffer&) const;
  10023. bool SaveJSON(JSONValue&) const;
  10024. bool SaveXML(XMLElement&) const;
  10025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10026. void SetAnimationTime(float);
  10027. bool SetAttribute(const String&, const Variant&);
  10028. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10029. void SetAttributeAnimationSpeed(const String&, float);
  10030. void SetAttributeAnimationTime(const String&, float);
  10031. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10032. void SetInterceptNetworkUpdate(const String&, bool);
  10033. // Properties:
  10034. bool animationEnabled;
  10035. /* readonly */
  10036. Array<Variant> attributeDefaults;
  10037. /* readonly */
  10038. Array<AttributeInfo> attributeInfos;
  10039. Array<Variant> attributes;
  10040. /* readonly */
  10041. BoundingBox boundingBox;
  10042. bool castShadows;
  10043. /* readonly */
  10044. String category;
  10045. float drawDistance;
  10046. bool enabled;
  10047. /* readonly */
  10048. bool enabledEffective;
  10049. /* readonly */
  10050. uint id;
  10051. /* readonly */
  10052. bool inView;
  10053. /* readonly */
  10054. Array<Node> instanceNodes;
  10055. uint lightMask;
  10056. float lodBias;
  10057. /* writeonly */
  10058. Material material;
  10059. Array<Material> materials;
  10060. uint maxLights;
  10061. Model model;
  10062. /* readonly */
  10063. Node node;
  10064. /* readonly */
  10065. uint numAttributes;
  10066. /* readonly */
  10067. uint numGeometries;
  10068. /* readonly */
  10069. uint numInstanceNodes;
  10070. ObjectAnimation objectAnimation;
  10071. bool occludee;
  10072. bool occluder;
  10073. uint occlusionLodLevel;
  10074. /* readonly */
  10075. int refs;
  10076. float shadowDistance;
  10077. uint shadowMask;
  10078. bool temporary;
  10079. /* readonly */
  10080. StringHash type;
  10081. /* readonly */
  10082. String typeName;
  10083. uint viewMask;
  10084. /* readonly */
  10085. int weakRefs;
  10086. /* readonly */
  10087. BoundingBox worldBoundingBox;
  10088. /* readonly */
  10089. Zone zone;
  10090. uint zoneMask;
  10091. };
  10092. class StaticSprite2D
  10093. {
  10094. // Methods:
  10095. void ApplyAttributes();
  10096. void DrawDebugGeometry(DebugRenderer, bool);
  10097. Variant GetAttribute(const String&) const;
  10098. ValueAnimation GetAttributeAnimation(const String&) const;
  10099. float GetAttributeAnimationSpeed(const String&) const;
  10100. float GetAttributeAnimationTime(const String&) const;
  10101. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10102. Variant GetAttributeDefault(const String&) const;
  10103. bool GetInterceptNetworkUpdate(const String&) const;
  10104. bool IsInView(Camera) const;
  10105. bool Load(File, bool = false);
  10106. bool Load(VectorBuffer&, bool = false);
  10107. bool LoadJSON(const JSONValue&, bool = false);
  10108. bool LoadXML(const XMLElement&, bool = false);
  10109. void MarkNetworkUpdate() const;
  10110. void Remove();
  10111. void RemoveAttributeAnimation(const String&);
  10112. void RemoveInstanceDefault();
  10113. void RemoveObjectAnimation();
  10114. void ResetToDefault();
  10115. bool Save(File) const;
  10116. bool Save(VectorBuffer&) const;
  10117. bool SaveJSON(JSONValue&) const;
  10118. bool SaveXML(XMLElement&) const;
  10119. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10120. void SetAnimationTime(float);
  10121. bool SetAttribute(const String&, const Variant&);
  10122. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10123. void SetAttributeAnimationSpeed(const String&, float);
  10124. void SetAttributeAnimationTime(const String&, float);
  10125. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10126. void SetFlip(bool, bool);
  10127. void SetInterceptNetworkUpdate(const String&, bool);
  10128. // Properties:
  10129. float alpha;
  10130. bool animationEnabled;
  10131. /* readonly */
  10132. Array<Variant> attributeDefaults;
  10133. /* readonly */
  10134. Array<AttributeInfo> attributeInfos;
  10135. Array<Variant> attributes;
  10136. BlendMode blendMode;
  10137. /* readonly */
  10138. BoundingBox boundingBox;
  10139. bool castShadows;
  10140. /* readonly */
  10141. String category;
  10142. Color color;
  10143. Material customMaterial;
  10144. float drawDistance;
  10145. bool enabled;
  10146. /* readonly */
  10147. bool enabledEffective;
  10148. bool flipX;
  10149. bool flipY;
  10150. Vector2 hotSpot;
  10151. /* readonly */
  10152. uint id;
  10153. /* readonly */
  10154. bool inView;
  10155. int layer;
  10156. uint lightMask;
  10157. float lodBias;
  10158. uint maxLights;
  10159. /* readonly */
  10160. Node node;
  10161. /* readonly */
  10162. uint numAttributes;
  10163. ObjectAnimation objectAnimation;
  10164. bool occludee;
  10165. bool occluder;
  10166. int orderInLayer;
  10167. /* readonly */
  10168. int refs;
  10169. float shadowDistance;
  10170. uint shadowMask;
  10171. Sprite2D sprite;
  10172. bool temporary;
  10173. /* readonly */
  10174. StringHash type;
  10175. /* readonly */
  10176. String typeName;
  10177. bool useHotSpot;
  10178. uint viewMask;
  10179. /* readonly */
  10180. int weakRefs;
  10181. /* readonly */
  10182. BoundingBox worldBoundingBox;
  10183. uint zoneMask;
  10184. };
  10185. class String
  10186. {
  10187. // Methods:
  10188. void AppendUTF8(uint);
  10189. uint AtUTF8(uint) const;
  10190. uint ByteOffsetUTF8(uint) const;
  10191. void Clear();
  10192. int Compare(const String&, bool = true) const;
  10193. bool Contains(const String&, bool = true) const;
  10194. bool Contains(uint8, bool = true) const;
  10195. bool EndsWith(const String&, bool = true) const;
  10196. uint Find(const String&, uint = 0, bool = true) const;
  10197. uint Find(uint8, uint = 0, bool = true) const;
  10198. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10199. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10200. void Join(Array<String>&, const String&);
  10201. uint NextUTF8Char(uint&) const;
  10202. void Replace(const String&, const String&, bool = true);
  10203. void Replace(uint8, uint8, bool = true);
  10204. void ReplaceUTF8(uint, uint);
  10205. String Replaced(const String&, const String&, bool = true) const;
  10206. String Replaced(uint8, uint8, bool = true) const;
  10207. void Resize(uint);
  10208. void SetUTF8FromLatin1(const String&);
  10209. Array<String> Split(uint8, bool = false) const;
  10210. bool StartsWith(const String&, bool = true) const;
  10211. String Substring(uint) const;
  10212. String Substring(uint, uint) const;
  10213. String SubstringUTF8(uint) const;
  10214. String SubstringUTF8(uint, uint) const;
  10215. bool ToBool() const;
  10216. Color ToColor() const;
  10217. double ToDouble() const;
  10218. float ToFloat() const;
  10219. int ToInt() const;
  10220. IntRect ToIntRect() const;
  10221. IntVector2 ToIntVector2() const;
  10222. String ToLower() const;
  10223. Matrix3 ToMatrix3() const;
  10224. Matrix3x4 ToMatrix3x4() const;
  10225. Matrix4 ToMatrix4() const;
  10226. Quaternion ToQuaternion() const;
  10227. uint ToUInt() const;
  10228. String ToUpper() const;
  10229. Vector2 ToVector2() const;
  10230. Vector3 ToVector3() const;
  10231. Vector4 ToVector4(bool = false) const;
  10232. Variant ToVectorVariant() const;
  10233. String Trimmed() const;
  10234. // Properties:
  10235. /* readonly */
  10236. bool empty;
  10237. /* readonly */
  10238. uint length;
  10239. /* readonly */
  10240. uint utf8Length;
  10241. };
  10242. class StringHash
  10243. {
  10244. // Methods:
  10245. String ToString() const;
  10246. // Properties:
  10247. /* readonly */
  10248. uint value;
  10249. };
  10250. class Technique
  10251. {
  10252. // Methods:
  10253. Pass CreatePass(const String&);
  10254. Pass GetPass(const String&);
  10255. Pass GetSupportedPass(const String&);
  10256. bool HasPass(const String&) const;
  10257. bool Load(File);
  10258. bool Load(VectorBuffer&);
  10259. void RemovePass(const String&);
  10260. bool Save(File) const;
  10261. bool Save(VectorBuffer&) const;
  10262. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10263. // Properties:
  10264. /* readonly */
  10265. String category;
  10266. bool desktop;
  10267. /* readonly */
  10268. uint memoryUse;
  10269. String name;
  10270. /* readonly */
  10271. uint numPasses;
  10272. /* readonly */
  10273. Array<String> passNames;
  10274. /* readonly */
  10275. Array<Pass> passes;
  10276. /* readonly */
  10277. int refs;
  10278. /* readonly */
  10279. bool supported;
  10280. /* readonly */
  10281. StringHash type;
  10282. /* readonly */
  10283. String typeName;
  10284. /* readonly */
  10285. uint useTimer;
  10286. /* readonly */
  10287. int weakRefs;
  10288. };
  10289. class TechniqueEntry
  10290. {
  10291. // Properties:
  10292. float lodDistance;
  10293. int qualityLevel;
  10294. Technique technique;
  10295. };
  10296. class Terrain
  10297. {
  10298. // Methods:
  10299. void ApplyAttributes();
  10300. void ApplyHeightMap();
  10301. void DrawDebugGeometry(DebugRenderer, bool);
  10302. Variant GetAttribute(const String&) const;
  10303. ValueAnimation GetAttributeAnimation(const String&) const;
  10304. float GetAttributeAnimationSpeed(const String&) const;
  10305. float GetAttributeAnimationTime(const String&) const;
  10306. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10307. Variant GetAttributeDefault(const String&) const;
  10308. float GetHeight(const Vector3&) const;
  10309. bool GetInterceptNetworkUpdate(const String&) const;
  10310. Vector3 GetNormal(const Vector3&) const;
  10311. TerrainPatch GetPatch(int, int) const;
  10312. bool Load(File, bool = false);
  10313. bool Load(VectorBuffer&, bool = false);
  10314. bool LoadJSON(const JSONValue&, bool = false);
  10315. bool LoadXML(const XMLElement&, bool = false);
  10316. void MarkNetworkUpdate() const;
  10317. void Remove();
  10318. void RemoveAttributeAnimation(const String&);
  10319. void RemoveInstanceDefault();
  10320. void RemoveObjectAnimation();
  10321. void ResetToDefault();
  10322. bool Save(File) const;
  10323. bool Save(VectorBuffer&) const;
  10324. bool SaveJSON(JSONValue&) const;
  10325. bool SaveXML(XMLElement&) const;
  10326. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10327. void SetAnimationTime(float);
  10328. bool SetAttribute(const String&, const Variant&);
  10329. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10330. void SetAttributeAnimationSpeed(const String&, float);
  10331. void SetAttributeAnimationTime(const String&, float);
  10332. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10333. void SetInterceptNetworkUpdate(const String&, bool);
  10334. IntVector2 WorldToHeightMap(const Vector3&) const;
  10335. // Properties:
  10336. bool animationEnabled;
  10337. /* readonly */
  10338. Array<Variant> attributeDefaults;
  10339. /* readonly */
  10340. Array<AttributeInfo> attributeInfos;
  10341. Array<Variant> attributes;
  10342. bool castShadows;
  10343. /* readonly */
  10344. String category;
  10345. float drawDistance;
  10346. bool enabled;
  10347. /* readonly */
  10348. bool enabledEffective;
  10349. Image heightMap;
  10350. /* readonly */
  10351. uint id;
  10352. uint lightMask;
  10353. float lodBias;
  10354. Material material;
  10355. uint maxLights;
  10356. uint maxLodLevels;
  10357. /* readonly */
  10358. Node node;
  10359. /* readonly */
  10360. uint numAttributes;
  10361. /* readonly */
  10362. IntVector2 numPatches;
  10363. /* readonly */
  10364. IntVector2 numVertices;
  10365. ObjectAnimation objectAnimation;
  10366. bool occludee;
  10367. bool occluder;
  10368. uint occlusionLodLevel;
  10369. int patchSize;
  10370. /* readonly */
  10371. Array<TerrainPatch> patches;
  10372. /* readonly */
  10373. int refs;
  10374. float shadowDistance;
  10375. uint shadowMask;
  10376. bool smoothing;
  10377. Vector3 spacing;
  10378. bool temporary;
  10379. /* readonly */
  10380. StringHash type;
  10381. /* readonly */
  10382. String typeName;
  10383. uint viewMask;
  10384. /* readonly */
  10385. int weakRefs;
  10386. uint zoneMask;
  10387. };
  10388. class TerrainPatch
  10389. {
  10390. // Methods:
  10391. void ApplyAttributes();
  10392. void DrawDebugGeometry(DebugRenderer, bool);
  10393. Variant GetAttribute(const String&) const;
  10394. ValueAnimation GetAttributeAnimation(const String&) const;
  10395. float GetAttributeAnimationSpeed(const String&) const;
  10396. float GetAttributeAnimationTime(const String&) const;
  10397. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10398. Variant GetAttributeDefault(const String&) const;
  10399. bool GetInterceptNetworkUpdate(const String&) const;
  10400. bool IsInView(Camera) const;
  10401. bool Load(File, bool = false);
  10402. bool Load(VectorBuffer&, bool = false);
  10403. bool LoadJSON(const JSONValue&, bool = false);
  10404. bool LoadXML(const XMLElement&, bool = false);
  10405. void MarkNetworkUpdate() const;
  10406. void Remove();
  10407. void RemoveAttributeAnimation(const String&);
  10408. void RemoveInstanceDefault();
  10409. void RemoveObjectAnimation();
  10410. void ResetToDefault();
  10411. bool Save(File) const;
  10412. bool Save(VectorBuffer&) const;
  10413. bool SaveJSON(JSONValue&) const;
  10414. bool SaveXML(XMLElement&) const;
  10415. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10416. void SetAnimationTime(float);
  10417. bool SetAttribute(const String&, const Variant&);
  10418. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10419. void SetAttributeAnimationSpeed(const String&, float);
  10420. void SetAttributeAnimationTime(const String&, float);
  10421. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10422. void SetInterceptNetworkUpdate(const String&, bool);
  10423. // Properties:
  10424. bool animationEnabled;
  10425. /* readonly */
  10426. Array<Variant> attributeDefaults;
  10427. /* readonly */
  10428. Array<AttributeInfo> attributeInfos;
  10429. Array<Variant> attributes;
  10430. /* readonly */
  10431. BoundingBox boundingBox;
  10432. bool castShadows;
  10433. /* readonly */
  10434. String category;
  10435. float drawDistance;
  10436. bool enabled;
  10437. /* readonly */
  10438. bool enabledEffective;
  10439. /* readonly */
  10440. uint id;
  10441. /* readonly */
  10442. bool inView;
  10443. uint lightMask;
  10444. float lodBias;
  10445. uint maxLights;
  10446. /* readonly */
  10447. Node node;
  10448. /* readonly */
  10449. uint numAttributes;
  10450. ObjectAnimation objectAnimation;
  10451. bool occludee;
  10452. bool occluder;
  10453. /* readonly */
  10454. int refs;
  10455. float shadowDistance;
  10456. uint shadowMask;
  10457. bool temporary;
  10458. /* readonly */
  10459. StringHash type;
  10460. /* readonly */
  10461. String typeName;
  10462. uint viewMask;
  10463. /* readonly */
  10464. int weakRefs;
  10465. /* readonly */
  10466. BoundingBox worldBoundingBox;
  10467. uint zoneMask;
  10468. };
  10469. class Text
  10470. {
  10471. // Methods:
  10472. void AddChild(UIElement);
  10473. void ApplyAttributes();
  10474. void BringToFront();
  10475. void ClearSelection();
  10476. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10477. void DisableLayoutUpdate();
  10478. IntVector2 ElementToScreen(const IntVector2&);
  10479. void EnableLayoutUpdate();
  10480. uint FindChild(UIElement) const;
  10481. Variant GetAttribute(const String&) const;
  10482. ValueAnimation GetAttributeAnimation(const String&) const;
  10483. float GetAttributeAnimationSpeed(const String&) const;
  10484. float GetAttributeAnimationTime(const String&) const;
  10485. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10486. Variant GetAttributeDefault(const String&) const;
  10487. UIElement GetChild(const String&, bool = false) const;
  10488. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10489. Array<UIElement> GetChildren(bool = false) const;
  10490. UIElement GetElementEventSender() const;
  10491. bool GetInterceptNetworkUpdate(const String&) const;
  10492. uint GetNumChildren(bool) const;
  10493. void InsertChild(uint, UIElement);
  10494. bool IsInside(IntVector2, bool);
  10495. bool IsInsideCombined(IntVector2, bool);
  10496. bool Load(File, bool = false);
  10497. bool Load(VectorBuffer&, bool = false);
  10498. bool LoadChildXML(XMLFile, XMLFile = null);
  10499. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10500. bool LoadJSON(const JSONValue&, bool = false);
  10501. bool LoadXML(File);
  10502. bool LoadXML(VectorBuffer&);
  10503. bool LoadXML(XMLFile, XMLFile);
  10504. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10505. bool LoadXML(const XMLElement&, bool = false);
  10506. void MarkNetworkUpdate() const;
  10507. void Remove();
  10508. void RemoveAllChildren();
  10509. void RemoveAttributeAnimation(const String&);
  10510. void RemoveChild(UIElement, uint = 0);
  10511. void RemoveChild(uint);
  10512. void RemoveInstanceDefault();
  10513. void RemoveObjectAnimation();
  10514. void ResetDeepEnabled();
  10515. void ResetToDefault();
  10516. bool Save(File) const;
  10517. bool Save(VectorBuffer&) const;
  10518. bool SaveJSON(JSONValue&) const;
  10519. bool SaveXML(File, const String& = "\t");
  10520. bool SaveXML(VectorBuffer&, const String& = "\t");
  10521. bool SaveXML(XMLElement&) const;
  10522. IntVector2 ScreenToElement(const IntVector2&);
  10523. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10524. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10525. void SetAnimationTime(float);
  10526. bool SetAttribute(const String&, const Variant&);
  10527. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10528. void SetAttributeAnimationSpeed(const String&, float);
  10529. void SetAttributeAnimationTime(const String&, float);
  10530. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10531. void SetDeepEnabled(bool);
  10532. void SetEnabledRecursive(bool);
  10533. void SetFixedHeight(int);
  10534. void SetFixedSize(int, int);
  10535. void SetFixedWidth(int);
  10536. bool SetFont(Font, int);
  10537. bool SetFont(const String&, int);
  10538. void SetInterceptNetworkUpdate(const String&, bool);
  10539. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10540. void SetMaxSize(int, int);
  10541. void SetMinSize(int, int);
  10542. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10543. void SetPosition(int, int);
  10544. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10545. void SetSize(int, int);
  10546. bool SetStyle(const String&, XMLFile = null);
  10547. bool SetStyle(const XMLElement&);
  10548. bool SetStyleAuto(XMLFile = null);
  10549. void UpdateLayout();
  10550. const Variant& GetVar(const StringHash&);
  10551. // Properties:
  10552. bool animationEnabled;
  10553. /* readonly */
  10554. Array<Variant> attributeDefaults;
  10555. /* readonly */
  10556. Array<AttributeInfo> attributeInfos;
  10557. Array<Variant> attributes;
  10558. bool autoLocalizable;
  10559. bool bringToBack;
  10560. bool bringToFront;
  10561. /* readonly */
  10562. String category;
  10563. /* readonly */
  10564. Array<IntVector2> charPositions;
  10565. /* readonly */
  10566. Array<IntVector2> charSizes;
  10567. /* readonly */
  10568. IntVector2 childOffset;
  10569. /* readonly */
  10570. Array<UIElement> children;
  10571. IntRect clipBorder;
  10572. bool clipChildren;
  10573. /* writeonly */
  10574. Color color;
  10575. /* readonly */
  10576. bool colorGradient;
  10577. Array<Color> colors;
  10578. /* readonly */
  10579. IntRect combinedScreenRect;
  10580. XMLFile defaultStyle;
  10581. /* readonly */
  10582. float derivedOpacity;
  10583. /* readonly */
  10584. uint dragButtonCombo;
  10585. /* readonly */
  10586. int dragButtonCount;
  10587. uint dragDropMode;
  10588. bool editable;
  10589. Color effectColor;
  10590. bool elementEventSender;
  10591. bool enabled;
  10592. /* readonly */
  10593. bool enabledSelf;
  10594. /* readonly */
  10595. bool fixedHeight;
  10596. /* readonly */
  10597. bool fixedSize;
  10598. /* readonly */
  10599. bool fixedWidth;
  10600. bool focus;
  10601. FocusMode focusMode;
  10602. /* readonly */
  10603. Font font;
  10604. /* readonly */
  10605. int fontSize;
  10606. int height;
  10607. HorizontalAlignment horizontalAlignment;
  10608. Color hoverColor;
  10609. /* readonly */
  10610. bool hovering;
  10611. int indent;
  10612. int indentSpacing;
  10613. /* readonly */
  10614. int indentWidth;
  10615. bool internal;
  10616. IntRect layoutBorder;
  10617. Vector2 layoutFlexScale;
  10618. LayoutMode layoutMode;
  10619. int layoutSpacing;
  10620. int maxHeight;
  10621. IntVector2 maxSize;
  10622. int maxWidth;
  10623. int minHeight;
  10624. IntVector2 minSize;
  10625. int minWidth;
  10626. String name;
  10627. /* readonly */
  10628. uint numAllChildren;
  10629. /* readonly */
  10630. uint numAttributes;
  10631. /* readonly */
  10632. uint numChars;
  10633. /* readonly */
  10634. uint numChildren;
  10635. /* readonly */
  10636. uint numRows;
  10637. ObjectAnimation objectAnimation;
  10638. float opacity;
  10639. UIElement parent;
  10640. IntVector2 position;
  10641. int priority;
  10642. /* readonly */
  10643. int refs;
  10644. /* readonly */
  10645. UIElement root;
  10646. /* readonly */
  10647. int rowHeight;
  10648. float rowSpacing;
  10649. /* readonly */
  10650. Array<int> rowWidths;
  10651. /* readonly */
  10652. IntVector2 screenPosition;
  10653. bool selected;
  10654. Color selectionColor;
  10655. /* readonly */
  10656. uint selectionLength;
  10657. /* readonly */
  10658. uint selectionStart;
  10659. IntVector2 size;
  10660. bool sortChildren;
  10661. String style;
  10662. bool temporary;
  10663. String text;
  10664. HorizontalAlignment textAlignment;
  10665. TextEffect textEffect;
  10666. TraversalMode traversalMode;
  10667. /* readonly */
  10668. StringHash type;
  10669. /* readonly */
  10670. String typeName;
  10671. bool useDerivedOpacity;
  10672. /* readonly */
  10673. VariantMap vars;
  10674. VerticalAlignment verticalAlignment;
  10675. bool visible;
  10676. /* readonly */
  10677. bool visibleEffective;
  10678. /* readonly */
  10679. int weakRefs;
  10680. int width;
  10681. bool wordwrap;
  10682. };
  10683. class Text3D
  10684. {
  10685. // Methods:
  10686. void ApplyAttributes();
  10687. void DrawDebugGeometry(DebugRenderer, bool);
  10688. Variant GetAttribute(const String&) const;
  10689. ValueAnimation GetAttributeAnimation(const String&) const;
  10690. float GetAttributeAnimationSpeed(const String&) const;
  10691. float GetAttributeAnimationTime(const String&) const;
  10692. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10693. Variant GetAttributeDefault(const String&) const;
  10694. bool GetInterceptNetworkUpdate(const String&) const;
  10695. bool IsInView(Camera) const;
  10696. bool Load(File, bool = false);
  10697. bool Load(VectorBuffer&, bool = false);
  10698. bool LoadJSON(const JSONValue&, bool = false);
  10699. bool LoadXML(const XMLElement&, bool = false);
  10700. void MarkNetworkUpdate() const;
  10701. void Remove();
  10702. void RemoveAttributeAnimation(const String&);
  10703. void RemoveInstanceDefault();
  10704. void RemoveObjectAnimation();
  10705. void ResetToDefault();
  10706. bool Save(File) const;
  10707. bool Save(VectorBuffer&) const;
  10708. bool SaveJSON(JSONValue&) const;
  10709. bool SaveXML(XMLElement&) const;
  10710. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10711. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10712. void SetAnimationTime(float);
  10713. bool SetAttribute(const String&, const Variant&);
  10714. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10715. void SetAttributeAnimationSpeed(const String&, float);
  10716. void SetAttributeAnimationTime(const String&, float);
  10717. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10718. bool SetFont(Font, int);
  10719. bool SetFont(const String&, int);
  10720. void SetInterceptNetworkUpdate(const String&, bool);
  10721. // Properties:
  10722. bool animationEnabled;
  10723. /* readonly */
  10724. Array<Variant> attributeDefaults;
  10725. /* readonly */
  10726. Array<AttributeInfo> attributeInfos;
  10727. Array<Variant> attributes;
  10728. /* readonly */
  10729. BoundingBox boundingBox;
  10730. bool castShadows;
  10731. /* readonly */
  10732. String category;
  10733. /* readonly */
  10734. Array<IntVector2> charPositions;
  10735. /* readonly */
  10736. Array<IntVector2> charSizes;
  10737. /* writeonly */
  10738. Color color;
  10739. Array<Color> colors;
  10740. float drawDistance;
  10741. Color effectColor;
  10742. float effectDepthBias;
  10743. bool enabled;
  10744. /* readonly */
  10745. bool enabledEffective;
  10746. FaceCameraMode faceCameraMode;
  10747. /* readonly */
  10748. Font font;
  10749. /* readonly */
  10750. int fontSize;
  10751. HorizontalAlignment horizontalAlignment;
  10752. /* readonly */
  10753. uint id;
  10754. /* readonly */
  10755. bool inView;
  10756. uint lightMask;
  10757. float lodBias;
  10758. Material material;
  10759. uint maxLights;
  10760. /* readonly */
  10761. Node node;
  10762. /* readonly */
  10763. uint numAttributes;
  10764. /* readonly */
  10765. uint numChars;
  10766. /* readonly */
  10767. uint numRows;
  10768. ObjectAnimation objectAnimation;
  10769. bool occludee;
  10770. bool occluder;
  10771. float opacity;
  10772. /* readonly */
  10773. int refs;
  10774. /* readonly */
  10775. int rowHeight;
  10776. float rowSpacing;
  10777. /* readonly */
  10778. Array<int> rowWidths;
  10779. float shadowDistance;
  10780. uint shadowMask;
  10781. bool temporary;
  10782. String text;
  10783. HorizontalAlignment textAlignment;
  10784. TextEffect textEffect;
  10785. /* readonly */
  10786. StringHash type;
  10787. /* readonly */
  10788. String typeName;
  10789. VerticalAlignment verticalAlignment;
  10790. uint viewMask;
  10791. /* readonly */
  10792. int weakRefs;
  10793. int width;
  10794. bool wordwrap;
  10795. /* readonly */
  10796. BoundingBox worldBoundingBox;
  10797. uint zoneMask;
  10798. };
  10799. class Texture
  10800. {
  10801. // Methods:
  10802. void ClearDataLost();
  10803. bool Load(File);
  10804. bool Load(VectorBuffer&);
  10805. bool Save(File) const;
  10806. bool Save(VectorBuffer&) const;
  10807. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10808. void SetNumLevels(uint);
  10809. // Properties:
  10810. Array<TextureAddressMode> addressMode;
  10811. Texture backupTexture;
  10812. Color borderColor;
  10813. /* readonly */
  10814. String category;
  10815. /* readonly */
  10816. uint components;
  10817. /* readonly */
  10818. bool compressed;
  10819. /* readonly */
  10820. bool dataLost;
  10821. TextureFilterMode filterMode;
  10822. /* readonly */
  10823. uint format;
  10824. /* readonly */
  10825. int height;
  10826. /* readonly */
  10827. Array<int> levelHeight;
  10828. /* readonly */
  10829. Array<int> levelWidth;
  10830. /* readonly */
  10831. uint levels;
  10832. /* readonly */
  10833. uint memoryUse;
  10834. Array<int> mipsToSkip;
  10835. String name;
  10836. /* readonly */
  10837. int refs;
  10838. bool sRGB;
  10839. /* readonly */
  10840. StringHash type;
  10841. /* readonly */
  10842. String typeName;
  10843. /* readonly */
  10844. TextureUsage usage;
  10845. /* readonly */
  10846. uint useTimer;
  10847. /* readonly */
  10848. int weakRefs;
  10849. /* readonly */
  10850. int width;
  10851. };
  10852. class Texture2D
  10853. {
  10854. // Methods:
  10855. void ClearDataLost();
  10856. Image GetImage() const;
  10857. bool Load(File);
  10858. bool Load(VectorBuffer&);
  10859. bool Save(File) const;
  10860. bool Save(VectorBuffer&) const;
  10861. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10862. bool SetData(Image, bool = false);
  10863. void SetNumLevels(uint);
  10864. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10865. // Properties:
  10866. Array<TextureAddressMode> addressMode;
  10867. Texture backupTexture;
  10868. Color borderColor;
  10869. /* readonly */
  10870. String category;
  10871. /* readonly */
  10872. uint components;
  10873. /* readonly */
  10874. bool compressed;
  10875. /* readonly */
  10876. bool dataLost;
  10877. TextureFilterMode filterMode;
  10878. /* readonly */
  10879. uint format;
  10880. /* readonly */
  10881. int height;
  10882. /* readonly */
  10883. Array<int> levelHeight;
  10884. /* readonly */
  10885. Array<int> levelWidth;
  10886. /* readonly */
  10887. uint levels;
  10888. /* readonly */
  10889. uint memoryUse;
  10890. Array<int> mipsToSkip;
  10891. String name;
  10892. /* readonly */
  10893. int refs;
  10894. /* readonly */
  10895. RenderSurface renderSurface;
  10896. bool sRGB;
  10897. /* readonly */
  10898. StringHash type;
  10899. /* readonly */
  10900. String typeName;
  10901. /* readonly */
  10902. TextureUsage usage;
  10903. /* readonly */
  10904. uint useTimer;
  10905. /* readonly */
  10906. int weakRefs;
  10907. /* readonly */
  10908. int width;
  10909. };
  10910. class Texture3D
  10911. {
  10912. // Methods:
  10913. void ClearDataLost();
  10914. bool Load(File);
  10915. bool Load(VectorBuffer&);
  10916. bool Save(File) const;
  10917. bool Save(VectorBuffer&) const;
  10918. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10919. bool SetData(Image, bool = false);
  10920. void SetNumLevels(uint);
  10921. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10922. // Properties:
  10923. Array<TextureAddressMode> addressMode;
  10924. Texture backupTexture;
  10925. Color borderColor;
  10926. /* readonly */
  10927. String category;
  10928. /* readonly */
  10929. uint components;
  10930. /* readonly */
  10931. bool compressed;
  10932. /* readonly */
  10933. bool dataLost;
  10934. TextureFilterMode filterMode;
  10935. /* readonly */
  10936. uint format;
  10937. /* readonly */
  10938. int height;
  10939. /* readonly */
  10940. Array<int> levelHeight;
  10941. /* readonly */
  10942. Array<int> levelWidth;
  10943. /* readonly */
  10944. uint levels;
  10945. /* readonly */
  10946. uint memoryUse;
  10947. Array<int> mipsToSkip;
  10948. String name;
  10949. /* readonly */
  10950. int refs;
  10951. /* readonly */
  10952. RenderSurface renderSurface;
  10953. bool sRGB;
  10954. /* readonly */
  10955. StringHash type;
  10956. /* readonly */
  10957. String typeName;
  10958. /* readonly */
  10959. TextureUsage usage;
  10960. /* readonly */
  10961. uint useTimer;
  10962. /* readonly */
  10963. int weakRefs;
  10964. /* readonly */
  10965. int width;
  10966. };
  10967. class TextureCube
  10968. {
  10969. // Methods:
  10970. void ClearDataLost();
  10971. bool Load(File);
  10972. bool Load(VectorBuffer&);
  10973. bool Save(File) const;
  10974. bool Save(VectorBuffer&) const;
  10975. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10976. bool SetData(CubeMapFace, Image, bool = false);
  10977. void SetNumLevels(uint);
  10978. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  10979. // Properties:
  10980. Array<TextureAddressMode> addressMode;
  10981. Texture backupTexture;
  10982. Color borderColor;
  10983. /* readonly */
  10984. String category;
  10985. /* readonly */
  10986. uint components;
  10987. /* readonly */
  10988. bool compressed;
  10989. /* readonly */
  10990. bool dataLost;
  10991. TextureFilterMode filterMode;
  10992. /* readonly */
  10993. uint format;
  10994. /* readonly */
  10995. int height;
  10996. /* readonly */
  10997. Array<int> levelHeight;
  10998. /* readonly */
  10999. Array<int> levelWidth;
  11000. /* readonly */
  11001. uint levels;
  11002. /* readonly */
  11003. uint memoryUse;
  11004. Array<int> mipsToSkip;
  11005. String name;
  11006. /* readonly */
  11007. int refs;
  11008. /* readonly */
  11009. Array<RenderSurface> renderSurfaces;
  11010. bool sRGB;
  11011. /* readonly */
  11012. StringHash type;
  11013. /* readonly */
  11014. String typeName;
  11015. /* readonly */
  11016. TextureUsage usage;
  11017. /* readonly */
  11018. uint useTimer;
  11019. /* readonly */
  11020. int weakRefs;
  11021. /* readonly */
  11022. int width;
  11023. };
  11024. class TextureFrame
  11025. {
  11026. // Properties:
  11027. float time;
  11028. Rect uv;
  11029. };
  11030. class Tile2D
  11031. {
  11032. // Methods:
  11033. bool HasProperty(const String&) const;
  11034. const String& GetProperty(const String&) const;
  11035. // Properties:
  11036. /* readonly */
  11037. int gid;
  11038. /* readonly */
  11039. int refs;
  11040. /* readonly */
  11041. Sprite2D sprite;
  11042. /* readonly */
  11043. int weakRefs;
  11044. };
  11045. class TileMap2D
  11046. {
  11047. // Methods:
  11048. void ApplyAttributes();
  11049. void DrawDebugGeometry(DebugRenderer, bool);
  11050. Variant GetAttribute(const String&) const;
  11051. ValueAnimation GetAttributeAnimation(const String&) const;
  11052. float GetAttributeAnimationSpeed(const String&) const;
  11053. float GetAttributeAnimationTime(const String&) const;
  11054. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11055. Variant GetAttributeDefault(const String&) const;
  11056. bool GetInterceptNetworkUpdate(const String&) const;
  11057. TileMapLayer2D GetLayer(uint) const;
  11058. bool Load(File, bool = false);
  11059. bool Load(VectorBuffer&, bool = false);
  11060. bool LoadJSON(const JSONValue&, bool = false);
  11061. bool LoadXML(const XMLElement&, bool = false);
  11062. void MarkNetworkUpdate() const;
  11063. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11064. void Remove();
  11065. void RemoveAttributeAnimation(const String&);
  11066. void RemoveInstanceDefault();
  11067. void RemoveObjectAnimation();
  11068. void ResetToDefault();
  11069. bool Save(File) const;
  11070. bool Save(VectorBuffer&) const;
  11071. bool SaveJSON(JSONValue&) const;
  11072. bool SaveXML(XMLElement&) const;
  11073. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11074. void SetAnimationTime(float);
  11075. bool SetAttribute(const String&, const Variant&);
  11076. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11077. void SetAttributeAnimationSpeed(const String&, float);
  11078. void SetAttributeAnimationTime(const String&, float);
  11079. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11080. void SetInterceptNetworkUpdate(const String&, bool);
  11081. Vector2 TileIndexToPosition(int, int) const;
  11082. // Properties:
  11083. bool animationEnabled;
  11084. /* readonly */
  11085. Array<Variant> attributeDefaults;
  11086. /* readonly */
  11087. Array<AttributeInfo> attributeInfos;
  11088. Array<Variant> attributes;
  11089. /* readonly */
  11090. String category;
  11091. bool enabled;
  11092. /* readonly */
  11093. bool enabledEffective;
  11094. /* readonly */
  11095. uint id;
  11096. /* readonly */
  11097. TileMapInfo2D info;
  11098. /* readonly */
  11099. Node node;
  11100. /* readonly */
  11101. uint numAttributes;
  11102. /* readonly */
  11103. uint numLayers;
  11104. ObjectAnimation objectAnimation;
  11105. /* readonly */
  11106. int refs;
  11107. bool temporary;
  11108. TmxFile2D tmxFile;
  11109. /* readonly */
  11110. StringHash type;
  11111. /* readonly */
  11112. String typeName;
  11113. /* readonly */
  11114. int weakRefs;
  11115. };
  11116. class TileMapInfo2D
  11117. {
  11118. // Properties:
  11119. int height;
  11120. /* readonly */
  11121. float mapHeight;
  11122. /* readonly */
  11123. float mapWidth;
  11124. Orientation2D orientation;
  11125. float tileHeight;
  11126. float tileWidth;
  11127. int width;
  11128. };
  11129. class TileMapLayer2D
  11130. {
  11131. // Methods:
  11132. void ApplyAttributes();
  11133. void DrawDebugGeometry(DebugRenderer, bool);
  11134. Variant GetAttribute(const String&) const;
  11135. ValueAnimation GetAttributeAnimation(const String&) const;
  11136. float GetAttributeAnimationSpeed(const String&) const;
  11137. float GetAttributeAnimationTime(const String&) const;
  11138. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11139. Variant GetAttributeDefault(const String&) const;
  11140. bool GetInterceptNetworkUpdate(const String&) const;
  11141. TileMapObject2D GetObject(uint) const;
  11142. Node GetObjectNode(uint) const;
  11143. Tile2D GetTile(int, int) const;
  11144. Node GetTileNode(int, int) const;
  11145. bool HasProperty(const String&) const;
  11146. bool Load(File, bool = false);
  11147. bool Load(VectorBuffer&, bool = false);
  11148. bool LoadJSON(const JSONValue&, bool = false);
  11149. bool LoadXML(const XMLElement&, bool = false);
  11150. void MarkNetworkUpdate() const;
  11151. void Remove();
  11152. void RemoveAttributeAnimation(const String&);
  11153. void RemoveInstanceDefault();
  11154. void RemoveObjectAnimation();
  11155. void ResetToDefault();
  11156. bool Save(File) const;
  11157. bool Save(VectorBuffer&) const;
  11158. bool SaveJSON(JSONValue&) const;
  11159. bool SaveXML(XMLElement&) const;
  11160. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11161. void SetAnimationTime(float);
  11162. bool SetAttribute(const String&, const Variant&);
  11163. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11164. void SetAttributeAnimationSpeed(const String&, float);
  11165. void SetAttributeAnimationTime(const String&, float);
  11166. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11167. void SetInterceptNetworkUpdate(const String&, bool);
  11168. const String& GetProperty(const String&) const;
  11169. // Properties:
  11170. bool animationEnabled;
  11171. /* readonly */
  11172. Array<Variant> attributeDefaults;
  11173. /* readonly */
  11174. Array<AttributeInfo> attributeInfos;
  11175. Array<Variant> attributes;
  11176. /* readonly */
  11177. String category;
  11178. int drawOrder;
  11179. bool enabled;
  11180. /* readonly */
  11181. bool enabledEffective;
  11182. /* readonly */
  11183. int height;
  11184. /* readonly */
  11185. uint id;
  11186. /* readonly */
  11187. Node imageNode;
  11188. /* readonly */
  11189. TileMapLayerType2D layerType;
  11190. /* readonly */
  11191. Node node;
  11192. /* readonly */
  11193. uint numAttributes;
  11194. /* readonly */
  11195. uint numObjects;
  11196. ObjectAnimation objectAnimation;
  11197. /* readonly */
  11198. int refs;
  11199. bool temporary;
  11200. /* readonly */
  11201. StringHash type;
  11202. /* readonly */
  11203. String typeName;
  11204. bool visible;
  11205. /* readonly */
  11206. int weakRefs;
  11207. /* readonly */
  11208. int width;
  11209. };
  11210. class TileMapObject2D
  11211. {
  11212. // Methods:
  11213. bool HasProperty(const String&) const;
  11214. const String& GetProperty(const String&) const;
  11215. const Vector2& GetPoint(uint) const;
  11216. // Properties:
  11217. /* readonly */
  11218. String name;
  11219. /* readonly */
  11220. uint numPoints;
  11221. /* readonly */
  11222. TileObjectType2D objectType;
  11223. /* readonly */
  11224. Vector2 position;
  11225. /* readonly */
  11226. int refs;
  11227. /* readonly */
  11228. Vector2 size;
  11229. /* readonly */
  11230. int tileGid;
  11231. /* readonly */
  11232. Sprite2D tileSprite;
  11233. /* readonly */
  11234. String type;
  11235. /* readonly */
  11236. int weakRefs;
  11237. };
  11238. class Time
  11239. {
  11240. // Methods:
  11241. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11242. // Properties:
  11243. /* readonly */
  11244. String category;
  11245. /* readonly */
  11246. float elapsedTime;
  11247. /* readonly */
  11248. uint frameNumber;
  11249. /* readonly */
  11250. int refs;
  11251. /* readonly */
  11252. uint systemTime;
  11253. /* readonly */
  11254. uint timeSinceEpoch;
  11255. /* readonly */
  11256. String timeStamp;
  11257. /* readonly */
  11258. float timeStep;
  11259. /* readonly */
  11260. StringHash type;
  11261. /* readonly */
  11262. String typeName;
  11263. /* readonly */
  11264. int weakRefs;
  11265. };
  11266. class Timer
  11267. {
  11268. // Methods:
  11269. uint GetMSec(bool);
  11270. void Reset();
  11271. };
  11272. class TmxFile2D
  11273. {
  11274. // Methods:
  11275. bool Load(File);
  11276. bool Load(VectorBuffer&);
  11277. bool Save(File) const;
  11278. bool Save(VectorBuffer&) const;
  11279. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11280. // Properties:
  11281. /* readonly */
  11282. String category;
  11283. /* readonly */
  11284. uint memoryUse;
  11285. String name;
  11286. /* readonly */
  11287. int refs;
  11288. /* readonly */
  11289. StringHash type;
  11290. /* readonly */
  11291. String typeName;
  11292. /* readonly */
  11293. uint useTimer;
  11294. /* readonly */
  11295. int weakRefs;
  11296. };
  11297. class ToolTip
  11298. {
  11299. // Methods:
  11300. void AddChild(UIElement);
  11301. void ApplyAttributes();
  11302. void BringToFront();
  11303. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11304. void DisableLayoutUpdate();
  11305. IntVector2 ElementToScreen(const IntVector2&);
  11306. void EnableLayoutUpdate();
  11307. uint FindChild(UIElement) const;
  11308. Variant GetAttribute(const String&) const;
  11309. ValueAnimation GetAttributeAnimation(const String&) const;
  11310. float GetAttributeAnimationSpeed(const String&) const;
  11311. float GetAttributeAnimationTime(const String&) const;
  11312. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11313. Variant GetAttributeDefault(const String&) const;
  11314. UIElement GetChild(const String&, bool = false) const;
  11315. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11316. Array<UIElement> GetChildren(bool = false) const;
  11317. UIElement GetElementEventSender() const;
  11318. bool GetInterceptNetworkUpdate(const String&) const;
  11319. uint GetNumChildren(bool) const;
  11320. void InsertChild(uint, UIElement);
  11321. bool IsInside(IntVector2, bool);
  11322. bool IsInsideCombined(IntVector2, bool);
  11323. bool Load(File, bool = false);
  11324. bool Load(VectorBuffer&, bool = false);
  11325. bool LoadChildXML(XMLFile, XMLFile = null);
  11326. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11327. bool LoadJSON(const JSONValue&, bool = false);
  11328. bool LoadXML(File);
  11329. bool LoadXML(VectorBuffer&);
  11330. bool LoadXML(XMLFile, XMLFile);
  11331. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11332. bool LoadXML(const XMLElement&, bool = false);
  11333. void MarkNetworkUpdate() const;
  11334. void Remove();
  11335. void RemoveAllChildren();
  11336. void RemoveAttributeAnimation(const String&);
  11337. void RemoveChild(UIElement, uint = 0);
  11338. void RemoveChild(uint);
  11339. void RemoveInstanceDefault();
  11340. void RemoveObjectAnimation();
  11341. void ResetDeepEnabled();
  11342. void ResetToDefault();
  11343. bool Save(File) const;
  11344. bool Save(VectorBuffer&) const;
  11345. bool SaveJSON(JSONValue&) const;
  11346. bool SaveXML(File, const String& = "\t");
  11347. bool SaveXML(VectorBuffer&, const String& = "\t");
  11348. bool SaveXML(XMLElement&) const;
  11349. IntVector2 ScreenToElement(const IntVector2&);
  11350. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11351. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11352. void SetAnimationTime(float);
  11353. bool SetAttribute(const String&, const Variant&);
  11354. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11355. void SetAttributeAnimationSpeed(const String&, float);
  11356. void SetAttributeAnimationTime(const String&, float);
  11357. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11358. void SetDeepEnabled(bool);
  11359. void SetEnabledRecursive(bool);
  11360. void SetFixedHeight(int);
  11361. void SetFixedSize(int, int);
  11362. void SetFixedWidth(int);
  11363. void SetInterceptNetworkUpdate(const String&, bool);
  11364. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11365. void SetMaxSize(int, int);
  11366. void SetMinSize(int, int);
  11367. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11368. void SetPosition(int, int);
  11369. void SetSize(int, int);
  11370. bool SetStyle(const String&, XMLFile = null);
  11371. bool SetStyle(const XMLElement&);
  11372. bool SetStyleAuto(XMLFile = null);
  11373. void UpdateLayout();
  11374. const Variant& GetVar(const StringHash&);
  11375. // Properties:
  11376. bool animationEnabled;
  11377. /* readonly */
  11378. Array<Variant> attributeDefaults;
  11379. /* readonly */
  11380. Array<AttributeInfo> attributeInfos;
  11381. Array<Variant> attributes;
  11382. bool bringToBack;
  11383. bool bringToFront;
  11384. /* readonly */
  11385. String category;
  11386. /* readonly */
  11387. IntVector2 childOffset;
  11388. /* readonly */
  11389. Array<UIElement> children;
  11390. IntRect clipBorder;
  11391. bool clipChildren;
  11392. /* writeonly */
  11393. Color color;
  11394. /* readonly */
  11395. bool colorGradient;
  11396. Array<Color> colors;
  11397. /* readonly */
  11398. IntRect combinedScreenRect;
  11399. XMLFile defaultStyle;
  11400. float delay;
  11401. /* readonly */
  11402. float derivedOpacity;
  11403. /* readonly */
  11404. uint dragButtonCombo;
  11405. /* readonly */
  11406. int dragButtonCount;
  11407. uint dragDropMode;
  11408. bool editable;
  11409. bool elementEventSender;
  11410. bool enabled;
  11411. /* readonly */
  11412. bool enabledSelf;
  11413. /* readonly */
  11414. bool fixedHeight;
  11415. /* readonly */
  11416. bool fixedSize;
  11417. /* readonly */
  11418. bool fixedWidth;
  11419. bool focus;
  11420. FocusMode focusMode;
  11421. int height;
  11422. HorizontalAlignment horizontalAlignment;
  11423. /* readonly */
  11424. bool hovering;
  11425. int indent;
  11426. int indentSpacing;
  11427. /* readonly */
  11428. int indentWidth;
  11429. bool internal;
  11430. IntRect layoutBorder;
  11431. Vector2 layoutFlexScale;
  11432. LayoutMode layoutMode;
  11433. int layoutSpacing;
  11434. int maxHeight;
  11435. IntVector2 maxSize;
  11436. int maxWidth;
  11437. int minHeight;
  11438. IntVector2 minSize;
  11439. int minWidth;
  11440. String name;
  11441. /* readonly */
  11442. uint numAllChildren;
  11443. /* readonly */
  11444. uint numAttributes;
  11445. /* readonly */
  11446. uint numChildren;
  11447. ObjectAnimation objectAnimation;
  11448. float opacity;
  11449. UIElement parent;
  11450. IntVector2 position;
  11451. int priority;
  11452. /* readonly */
  11453. int refs;
  11454. /* readonly */
  11455. UIElement root;
  11456. /* readonly */
  11457. IntVector2 screenPosition;
  11458. bool selected;
  11459. IntVector2 size;
  11460. bool sortChildren;
  11461. String style;
  11462. bool temporary;
  11463. TraversalMode traversalMode;
  11464. /* readonly */
  11465. StringHash type;
  11466. /* readonly */
  11467. String typeName;
  11468. bool useDerivedOpacity;
  11469. /* readonly */
  11470. VariantMap vars;
  11471. VerticalAlignment verticalAlignment;
  11472. bool visible;
  11473. /* readonly */
  11474. bool visibleEffective;
  11475. /* readonly */
  11476. int weakRefs;
  11477. int width;
  11478. };
  11479. class TouchState
  11480. {
  11481. // Properties:
  11482. IntVector2 delta;
  11483. IntVector2 lastPosition;
  11484. IntVector2 position;
  11485. float pressure;
  11486. int touchID;
  11487. /* readonly */
  11488. UIElement touchedElement;
  11489. };
  11490. class UI
  11491. {
  11492. // Methods:
  11493. void Clear();
  11494. void DebugDraw(UIElement);
  11495. UIElement GetElementAt(const IntVector2&, bool = true);
  11496. UIElement GetElementAt(int, int, bool = true);
  11497. bool HasModalElement() const;
  11498. bool IsDragging() const;
  11499. UIElement LoadLayout(File);
  11500. UIElement LoadLayout(File, XMLFile);
  11501. UIElement LoadLayout(VectorBuffer&);
  11502. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11503. UIElement LoadLayout(XMLFile);
  11504. UIElement LoadLayout(XMLFile, XMLFile);
  11505. bool SaveLayout(File, UIElement);
  11506. bool SaveLayout(VectorBuffer&, UIElement);
  11507. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11508. void SetFocusElement(UIElement, bool = false);
  11509. void SetHeight(float);
  11510. void SetWidth(float);
  11511. const Array<UIElement> GetDragElements();
  11512. // Properties:
  11513. /* readonly */
  11514. String category;
  11515. String clipBoardText;
  11516. Cursor cursor;
  11517. /* readonly */
  11518. IntVector2 cursorPosition;
  11519. float defaultToolTipDelay;
  11520. float doubleClickInterval;
  11521. int dragBeginDistance;
  11522. float dragBeginInterval;
  11523. UIElement focusElement;
  11524. bool forceAutoHint;
  11525. /* readonly */
  11526. UIElement frontElement;
  11527. int maxFontTextureSize;
  11528. /* readonly */
  11529. UIElement modalRoot;
  11530. bool nonFocusedMouseWheel;
  11531. /* readonly */
  11532. int refs;
  11533. /* readonly */
  11534. UIElement root;
  11535. float scale;
  11536. /* readonly */
  11537. StringHash type;
  11538. /* readonly */
  11539. String typeName;
  11540. bool useMutableGlyphs;
  11541. bool useScreenKeyboard;
  11542. bool useSystemClipboard;
  11543. /* readonly */
  11544. int weakRefs;
  11545. };
  11546. class UIElement
  11547. {
  11548. // Methods:
  11549. void AddChild(UIElement);
  11550. void ApplyAttributes();
  11551. void BringToFront();
  11552. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11553. void DisableLayoutUpdate();
  11554. IntVector2 ElementToScreen(const IntVector2&);
  11555. void EnableLayoutUpdate();
  11556. uint FindChild(UIElement) const;
  11557. Variant GetAttribute(const String&) const;
  11558. ValueAnimation GetAttributeAnimation(const String&) const;
  11559. float GetAttributeAnimationSpeed(const String&) const;
  11560. float GetAttributeAnimationTime(const String&) const;
  11561. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11562. Variant GetAttributeDefault(const String&) const;
  11563. UIElement GetChild(const String&, bool = false) const;
  11564. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11565. Array<UIElement> GetChildren(bool = false) const;
  11566. UIElement GetElementEventSender() const;
  11567. bool GetInterceptNetworkUpdate(const String&) const;
  11568. uint GetNumChildren(bool) const;
  11569. void InsertChild(uint, UIElement);
  11570. bool IsInside(IntVector2, bool);
  11571. bool IsInsideCombined(IntVector2, bool);
  11572. bool Load(File, bool = false);
  11573. bool Load(VectorBuffer&, bool = false);
  11574. bool LoadChildXML(XMLFile, XMLFile = null);
  11575. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11576. bool LoadJSON(const JSONValue&, bool = false);
  11577. bool LoadXML(File);
  11578. bool LoadXML(VectorBuffer&);
  11579. bool LoadXML(XMLFile, XMLFile);
  11580. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11581. bool LoadXML(const XMLElement&, bool = false);
  11582. void MarkNetworkUpdate() const;
  11583. void Remove();
  11584. void RemoveAllChildren();
  11585. void RemoveAttributeAnimation(const String&);
  11586. void RemoveChild(UIElement, uint = 0);
  11587. void RemoveChild(uint);
  11588. void RemoveInstanceDefault();
  11589. void RemoveObjectAnimation();
  11590. void ResetDeepEnabled();
  11591. void ResetToDefault();
  11592. bool Save(File) const;
  11593. bool Save(VectorBuffer&) const;
  11594. bool SaveJSON(JSONValue&) const;
  11595. bool SaveXML(File, const String& = "\t");
  11596. bool SaveXML(VectorBuffer&, const String& = "\t");
  11597. bool SaveXML(XMLElement&) const;
  11598. IntVector2 ScreenToElement(const IntVector2&);
  11599. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11600. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11601. void SetAnimationTime(float);
  11602. bool SetAttribute(const String&, const Variant&);
  11603. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11604. void SetAttributeAnimationSpeed(const String&, float);
  11605. void SetAttributeAnimationTime(const String&, float);
  11606. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11607. void SetDeepEnabled(bool);
  11608. void SetEnabledRecursive(bool);
  11609. void SetFixedHeight(int);
  11610. void SetFixedSize(int, int);
  11611. void SetFixedWidth(int);
  11612. void SetInterceptNetworkUpdate(const String&, bool);
  11613. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11614. void SetMaxSize(int, int);
  11615. void SetMinSize(int, int);
  11616. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11617. void SetPosition(int, int);
  11618. void SetSize(int, int);
  11619. bool SetStyle(const String&, XMLFile = null);
  11620. bool SetStyle(const XMLElement&);
  11621. bool SetStyleAuto(XMLFile = null);
  11622. void UpdateLayout();
  11623. const Variant& GetVar(const StringHash&);
  11624. // Properties:
  11625. bool animationEnabled;
  11626. /* readonly */
  11627. Array<Variant> attributeDefaults;
  11628. /* readonly */
  11629. Array<AttributeInfo> attributeInfos;
  11630. Array<Variant> attributes;
  11631. bool bringToBack;
  11632. bool bringToFront;
  11633. /* readonly */
  11634. String category;
  11635. /* readonly */
  11636. IntVector2 childOffset;
  11637. /* readonly */
  11638. Array<UIElement> children;
  11639. IntRect clipBorder;
  11640. bool clipChildren;
  11641. /* writeonly */
  11642. Color color;
  11643. /* readonly */
  11644. bool colorGradient;
  11645. Array<Color> colors;
  11646. /* readonly */
  11647. IntRect combinedScreenRect;
  11648. XMLFile defaultStyle;
  11649. /* readonly */
  11650. float derivedOpacity;
  11651. /* readonly */
  11652. uint dragButtonCombo;
  11653. /* readonly */
  11654. int dragButtonCount;
  11655. uint dragDropMode;
  11656. bool editable;
  11657. bool elementEventSender;
  11658. bool enabled;
  11659. /* readonly */
  11660. bool enabledSelf;
  11661. /* readonly */
  11662. bool fixedHeight;
  11663. /* readonly */
  11664. bool fixedSize;
  11665. /* readonly */
  11666. bool fixedWidth;
  11667. bool focus;
  11668. FocusMode focusMode;
  11669. int height;
  11670. HorizontalAlignment horizontalAlignment;
  11671. /* readonly */
  11672. bool hovering;
  11673. int indent;
  11674. int indentSpacing;
  11675. /* readonly */
  11676. int indentWidth;
  11677. bool internal;
  11678. IntRect layoutBorder;
  11679. Vector2 layoutFlexScale;
  11680. LayoutMode layoutMode;
  11681. int layoutSpacing;
  11682. int maxHeight;
  11683. IntVector2 maxSize;
  11684. int maxWidth;
  11685. int minHeight;
  11686. IntVector2 minSize;
  11687. int minWidth;
  11688. String name;
  11689. /* readonly */
  11690. uint numAllChildren;
  11691. /* readonly */
  11692. uint numAttributes;
  11693. /* readonly */
  11694. uint numChildren;
  11695. ObjectAnimation objectAnimation;
  11696. float opacity;
  11697. UIElement parent;
  11698. IntVector2 position;
  11699. int priority;
  11700. /* readonly */
  11701. int refs;
  11702. /* readonly */
  11703. UIElement root;
  11704. /* readonly */
  11705. IntVector2 screenPosition;
  11706. bool selected;
  11707. IntVector2 size;
  11708. bool sortChildren;
  11709. String style;
  11710. bool temporary;
  11711. TraversalMode traversalMode;
  11712. /* readonly */
  11713. StringHash type;
  11714. /* readonly */
  11715. String typeName;
  11716. bool useDerivedOpacity;
  11717. /* readonly */
  11718. VariantMap vars;
  11719. VerticalAlignment verticalAlignment;
  11720. bool visible;
  11721. /* readonly */
  11722. bool visibleEffective;
  11723. /* readonly */
  11724. int weakRefs;
  11725. int width;
  11726. };
  11727. class ValueAnimation
  11728. {
  11729. // Methods:
  11730. bool Load(File);
  11731. bool Load(VectorBuffer&);
  11732. bool Save(File) const;
  11733. bool Save(VectorBuffer&) const;
  11734. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11735. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  11736. void SetKeyFrame(float, const Variant&);
  11737. // Properties:
  11738. /* readonly */
  11739. String category;
  11740. InterpMethod interpolationMethod;
  11741. /* readonly */
  11742. uint memoryUse;
  11743. String name;
  11744. /* readonly */
  11745. int refs;
  11746. float splineTension;
  11747. /* readonly */
  11748. StringHash type;
  11749. /* readonly */
  11750. String typeName;
  11751. /* readonly */
  11752. uint useTimer;
  11753. VariantType valueType;
  11754. /* readonly */
  11755. int weakRefs;
  11756. };
  11757. class Variant
  11758. {
  11759. // Methods:
  11760. void Clear();
  11761. const Color& GetColor() const;
  11762. void FromString(VariantType, const String&);
  11763. void FromString(const String&, const String&);
  11764. bool GetBool() const;
  11765. double GetDouble() const;
  11766. float GetFloat() const;
  11767. int GetInt() const;
  11768. RefCounted GetPtr() const;
  11769. ScriptObject GetScriptObject() const;
  11770. StringHash GetStringHash() const;
  11771. Array<String> GetStringVector() const;
  11772. uint GetUInt() const;
  11773. Array<Variant> GetVariantVector() const;
  11774. const IntRect& GetIntRect() const;
  11775. const IntVector2& GetIntVector2() const;
  11776. const Matrix3& GetMatrix3() const;
  11777. const Matrix3x4& GetMatrix3x4() const;
  11778. const Matrix4& GetMatrix4() const;
  11779. const Quaternion& GetQuaternion() const;
  11780. const ResourceRef& GetResourceRef() const;
  11781. const ResourceRefList& GetResourceRefList() const;
  11782. const String& GetString() const;
  11783. String ToString() const;
  11784. const VariantMap& GetVariantMap() const;
  11785. const Vector2& GetVector2() const;
  11786. const Vector3& GetVector3() const;
  11787. const Vector4& GetVector4() const;
  11788. const VectorBuffer GetBuffer() const;
  11789. // Properties:
  11790. /* readonly */
  11791. bool empty;
  11792. /* readonly */
  11793. VariantType type;
  11794. /* readonly */
  11795. String typeName;
  11796. /* readonly */
  11797. bool zero;
  11798. };
  11799. class VariantMap
  11800. {
  11801. // Methods:
  11802. void Clear();
  11803. bool Contains(StringHash) const;
  11804. bool Contains(const String&) const;
  11805. bool Erase(StringHash);
  11806. bool Erase(const String&);
  11807. // Properties:
  11808. /* readonly */
  11809. Array<StringHash> keys;
  11810. /* readonly */
  11811. uint length;
  11812. /* readonly */
  11813. Array<Variant> values;
  11814. };
  11815. class Vector2
  11816. {
  11817. // Methods:
  11818. Vector2 Abs() const;
  11819. float AbsDotProduct(const Vector2&) const;
  11820. float DotProduct(const Vector2&) const;
  11821. bool Equals(const Vector2&) const;
  11822. bool IsNaN() const;
  11823. Vector2 Lerp(const Vector2&, float) const;
  11824. void Normalize();
  11825. Vector2 Normalized() const;
  11826. String ToString() const;
  11827. // Properties:
  11828. /* readonly */
  11829. Array<float> data;
  11830. /* readonly */
  11831. float length;
  11832. /* readonly */
  11833. float lengthSquared;
  11834. float x;
  11835. float y;
  11836. };
  11837. class Vector3
  11838. {
  11839. // Methods:
  11840. Vector3 Abs() const;
  11841. float AbsDotProduct(const Vector3&) const;
  11842. float Angle(const Vector3&) const;
  11843. Vector3 CrossProduct(const Vector3&) const;
  11844. float DotProduct(const Vector3&) const;
  11845. bool Equals(const Vector3&) const;
  11846. bool IsNaN() const;
  11847. Vector3 Lerp(const Vector3&, float) const;
  11848. void Normalize();
  11849. Vector3 Normalized() const;
  11850. String ToString() const;
  11851. // Properties:
  11852. /* readonly */
  11853. Array<float> data;
  11854. /* readonly */
  11855. float length;
  11856. /* readonly */
  11857. float lengthSquared;
  11858. float x;
  11859. float y;
  11860. float z;
  11861. };
  11862. class Vector4
  11863. {
  11864. // Methods:
  11865. Vector4 Abs() const;
  11866. float AbsDotProduct(const Vector4&) const;
  11867. float DotProduct(const Vector4&) const;
  11868. bool Equals(const Vector4&) const;
  11869. bool IsNaN() const;
  11870. Vector4 Lerp(const Vector4&, float) const;
  11871. String ToString() const;
  11872. // Properties:
  11873. /* readonly */
  11874. Array<float> data;
  11875. float w;
  11876. float x;
  11877. float y;
  11878. float z;
  11879. };
  11880. class VectorBuffer
  11881. {
  11882. // Methods:
  11883. void Clear();
  11884. Array<uint8> Read(uint);
  11885. bool ReadBool();
  11886. BoundingBox ReadBoundingBox();
  11887. int8 ReadByte();
  11888. Color ReadColor();
  11889. double ReadDouble();
  11890. String ReadFileID();
  11891. float ReadFloat();
  11892. int ReadInt();
  11893. IntRect ReadIntRect();
  11894. IntVector2 ReadIntVector2();
  11895. String ReadLine();
  11896. Matrix3 ReadMatrix3();
  11897. Matrix3x4 ReadMatrix3x4();
  11898. Matrix4 ReadMatrix4();
  11899. uint ReadNetID();
  11900. Quaternion ReadPackedQuaternion();
  11901. Vector3 ReadPackedVector3(float);
  11902. Quaternion ReadQuaternion();
  11903. int16 ReadShort();
  11904. String ReadString();
  11905. StringHash ReadStringHash();
  11906. uint8 ReadUByte();
  11907. uint ReadUInt();
  11908. uint16 ReadUShort();
  11909. uint ReadVLE();
  11910. Variant ReadVariant();
  11911. VariantMap ReadVariantMap();
  11912. Vector2 ReadVector2();
  11913. Vector3 ReadVector3();
  11914. Vector4 ReadVector4();
  11915. VectorBuffer ReadVectorBuffer(uint);
  11916. void Resize(uint);
  11917. uint Seek(uint);
  11918. void SetData(Deserializer, uint);
  11919. uint Write(Array<uint8>);
  11920. bool WriteBool(bool);
  11921. bool WriteBoundingBox(const BoundingBox&);
  11922. bool WriteByte(int8);
  11923. bool WriteColor(const Color&);
  11924. bool WriteDouble(double);
  11925. bool WriteFileID(const String&);
  11926. bool WriteFloat(float);
  11927. bool WriteInt(int);
  11928. bool WriteIntRect(const IntRect&);
  11929. bool WriteIntVector2(const IntVector2&);
  11930. bool WriteLine(const String&);
  11931. bool WriteMatrix3(const Matrix3&);
  11932. bool WriteMatrix3x4(const Matrix3x4&);
  11933. bool WriteMatrix4(const Matrix4&);
  11934. bool WriteNetID(uint);
  11935. bool WritePackedQuaternion(const Quaternion&);
  11936. bool WritePackedVector3(const Vector3&, float);
  11937. bool WriteQuaternion(const Quaternion&);
  11938. bool WriteShort(int16);
  11939. bool WriteString(const String&);
  11940. bool WriteStringHash(const StringHash&);
  11941. bool WriteUByte(uint8);
  11942. bool WriteUInt(uint);
  11943. bool WriteUShort(uint16);
  11944. bool WriteVLE(uint);
  11945. bool WriteVariant(const Variant&);
  11946. bool WriteVariantMap(const VariantMap&);
  11947. bool WriteVector2(const Vector2&);
  11948. bool WriteVector3(const Vector3&);
  11949. bool WriteVector4(const Vector4&);
  11950. bool WriteVectorBuffer(const VectorBuffer&);
  11951. // Properties:
  11952. /* readonly */
  11953. uint checksum;
  11954. /* readonly */
  11955. bool eof;
  11956. /* readonly */
  11957. String name;
  11958. /* readonly */
  11959. uint position;
  11960. /* readonly */
  11961. uint size;
  11962. };
  11963. class VertexBuffer
  11964. {
  11965. // Methods:
  11966. VectorBuffer GetData();
  11967. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11968. bool SetData(VectorBuffer&);
  11969. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  11970. void SetSize(uint, uint, bool = false);
  11971. // Properties:
  11972. /* readonly */
  11973. String category;
  11974. /* readonly */
  11975. bool dynamic;
  11976. /* readonly */
  11977. uint elementMask;
  11978. /* readonly */
  11979. int refs;
  11980. bool shadowed;
  11981. /* readonly */
  11982. StringHash type;
  11983. /* readonly */
  11984. String typeName;
  11985. /* readonly */
  11986. uint vertexCount;
  11987. /* readonly */
  11988. uint vertexSize;
  11989. /* readonly */
  11990. int weakRefs;
  11991. };
  11992. class View3D
  11993. {
  11994. // Methods:
  11995. void AddChild(UIElement);
  11996. void ApplyAttributes();
  11997. void BringToFront();
  11998. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11999. void DisableLayoutUpdate();
  12000. IntVector2 ElementToScreen(const IntVector2&);
  12001. void EnableLayoutUpdate();
  12002. uint FindChild(UIElement) const;
  12003. Variant GetAttribute(const String&) const;
  12004. ValueAnimation GetAttributeAnimation(const String&) const;
  12005. float GetAttributeAnimationSpeed(const String&) const;
  12006. float GetAttributeAnimationTime(const String&) const;
  12007. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12008. Variant GetAttributeDefault(const String&) const;
  12009. UIElement GetChild(const String&, bool = false) const;
  12010. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12011. Array<UIElement> GetChildren(bool = false) const;
  12012. UIElement GetElementEventSender() const;
  12013. bool GetInterceptNetworkUpdate(const String&) const;
  12014. uint GetNumChildren(bool) const;
  12015. void InsertChild(uint, UIElement);
  12016. bool IsInside(IntVector2, bool);
  12017. bool IsInsideCombined(IntVector2, bool);
  12018. bool Load(File, bool = false);
  12019. bool Load(VectorBuffer&, bool = false);
  12020. bool LoadChildXML(XMLFile, XMLFile = null);
  12021. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12022. bool LoadJSON(const JSONValue&, bool = false);
  12023. bool LoadXML(File);
  12024. bool LoadXML(VectorBuffer&);
  12025. bool LoadXML(XMLFile, XMLFile);
  12026. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12027. bool LoadXML(const XMLElement&, bool = false);
  12028. void MarkNetworkUpdate() const;
  12029. void QueueUpdate();
  12030. void Remove();
  12031. void RemoveAllChildren();
  12032. void RemoveAttributeAnimation(const String&);
  12033. void RemoveChild(UIElement, uint = 0);
  12034. void RemoveChild(uint);
  12035. void RemoveInstanceDefault();
  12036. void RemoveObjectAnimation();
  12037. void ResetDeepEnabled();
  12038. void ResetToDefault();
  12039. bool Save(File) const;
  12040. bool Save(VectorBuffer&) const;
  12041. bool SaveJSON(JSONValue&) const;
  12042. bool SaveXML(File, const String& = "\t");
  12043. bool SaveXML(VectorBuffer&, const String& = "\t");
  12044. bool SaveXML(XMLElement&) const;
  12045. IntVector2 ScreenToElement(const IntVector2&);
  12046. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12047. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12048. void SetAnimationTime(float);
  12049. bool SetAttribute(const String&, const Variant&);
  12050. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12051. void SetAttributeAnimationSpeed(const String&, float);
  12052. void SetAttributeAnimationTime(const String&, float);
  12053. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12054. void SetDeepEnabled(bool);
  12055. void SetEnabledRecursive(bool);
  12056. void SetFixedHeight(int);
  12057. void SetFixedSize(int, int);
  12058. void SetFixedWidth(int);
  12059. void SetFullImageRect();
  12060. void SetHoverOffset(int, int);
  12061. void SetInterceptNetworkUpdate(const String&, bool);
  12062. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12063. void SetMaxSize(int, int);
  12064. void SetMinSize(int, int);
  12065. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12066. void SetPosition(int, int);
  12067. void SetSize(int, int);
  12068. bool SetStyle(const String&, XMLFile = null);
  12069. bool SetStyle(const XMLElement&);
  12070. bool SetStyleAuto(XMLFile = null);
  12071. void SetView(Scene, Camera, bool = true);
  12072. void UpdateLayout();
  12073. const Variant& GetVar(const StringHash&);
  12074. // Properties:
  12075. bool animationEnabled;
  12076. /* readonly */
  12077. Array<Variant> attributeDefaults;
  12078. /* readonly */
  12079. Array<AttributeInfo> attributeInfos;
  12080. Array<Variant> attributes;
  12081. bool autoUpdate;
  12082. BlendMode blendMode;
  12083. IntRect border;
  12084. bool bringToBack;
  12085. bool bringToFront;
  12086. /* readonly */
  12087. Node cameraNode;
  12088. /* readonly */
  12089. String category;
  12090. /* readonly */
  12091. IntVector2 childOffset;
  12092. /* readonly */
  12093. Array<UIElement> children;
  12094. IntRect clipBorder;
  12095. bool clipChildren;
  12096. /* writeonly */
  12097. Color color;
  12098. /* readonly */
  12099. bool colorGradient;
  12100. Array<Color> colors;
  12101. /* readonly */
  12102. IntRect combinedScreenRect;
  12103. XMLFile defaultStyle;
  12104. /* readonly */
  12105. Texture2D depthTexture;
  12106. /* readonly */
  12107. float derivedOpacity;
  12108. /* readonly */
  12109. uint dragButtonCombo;
  12110. /* readonly */
  12111. int dragButtonCount;
  12112. uint dragDropMode;
  12113. bool editable;
  12114. bool elementEventSender;
  12115. bool enabled;
  12116. /* readonly */
  12117. bool enabledSelf;
  12118. /* readonly */
  12119. bool fixedHeight;
  12120. bool fixedHeightResizing;
  12121. /* readonly */
  12122. bool fixedSize;
  12123. /* readonly */
  12124. bool fixedWidth;
  12125. bool fixedWidthResizing;
  12126. bool focus;
  12127. FocusMode focusMode;
  12128. uint format;
  12129. int height;
  12130. HorizontalAlignment horizontalAlignment;
  12131. IntVector2 hoverOffset;
  12132. /* readonly */
  12133. bool hovering;
  12134. IntRect imageBorder;
  12135. IntRect imageRect;
  12136. int indent;
  12137. int indentSpacing;
  12138. /* readonly */
  12139. int indentWidth;
  12140. bool internal;
  12141. IntRect layoutBorder;
  12142. Vector2 layoutFlexScale;
  12143. LayoutMode layoutMode;
  12144. int layoutSpacing;
  12145. int maxHeight;
  12146. IntVector2 maxSize;
  12147. int maxWidth;
  12148. int minHeight;
  12149. IntVector2 minSize;
  12150. int minWidth;
  12151. bool modal;
  12152. bool modalAutoDismiss;
  12153. Color modalFrameColor;
  12154. IntVector2 modalFrameSize;
  12155. Color modalShadeColor;
  12156. bool movable;
  12157. String name;
  12158. /* readonly */
  12159. uint numAllChildren;
  12160. /* readonly */
  12161. uint numAttributes;
  12162. /* readonly */
  12163. uint numChildren;
  12164. ObjectAnimation objectAnimation;
  12165. float opacity;
  12166. UIElement parent;
  12167. IntVector2 position;
  12168. int priority;
  12169. /* readonly */
  12170. int refs;
  12171. /* readonly */
  12172. Texture2D renderTexture;
  12173. bool resizable;
  12174. IntRect resizeBorder;
  12175. /* readonly */
  12176. UIElement root;
  12177. /* readonly */
  12178. Scene scene;
  12179. /* readonly */
  12180. IntVector2 screenPosition;
  12181. bool selected;
  12182. IntVector2 size;
  12183. bool sortChildren;
  12184. String style;
  12185. bool temporary;
  12186. Texture texture;
  12187. bool tiled;
  12188. TraversalMode traversalMode;
  12189. /* readonly */
  12190. StringHash type;
  12191. /* readonly */
  12192. String typeName;
  12193. bool useDerivedOpacity;
  12194. /* readonly */
  12195. VariantMap vars;
  12196. VerticalAlignment verticalAlignment;
  12197. /* readonly */
  12198. Viewport viewport;
  12199. bool visible;
  12200. /* readonly */
  12201. bool visibleEffective;
  12202. /* readonly */
  12203. int weakRefs;
  12204. int width;
  12205. };
  12206. class Viewport
  12207. {
  12208. // Methods:
  12209. Ray GetScreenRay(int, int) const;
  12210. Vector3 ScreenToWorldPoint(int, int, float) const;
  12211. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12212. void SetRenderPath(XMLFile);
  12213. Vector2 WorldToScreenPoint(const Vector3&) const;
  12214. // Properties:
  12215. Camera camera;
  12216. /* readonly */
  12217. String category;
  12218. Camera cullCamera;
  12219. bool drawDebug;
  12220. IntRect rect;
  12221. /* readonly */
  12222. int refs;
  12223. RenderPath renderPath;
  12224. Scene scene;
  12225. /* readonly */
  12226. StringHash type;
  12227. /* readonly */
  12228. String typeName;
  12229. /* readonly */
  12230. int weakRefs;
  12231. };
  12232. class WeakHandle
  12233. {
  12234. // Methods:
  12235. RefCounted Get() const;
  12236. // Properties:
  12237. /* readonly */
  12238. bool expired;
  12239. /* readonly */
  12240. int refs;
  12241. /* readonly */
  12242. int weakRefs;
  12243. };
  12244. class Window
  12245. {
  12246. // Methods:
  12247. void AddChild(UIElement);
  12248. void ApplyAttributes();
  12249. void BringToFront();
  12250. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12251. void DisableLayoutUpdate();
  12252. IntVector2 ElementToScreen(const IntVector2&);
  12253. void EnableLayoutUpdate();
  12254. uint FindChild(UIElement) const;
  12255. Variant GetAttribute(const String&) const;
  12256. ValueAnimation GetAttributeAnimation(const String&) const;
  12257. float GetAttributeAnimationSpeed(const String&) const;
  12258. float GetAttributeAnimationTime(const String&) const;
  12259. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12260. Variant GetAttributeDefault(const String&) const;
  12261. UIElement GetChild(const String&, bool = false) const;
  12262. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12263. Array<UIElement> GetChildren(bool = false) const;
  12264. UIElement GetElementEventSender() const;
  12265. bool GetInterceptNetworkUpdate(const String&) const;
  12266. uint GetNumChildren(bool) const;
  12267. void InsertChild(uint, UIElement);
  12268. bool IsInside(IntVector2, bool);
  12269. bool IsInsideCombined(IntVector2, bool);
  12270. bool Load(File, bool = false);
  12271. bool Load(VectorBuffer&, bool = false);
  12272. bool LoadChildXML(XMLFile, XMLFile = null);
  12273. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12274. bool LoadJSON(const JSONValue&, bool = false);
  12275. bool LoadXML(File);
  12276. bool LoadXML(VectorBuffer&);
  12277. bool LoadXML(XMLFile, XMLFile);
  12278. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12279. bool LoadXML(const XMLElement&, bool = false);
  12280. void MarkNetworkUpdate() const;
  12281. void Remove();
  12282. void RemoveAllChildren();
  12283. void RemoveAttributeAnimation(const String&);
  12284. void RemoveChild(UIElement, uint = 0);
  12285. void RemoveChild(uint);
  12286. void RemoveInstanceDefault();
  12287. void RemoveObjectAnimation();
  12288. void ResetDeepEnabled();
  12289. void ResetToDefault();
  12290. bool Save(File) const;
  12291. bool Save(VectorBuffer&) const;
  12292. bool SaveJSON(JSONValue&) const;
  12293. bool SaveXML(File, const String& = "\t");
  12294. bool SaveXML(VectorBuffer&, const String& = "\t");
  12295. bool SaveXML(XMLElement&) const;
  12296. IntVector2 ScreenToElement(const IntVector2&);
  12297. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12298. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12299. void SetAnimationTime(float);
  12300. bool SetAttribute(const String&, const Variant&);
  12301. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12302. void SetAttributeAnimationSpeed(const String&, float);
  12303. void SetAttributeAnimationTime(const String&, float);
  12304. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12305. void SetDeepEnabled(bool);
  12306. void SetEnabledRecursive(bool);
  12307. void SetFixedHeight(int);
  12308. void SetFixedSize(int, int);
  12309. void SetFixedWidth(int);
  12310. void SetFullImageRect();
  12311. void SetHoverOffset(int, int);
  12312. void SetInterceptNetworkUpdate(const String&, bool);
  12313. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12314. void SetMaxSize(int, int);
  12315. void SetMinSize(int, int);
  12316. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12317. void SetPosition(int, int);
  12318. void SetSize(int, int);
  12319. bool SetStyle(const String&, XMLFile = null);
  12320. bool SetStyle(const XMLElement&);
  12321. bool SetStyleAuto(XMLFile = null);
  12322. void UpdateLayout();
  12323. const Variant& GetVar(const StringHash&);
  12324. // Properties:
  12325. bool animationEnabled;
  12326. /* readonly */
  12327. Array<Variant> attributeDefaults;
  12328. /* readonly */
  12329. Array<AttributeInfo> attributeInfos;
  12330. Array<Variant> attributes;
  12331. BlendMode blendMode;
  12332. IntRect border;
  12333. bool bringToBack;
  12334. bool bringToFront;
  12335. /* readonly */
  12336. String category;
  12337. /* readonly */
  12338. IntVector2 childOffset;
  12339. /* readonly */
  12340. Array<UIElement> children;
  12341. IntRect clipBorder;
  12342. bool clipChildren;
  12343. /* writeonly */
  12344. Color color;
  12345. /* readonly */
  12346. bool colorGradient;
  12347. Array<Color> colors;
  12348. /* readonly */
  12349. IntRect combinedScreenRect;
  12350. XMLFile defaultStyle;
  12351. /* readonly */
  12352. float derivedOpacity;
  12353. /* readonly */
  12354. uint dragButtonCombo;
  12355. /* readonly */
  12356. int dragButtonCount;
  12357. uint dragDropMode;
  12358. bool editable;
  12359. bool elementEventSender;
  12360. bool enabled;
  12361. /* readonly */
  12362. bool enabledSelf;
  12363. /* readonly */
  12364. bool fixedHeight;
  12365. bool fixedHeightResizing;
  12366. /* readonly */
  12367. bool fixedSize;
  12368. /* readonly */
  12369. bool fixedWidth;
  12370. bool fixedWidthResizing;
  12371. bool focus;
  12372. FocusMode focusMode;
  12373. int height;
  12374. HorizontalAlignment horizontalAlignment;
  12375. IntVector2 hoverOffset;
  12376. /* readonly */
  12377. bool hovering;
  12378. IntRect imageBorder;
  12379. IntRect imageRect;
  12380. int indent;
  12381. int indentSpacing;
  12382. /* readonly */
  12383. int indentWidth;
  12384. bool internal;
  12385. IntRect layoutBorder;
  12386. Vector2 layoutFlexScale;
  12387. LayoutMode layoutMode;
  12388. int layoutSpacing;
  12389. int maxHeight;
  12390. IntVector2 maxSize;
  12391. int maxWidth;
  12392. int minHeight;
  12393. IntVector2 minSize;
  12394. int minWidth;
  12395. bool modal;
  12396. bool modalAutoDismiss;
  12397. Color modalFrameColor;
  12398. IntVector2 modalFrameSize;
  12399. Color modalShadeColor;
  12400. bool movable;
  12401. String name;
  12402. /* readonly */
  12403. uint numAllChildren;
  12404. /* readonly */
  12405. uint numAttributes;
  12406. /* readonly */
  12407. uint numChildren;
  12408. ObjectAnimation objectAnimation;
  12409. float opacity;
  12410. UIElement parent;
  12411. IntVector2 position;
  12412. int priority;
  12413. /* readonly */
  12414. int refs;
  12415. bool resizable;
  12416. IntRect resizeBorder;
  12417. /* readonly */
  12418. UIElement root;
  12419. /* readonly */
  12420. IntVector2 screenPosition;
  12421. bool selected;
  12422. IntVector2 size;
  12423. bool sortChildren;
  12424. String style;
  12425. bool temporary;
  12426. Texture texture;
  12427. bool tiled;
  12428. TraversalMode traversalMode;
  12429. /* readonly */
  12430. StringHash type;
  12431. /* readonly */
  12432. String typeName;
  12433. bool useDerivedOpacity;
  12434. /* readonly */
  12435. VariantMap vars;
  12436. VerticalAlignment verticalAlignment;
  12437. bool visible;
  12438. /* readonly */
  12439. bool visibleEffective;
  12440. /* readonly */
  12441. int weakRefs;
  12442. int width;
  12443. };
  12444. class XMLElement
  12445. {
  12446. // Methods:
  12447. XMLElement CreateChild(const String&);
  12448. String GetAttribute(const String& = String ( )) const;
  12449. String GetAttributeLower(const String&) const;
  12450. Array<String> GetAttributeNames() const;
  12451. String GetAttributeUpper(const String&) const;
  12452. bool GetBool(const String&) const;
  12453. BoundingBox GetBoundingBox() const;
  12454. XMLElement GetChild(const String& = String ( )) const;
  12455. Color GetColor(const String&) const;
  12456. double GetDouble(const String&) const;
  12457. float GetFloat(const String&) const;
  12458. int GetInt(const String&) const;
  12459. IntRect GetIntRect(const String&) const;
  12460. IntVector2 GetIntVector2(const String&) const;
  12461. Matrix3 GetMatrix3(const String&) const;
  12462. Matrix3x4 GetMatrix3x4(const String&) const;
  12463. Matrix4 GetMatrix4(const String&) const;
  12464. XMLElement GetNext(const String& = String ( )) const;
  12465. Quaternion GetQuaternion(const String&) const;
  12466. ResourceRef GetResourceRef() const;
  12467. ResourceRefList GetResourceRefList() const;
  12468. uint GetUInt(const String&) const;
  12469. String GetValue() const;
  12470. Variant GetVariant() const;
  12471. VariantMap GetVariantMap() const;
  12472. Array<Variant> GetVariantVector() const;
  12473. Vector2 GetVector2(const String&) const;
  12474. Vector3 GetVector3(const String&) const;
  12475. Vector4 GetVector4(const String&) const;
  12476. Variant GetVectorVariant(const String&) const;
  12477. bool HasAttribute(const String&) const;
  12478. bool HasChild(const String&) const;
  12479. bool RemoveAttribute(const String& = String ( ));
  12480. bool RemoveChild(const String&);
  12481. bool RemoveChild(const XMLElement&);
  12482. bool RemoveChildren(const String& = String ( ));
  12483. XPathResultSet Select(const String&);
  12484. XPathResultSet SelectPrepared(const XPathQuery&);
  12485. XMLElement SelectSingle(const String&);
  12486. XMLElement SelectSinglePrepared(const XPathQuery&);
  12487. bool SetAttribute(const String&);
  12488. bool SetAttribute(const String&, const String&);
  12489. bool SetBool(const String&, bool);
  12490. bool SetBoundingBox(const BoundingBox&);
  12491. bool SetColor(const String&, const Color&);
  12492. bool SetDouble(const String&, double);
  12493. bool SetFloat(const String&, float);
  12494. bool SetInt(const String&, int);
  12495. bool SetIntRect(const String&, const IntRect&);
  12496. bool SetIntVector2(const String&, const IntVector2&);
  12497. bool SetMatrix3(const String&, const Matrix3&);
  12498. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12499. bool SetMatrix4(const String&, const Matrix4&);
  12500. bool SetQuaternion(const String&, const Quaternion&);
  12501. bool SetResourceRef(const String&, const ResourceRef&);
  12502. bool SetResourceRefList(const String&, const ResourceRefList&);
  12503. bool SetUInt(const String&, uint);
  12504. bool SetValue(const String&);
  12505. bool SetVariant(const Variant&);
  12506. bool SetVariantMap(const VariantMap&);
  12507. bool SetVariantVector(Array<Variant>);
  12508. bool SetVector2(const String&, const Vector2&);
  12509. bool SetVector3(const String&, const Vector3&);
  12510. bool SetVector4(const String&, const Vector4&);
  12511. bool SetVectorVariant(const String&, const Variant&);
  12512. // Properties:
  12513. /* readonly */
  12514. XMLFile file;
  12515. /* readonly */
  12516. bool isNull;
  12517. /* readonly */
  12518. String name;
  12519. /* readonly */
  12520. XMLElement nextResult;
  12521. /* readonly */
  12522. bool notNull;
  12523. /* readonly */
  12524. uint numAttributes;
  12525. /* readonly */
  12526. XMLElement parent;
  12527. String value;
  12528. };
  12529. class XMLFile
  12530. {
  12531. // Methods:
  12532. XMLElement CreateRoot(const String&);
  12533. bool FromString(const String&);
  12534. XMLElement GetRoot(const String& = String ( ));
  12535. bool Load(File);
  12536. bool Load(VectorBuffer&);
  12537. void Patch(XMLElement);
  12538. void Patch(XMLFile);
  12539. bool Save(File) const;
  12540. bool Save(File, const String&) const;
  12541. bool Save(VectorBuffer&) const;
  12542. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12543. String ToString(const String& = String ( "\t" )) const;
  12544. // Properties:
  12545. /* readonly */
  12546. String category;
  12547. /* readonly */
  12548. uint memoryUse;
  12549. String name;
  12550. /* readonly */
  12551. int refs;
  12552. /* readonly */
  12553. XMLElement root;
  12554. /* readonly */
  12555. StringHash type;
  12556. /* readonly */
  12557. String typeName;
  12558. /* readonly */
  12559. uint useTimer;
  12560. /* readonly */
  12561. int weakRefs;
  12562. };
  12563. class XPathQuery
  12564. {
  12565. // Methods:
  12566. void Bind();
  12567. void Clear();
  12568. XPathResultSet Evaluate(XMLElement);
  12569. bool EvaluateToBool(XMLElement);
  12570. float EvaluateToFloat(XMLElement);
  12571. String EvaluateToString(XMLElement);
  12572. bool SetQuery(const String&, const String& = String ( ), bool = true);
  12573. bool SetVariable(const String&, bool);
  12574. bool SetVariable(const String&, const String&);
  12575. bool SetVariable(const String&, const XPathResultSet&);
  12576. bool SetVariable(const String&, float);
  12577. // Properties:
  12578. String query;
  12579. };
  12580. class XPathResultSet
  12581. {
  12582. // Properties:
  12583. /* readonly */
  12584. bool empty;
  12585. /* readonly */
  12586. XMLElement firstResult;
  12587. /* readonly */
  12588. uint size;
  12589. };
  12590. class Zone
  12591. {
  12592. // Methods:
  12593. void ApplyAttributes();
  12594. void DrawDebugGeometry(DebugRenderer, bool);
  12595. Variant GetAttribute(const String&) const;
  12596. ValueAnimation GetAttributeAnimation(const String&) const;
  12597. float GetAttributeAnimationSpeed(const String&) const;
  12598. float GetAttributeAnimationTime(const String&) const;
  12599. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12600. Variant GetAttributeDefault(const String&) const;
  12601. bool GetInterceptNetworkUpdate(const String&) const;
  12602. bool IsInView(Camera) const;
  12603. bool Load(File, bool = false);
  12604. bool Load(VectorBuffer&, bool = false);
  12605. bool LoadJSON(const JSONValue&, bool = false);
  12606. bool LoadXML(const XMLElement&, bool = false);
  12607. void MarkNetworkUpdate() const;
  12608. void Remove();
  12609. void RemoveAttributeAnimation(const String&);
  12610. void RemoveInstanceDefault();
  12611. void RemoveObjectAnimation();
  12612. void ResetToDefault();
  12613. bool Save(File) const;
  12614. bool Save(VectorBuffer&) const;
  12615. bool SaveJSON(JSONValue&) const;
  12616. bool SaveXML(XMLElement&) const;
  12617. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12618. void SetAnimationTime(float);
  12619. bool SetAttribute(const String&, const Variant&);
  12620. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12621. void SetAttributeAnimationSpeed(const String&, float);
  12622. void SetAttributeAnimationTime(const String&, float);
  12623. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12624. void SetInterceptNetworkUpdate(const String&, bool);
  12625. // Properties:
  12626. Color ambientColor;
  12627. /* readonly */
  12628. Color ambientEndColor;
  12629. bool ambientGradient;
  12630. /* readonly */
  12631. Color ambientStartColor;
  12632. bool animationEnabled;
  12633. /* readonly */
  12634. Array<Variant> attributeDefaults;
  12635. /* readonly */
  12636. Array<AttributeInfo> attributeInfos;
  12637. Array<Variant> attributes;
  12638. BoundingBox boundingBox;
  12639. bool castShadows;
  12640. /* readonly */
  12641. String category;
  12642. float drawDistance;
  12643. bool enabled;
  12644. /* readonly */
  12645. bool enabledEffective;
  12646. Color fogColor;
  12647. float fogEnd;
  12648. float fogHeight;
  12649. float fogHeightScale;
  12650. float fogStart;
  12651. bool heightFog;
  12652. /* readonly */
  12653. uint id;
  12654. /* readonly */
  12655. bool inView;
  12656. /* readonly */
  12657. Matrix3x4 inverseWorldTransform;
  12658. uint lightMask;
  12659. float lodBias;
  12660. uint maxLights;
  12661. /* readonly */
  12662. Node node;
  12663. /* readonly */
  12664. uint numAttributes;
  12665. ObjectAnimation objectAnimation;
  12666. bool occludee;
  12667. bool occluder;
  12668. bool override;
  12669. int priority;
  12670. /* readonly */
  12671. int refs;
  12672. float shadowDistance;
  12673. uint shadowMask;
  12674. bool temporary;
  12675. /* readonly */
  12676. StringHash type;
  12677. /* readonly */
  12678. String typeName;
  12679. uint viewMask;
  12680. /* readonly */
  12681. int weakRefs;
  12682. /* readonly */
  12683. BoundingBox worldBoundingBox;
  12684. uint zoneMask;
  12685. Texture zoneTexture;
  12686. };
  12687. // Enumerations
  12688. enum BlendMode
  12689. {
  12690. BLEND_REPLACE,
  12691. BLEND_ADD,
  12692. BLEND_MULTIPLY,
  12693. BLEND_ALPHA,
  12694. BLEND_ADDALPHA,
  12695. BLEND_PREMULALPHA,
  12696. BLEND_INVDESTALPHA,
  12697. BLEND_SUBTRACT,
  12698. BLEND_SUBTRACTALPHA,
  12699. };
  12700. enum BodyType2D
  12701. {
  12702. BT_STATIC,
  12703. BT_KINEMATIC,
  12704. BT_DYNAMIC,
  12705. };
  12706. enum CollisionEventMode
  12707. {
  12708. COLLISION_NEVER,
  12709. COLLISION_ACTIVE,
  12710. COLLISION_ALWAYS,
  12711. };
  12712. enum CompareMode
  12713. {
  12714. CMP_ALWAYS,
  12715. CMP_EQUAL,
  12716. CMP_NOTEQUAL,
  12717. CMP_LESS,
  12718. CMP_LESSEQUAL,
  12719. CMP_GREATER,
  12720. CMP_GREATEREQUAL,
  12721. };
  12722. enum CompressedFormat
  12723. {
  12724. CF_NONE,
  12725. CF_RGBA,
  12726. CF_DXT1,
  12727. CF_DXT3,
  12728. CF_DXT5,
  12729. CF_ETC1,
  12730. CF_PVRTC_RGB_2BPP,
  12731. CF_PVRTC_RGBA_2BPP,
  12732. CF_PVRTC_RGB_4BPP,
  12733. CF_PVRTC_RGBA_4BPP,
  12734. };
  12735. enum ConstraintType
  12736. {
  12737. CONSTRAINT_POINT,
  12738. CONSTRAINT_HINGE,
  12739. CONSTRAINT_SLIDER,
  12740. CONSTRAINT_CONETWIST,
  12741. };
  12742. enum Corner
  12743. {
  12744. C_TOPLEFT,
  12745. C_TOPRIGHT,
  12746. C_BOTTOMLEFT,
  12747. C_BOTTOMRIGHT,
  12748. };
  12749. enum CreateMode
  12750. {
  12751. REPLICATED,
  12752. LOCAL,
  12753. };
  12754. enum CrowdAgentRequestedTarget
  12755. {
  12756. CA_REQUESTEDTARGET_NONE,
  12757. CA_REQUESTEDTARGET_POSITION,
  12758. CA_REQUESTEDTARGET_VELOCITY,
  12759. };
  12760. enum CrowdAgentState
  12761. {
  12762. CA_STATE_INVALID,
  12763. CA_STATE_WALKING,
  12764. CA_STATE_OFFMESH,
  12765. };
  12766. enum CrowdAgentTargetState
  12767. {
  12768. CA_TARGET_NONE,
  12769. CA_TARGET_FAILED,
  12770. CA_TARGET_VALID,
  12771. CA_TARGET_REQUESTING,
  12772. CA_TARGET_WAITINGFORQUEUE,
  12773. CA_TARGET_WAITINGFORPATH,
  12774. CA_TARGET_VELOCITY,
  12775. };
  12776. enum CubeMapFace
  12777. {
  12778. FACE_POSITIVE_X,
  12779. FACE_NEGATIVE_X,
  12780. FACE_POSITIVE_Y,
  12781. FACE_NEGATIVE_Y,
  12782. FACE_POSITIVE_Z,
  12783. FACE_NEGATIVE_Z,
  12784. };
  12785. enum CullMode
  12786. {
  12787. CULL_NONE,
  12788. CULL_CCW,
  12789. CULL_CW,
  12790. };
  12791. enum CursorShape
  12792. {
  12793. CS_NORMAL,
  12794. CS_IBEAM,
  12795. CS_CROSS,
  12796. CS_RESIZEVERTICAL,
  12797. CS_RESIZEDIAGONAL_TOPRIGHT,
  12798. CS_RESIZEHORIZONTAL,
  12799. CS_RESIZEDIAGONAL_TOPLEFT,
  12800. CS_RESIZE_ALL,
  12801. CS_ACCEPTDROP,
  12802. CS_REJECTDROP,
  12803. CS_BUSY,
  12804. CS_BUSY_ARROW,
  12805. };
  12806. enum DBAPI
  12807. {
  12808. DBAPI_SQLITE,
  12809. DBAPI_ODBC,
  12810. };
  12811. enum DumpMode
  12812. {
  12813. DOXYGEN,
  12814. C_HEADER,
  12815. };
  12816. enum EmitterType
  12817. {
  12818. EMITTER_SPHERE,
  12819. EMITTER_BOX,
  12820. };
  12821. enum EmitterType2D
  12822. {
  12823. EMITTER_TYPE_GRAVITY,
  12824. EMITTER_TYPE_RADIAL,
  12825. };
  12826. enum FaceCameraMode
  12827. {
  12828. FC_NONE,
  12829. FC_ROTATE_XYZ,
  12830. FC_ROTATE_Y,
  12831. FC_LOOKAT_XYZ,
  12832. FC_LOOKAT_Y,
  12833. };
  12834. enum FileMode
  12835. {
  12836. FILE_READ,
  12837. FILE_WRITE,
  12838. FILE_READWRITE,
  12839. };
  12840. enum FillMode
  12841. {
  12842. FILL_SOLID,
  12843. FILL_WIREFRAME,
  12844. FILL_POINT,
  12845. };
  12846. enum FocusMode
  12847. {
  12848. FM_NOTFOCUSABLE,
  12849. FM_RESETFOCUS,
  12850. FM_FOCUSABLE,
  12851. FM_FOCUSABLE_DEFOCUSABLE,
  12852. };
  12853. enum HighlightMode
  12854. {
  12855. HM_NEVER,
  12856. HM_FOCUS,
  12857. HM_ALWAYS,
  12858. };
  12859. enum HorizontalAlignment
  12860. {
  12861. HA_LEFT,
  12862. HA_CENTER,
  12863. HA_RIGHT,
  12864. };
  12865. enum HttpRequestState
  12866. {
  12867. HTTP_INITIALIZING,
  12868. HTTP_ERROR,
  12869. HTTP_OPEN,
  12870. HTTP_CLOSED,
  12871. };
  12872. enum InterpMethod
  12873. {
  12874. IM_LINEAR,
  12875. IM_SPLINE,
  12876. };
  12877. enum InterpolationMode
  12878. {
  12879. BEZIER_CURVE,
  12880. CATMULL_ROM_CURVE,
  12881. LINEAR_CURVE,
  12882. CATMULL_ROM_FULL_CURVE,
  12883. };
  12884. enum Intersection
  12885. {
  12886. OUTSIDE,
  12887. INTERSECTS,
  12888. INSIDE,
  12889. };
  12890. enum JSONValueType
  12891. {
  12892. JSON_NULL,
  12893. JSON_BOOL,
  12894. JSON_NUMBER,
  12895. JSON_STRING,
  12896. JSON_ARRAY,
  12897. JSON_OBJECT,
  12898. };
  12899. enum LayoutMode
  12900. {
  12901. LM_FREE,
  12902. LM_HORIZONTAL,
  12903. LM_VERTICAL,
  12904. };
  12905. enum LightType
  12906. {
  12907. LIGHT_DIRECTIONAL,
  12908. LIGHT_SPOT,
  12909. LIGHT_POINT,
  12910. };
  12911. enum LoadMode
  12912. {
  12913. LOAD_RESOURCES_ONLY,
  12914. LOAD_SCENE,
  12915. LOAD_SCENE_AND_RESOURCES,
  12916. };
  12917. enum LoopMode2D
  12918. {
  12919. LM_DEFAULT,
  12920. LM_FORCE_LOOPED,
  12921. LM_FORCE_CLAMPED,
  12922. };
  12923. enum MouseMode
  12924. {
  12925. MM_ABSOLUTE,
  12926. MM_RELATIVE,
  12927. MM_WRAP,
  12928. MM_FREE,
  12929. };
  12930. enum NavigationPushiness
  12931. {
  12932. NAVIGATIONPUSHINESS_LOW,
  12933. NAVIGATIONPUSHINESS_MEDIUM,
  12934. NAVIGATIONPUSHINESS_HIGH,
  12935. };
  12936. enum NavigationQuality
  12937. {
  12938. NAVIGATIONQUALITY_LOW,
  12939. NAVIGATIONQUALITY_MEDIUM,
  12940. NAVIGATIONQUALITY_HIGH,
  12941. };
  12942. enum NavmeshPartitionType
  12943. {
  12944. NAVMESH_PARTITION_WATERSHED,
  12945. NAVMESH_PARTITION_MONOTONE,
  12946. };
  12947. enum Orientation
  12948. {
  12949. O_HORIZONTAL,
  12950. O_VERTICAL,
  12951. };
  12952. enum Orientation2D
  12953. {
  12954. O_ORTHOGONAL,
  12955. O_ISOMETRIC,
  12956. O_STAGGERED,
  12957. };
  12958. enum PassLightingMode
  12959. {
  12960. LIGHTING_UNLIT,
  12961. LIGHTING_PERVERTEX,
  12962. LIGHTING_PERPIXEL,
  12963. };
  12964. enum PrimitiveType
  12965. {
  12966. TRIANGLE_LIST,
  12967. LINE_LIST,
  12968. POINT_LIST,
  12969. TRIANGLE_STRIP,
  12970. LINE_STRIP,
  12971. TRIANGLE_FAN,
  12972. };
  12973. enum RayQueryLevel
  12974. {
  12975. RAY_AABB,
  12976. RAY_OBB,
  12977. RAY_TRIANGLE,
  12978. RAY_TRIANGLE_UV,
  12979. };
  12980. enum RenderCommandSortMode
  12981. {
  12982. SORT_FRONTTOBACK,
  12983. SORT_BACKTOFRONT,
  12984. };
  12985. enum RenderCommandType
  12986. {
  12987. CMD_NONE,
  12988. CMD_CLEAR,
  12989. CMD_SCENEPASS,
  12990. CMD_QUAD,
  12991. CMD_FORWARDLIGHTS,
  12992. CMD_LIGHTVOLUMES,
  12993. CMD_RENDERUI,
  12994. };
  12995. enum RenderSurfaceUpdateMode
  12996. {
  12997. SURFACE_MANUALUPDATE,
  12998. SURFACE_UPDATEVISIBLE,
  12999. SURFACE_UPDATEALWAYS,
  13000. };
  13001. enum RenderTargetSizeMode
  13002. {
  13003. SIZE_ABSOLUTE,
  13004. SIZE_VIEWPORTDIVISOR,
  13005. SIZE_VIEWPORTMULTIPLIER,
  13006. };
  13007. enum ShapeType
  13008. {
  13009. SHAPE_BOX,
  13010. SHAPE_SPHERE,
  13011. SHAPE_STATICPLANE,
  13012. SHAPE_CYLINDER,
  13013. SHAPE_CAPSULE,
  13014. SHAPE_CONE,
  13015. SHAPE_TRIANGLEMESH,
  13016. SHAPE_CONVEXHULL,
  13017. SHAPE_TERRAIN,
  13018. };
  13019. enum TextEffect
  13020. {
  13021. TE_NONE,
  13022. TE_SHADOW,
  13023. TE_STROKE,
  13024. };
  13025. enum TextureAddressMode
  13026. {
  13027. ADDRESS_WRAP,
  13028. ADDRESS_MIRROR,
  13029. ADDRESS_CLAMP,
  13030. ADDRESS_BORDER,
  13031. };
  13032. enum TextureCoordinate
  13033. {
  13034. COORD_U,
  13035. COORD_V,
  13036. COORD_W,
  13037. };
  13038. enum TextureFilterMode
  13039. {
  13040. FILTER_NEAREST,
  13041. FILTER_BILINEAR,
  13042. FILTER_TRILINEAR,
  13043. FILTER_ANISOTROPIC,
  13044. FILTER_DEFAULT,
  13045. };
  13046. enum TextureUnit
  13047. {
  13048. TU_DIFFUSE,
  13049. TU_ALBEDOBUFFER,
  13050. TU_NORMAL,
  13051. TU_NORMALBUFFER,
  13052. TU_SPECULAR,
  13053. TU_EMISSIVE,
  13054. TU_ENVIRONMENT,
  13055. TU_LIGHTRAMP,
  13056. TU_LIGHTSHAPE,
  13057. TU_SHADOWMAP,
  13058. TU_CUSTOM1,
  13059. TU_CUSTOM2,
  13060. TU_VOLUMEMAP,
  13061. TU_FACESELECT,
  13062. TU_INDIRECTION,
  13063. TU_DEPTHBUFFER,
  13064. TU_LIGHTBUFFER,
  13065. TU_ZONE,
  13066. MAX_MATERIAL_TEXTURE_UNITS,
  13067. MAX_TEXTURE_UNITS,
  13068. };
  13069. enum TextureUsage
  13070. {
  13071. TEXTURE_STATIC,
  13072. TEXTURE_DYNAMIC,
  13073. TEXTURE_RENDERTARGET,
  13074. TEXTURE_DEPTHSTENCIL,
  13075. };
  13076. enum TileMapLayerType2D
  13077. {
  13078. LT_TILE_LAYER,
  13079. LT_OBJECT_GROUP,
  13080. LT_IMAGE_LAYER,
  13081. LT_INVALID,
  13082. };
  13083. enum TileObjectType2D
  13084. {
  13085. OT_RECTANGLE,
  13086. OT_ELLIPSE,
  13087. OT_POLYGON,
  13088. OT_POLYLINE,
  13089. OT_TILE,
  13090. OT_INVALID,
  13091. };
  13092. enum TransformSpace
  13093. {
  13094. TS_LOCAL,
  13095. TS_PARENT,
  13096. TS_WORLD,
  13097. };
  13098. enum TraversalMode
  13099. {
  13100. TM_BREADTH_FIRST,
  13101. TM_DEPTH_FIRST,
  13102. };
  13103. enum VariantType
  13104. {
  13105. VAR_NONE,
  13106. VAR_INT,
  13107. VAR_BOOL,
  13108. VAR_FLOAT,
  13109. VAR_VECTOR2,
  13110. VAR_VECTOR3,
  13111. VAR_VECTOR4,
  13112. VAR_QUATERNION,
  13113. VAR_COLOR,
  13114. VAR_STRING,
  13115. VAR_BUFFER,
  13116. VAR_VOIDPTR,
  13117. VAR_RESOURCEREF,
  13118. VAR_RESOURCEREFLIST,
  13119. VAR_VARIANTVECTOR,
  13120. VAR_VARIANTMAP,
  13121. VAR_INTRECT,
  13122. VAR_INTVECTOR2,
  13123. VAR_PTR,
  13124. VAR_MATRIX3,
  13125. VAR_MATRIX3X4,
  13126. VAR_MATRIX4,
  13127. VAR_DOUBLE,
  13128. VAR_STRINGVECTOR,
  13129. };
  13130. enum VerticalAlignment
  13131. {
  13132. VA_TOP,
  13133. VA_CENTER,
  13134. VA_BOTTOM,
  13135. };
  13136. enum WrapMode
  13137. {
  13138. WM_LOOP,
  13139. WM_ONCE,
  13140. WM_CLAMP,
  13141. };
  13142. // Global functions
  13143. float Abs(float);
  13144. float Acos(float);
  13145. String AddTrailingSlash(const String&);
  13146. float Asin(float);
  13147. float Atan(float);
  13148. float Atan2(float, float);
  13149. float Ceil(float);
  13150. float Clamp(float, float, float);
  13151. int Clamp(int, int, int);
  13152. void ClearDelayedExecute(const String& = String ( ));
  13153. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13154. float Cos(float);
  13155. uint CountSetBits(uint);
  13156. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13157. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13158. bool Equals(float, float);
  13159. void ErrorDialog(const String&, const String&);
  13160. float Floor(float);
  13161. uint GetAlphaFormat();
  13162. Array<String> GetArguments();
  13163. String GetConsoleInput();
  13164. uint GetDepthStencilFormat();
  13165. Object GetEventSender();
  13166. String GetExtension(const String&, bool = true);
  13167. String GetFileName(const String&);
  13168. String GetFileNameAndExtension(const String&, bool = false);
  13169. String GetFileSizeString(uint64);
  13170. uint GetFloat16Format();
  13171. uint GetFloat32Format();
  13172. uint GetFormat(const String&);
  13173. String GetInternalPath(const String&);
  13174. uint GetLinearDepthFormat();
  13175. uint GetLuminanceAlphaFormat();
  13176. uint GetLuminanceFormat();
  13177. uint GetMaxBones();
  13178. uint GetNumLogicalCPUs();
  13179. uint GetNumPhysicalCPUs();
  13180. Array<String> GetObjectCategories();
  13181. Array<String> GetObjectsByCategory(const String&);
  13182. String GetParentPath(const String&);
  13183. String GetPath(const String&);
  13184. String GetPlatform();
  13185. uint GetRG16Format();
  13186. uint GetRGBA16Format();
  13187. uint GetRGBAFloat16Format();
  13188. uint GetRGBAFloat32Format();
  13189. uint GetRGBAFormat();
  13190. uint GetRGBFormat();
  13191. uint GetRGFloat16Format();
  13192. uint GetRGFloat32Format();
  13193. uint GetRandomSeed();
  13194. uint GetReadableDepthFormat();
  13195. String GetTextureUnitName(TextureUnit);
  13196. bool IsAbsolutePath(const String&);
  13197. bool IsAlpha(uint);
  13198. bool IsDigit(uint);
  13199. bool IsNaN(float);
  13200. bool IsPowerOfTwo(uint);
  13201. String Join(Array<String>&, const String&);
  13202. float Lerp(float, float, float);
  13203. void MarkNetworkUpdate();
  13204. float Max(float, float);
  13205. int Max(int, int);
  13206. float Min(float, float);
  13207. int Min(int, int);
  13208. float Mod(float, float);
  13209. uint NextPowerOfTwo(uint);
  13210. void OpenConsoleWindow();
  13211. float Pow(float, float);
  13212. void Print(bool, bool = false);
  13213. void Print(const String&, bool = false);
  13214. void Print(const Variant&, bool = false);
  13215. void Print(float, bool = false);
  13216. void Print(int, bool = false);
  13217. void Print(uint, bool = false);
  13218. void PrintCallStack(bool = false);
  13219. float Random();
  13220. float Random(float);
  13221. float Random(float, float);
  13222. int RandomInt();
  13223. int RandomInt(int);
  13224. int RandomInt(int, int);
  13225. float RandomNormal(float, float);
  13226. void Remove();
  13227. String RemoveTrailingSlash(const String&);
  13228. String ReplaceExtension(const String&, const String&);
  13229. uint SDBMHash(uint, uint8);
  13230. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13231. void SetRandomSeed(uint);
  13232. float Sign(float);
  13233. float Sin(float);
  13234. float SmoothStep(float, float, float);
  13235. float Sqrt(float);
  13236. const String& GetTypeName(StringHash);
  13237. void SubscribeToEvent(Object, const String&, const String&);
  13238. void SubscribeToEvent(const String&, const String&);
  13239. float Tan(float);
  13240. uint ToLower(uint);
  13241. String ToStringHex(int);
  13242. uint ToUpper(uint);
  13243. void UnsubscribeFromAllEvents();
  13244. void UnsubscribeFromAllEventsExcept(Array<String>);
  13245. void UnsubscribeFromEvent(Object, const String&);
  13246. void UnsubscribeFromEvent(const String&);
  13247. void UnsubscribeFromEvents(Object);
  13248. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13249. // Global properties
  13250. DBAPI DBAPI;
  13251. Audio audio;
  13252. ResourceCache cache;
  13253. Console console;
  13254. Database database;
  13255. DebugHud debugHud;
  13256. DebugRenderer debugRenderer;
  13257. Engine engine;
  13258. FileSystem fileSystem;
  13259. Graphics graphics;
  13260. Input input;
  13261. Localization localization;
  13262. Log log;
  13263. Network network;
  13264. Node node;
  13265. Octree octree;
  13266. PhysicsWorld physicsWorld;
  13267. PhysicsWorld2D physicsWorld2D;
  13268. Renderer renderer;
  13269. ResourceCache resourceCache;
  13270. Scene scene;
  13271. Script script;
  13272. ScriptFile scriptFile;
  13273. ScriptInstance self;
  13274. Time time;
  13275. UI ui;
  13276. // Global constants
  13277. uint AM_COMPONENTID;
  13278. uint AM_DEFAULT;
  13279. uint AM_FILE;
  13280. uint AM_LATESTDATA;
  13281. uint AM_NET;
  13282. uint AM_NODEID;
  13283. uint AM_NODEIDVECTOR;
  13284. uint AM_NOEDIT;
  13285. Color BLACK;
  13286. Color BLUE;
  13287. uint8 CHANNEL_POSITION;
  13288. uint8 CHANNEL_ROTATION;
  13289. uint8 CHANNEL_SCALE;
  13290. uint CLEAR_COLOR;
  13291. uint CLEAR_DEPTH;
  13292. uint CLEAR_STENCIL;
  13293. int CONTROLLER_AXIS_LEFTX;
  13294. int CONTROLLER_AXIS_LEFTY;
  13295. int CONTROLLER_AXIS_RIGHTX;
  13296. int CONTROLLER_AXIS_RIGHTY;
  13297. int CONTROLLER_AXIS_TRIGGERLEFT;
  13298. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13299. int CONTROLLER_BUTTON_A;
  13300. int CONTROLLER_BUTTON_B;
  13301. int CONTROLLER_BUTTON_BACK;
  13302. int CONTROLLER_BUTTON_DPAD_DOWN;
  13303. int CONTROLLER_BUTTON_DPAD_LEFT;
  13304. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13305. int CONTROLLER_BUTTON_DPAD_UP;
  13306. int CONTROLLER_BUTTON_GUIDE;
  13307. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13308. int CONTROLLER_BUTTON_LEFTSTICK;
  13309. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13310. int CONTROLLER_BUTTON_RIGHTSTICK;
  13311. int CONTROLLER_BUTTON_START;
  13312. int CONTROLLER_BUTTON_X;
  13313. int CONTROLLER_BUTTON_Y;
  13314. Color CYAN;
  13315. uint DD_DISABLED;
  13316. uint DD_SOURCE;
  13317. uint DD_SOURCE_AND_TARGET;
  13318. uint DD_TARGET;
  13319. uint DEBUGHUD_SHOW_ALL;
  13320. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13321. uint DEBUGHUD_SHOW_MEMORY;
  13322. uint DEBUGHUD_SHOW_MODE;
  13323. uint DEBUGHUD_SHOW_NONE;
  13324. uint DEBUGHUD_SHOW_PROFILER;
  13325. uint DEBUGHUD_SHOW_STATS;
  13326. uint DEFAULT_LIGHTMASK;
  13327. uint DEFAULT_VIEWMASK;
  13328. uint DRAWABLE_ANY;
  13329. uint DRAWABLE_GEOMETRY;
  13330. uint DRAWABLE_GEOMETRY2D;
  13331. uint DRAWABLE_LIGHT;
  13332. uint DRAWABLE_ZONE;
  13333. uint FIRST_LOCAL_ID;
  13334. uint FIRST_REPLICATED_ID;
  13335. Color GRAY;
  13336. Color GREEN;
  13337. int HAT_CENTER;
  13338. int HAT_DOWN;
  13339. int HAT_LEFT;
  13340. int HAT_RIGHT;
  13341. int HAT_UP;
  13342. int KEY_0;
  13343. int KEY_1;
  13344. int KEY_2;
  13345. int KEY_3;
  13346. int KEY_4;
  13347. int KEY_5;
  13348. int KEY_6;
  13349. int KEY_7;
  13350. int KEY_8;
  13351. int KEY_9;
  13352. int KEY_A;
  13353. int KEY_ALT;
  13354. int KEY_APPLICATION;
  13355. int KEY_B;
  13356. int KEY_BACKSPACE;
  13357. int KEY_C;
  13358. int KEY_CAPSLOCK;
  13359. int KEY_CTRL;
  13360. int KEY_D;
  13361. int KEY_DELETE;
  13362. int KEY_DOWN;
  13363. int KEY_E;
  13364. int KEY_END;
  13365. int KEY_ESC;
  13366. int KEY_F;
  13367. int KEY_F1;
  13368. int KEY_F10;
  13369. int KEY_F11;
  13370. int KEY_F12;
  13371. int KEY_F13;
  13372. int KEY_F14;
  13373. int KEY_F15;
  13374. int KEY_F16;
  13375. int KEY_F17;
  13376. int KEY_F18;
  13377. int KEY_F19;
  13378. int KEY_F2;
  13379. int KEY_F20;
  13380. int KEY_F21;
  13381. int KEY_F22;
  13382. int KEY_F23;
  13383. int KEY_F24;
  13384. int KEY_F3;
  13385. int KEY_F4;
  13386. int KEY_F5;
  13387. int KEY_F6;
  13388. int KEY_F7;
  13389. int KEY_F8;
  13390. int KEY_F9;
  13391. int KEY_G;
  13392. int KEY_GUI;
  13393. int KEY_H;
  13394. int KEY_HOME;
  13395. int KEY_I;
  13396. int KEY_INSERT;
  13397. int KEY_J;
  13398. int KEY_K;
  13399. int KEY_KP_0;
  13400. int KEY_KP_1;
  13401. int KEY_KP_2;
  13402. int KEY_KP_3;
  13403. int KEY_KP_4;
  13404. int KEY_KP_5;
  13405. int KEY_KP_6;
  13406. int KEY_KP_7;
  13407. int KEY_KP_8;
  13408. int KEY_KP_9;
  13409. int KEY_KP_DIVIDE;
  13410. int KEY_KP_ENTER;
  13411. int KEY_KP_MINUS;
  13412. int KEY_KP_MULTIPLY;
  13413. int KEY_KP_PERIOD;
  13414. int KEY_KP_PLUS;
  13415. int KEY_L;
  13416. int KEY_LALT;
  13417. int KEY_LCTRL;
  13418. int KEY_LEFT;
  13419. int KEY_LGUI;
  13420. int KEY_LSHIFT;
  13421. int KEY_M;
  13422. int KEY_N;
  13423. int KEY_NUMLOCKCLEAR;
  13424. int KEY_O;
  13425. int KEY_P;
  13426. int KEY_PAGEDOWN;
  13427. int KEY_PAGEUP;
  13428. int KEY_PAUSE;
  13429. int KEY_PRINTSCREEN;
  13430. int KEY_Q;
  13431. int KEY_R;
  13432. int KEY_RALT;
  13433. int KEY_RCTRL;
  13434. int KEY_RETURN;
  13435. int KEY_RETURN2;
  13436. int KEY_RGUI;
  13437. int KEY_RIGHT;
  13438. int KEY_RSHIFT;
  13439. int KEY_S;
  13440. int KEY_SCROLLLOCK;
  13441. int KEY_SELECT;
  13442. int KEY_SHIFT;
  13443. int KEY_SPACE;
  13444. int KEY_T;
  13445. int KEY_TAB;
  13446. int KEY_U;
  13447. int KEY_UP;
  13448. int KEY_V;
  13449. int KEY_W;
  13450. int KEY_X;
  13451. int KEY_Y;
  13452. int KEY_Z;
  13453. uint LAST_LOCAL_ID;
  13454. uint LAST_REPLICATED_ID;
  13455. int LOG_DEBUG;
  13456. int LOG_ERROR;
  13457. int LOG_INFO;
  13458. int LOG_NONE;
  13459. int LOG_WARNING;
  13460. Color MAGENTA;
  13461. uint MASK_BLENDINDICES;
  13462. uint MASK_BLENDWEIGHTS;
  13463. uint MASK_COLOR;
  13464. uint MASK_CUBETEXCOORD1;
  13465. uint MASK_CUBETEXCOORD2;
  13466. uint MASK_DEFAULT;
  13467. uint MASK_INSTANCEMATRIX1;
  13468. uint MASK_INSTANCEMATRIX2;
  13469. uint MASK_INSTANCEMATRIX3;
  13470. uint MASK_NONE;
  13471. uint MASK_NORMAL;
  13472. uint MASK_POSITION;
  13473. uint MASK_TANGENT;
  13474. uint MASK_TEXCOORD1;
  13475. uint MASK_TEXCOORD2;
  13476. int MOUSEB_LEFT;
  13477. int MOUSEB_MIDDLE;
  13478. int MOUSEB_RIGHT;
  13479. float M_DEGTORAD;
  13480. float M_DEGTORAD_2;
  13481. float M_EPSILON;
  13482. float M_HALF_PI;
  13483. float M_INFINITY;
  13484. float M_LARGE_EPSILON;
  13485. float M_LARGE_VALUE;
  13486. int M_MAX_INT;
  13487. uint M_MAX_UNSIGNED;
  13488. int M_MIN_INT;
  13489. uint M_MIN_UNSIGNED;
  13490. float M_PI;
  13491. float M_RADTODEG;
  13492. float PIXEL_SIZE;
  13493. int QUALITY_HIGH;
  13494. int QUALITY_LOW;
  13495. int QUALITY_MAX;
  13496. int QUALITY_MEDIUM;
  13497. int QUAL_ALT;
  13498. int QUAL_ANY;
  13499. int QUAL_CTRL;
  13500. int QUAL_SHIFT;
  13501. Color RED;
  13502. int SCANCODE_0;
  13503. int SCANCODE_1;
  13504. int SCANCODE_2;
  13505. int SCANCODE_3;
  13506. int SCANCODE_4;
  13507. int SCANCODE_5;
  13508. int SCANCODE_6;
  13509. int SCANCODE_7;
  13510. int SCANCODE_8;
  13511. int SCANCODE_9;
  13512. int SCANCODE_A;
  13513. int SCANCODE_AC_BACK;
  13514. int SCANCODE_AC_BOOKMARKS;
  13515. int SCANCODE_AC_FORWARD;
  13516. int SCANCODE_AC_HOME;
  13517. int SCANCODE_AC_REFRESH;
  13518. int SCANCODE_AC_SEARCH;
  13519. int SCANCODE_AC_STOP;
  13520. int SCANCODE_AGAIN;
  13521. int SCANCODE_ALT;
  13522. int SCANCODE_ALTERASE;
  13523. int SCANCODE_APOSTROPHE;
  13524. int SCANCODE_APP1;
  13525. int SCANCODE_APP2;
  13526. int SCANCODE_APPLICATION;
  13527. int SCANCODE_AUDIOMUTE;
  13528. int SCANCODE_AUDIONEXT;
  13529. int SCANCODE_AUDIOPLAY;
  13530. int SCANCODE_AUDIOPREV;
  13531. int SCANCODE_AUDIOSTOP;
  13532. int SCANCODE_B;
  13533. int SCANCODE_BACKSLASH;
  13534. int SCANCODE_BACKSPACE;
  13535. int SCANCODE_BRIGHTNESSDOWN;
  13536. int SCANCODE_BRIGHTNESSUP;
  13537. int SCANCODE_C;
  13538. int SCANCODE_CALCULATOR;
  13539. int SCANCODE_CANCEL;
  13540. int SCANCODE_CAPSLOCK;
  13541. int SCANCODE_CLEAR;
  13542. int SCANCODE_CLEARAGAIN;
  13543. int SCANCODE_COMMA;
  13544. int SCANCODE_COMPUTER;
  13545. int SCANCODE_COPY;
  13546. int SCANCODE_CRSEL;
  13547. int SCANCODE_CTRL;
  13548. int SCANCODE_CURRENCYSUBUNIT;
  13549. int SCANCODE_CURRENCYUNIT;
  13550. int SCANCODE_CUT;
  13551. int SCANCODE_D;
  13552. int SCANCODE_DECIMALSEPARATOR;
  13553. int SCANCODE_DELETE;
  13554. int SCANCODE_DISPLAYSWITCH;
  13555. int SCANCODE_DOWN;
  13556. int SCANCODE_E;
  13557. int SCANCODE_EJECT;
  13558. int SCANCODE_END;
  13559. int SCANCODE_EQUALS;
  13560. int SCANCODE_ESCAPE;
  13561. int SCANCODE_EXECUTE;
  13562. int SCANCODE_EXSEL;
  13563. int SCANCODE_F;
  13564. int SCANCODE_F1;
  13565. int SCANCODE_F10;
  13566. int SCANCODE_F11;
  13567. int SCANCODE_F12;
  13568. int SCANCODE_F13;
  13569. int SCANCODE_F14;
  13570. int SCANCODE_F15;
  13571. int SCANCODE_F16;
  13572. int SCANCODE_F17;
  13573. int SCANCODE_F18;
  13574. int SCANCODE_F19;
  13575. int SCANCODE_F2;
  13576. int SCANCODE_F20;
  13577. int SCANCODE_F21;
  13578. int SCANCODE_F22;
  13579. int SCANCODE_F23;
  13580. int SCANCODE_F24;
  13581. int SCANCODE_F3;
  13582. int SCANCODE_F4;
  13583. int SCANCODE_F5;
  13584. int SCANCODE_F6;
  13585. int SCANCODE_F7;
  13586. int SCANCODE_F8;
  13587. int SCANCODE_F9;
  13588. int SCANCODE_FIND;
  13589. int SCANCODE_G;
  13590. int SCANCODE_GRAVE;
  13591. int SCANCODE_GUI;
  13592. int SCANCODE_H;
  13593. int SCANCODE_HELP;
  13594. int SCANCODE_HOME;
  13595. int SCANCODE_I;
  13596. int SCANCODE_INSERT;
  13597. int SCANCODE_INTERNATIONAL1;
  13598. int SCANCODE_INTERNATIONAL2;
  13599. int SCANCODE_INTERNATIONAL3;
  13600. int SCANCODE_INTERNATIONAL4;
  13601. int SCANCODE_INTERNATIONAL5;
  13602. int SCANCODE_INTERNATIONAL6;
  13603. int SCANCODE_INTERNATIONAL7;
  13604. int SCANCODE_INTERNATIONAL8;
  13605. int SCANCODE_INTERNATIONAL9;
  13606. int SCANCODE_J;
  13607. int SCANCODE_K;
  13608. int SCANCODE_KBDILLUMDOWN;
  13609. int SCANCODE_KBDILLUMTOGGLE;
  13610. int SCANCODE_KBDILLUMUP;
  13611. int SCANCODE_KP_0;
  13612. int SCANCODE_KP_00;
  13613. int SCANCODE_KP_000;
  13614. int SCANCODE_KP_1;
  13615. int SCANCODE_KP_2;
  13616. int SCANCODE_KP_3;
  13617. int SCANCODE_KP_4;
  13618. int SCANCODE_KP_5;
  13619. int SCANCODE_KP_6;
  13620. int SCANCODE_KP_7;
  13621. int SCANCODE_KP_8;
  13622. int SCANCODE_KP_9;
  13623. int SCANCODE_KP_A;
  13624. int SCANCODE_KP_AMPERSAND;
  13625. int SCANCODE_KP_AT;
  13626. int SCANCODE_KP_B;
  13627. int SCANCODE_KP_BACKSPACE;
  13628. int SCANCODE_KP_BINARY;
  13629. int SCANCODE_KP_C;
  13630. int SCANCODE_KP_CLEAR;
  13631. int SCANCODE_KP_CLEARENTRY;
  13632. int SCANCODE_KP_COLON;
  13633. int SCANCODE_KP_COMMA;
  13634. int SCANCODE_KP_D;
  13635. int SCANCODE_KP_DBLAMPERSAND;
  13636. int SCANCODE_KP_DBLVERTICALBAR;
  13637. int SCANCODE_KP_DECIMAL;
  13638. int SCANCODE_KP_DIVIDE;
  13639. int SCANCODE_KP_E;
  13640. int SCANCODE_KP_ENTER;
  13641. int SCANCODE_KP_EQUALS;
  13642. int SCANCODE_KP_EQUALSAS400;
  13643. int SCANCODE_KP_EXCLAM;
  13644. int SCANCODE_KP_F;
  13645. int SCANCODE_KP_GREATER;
  13646. int SCANCODE_KP_HASH;
  13647. int SCANCODE_KP_HEXADECIMAL;
  13648. int SCANCODE_KP_LEFTBRACE;
  13649. int SCANCODE_KP_LEFTPAREN;
  13650. int SCANCODE_KP_LESS;
  13651. int SCANCODE_KP_MEMADD;
  13652. int SCANCODE_KP_MEMCLEAR;
  13653. int SCANCODE_KP_MEMDIVIDE;
  13654. int SCANCODE_KP_MEMMULTIPLY;
  13655. int SCANCODE_KP_MEMRECALL;
  13656. int SCANCODE_KP_MEMSTORE;
  13657. int SCANCODE_KP_MEMSUBTRACT;
  13658. int SCANCODE_KP_MINUS;
  13659. int SCANCODE_KP_MULTIPLY;
  13660. int SCANCODE_KP_OCTAL;
  13661. int SCANCODE_KP_PERCENT;
  13662. int SCANCODE_KP_PERIOD;
  13663. int SCANCODE_KP_PLUS;
  13664. int SCANCODE_KP_PLUSMINUS;
  13665. int SCANCODE_KP_POWER;
  13666. int SCANCODE_KP_RIGHTBRACE;
  13667. int SCANCODE_KP_RIGHTPAREN;
  13668. int SCANCODE_KP_SPACE;
  13669. int SCANCODE_KP_TAB;
  13670. int SCANCODE_KP_VERTICALBAR;
  13671. int SCANCODE_KP_XOR;
  13672. int SCANCODE_L;
  13673. int SCANCODE_LALT;
  13674. int SCANCODE_LANG1;
  13675. int SCANCODE_LANG2;
  13676. int SCANCODE_LANG3;
  13677. int SCANCODE_LANG4;
  13678. int SCANCODE_LANG5;
  13679. int SCANCODE_LANG6;
  13680. int SCANCODE_LANG7;
  13681. int SCANCODE_LANG8;
  13682. int SCANCODE_LANG9;
  13683. int SCANCODE_LCTRL;
  13684. int SCANCODE_LEFT;
  13685. int SCANCODE_LEFTBRACKET;
  13686. int SCANCODE_LGUI;
  13687. int SCANCODE_LSHIFT;
  13688. int SCANCODE_M;
  13689. int SCANCODE_MAIL;
  13690. int SCANCODE_MEDIASELECT;
  13691. int SCANCODE_MENU;
  13692. int SCANCODE_MINUS;
  13693. int SCANCODE_MODE;
  13694. int SCANCODE_MUTE;
  13695. int SCANCODE_N;
  13696. int SCANCODE_NONUSBACKSLASH;
  13697. int SCANCODE_NONUSHASH;
  13698. int SCANCODE_NUMLOCKCLEAR;
  13699. int SCANCODE_O;
  13700. int SCANCODE_OPER;
  13701. int SCANCODE_OUT;
  13702. int SCANCODE_P;
  13703. int SCANCODE_PAGEDOWN;
  13704. int SCANCODE_PAGEUP;
  13705. int SCANCODE_PASTE;
  13706. int SCANCODE_PAUSE;
  13707. int SCANCODE_PERIOD;
  13708. int SCANCODE_POWER;
  13709. int SCANCODE_PRINTSCREEN;
  13710. int SCANCODE_PRIOR;
  13711. int SCANCODE_Q;
  13712. int SCANCODE_R;
  13713. int SCANCODE_RALT;
  13714. int SCANCODE_RCTRL;
  13715. int SCANCODE_RETURN;
  13716. int SCANCODE_RETURN2;
  13717. int SCANCODE_RGUI;
  13718. int SCANCODE_RIGHT;
  13719. int SCANCODE_RIGHTBRACKET;
  13720. int SCANCODE_RSHIFT;
  13721. int SCANCODE_S;
  13722. int SCANCODE_SCROLLLOCK;
  13723. int SCANCODE_SELECT;
  13724. int SCANCODE_SEMICOLON;
  13725. int SCANCODE_SEPARATOR;
  13726. int SCANCODE_SHIFT;
  13727. int SCANCODE_SLASH;
  13728. int SCANCODE_SLEEP;
  13729. int SCANCODE_SPACE;
  13730. int SCANCODE_STOP;
  13731. int SCANCODE_SYSREQ;
  13732. int SCANCODE_T;
  13733. int SCANCODE_TAB;
  13734. int SCANCODE_THOUSANDSSEPARATOR;
  13735. int SCANCODE_U;
  13736. int SCANCODE_UNDO;
  13737. int SCANCODE_UNKNOWN;
  13738. int SCANCODE_UP;
  13739. int SCANCODE_V;
  13740. int SCANCODE_VOLUMEDOWN;
  13741. int SCANCODE_VOLUMEUP;
  13742. int SCANCODE_W;
  13743. int SCANCODE_WWW;
  13744. int SCANCODE_X;
  13745. int SCANCODE_Y;
  13746. int SCANCODE_Z;
  13747. uint SCAN_DIRS;
  13748. uint SCAN_FILES;
  13749. uint SCAN_HIDDEN;
  13750. int SHADOWQUALITY_HIGH_16BIT;
  13751. int SHADOWQUALITY_HIGH_24BIT;
  13752. int SHADOWQUALITY_LOW_16BIT;
  13753. int SHADOWQUALITY_LOW_24BIT;
  13754. String SOUND_AMBIENT;
  13755. String SOUND_EFFECT;
  13756. String SOUND_MASTER;
  13757. String SOUND_MUSIC;
  13758. String SOUND_VOICE;
  13759. Color TRANSPARENT;
  13760. uint VO_DISABLE_OCCLUSION;
  13761. uint VO_DISABLE_SHADOWS;
  13762. uint VO_LOW_MATERIAL_QUALITY;
  13763. uint VO_NONE;
  13764. Color WHITE;
  13765. Color YELLOW;
  13766. VariantMap globalVars;