AngelScriptAPI.h 369 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890
  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 HasSubscribedToEvent(Object, const String&);
  22. bool HasSubscribedToEvent(const String&);
  23. bool Load(File, bool = false);
  24. bool Load(VectorBuffer&, bool = false);
  25. bool LoadJSON(const JSONValue&, bool = false);
  26. bool LoadXML(const XMLElement&, bool = false);
  27. void MarkNetworkUpdate() const;
  28. void RemoveAttributeAnimation(const String&);
  29. void RemoveInstanceDefault();
  30. void RemoveObjectAnimation();
  31. void ResetToDefault();
  32. bool Save(File) const;
  33. bool Save(VectorBuffer&) const;
  34. bool SaveJSON(JSONValue&) const;
  35. bool SaveXML(XMLElement&) const;
  36. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  37. void SetAnimationTime(float);
  38. bool SetAttribute(const String&, const Variant&);
  39. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  40. void SetAttributeAnimationSpeed(const String&, float);
  41. void SetAttributeAnimationTime(const String&, float);
  42. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  43. void SetInterceptNetworkUpdate(const String&, bool);
  44. // Properties:
  45. bool animationEnabled;
  46. /* readonly */
  47. Array<Variant> attributeDefaults;
  48. /* readonly */
  49. Array<AttributeInfo> attributeInfos;
  50. Array<Variant> attributes;
  51. /* readonly */
  52. String category;
  53. /* readonly */
  54. uint numAttributes;
  55. ObjectAnimation objectAnimation;
  56. /* readonly */
  57. int refs;
  58. bool temporary;
  59. /* readonly */
  60. StringHash type;
  61. /* readonly */
  62. String typeName;
  63. /* readonly */
  64. int weakRefs;
  65. };
  66. class AnimatedModel
  67. {
  68. // Methods:
  69. AnimationState AddAnimationState(Animation);
  70. void ApplyAttributes();
  71. void ApplyMaterialList(const String& = String ( ));
  72. void DrawDebugGeometry(DebugRenderer, bool);
  73. AnimationState GetAnimationState(Animation) const;
  74. AnimationState GetAnimationState(uint) const;
  75. Variant GetAttribute(const String&) const;
  76. ValueAnimation GetAttributeAnimation(const String&) const;
  77. float GetAttributeAnimationSpeed(const String&) const;
  78. float GetAttributeAnimationTime(const String&) const;
  79. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  80. Variant GetAttributeDefault(const String&) const;
  81. bool GetInterceptNetworkUpdate(const String&) const;
  82. float GetMorphWeight(uint) const;
  83. bool HasSubscribedToEvent(Object, const String&);
  84. bool HasSubscribedToEvent(const String&);
  85. bool IsInView(Camera) const;
  86. bool Load(File, bool = false);
  87. bool Load(VectorBuffer&, bool = false);
  88. bool LoadJSON(const JSONValue&, bool = false);
  89. bool LoadXML(const XMLElement&, bool = false);
  90. void MarkNetworkUpdate() const;
  91. void Remove();
  92. void RemoveAllAnimationStates();
  93. void RemoveAnimationState(Animation);
  94. void RemoveAnimationState(AnimationState);
  95. void RemoveAnimationState(const String&);
  96. void RemoveAnimationState(uint);
  97. void RemoveAttributeAnimation(const String&);
  98. void RemoveInstanceDefault();
  99. void RemoveObjectAnimation();
  100. void ResetMorphWeights();
  101. void ResetToDefault();
  102. bool Save(File) const;
  103. bool Save(VectorBuffer&) const;
  104. bool SaveJSON(JSONValue&) const;
  105. bool SaveXML(XMLElement&) const;
  106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  107. void SetAnimationTime(float);
  108. bool SetAttribute(const String&, const Variant&);
  109. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  110. void SetAttributeAnimationSpeed(const String&, float);
  111. void SetAttributeAnimationTime(const String&, float);
  112. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  113. void SetInterceptNetworkUpdate(const String&, bool);
  114. void SetMorphWeight(uint, float);
  115. void UpdateBoneBoundingBox();
  116. // Properties:
  117. bool animationEnabled;
  118. float animationLodBias;
  119. /* readonly */
  120. Array<AnimationState> animationStates;
  121. /* readonly */
  122. Array<Variant> attributeDefaults;
  123. /* readonly */
  124. Array<AttributeInfo> attributeInfos;
  125. Array<Variant> attributes;
  126. /* readonly */
  127. BoundingBox boundingBox;
  128. bool castShadows;
  129. /* readonly */
  130. String category;
  131. float drawDistance;
  132. bool enabled;
  133. /* readonly */
  134. bool enabledEffective;
  135. /* readonly */
  136. uint id;
  137. /* readonly */
  138. bool inView;
  139. uint lightMask;
  140. float lodBias;
  141. /* writeonly */
  142. Material material;
  143. Array<Material> materials;
  144. uint maxLights;
  145. Model model;
  146. /* readonly */
  147. Array<String> morphNames;
  148. Array<float> morphWeights;
  149. /* readonly */
  150. Node node;
  151. /* readonly */
  152. uint numAnimationStates;
  153. /* readonly */
  154. uint numAttributes;
  155. /* readonly */
  156. uint numGeometries;
  157. /* readonly */
  158. uint numMorphs;
  159. ObjectAnimation objectAnimation;
  160. bool occludee;
  161. bool occluder;
  162. /* readonly */
  163. int refs;
  164. float shadowDistance;
  165. uint shadowMask;
  166. /* readonly */
  167. Skeleton skeleton;
  168. bool temporary;
  169. /* readonly */
  170. StringHash type;
  171. /* readonly */
  172. String typeName;
  173. bool updateInvisible;
  174. uint viewMask;
  175. /* readonly */
  176. int weakRefs;
  177. /* readonly */
  178. BoundingBox worldBoundingBox;
  179. /* readonly */
  180. Zone zone;
  181. uint zoneMask;
  182. };
  183. class AnimatedSprite2D
  184. {
  185. // Methods:
  186. void ApplyAttributes();
  187. void DrawDebugGeometry(DebugRenderer, bool);
  188. Variant GetAttribute(const String&) const;
  189. ValueAnimation GetAttributeAnimation(const String&) const;
  190. float GetAttributeAnimationSpeed(const String&) const;
  191. float GetAttributeAnimationTime(const String&) const;
  192. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  193. Variant GetAttributeDefault(const String&) const;
  194. bool GetInterceptNetworkUpdate(const String&) const;
  195. bool HasSubscribedToEvent(Object, const String&);
  196. bool HasSubscribedToEvent(const String&);
  197. bool IsInView(Camera) const;
  198. bool Load(File, bool = false);
  199. bool Load(VectorBuffer&, bool = false);
  200. bool LoadJSON(const JSONValue&, bool = false);
  201. bool LoadXML(const XMLElement&, bool = false);
  202. void MarkNetworkUpdate() const;
  203. void Remove();
  204. void RemoveAttributeAnimation(const String&);
  205. void RemoveInstanceDefault();
  206. void RemoveObjectAnimation();
  207. void ResetToDefault();
  208. bool Save(File) const;
  209. bool Save(VectorBuffer&) const;
  210. bool SaveJSON(JSONValue&) const;
  211. bool SaveXML(XMLElement&) const;
  212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  213. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  214. void SetAnimationTime(float);
  215. bool SetAttribute(const String&, const Variant&);
  216. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  217. void SetAttributeAnimationSpeed(const String&, float);
  218. void SetAttributeAnimationTime(const String&, float);
  219. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  220. void SetFlip(bool, bool);
  221. void SetInterceptNetworkUpdate(const String&, bool);
  222. // Properties:
  223. float alpha;
  224. String animation;
  225. bool animationEnabled;
  226. AnimationSet2D animationSet;
  227. /* readonly */
  228. Array<Variant> attributeDefaults;
  229. /* readonly */
  230. Array<AttributeInfo> attributeInfos;
  231. Array<Variant> attributes;
  232. BlendMode blendMode;
  233. /* readonly */
  234. BoundingBox boundingBox;
  235. bool castShadows;
  236. /* readonly */
  237. String category;
  238. Color color;
  239. Material customMaterial;
  240. float drawDistance;
  241. bool enabled;
  242. /* readonly */
  243. bool enabledEffective;
  244. String entity;
  245. bool flipX;
  246. bool flipY;
  247. Vector2 hotSpot;
  248. /* readonly */
  249. uint id;
  250. /* readonly */
  251. bool inView;
  252. int layer;
  253. uint lightMask;
  254. float lodBias;
  255. LoopMode2D loopMode;
  256. uint maxLights;
  257. /* readonly */
  258. Node node;
  259. /* readonly */
  260. uint numAttributes;
  261. ObjectAnimation objectAnimation;
  262. bool occludee;
  263. bool occluder;
  264. int orderInLayer;
  265. /* readonly */
  266. int refs;
  267. float shadowDistance;
  268. uint shadowMask;
  269. float speed;
  270. Sprite2D sprite;
  271. bool temporary;
  272. /* readonly */
  273. StringHash type;
  274. /* readonly */
  275. String typeName;
  276. bool useHotSpot;
  277. uint viewMask;
  278. /* readonly */
  279. int weakRefs;
  280. /* readonly */
  281. BoundingBox worldBoundingBox;
  282. uint zoneMask;
  283. };
  284. class Animation
  285. {
  286. // Methods:
  287. void AddTrigger(const AnimationTriggerPoint&);
  288. void AddTrigger(float, bool, const Variant&);
  289. Animation Clone(const String& = String ( )) const;
  290. AnimationTrack CreateTrack(const String&);
  291. bool HasSubscribedToEvent(Object, const String&);
  292. bool HasSubscribedToEvent(const String&);
  293. bool Load(File);
  294. bool Load(VectorBuffer&);
  295. bool RemoveAllTracks();
  296. void RemoveAllTriggers();
  297. bool RemoveTrack(const String&);
  298. void RemoveTrigger(uint);
  299. bool Save(File) const;
  300. bool Save(VectorBuffer&) const;
  301. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  302. // Properties:
  303. String animationName;
  304. /* readonly */
  305. String category;
  306. float length;
  307. /* readonly */
  308. uint memoryUse;
  309. String name;
  310. /* readonly */
  311. uint numTracks;
  312. uint numTriggers;
  313. /* readonly */
  314. int refs;
  315. /* readonly */
  316. Array<AnimationTrack> tracks;
  317. Array<AnimationTriggerPoint> triggers;
  318. /* readonly */
  319. StringHash type;
  320. /* readonly */
  321. String typeName;
  322. /* readonly */
  323. uint useTimer;
  324. /* readonly */
  325. int weakRefs;
  326. };
  327. class AnimationController
  328. {
  329. // Methods:
  330. void ApplyAttributes();
  331. void DrawDebugGeometry(DebugRenderer, bool);
  332. bool Fade(const String&, float, float);
  333. bool FadeOthers(const String&, float, float);
  334. AnimationState GetAnimationState(StringHash) const;
  335. AnimationState GetAnimationState(const String&) const;
  336. Variant GetAttribute(const String&) const;
  337. ValueAnimation GetAttributeAnimation(const String&) const;
  338. float GetAttributeAnimationSpeed(const String&) const;
  339. float GetAttributeAnimationTime(const String&) const;
  340. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  341. Variant GetAttributeDefault(const String&) const;
  342. float GetAutoFade(const String&) const;
  343. AnimationBlendMode GetBlendMode(const String&) const;
  344. float GetFadeTarget(const String&) const;
  345. float GetFadeTime(const String&) const;
  346. bool GetInterceptNetworkUpdate(const String&) const;
  347. uint8 GetLayer(const String&) const;
  348. float GetLength(const String&) const;
  349. bool GetLooped(const String&) const;
  350. bool GetRemoveOnCompletion(const String&);
  351. float GetSpeed(const String&) const;
  352. float GetTime(const String&) const;
  353. float GetWeight(const String&) const;
  354. bool HasSubscribedToEvent(Object, const String&);
  355. bool HasSubscribedToEvent(const String&);
  356. bool IsAtEnd(const String&) const;
  357. bool IsFadingIn(const String&) const;
  358. bool IsFadingOut(const String&) const;
  359. bool IsPlaying(const String&) const;
  360. bool Load(File, bool = false);
  361. bool Load(VectorBuffer&, bool = false);
  362. bool LoadJSON(const JSONValue&, bool = false);
  363. bool LoadXML(const XMLElement&, bool = false);
  364. void MarkNetworkUpdate() const;
  365. bool Play(const String&, uint8, bool, float = 0.0f);
  366. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  367. void Remove();
  368. void RemoveAttributeAnimation(const String&);
  369. void RemoveInstanceDefault();
  370. void RemoveObjectAnimation();
  371. void ResetToDefault();
  372. bool Save(File) const;
  373. bool Save(VectorBuffer&) const;
  374. bool SaveJSON(JSONValue&) const;
  375. bool SaveXML(XMLElement&) const;
  376. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  377. void SetAnimationTime(float);
  378. bool SetAttribute(const String&, const Variant&);
  379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  380. void SetAttributeAnimationSpeed(const String&, float);
  381. void SetAttributeAnimationTime(const String&, float);
  382. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  383. bool SetAutoFade(const String&, float);
  384. bool SetBlendMode(const String&, AnimationBlendMode);
  385. void SetInterceptNetworkUpdate(const String&, bool);
  386. bool SetLayer(const String&, uint8);
  387. bool SetLooped(const String&, bool);
  388. bool SetRemoveOnCompletion(const String&, bool);
  389. bool SetSpeed(const String&, float);
  390. bool SetStartBone(const String&, const String&);
  391. bool SetTime(const String&, float);
  392. bool SetWeight(const String&, float);
  393. void Stop(const String&, float = 0.0f);
  394. void StopAll(float = 0.0f);
  395. void StopLayer(uint8, float = 0.0f);
  396. const String& GetStartBone(const String&) const;
  397. // Properties:
  398. bool animationEnabled;
  399. /* readonly */
  400. Array<Variant> attributeDefaults;
  401. /* readonly */
  402. Array<AttributeInfo> attributeInfos;
  403. Array<Variant> attributes;
  404. /* readonly */
  405. String category;
  406. bool enabled;
  407. /* readonly */
  408. bool enabledEffective;
  409. /* readonly */
  410. uint id;
  411. /* readonly */
  412. Node node;
  413. /* readonly */
  414. uint numAttributes;
  415. ObjectAnimation objectAnimation;
  416. /* readonly */
  417. int refs;
  418. bool temporary;
  419. /* readonly */
  420. StringHash type;
  421. /* readonly */
  422. String typeName;
  423. /* readonly */
  424. int weakRefs;
  425. };
  426. class AnimationKeyFrame
  427. {
  428. // Properties:
  429. Vector3 position;
  430. Quaternion rotation;
  431. Vector3 scale;
  432. float time;
  433. };
  434. class AnimationSet2D
  435. {
  436. // Methods:
  437. String GetAnimation(uint) const;
  438. bool HasSubscribedToEvent(Object, const String&);
  439. bool HasSubscribedToEvent(const String&);
  440. bool Load(File);
  441. bool Load(VectorBuffer&);
  442. bool Save(File) const;
  443. bool Save(VectorBuffer&) const;
  444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  445. // Properties:
  446. /* readonly */
  447. String category;
  448. /* readonly */
  449. uint memoryUse;
  450. String name;
  451. /* readonly */
  452. uint numAnimations;
  453. /* readonly */
  454. int refs;
  455. /* readonly */
  456. StringHash type;
  457. /* readonly */
  458. String typeName;
  459. /* readonly */
  460. uint useTimer;
  461. /* readonly */
  462. int weakRefs;
  463. };
  464. class AnimationState
  465. {
  466. // Methods:
  467. void AddTime(float);
  468. void AddWeight(float);
  469. void Apply();
  470. float GetBoneWeight(StringHash) const;
  471. float GetBoneWeight(uint) const;
  472. uint GetTrackIndex(StringHash) const;
  473. uint GetTrackIndex(const String&) const;
  474. void SetBoneWeight(StringHash, float, bool = false);
  475. void SetBoneWeight(const String&, float, bool = false);
  476. void SetBoneWeight(uint, float, bool = false);
  477. // Properties:
  478. /* readonly */
  479. Animation animation;
  480. AnimationBlendMode blendMode;
  481. Array<float> boneWeights;
  482. /* readonly */
  483. bool enabled;
  484. uint8 layer;
  485. /* readonly */
  486. float length;
  487. bool looped;
  488. /* readonly */
  489. AnimatedModel model;
  490. /* readonly */
  491. Node node;
  492. /* readonly */
  493. int refs;
  494. Bone startBone;
  495. float time;
  496. /* readonly */
  497. int weakRefs;
  498. float weight;
  499. };
  500. class AnimationTrack
  501. {
  502. // Methods:
  503. void AddKeyFrame(const AnimationKeyFrame&);
  504. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  505. void RemoveAllKeyFrames();
  506. void RemoveKeyFrame(uint);
  507. // Properties:
  508. uint8 channelMask;
  509. Array<AnimationKeyFrame> keyFrames;
  510. String name;
  511. StringHash nameHash;
  512. /* readonly */
  513. uint numKeyFrames;
  514. };
  515. class AnimationTriggerPoint
  516. {
  517. // Properties:
  518. Variant data;
  519. float time;
  520. };
  521. template <class T> class Array
  522. {
  523. // Methods:
  524. void Clear();
  525. void Erase(uint);
  526. int Find(const T&) const;
  527. int Find(uint, const T&) const;
  528. int FindByRef(const T&) const;
  529. int FindByRef(uint, const T&) const;
  530. void Insert(uint, const T&);
  531. void Pop();
  532. void Push(const T&);
  533. void Reserve(uint);
  534. void Resize(uint);
  535. void Reverse();
  536. void Sort();
  537. void Sort(uint, uint);
  538. void SortReverse();
  539. void SortReverse(uint, uint);
  540. // Properties:
  541. /* readonly */
  542. bool empty;
  543. uint length;
  544. };
  545. class AttributeInfo
  546. {
  547. // Properties:
  548. Variant defaultValue;
  549. /* readonly */
  550. Array<String> enumNames;
  551. uint mode;
  552. String name;
  553. VariantType type;
  554. };
  555. class Audio
  556. {
  557. // Methods:
  558. bool HasMasterGain(const String&) const;
  559. bool HasSubscribedToEvent(Object, const String&);
  560. bool HasSubscribedToEvent(const String&);
  561. bool IsSoundTypePaused(const String&);
  562. void PauseSoundType(const String&);
  563. bool Play();
  564. void ResumeAll();
  565. void ResumeSoundType(const String&);
  566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  567. void SetMode(int, int, bool, bool = true);
  568. void Stop();
  569. // Properties:
  570. /* readonly */
  571. String category;
  572. /* readonly */
  573. bool initialized;
  574. /* readonly */
  575. bool interpolation;
  576. SoundListener listener;
  577. Array<float> masterGain;
  578. /* readonly */
  579. int mixRate;
  580. /* readonly */
  581. bool playing;
  582. /* readonly */
  583. int refs;
  584. /* readonly */
  585. uint sampleSize;
  586. /* readonly */
  587. bool stereo;
  588. /* readonly */
  589. StringHash type;
  590. /* readonly */
  591. String typeName;
  592. /* readonly */
  593. int weakRefs;
  594. };
  595. class BiasParameters
  596. {
  597. // Properties:
  598. float constantBias;
  599. float normalOffset;
  600. float slopeScaledBias;
  601. };
  602. class Billboard
  603. {
  604. // Properties:
  605. Color color;
  606. Vector3 direction;
  607. bool enabled;
  608. Vector3 position;
  609. float rotation;
  610. Vector2 size;
  611. Rect uv;
  612. };
  613. class BillboardSet
  614. {
  615. // Methods:
  616. void ApplyAttributes();
  617. void Commit();
  618. void DrawDebugGeometry(DebugRenderer, bool);
  619. Variant GetAttribute(const String&) const;
  620. ValueAnimation GetAttributeAnimation(const String&) const;
  621. float GetAttributeAnimationSpeed(const String&) const;
  622. float GetAttributeAnimationTime(const String&) const;
  623. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  624. Variant GetAttributeDefault(const String&) const;
  625. bool GetInterceptNetworkUpdate(const String&) const;
  626. bool HasSubscribedToEvent(Object, const String&);
  627. bool HasSubscribedToEvent(const String&);
  628. bool IsInView(Camera) const;
  629. bool Load(File, bool = false);
  630. bool Load(VectorBuffer&, bool = false);
  631. bool LoadJSON(const JSONValue&, bool = false);
  632. bool LoadXML(const XMLElement&, bool = false);
  633. void MarkNetworkUpdate() const;
  634. void Remove();
  635. void RemoveAttributeAnimation(const String&);
  636. void RemoveInstanceDefault();
  637. void RemoveObjectAnimation();
  638. void ResetToDefault();
  639. bool Save(File) const;
  640. bool Save(VectorBuffer&) const;
  641. bool SaveJSON(JSONValue&) const;
  642. bool SaveXML(XMLElement&) const;
  643. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  644. void SetAnimationTime(float);
  645. bool SetAttribute(const String&, const Variant&);
  646. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  647. void SetAttributeAnimationSpeed(const String&, float);
  648. void SetAttributeAnimationTime(const String&, float);
  649. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  650. void SetInterceptNetworkUpdate(const String&, bool);
  651. // Properties:
  652. bool animationEnabled;
  653. float animationLodBias;
  654. /* readonly */
  655. Array<Variant> attributeDefaults;
  656. /* readonly */
  657. Array<AttributeInfo> attributeInfos;
  658. Array<Variant> attributes;
  659. /* readonly */
  660. Array<Billboard> billboards;
  661. /* readonly */
  662. BoundingBox boundingBox;
  663. bool castShadows;
  664. /* readonly */
  665. String category;
  666. float drawDistance;
  667. bool enabled;
  668. /* readonly */
  669. bool enabledEffective;
  670. FaceCameraMode faceCameraMode;
  671. /* readonly */
  672. uint id;
  673. /* readonly */
  674. bool inView;
  675. uint lightMask;
  676. float lodBias;
  677. Material material;
  678. uint maxLights;
  679. /* readonly */
  680. Node node;
  681. /* readonly */
  682. uint numAttributes;
  683. uint numBillboards;
  684. ObjectAnimation objectAnimation;
  685. bool occludee;
  686. bool occluder;
  687. /* readonly */
  688. int refs;
  689. bool relative;
  690. bool scaled;
  691. float shadowDistance;
  692. uint shadowMask;
  693. bool sorted;
  694. bool temporary;
  695. /* readonly */
  696. StringHash type;
  697. /* readonly */
  698. String typeName;
  699. uint viewMask;
  700. /* readonly */
  701. int weakRefs;
  702. /* readonly */
  703. BoundingBox worldBoundingBox;
  704. /* readonly */
  705. Zone zone;
  706. uint zoneMask;
  707. };
  708. class Bone
  709. {
  710. // Properties:
  711. bool animated;
  712. BoundingBox boundingBox;
  713. Vector3 initialPosition;
  714. Quaternion initialRotation;
  715. Vector3 initialScale;
  716. String name;
  717. Node node;
  718. float radius;
  719. };
  720. class BorderImage
  721. {
  722. // Methods:
  723. void AddChild(UIElement);
  724. void AddTag(const String&);
  725. void AddTags(const String&, int8 = ';');
  726. void ApplyAttributes();
  727. void BringToFront();
  728. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  729. void DisableLayoutUpdate();
  730. IntVector2 ElementToScreen(const IntVector2&);
  731. void EnableLayoutUpdate();
  732. uint FindChild(UIElement) const;
  733. Variant GetAttribute(const String&) const;
  734. ValueAnimation GetAttributeAnimation(const String&) const;
  735. float GetAttributeAnimationSpeed(const String&) const;
  736. float GetAttributeAnimationTime(const String&) const;
  737. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  738. Variant GetAttributeDefault(const String&) const;
  739. UIElement GetChild(const String&, bool = false) const;
  740. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  741. Array<UIElement> GetChildren(bool = false) const;
  742. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  743. UIElement GetElementEventSender() const;
  744. bool GetInterceptNetworkUpdate(const String&) const;
  745. uint GetNumChildren(bool) const;
  746. bool HasSubscribedToEvent(Object, const String&);
  747. bool HasSubscribedToEvent(const String&);
  748. bool HasTag(const String&) const;
  749. void InsertChild(uint, UIElement);
  750. bool IsInside(IntVector2, bool);
  751. bool IsInsideCombined(IntVector2, bool);
  752. bool Load(File, bool = false);
  753. bool Load(VectorBuffer&, bool = false);
  754. bool LoadChildXML(XMLFile, XMLFile = null);
  755. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  756. bool LoadJSON(const JSONValue&, bool = false);
  757. bool LoadXML(File);
  758. bool LoadXML(VectorBuffer&);
  759. bool LoadXML(XMLFile, XMLFile);
  760. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  761. bool LoadXML(const XMLElement&, bool = false);
  762. void MarkNetworkUpdate() const;
  763. void Remove();
  764. void RemoveAllChildren();
  765. void RemoveAllTags();
  766. void RemoveAttributeAnimation(const String&);
  767. void RemoveChild(UIElement, uint = 0);
  768. void RemoveChild(uint);
  769. void RemoveInstanceDefault();
  770. void RemoveObjectAnimation();
  771. bool RemoveTag(const String&);
  772. void ResetDeepEnabled();
  773. void ResetToDefault();
  774. bool Save(File) const;
  775. bool Save(VectorBuffer&) const;
  776. bool SaveJSON(JSONValue&) const;
  777. bool SaveXML(File, const String& = "\t");
  778. bool SaveXML(VectorBuffer&, const String& = "\t");
  779. bool SaveXML(XMLElement&) const;
  780. IntVector2 ScreenToElement(const IntVector2&);
  781. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  782. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  783. void SetAnimationTime(float);
  784. bool SetAttribute(const String&, const Variant&);
  785. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  786. void SetAttributeAnimationSpeed(const String&, float);
  787. void SetAttributeAnimationTime(const String&, float);
  788. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  789. void SetDeepEnabled(bool);
  790. void SetEnabledRecursive(bool);
  791. void SetFixedHeight(int);
  792. void SetFixedSize(int, int);
  793. void SetFixedWidth(int);
  794. void SetFullImageRect();
  795. void SetHoverOffset(int, int);
  796. void SetInterceptNetworkUpdate(const String&, bool);
  797. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  798. void SetMaxSize(int, int);
  799. void SetMinSize(int, int);
  800. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  801. void SetPosition(int, int);
  802. void SetSize(int, int);
  803. bool SetStyle(const String&, XMLFile = null);
  804. bool SetStyle(const XMLElement&);
  805. bool SetStyleAuto(XMLFile = null);
  806. void UpdateLayout();
  807. const Variant& GetVar(const StringHash&);
  808. // Properties:
  809. bool animationEnabled;
  810. /* readonly */
  811. Array<Variant> attributeDefaults;
  812. /* readonly */
  813. Array<AttributeInfo> attributeInfos;
  814. Array<Variant> attributes;
  815. BlendMode blendMode;
  816. IntRect border;
  817. bool bringToBack;
  818. bool bringToFront;
  819. /* readonly */
  820. String category;
  821. /* readonly */
  822. IntVector2 childOffset;
  823. /* readonly */
  824. Array<UIElement> children;
  825. IntRect clipBorder;
  826. bool clipChildren;
  827. /* writeonly */
  828. Color color;
  829. /* readonly */
  830. bool colorGradient;
  831. Array<Color> colors;
  832. /* readonly */
  833. IntRect combinedScreenRect;
  834. XMLFile defaultStyle;
  835. /* readonly */
  836. float derivedOpacity;
  837. /* readonly */
  838. uint dragButtonCombo;
  839. /* readonly */
  840. int dragButtonCount;
  841. uint dragDropMode;
  842. bool editable;
  843. bool elementEventSender;
  844. bool enabled;
  845. /* readonly */
  846. bool enabledSelf;
  847. /* readonly */
  848. bool fixedHeight;
  849. /* readonly */
  850. bool fixedSize;
  851. /* readonly */
  852. bool fixedWidth;
  853. bool focus;
  854. FocusMode focusMode;
  855. int height;
  856. HorizontalAlignment horizontalAlignment;
  857. IntVector2 hoverOffset;
  858. /* readonly */
  859. bool hovering;
  860. IntRect imageBorder;
  861. IntRect imageRect;
  862. int indent;
  863. int indentSpacing;
  864. /* readonly */
  865. int indentWidth;
  866. bool internal;
  867. IntRect layoutBorder;
  868. Vector2 layoutFlexScale;
  869. LayoutMode layoutMode;
  870. int layoutSpacing;
  871. int maxHeight;
  872. IntVector2 maxSize;
  873. int maxWidth;
  874. int minHeight;
  875. IntVector2 minSize;
  876. int minWidth;
  877. String name;
  878. /* readonly */
  879. uint numAllChildren;
  880. /* readonly */
  881. uint numAttributes;
  882. /* readonly */
  883. uint numChildren;
  884. ObjectAnimation objectAnimation;
  885. float opacity;
  886. UIElement parent;
  887. IntVector2 position;
  888. int priority;
  889. /* readonly */
  890. int refs;
  891. /* readonly */
  892. UIElement root;
  893. /* readonly */
  894. IntVector2 screenPosition;
  895. bool selected;
  896. IntVector2 size;
  897. bool sortChildren;
  898. String style;
  899. /* readonly */
  900. Array<String> tags;
  901. bool temporary;
  902. Texture texture;
  903. bool tiled;
  904. TraversalMode traversalMode;
  905. /* readonly */
  906. StringHash type;
  907. /* readonly */
  908. String typeName;
  909. bool useDerivedOpacity;
  910. /* readonly */
  911. VariantMap vars;
  912. VerticalAlignment verticalAlignment;
  913. bool visible;
  914. /* readonly */
  915. bool visibleEffective;
  916. /* readonly */
  917. int weakRefs;
  918. int width;
  919. };
  920. class BoundingBox
  921. {
  922. // Methods:
  923. void Clear();
  924. void Clip(const BoundingBox&);
  925. void Define(const BoundingBox&);
  926. void Define(const Frustum&);
  927. void Define(const Polyhedron&);
  928. void Define(const Sphere&);
  929. void Define(const Vector3&);
  930. void Define(const Vector3&, const Vector3&);
  931. void Define(float, float);
  932. bool Defined() const;
  933. Intersection IsInside(const BoundingBox&) const;
  934. Intersection IsInside(const Sphere&) const;
  935. Intersection IsInside(const Vector3&) const;
  936. Intersection IsInsideFast(const BoundingBox&) const;
  937. Intersection IsInsideFast(const Sphere&) const;
  938. void Merge(const BoundingBox&);
  939. void Merge(const Frustum&);
  940. void Merge(const Polyhedron&);
  941. void Merge(const Sphere&);
  942. void Merge(const Vector3&);
  943. Rect Projected(const Matrix4&) const;
  944. String ToString() const;
  945. void Transform(const Matrix3&);
  946. void Transform(const Matrix3x4&);
  947. BoundingBox Transformed(const Matrix3&) const;
  948. BoundingBox Transformed(const Matrix3x4&) const;
  949. // Properties:
  950. /* readonly */
  951. Vector3 center;
  952. /* readonly */
  953. Vector3 halfSize;
  954. Vector3 max;
  955. Vector3 min;
  956. /* readonly */
  957. Vector3 size;
  958. };
  959. class Button
  960. {
  961. // Methods:
  962. void AddChild(UIElement);
  963. void AddTag(const String&);
  964. void AddTags(const String&, int8 = ';');
  965. void ApplyAttributes();
  966. void BringToFront();
  967. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  968. void DisableLayoutUpdate();
  969. IntVector2 ElementToScreen(const IntVector2&);
  970. void EnableLayoutUpdate();
  971. uint FindChild(UIElement) const;
  972. Variant GetAttribute(const String&) const;
  973. ValueAnimation GetAttributeAnimation(const String&) const;
  974. float GetAttributeAnimationSpeed(const String&) const;
  975. float GetAttributeAnimationTime(const String&) const;
  976. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  977. Variant GetAttributeDefault(const String&) const;
  978. UIElement GetChild(const String&, bool = false) const;
  979. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  980. Array<UIElement> GetChildren(bool = false) const;
  981. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  982. UIElement GetElementEventSender() const;
  983. bool GetInterceptNetworkUpdate(const String&) const;
  984. uint GetNumChildren(bool) const;
  985. bool HasSubscribedToEvent(Object, const String&);
  986. bool HasSubscribedToEvent(const String&);
  987. bool HasTag(const String&) const;
  988. void InsertChild(uint, UIElement);
  989. bool IsInside(IntVector2, bool);
  990. bool IsInsideCombined(IntVector2, bool);
  991. bool Load(File, bool = false);
  992. bool Load(VectorBuffer&, bool = false);
  993. bool LoadChildXML(XMLFile, XMLFile = null);
  994. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  995. bool LoadJSON(const JSONValue&, bool = false);
  996. bool LoadXML(File);
  997. bool LoadXML(VectorBuffer&);
  998. bool LoadXML(XMLFile, XMLFile);
  999. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1000. bool LoadXML(const XMLElement&, bool = false);
  1001. void MarkNetworkUpdate() const;
  1002. void Remove();
  1003. void RemoveAllChildren();
  1004. void RemoveAllTags();
  1005. void RemoveAttributeAnimation(const String&);
  1006. void RemoveChild(UIElement, uint = 0);
  1007. void RemoveChild(uint);
  1008. void RemoveInstanceDefault();
  1009. void RemoveObjectAnimation();
  1010. bool RemoveTag(const String&);
  1011. void ResetDeepEnabled();
  1012. void ResetToDefault();
  1013. bool Save(File) const;
  1014. bool Save(VectorBuffer&) const;
  1015. bool SaveJSON(JSONValue&) const;
  1016. bool SaveXML(File, const String& = "\t");
  1017. bool SaveXML(VectorBuffer&, const String& = "\t");
  1018. bool SaveXML(XMLElement&) const;
  1019. IntVector2 ScreenToElement(const IntVector2&);
  1020. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1021. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1022. void SetAnimationTime(float);
  1023. bool SetAttribute(const String&, const Variant&);
  1024. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1025. void SetAttributeAnimationSpeed(const String&, float);
  1026. void SetAttributeAnimationTime(const String&, float);
  1027. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1028. void SetDeepEnabled(bool);
  1029. void SetEnabledRecursive(bool);
  1030. void SetFixedHeight(int);
  1031. void SetFixedSize(int, int);
  1032. void SetFixedWidth(int);
  1033. void SetFullImageRect();
  1034. void SetHoverOffset(int, int);
  1035. void SetInterceptNetworkUpdate(const String&, bool);
  1036. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1037. void SetMaxSize(int, int);
  1038. void SetMinSize(int, int);
  1039. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1040. void SetPosition(int, int);
  1041. void SetPressedChildOffset(int, int);
  1042. void SetPressedOffset(int, int);
  1043. void SetRepeat(float, float);
  1044. void SetSize(int, int);
  1045. bool SetStyle(const String&, XMLFile = null);
  1046. bool SetStyle(const XMLElement&);
  1047. bool SetStyleAuto(XMLFile = null);
  1048. void UpdateLayout();
  1049. const Variant& GetVar(const StringHash&);
  1050. // Properties:
  1051. bool animationEnabled;
  1052. /* readonly */
  1053. Array<Variant> attributeDefaults;
  1054. /* readonly */
  1055. Array<AttributeInfo> attributeInfos;
  1056. Array<Variant> attributes;
  1057. BlendMode blendMode;
  1058. IntRect border;
  1059. bool bringToBack;
  1060. bool bringToFront;
  1061. /* readonly */
  1062. String category;
  1063. /* readonly */
  1064. IntVector2 childOffset;
  1065. /* readonly */
  1066. Array<UIElement> children;
  1067. IntRect clipBorder;
  1068. bool clipChildren;
  1069. /* writeonly */
  1070. Color color;
  1071. /* readonly */
  1072. bool colorGradient;
  1073. Array<Color> colors;
  1074. /* readonly */
  1075. IntRect combinedScreenRect;
  1076. XMLFile defaultStyle;
  1077. /* readonly */
  1078. float derivedOpacity;
  1079. /* readonly */
  1080. uint dragButtonCombo;
  1081. /* readonly */
  1082. int dragButtonCount;
  1083. uint dragDropMode;
  1084. bool editable;
  1085. bool elementEventSender;
  1086. bool enabled;
  1087. /* readonly */
  1088. bool enabledSelf;
  1089. /* readonly */
  1090. bool fixedHeight;
  1091. /* readonly */
  1092. bool fixedSize;
  1093. /* readonly */
  1094. bool fixedWidth;
  1095. bool focus;
  1096. FocusMode focusMode;
  1097. int height;
  1098. HorizontalAlignment horizontalAlignment;
  1099. IntVector2 hoverOffset;
  1100. /* readonly */
  1101. bool hovering;
  1102. IntRect imageBorder;
  1103. IntRect imageRect;
  1104. int indent;
  1105. int indentSpacing;
  1106. /* readonly */
  1107. int indentWidth;
  1108. bool internal;
  1109. IntRect layoutBorder;
  1110. Vector2 layoutFlexScale;
  1111. LayoutMode layoutMode;
  1112. int layoutSpacing;
  1113. int maxHeight;
  1114. IntVector2 maxSize;
  1115. int maxWidth;
  1116. int minHeight;
  1117. IntVector2 minSize;
  1118. int minWidth;
  1119. String name;
  1120. /* readonly */
  1121. uint numAllChildren;
  1122. /* readonly */
  1123. uint numAttributes;
  1124. /* readonly */
  1125. uint numChildren;
  1126. ObjectAnimation objectAnimation;
  1127. float opacity;
  1128. UIElement parent;
  1129. IntVector2 position;
  1130. /* readonly */
  1131. bool pressed;
  1132. IntVector2 pressedChildOffset;
  1133. IntVector2 pressedOffset;
  1134. int priority;
  1135. /* readonly */
  1136. int refs;
  1137. float repeatDelay;
  1138. float repeatRate;
  1139. /* readonly */
  1140. UIElement root;
  1141. /* readonly */
  1142. IntVector2 screenPosition;
  1143. bool selected;
  1144. IntVector2 size;
  1145. bool sortChildren;
  1146. String style;
  1147. /* readonly */
  1148. Array<String> tags;
  1149. bool temporary;
  1150. Texture texture;
  1151. bool tiled;
  1152. TraversalMode traversalMode;
  1153. /* readonly */
  1154. StringHash type;
  1155. /* readonly */
  1156. String typeName;
  1157. bool useDerivedOpacity;
  1158. /* readonly */
  1159. VariantMap vars;
  1160. VerticalAlignment verticalAlignment;
  1161. bool visible;
  1162. /* readonly */
  1163. bool visibleEffective;
  1164. /* readonly */
  1165. int weakRefs;
  1166. int width;
  1167. };
  1168. class Camera
  1169. {
  1170. // Methods:
  1171. void ApplyAttributes();
  1172. void DrawDebugGeometry(DebugRenderer, bool);
  1173. Variant GetAttribute(const String&) const;
  1174. ValueAnimation GetAttributeAnimation(const String&) const;
  1175. float GetAttributeAnimationSpeed(const String&) const;
  1176. float GetAttributeAnimationTime(const String&) const;
  1177. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1178. Variant GetAttributeDefault(const String&) const;
  1179. float GetDistance(const Vector3&) const;
  1180. float GetDistanceSquared(const Vector3&) const;
  1181. bool GetInterceptNetworkUpdate(const String&) const;
  1182. Ray GetScreenRay(float, float) const;
  1183. Frustum GetSplitFrustum(float, float) const;
  1184. bool HasSubscribedToEvent(Object, const String&);
  1185. bool HasSubscribedToEvent(const String&);
  1186. bool Load(File, bool = false);
  1187. bool Load(VectorBuffer&, bool = false);
  1188. bool LoadJSON(const JSONValue&, bool = false);
  1189. bool LoadXML(const XMLElement&, bool = false);
  1190. void MarkNetworkUpdate() const;
  1191. void Remove();
  1192. void RemoveAttributeAnimation(const String&);
  1193. void RemoveInstanceDefault();
  1194. void RemoveObjectAnimation();
  1195. void ResetToDefault();
  1196. bool Save(File) const;
  1197. bool Save(VectorBuffer&) const;
  1198. bool SaveJSON(JSONValue&) const;
  1199. bool SaveXML(XMLElement&) const;
  1200. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1201. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1202. void SetAnimationTime(float);
  1203. bool SetAttribute(const String&, const Variant&);
  1204. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1205. void SetAttributeAnimationSpeed(const String&, float);
  1206. void SetAttributeAnimationTime(const String&, float);
  1207. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1208. void SetInterceptNetworkUpdate(const String&, bool);
  1209. void SetOrthoSize(const Vector2&);
  1210. Vector2 WorldToScreenPoint(const Vector3&) const;
  1211. // Properties:
  1212. bool animationEnabled;
  1213. float aspectRatio;
  1214. /* readonly */
  1215. Array<Variant> attributeDefaults;
  1216. /* readonly */
  1217. Array<AttributeInfo> attributeInfos;
  1218. Array<Variant> attributes;
  1219. bool autoAspectRatio;
  1220. /* readonly */
  1221. String category;
  1222. Plane clipPlane;
  1223. /* readonly */
  1224. Matrix3x4 effectiveWorldTransform;
  1225. bool enabled;
  1226. /* readonly */
  1227. bool enabledEffective;
  1228. float farClip;
  1229. FillMode fillMode;
  1230. float fov;
  1231. /* readonly */
  1232. Frustum frustum;
  1233. /* readonly */
  1234. float halfViewSize;
  1235. /* readonly */
  1236. uint id;
  1237. float lodBias;
  1238. float nearClip;
  1239. /* readonly */
  1240. Node node;
  1241. /* readonly */
  1242. uint numAttributes;
  1243. ObjectAnimation objectAnimation;
  1244. float orthoSize;
  1245. bool orthographic;
  1246. /* readonly */
  1247. Matrix4 projection;
  1248. Vector2 projectionOffset;
  1249. Plane reflectionPlane;
  1250. /* readonly */
  1251. int refs;
  1252. bool temporary;
  1253. /* readonly */
  1254. StringHash type;
  1255. /* readonly */
  1256. String typeName;
  1257. bool useClipping;
  1258. bool useReflection;
  1259. /* readonly */
  1260. Matrix3x4 view;
  1261. uint viewMask;
  1262. uint viewOverrideFlags;
  1263. /* readonly */
  1264. Frustum viewSpaceFrustum;
  1265. /* readonly */
  1266. int weakRefs;
  1267. float zoom;
  1268. };
  1269. class CascadeParameters
  1270. {
  1271. // Properties:
  1272. float biasAutoAdjust;
  1273. float fadeStart;
  1274. float split1;
  1275. float split2;
  1276. float split3;
  1277. float split4;
  1278. };
  1279. class CheckBox
  1280. {
  1281. // Methods:
  1282. void AddChild(UIElement);
  1283. void AddTag(const String&);
  1284. void AddTags(const String&, int8 = ';');
  1285. void ApplyAttributes();
  1286. void BringToFront();
  1287. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1288. void DisableLayoutUpdate();
  1289. IntVector2 ElementToScreen(const IntVector2&);
  1290. void EnableLayoutUpdate();
  1291. uint FindChild(UIElement) const;
  1292. Variant GetAttribute(const String&) const;
  1293. ValueAnimation GetAttributeAnimation(const String&) const;
  1294. float GetAttributeAnimationSpeed(const String&) const;
  1295. float GetAttributeAnimationTime(const String&) const;
  1296. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1297. Variant GetAttributeDefault(const String&) const;
  1298. UIElement GetChild(const String&, bool = false) const;
  1299. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1300. Array<UIElement> GetChildren(bool = false) const;
  1301. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1302. UIElement GetElementEventSender() const;
  1303. bool GetInterceptNetworkUpdate(const String&) const;
  1304. uint GetNumChildren(bool) const;
  1305. bool HasSubscribedToEvent(Object, const String&);
  1306. bool HasSubscribedToEvent(const String&);
  1307. bool HasTag(const String&) const;
  1308. void InsertChild(uint, UIElement);
  1309. bool IsInside(IntVector2, bool);
  1310. bool IsInsideCombined(IntVector2, bool);
  1311. bool Load(File, bool = false);
  1312. bool Load(VectorBuffer&, bool = false);
  1313. bool LoadChildXML(XMLFile, XMLFile = null);
  1314. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1315. bool LoadJSON(const JSONValue&, bool = false);
  1316. bool LoadXML(File);
  1317. bool LoadXML(VectorBuffer&);
  1318. bool LoadXML(XMLFile, XMLFile);
  1319. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1320. bool LoadXML(const XMLElement&, bool = false);
  1321. void MarkNetworkUpdate() const;
  1322. void Remove();
  1323. void RemoveAllChildren();
  1324. void RemoveAllTags();
  1325. void RemoveAttributeAnimation(const String&);
  1326. void RemoveChild(UIElement, uint = 0);
  1327. void RemoveChild(uint);
  1328. void RemoveInstanceDefault();
  1329. void RemoveObjectAnimation();
  1330. bool RemoveTag(const String&);
  1331. void ResetDeepEnabled();
  1332. void ResetToDefault();
  1333. bool Save(File) const;
  1334. bool Save(VectorBuffer&) const;
  1335. bool SaveJSON(JSONValue&) const;
  1336. bool SaveXML(File, const String& = "\t");
  1337. bool SaveXML(VectorBuffer&, const String& = "\t");
  1338. bool SaveXML(XMLElement&) const;
  1339. IntVector2 ScreenToElement(const IntVector2&);
  1340. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1341. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1342. void SetAnimationTime(float);
  1343. bool SetAttribute(const String&, const Variant&);
  1344. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1345. void SetAttributeAnimationSpeed(const String&, float);
  1346. void SetAttributeAnimationTime(const String&, float);
  1347. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1348. void SetCheckedOffset(int, int);
  1349. void SetDeepEnabled(bool);
  1350. void SetEnabledRecursive(bool);
  1351. void SetFixedHeight(int);
  1352. void SetFixedSize(int, int);
  1353. void SetFixedWidth(int);
  1354. void SetFullImageRect();
  1355. void SetHoverOffset(int, int);
  1356. void SetInterceptNetworkUpdate(const String&, bool);
  1357. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1358. void SetMaxSize(int, int);
  1359. void SetMinSize(int, int);
  1360. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1361. void SetPosition(int, int);
  1362. void SetSize(int, int);
  1363. bool SetStyle(const String&, XMLFile = null);
  1364. bool SetStyle(const XMLElement&);
  1365. bool SetStyleAuto(XMLFile = null);
  1366. void UpdateLayout();
  1367. const Variant& GetVar(const StringHash&);
  1368. // Properties:
  1369. bool animationEnabled;
  1370. /* readonly */
  1371. Array<Variant> attributeDefaults;
  1372. /* readonly */
  1373. Array<AttributeInfo> attributeInfos;
  1374. Array<Variant> attributes;
  1375. BlendMode blendMode;
  1376. IntRect border;
  1377. bool bringToBack;
  1378. bool bringToFront;
  1379. /* readonly */
  1380. String category;
  1381. bool checked;
  1382. IntVector2 checkedOffset;
  1383. /* readonly */
  1384. IntVector2 childOffset;
  1385. /* readonly */
  1386. Array<UIElement> children;
  1387. IntRect clipBorder;
  1388. bool clipChildren;
  1389. /* writeonly */
  1390. Color color;
  1391. /* readonly */
  1392. bool colorGradient;
  1393. Array<Color> colors;
  1394. /* readonly */
  1395. IntRect combinedScreenRect;
  1396. XMLFile defaultStyle;
  1397. /* readonly */
  1398. float derivedOpacity;
  1399. /* readonly */
  1400. uint dragButtonCombo;
  1401. /* readonly */
  1402. int dragButtonCount;
  1403. uint dragDropMode;
  1404. bool editable;
  1405. bool elementEventSender;
  1406. bool enabled;
  1407. /* readonly */
  1408. bool enabledSelf;
  1409. /* readonly */
  1410. bool fixedHeight;
  1411. /* readonly */
  1412. bool fixedSize;
  1413. /* readonly */
  1414. bool fixedWidth;
  1415. bool focus;
  1416. FocusMode focusMode;
  1417. int height;
  1418. HorizontalAlignment horizontalAlignment;
  1419. IntVector2 hoverOffset;
  1420. /* readonly */
  1421. bool hovering;
  1422. IntRect imageBorder;
  1423. IntRect imageRect;
  1424. int indent;
  1425. int indentSpacing;
  1426. /* readonly */
  1427. int indentWidth;
  1428. bool internal;
  1429. IntRect layoutBorder;
  1430. Vector2 layoutFlexScale;
  1431. LayoutMode layoutMode;
  1432. int layoutSpacing;
  1433. int maxHeight;
  1434. IntVector2 maxSize;
  1435. int maxWidth;
  1436. int minHeight;
  1437. IntVector2 minSize;
  1438. int minWidth;
  1439. String name;
  1440. /* readonly */
  1441. uint numAllChildren;
  1442. /* readonly */
  1443. uint numAttributes;
  1444. /* readonly */
  1445. uint numChildren;
  1446. ObjectAnimation objectAnimation;
  1447. float opacity;
  1448. UIElement parent;
  1449. IntVector2 position;
  1450. int priority;
  1451. /* readonly */
  1452. int refs;
  1453. /* readonly */
  1454. UIElement root;
  1455. /* readonly */
  1456. IntVector2 screenPosition;
  1457. bool selected;
  1458. IntVector2 size;
  1459. bool sortChildren;
  1460. String style;
  1461. /* readonly */
  1462. Array<String> tags;
  1463. bool temporary;
  1464. Texture texture;
  1465. bool tiled;
  1466. TraversalMode traversalMode;
  1467. /* readonly */
  1468. StringHash type;
  1469. /* readonly */
  1470. String typeName;
  1471. bool useDerivedOpacity;
  1472. /* readonly */
  1473. VariantMap vars;
  1474. VerticalAlignment verticalAlignment;
  1475. bool visible;
  1476. /* readonly */
  1477. bool visibleEffective;
  1478. /* readonly */
  1479. int weakRefs;
  1480. int width;
  1481. };
  1482. class CollisionBox2D
  1483. {
  1484. // Methods:
  1485. void ApplyAttributes();
  1486. void DrawDebugGeometry(DebugRenderer, bool);
  1487. Variant GetAttribute(const String&) const;
  1488. ValueAnimation GetAttributeAnimation(const String&) const;
  1489. float GetAttributeAnimationSpeed(const String&) const;
  1490. float GetAttributeAnimationTime(const String&) const;
  1491. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1492. Variant GetAttributeDefault(const String&) const;
  1493. bool GetInterceptNetworkUpdate(const String&) const;
  1494. bool HasSubscribedToEvent(Object, const String&);
  1495. bool HasSubscribedToEvent(const String&);
  1496. bool Load(File, bool = false);
  1497. bool Load(VectorBuffer&, bool = false);
  1498. bool LoadJSON(const JSONValue&, bool = false);
  1499. bool LoadXML(const XMLElement&, bool = false);
  1500. void MarkNetworkUpdate() const;
  1501. void Remove();
  1502. void RemoveAttributeAnimation(const String&);
  1503. void RemoveInstanceDefault();
  1504. void RemoveObjectAnimation();
  1505. void ResetToDefault();
  1506. bool Save(File) const;
  1507. bool Save(VectorBuffer&) const;
  1508. bool SaveJSON(JSONValue&) const;
  1509. bool SaveXML(XMLElement&) const;
  1510. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1511. void SetAnimationTime(float);
  1512. bool SetAttribute(const String&, const Variant&);
  1513. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1514. void SetAttributeAnimationSpeed(const String&, float);
  1515. void SetAttributeAnimationTime(const String&, float);
  1516. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1517. void SetCenter(float, float);
  1518. void SetInterceptNetworkUpdate(const String&, bool);
  1519. void SetSize(float, float);
  1520. // Properties:
  1521. float angle;
  1522. bool animationEnabled;
  1523. /* readonly */
  1524. Array<Variant> attributeDefaults;
  1525. /* readonly */
  1526. Array<AttributeInfo> attributeInfos;
  1527. Array<Variant> attributes;
  1528. /* readonly */
  1529. String category;
  1530. int categoryBits;
  1531. Vector2 center;
  1532. float density;
  1533. bool enabled;
  1534. /* readonly */
  1535. bool enabledEffective;
  1536. float friction;
  1537. int groupIndex;
  1538. /* readonly */
  1539. uint id;
  1540. /* readonly */
  1541. float inertia;
  1542. int maskBits;
  1543. /* readonly */
  1544. float mass;
  1545. /* readonly */
  1546. Vector2 massCenter;
  1547. /* readonly */
  1548. Node node;
  1549. /* readonly */
  1550. uint numAttributes;
  1551. ObjectAnimation objectAnimation;
  1552. /* readonly */
  1553. int refs;
  1554. float restitution;
  1555. Vector2 size;
  1556. bool temporary;
  1557. bool trigger;
  1558. /* readonly */
  1559. StringHash type;
  1560. /* readonly */
  1561. String typeName;
  1562. /* readonly */
  1563. int weakRefs;
  1564. };
  1565. class CollisionChain2D
  1566. {
  1567. // Methods:
  1568. void ApplyAttributes();
  1569. void DrawDebugGeometry(DebugRenderer, bool);
  1570. Variant GetAttribute(const String&) const;
  1571. ValueAnimation GetAttributeAnimation(const String&) const;
  1572. float GetAttributeAnimationSpeed(const String&) const;
  1573. float GetAttributeAnimationTime(const String&) const;
  1574. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1575. Variant GetAttributeDefault(const String&) const;
  1576. bool GetInterceptNetworkUpdate(const String&) const;
  1577. Array<Vector2> GetVertices() const;
  1578. bool HasSubscribedToEvent(Object, const String&);
  1579. bool HasSubscribedToEvent(const String&);
  1580. bool Load(File, bool = false);
  1581. bool Load(VectorBuffer&, bool = false);
  1582. bool LoadJSON(const JSONValue&, bool = false);
  1583. bool LoadXML(const XMLElement&, bool = false);
  1584. void MarkNetworkUpdate() const;
  1585. void Remove();
  1586. void RemoveAttributeAnimation(const String&);
  1587. void RemoveInstanceDefault();
  1588. void RemoveObjectAnimation();
  1589. void ResetToDefault();
  1590. bool Save(File) const;
  1591. bool Save(VectorBuffer&) const;
  1592. bool SaveJSON(JSONValue&) const;
  1593. bool SaveXML(XMLElement&) const;
  1594. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1595. void SetAnimationTime(float);
  1596. bool SetAttribute(const String&, const Variant&);
  1597. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1598. void SetAttributeAnimationSpeed(const String&, float);
  1599. void SetAttributeAnimationTime(const String&, float);
  1600. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1601. void SetInterceptNetworkUpdate(const String&, bool);
  1602. void SetVertex(uint, const Vector2&);
  1603. void SetVertices(Array<Vector2>);
  1604. const Vector2& GetVertex(uint) const;
  1605. // Properties:
  1606. bool animationEnabled;
  1607. /* readonly */
  1608. Array<Variant> attributeDefaults;
  1609. /* readonly */
  1610. Array<AttributeInfo> attributeInfos;
  1611. Array<Variant> attributes;
  1612. /* readonly */
  1613. String category;
  1614. int categoryBits;
  1615. float density;
  1616. bool enabled;
  1617. /* readonly */
  1618. bool enabledEffective;
  1619. float friction;
  1620. int groupIndex;
  1621. /* readonly */
  1622. uint id;
  1623. /* readonly */
  1624. float inertia;
  1625. bool loop;
  1626. int maskBits;
  1627. /* readonly */
  1628. float mass;
  1629. /* readonly */
  1630. Vector2 massCenter;
  1631. /* readonly */
  1632. Node node;
  1633. /* readonly */
  1634. uint numAttributes;
  1635. ObjectAnimation objectAnimation;
  1636. /* readonly */
  1637. int refs;
  1638. float restitution;
  1639. bool temporary;
  1640. bool trigger;
  1641. /* readonly */
  1642. StringHash type;
  1643. /* readonly */
  1644. String typeName;
  1645. uint vertexCount;
  1646. /* readonly */
  1647. int weakRefs;
  1648. };
  1649. class CollisionCircle2D
  1650. {
  1651. // Methods:
  1652. void ApplyAttributes();
  1653. void DrawDebugGeometry(DebugRenderer, bool);
  1654. Variant GetAttribute(const String&) const;
  1655. ValueAnimation GetAttributeAnimation(const String&) const;
  1656. float GetAttributeAnimationSpeed(const String&) const;
  1657. float GetAttributeAnimationTime(const String&) const;
  1658. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1659. Variant GetAttributeDefault(const String&) const;
  1660. bool GetInterceptNetworkUpdate(const String&) const;
  1661. bool HasSubscribedToEvent(Object, const String&);
  1662. bool HasSubscribedToEvent(const String&);
  1663. bool Load(File, bool = false);
  1664. bool Load(VectorBuffer&, bool = false);
  1665. bool LoadJSON(const JSONValue&, bool = false);
  1666. bool LoadXML(const XMLElement&, bool = false);
  1667. void MarkNetworkUpdate() const;
  1668. void Remove();
  1669. void RemoveAttributeAnimation(const String&);
  1670. void RemoveInstanceDefault();
  1671. void RemoveObjectAnimation();
  1672. void ResetToDefault();
  1673. bool Save(File) const;
  1674. bool Save(VectorBuffer&) const;
  1675. bool SaveJSON(JSONValue&) const;
  1676. bool SaveXML(XMLElement&) const;
  1677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1678. void SetAnimationTime(float);
  1679. bool SetAttribute(const String&, const Variant&);
  1680. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1681. void SetAttributeAnimationSpeed(const String&, float);
  1682. void SetAttributeAnimationTime(const String&, float);
  1683. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1684. void SetCenter(float, float);
  1685. void SetInterceptNetworkUpdate(const String&, bool);
  1686. // Properties:
  1687. bool animationEnabled;
  1688. /* readonly */
  1689. Array<Variant> attributeDefaults;
  1690. /* readonly */
  1691. Array<AttributeInfo> attributeInfos;
  1692. Array<Variant> attributes;
  1693. /* readonly */
  1694. String category;
  1695. int categoryBits;
  1696. Vector2 center;
  1697. float density;
  1698. bool enabled;
  1699. /* readonly */
  1700. bool enabledEffective;
  1701. float friction;
  1702. int groupIndex;
  1703. /* readonly */
  1704. uint id;
  1705. /* readonly */
  1706. float inertia;
  1707. int maskBits;
  1708. /* readonly */
  1709. float mass;
  1710. /* readonly */
  1711. Vector2 massCenter;
  1712. /* readonly */
  1713. Node node;
  1714. /* readonly */
  1715. uint numAttributes;
  1716. ObjectAnimation objectAnimation;
  1717. float radius;
  1718. /* readonly */
  1719. int refs;
  1720. float restitution;
  1721. bool temporary;
  1722. bool trigger;
  1723. /* readonly */
  1724. StringHash type;
  1725. /* readonly */
  1726. String typeName;
  1727. /* readonly */
  1728. int weakRefs;
  1729. };
  1730. class CollisionEdge2D
  1731. {
  1732. // Methods:
  1733. void ApplyAttributes();
  1734. void DrawDebugGeometry(DebugRenderer, bool);
  1735. Variant GetAttribute(const String&) const;
  1736. ValueAnimation GetAttributeAnimation(const String&) const;
  1737. float GetAttributeAnimationSpeed(const String&) const;
  1738. float GetAttributeAnimationTime(const String&) const;
  1739. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1740. Variant GetAttributeDefault(const String&) const;
  1741. bool GetInterceptNetworkUpdate(const String&) const;
  1742. bool HasSubscribedToEvent(Object, const String&);
  1743. bool HasSubscribedToEvent(const String&);
  1744. bool Load(File, bool = false);
  1745. bool Load(VectorBuffer&, bool = false);
  1746. bool LoadJSON(const JSONValue&, bool = false);
  1747. bool LoadXML(const XMLElement&, bool = false);
  1748. void MarkNetworkUpdate() const;
  1749. void Remove();
  1750. void RemoveAttributeAnimation(const String&);
  1751. void RemoveInstanceDefault();
  1752. void RemoveObjectAnimation();
  1753. void ResetToDefault();
  1754. bool Save(File) const;
  1755. bool Save(VectorBuffer&) const;
  1756. bool SaveJSON(JSONValue&) const;
  1757. bool SaveXML(XMLElement&) const;
  1758. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1759. void SetAnimationTime(float);
  1760. bool SetAttribute(const String&, const Variant&);
  1761. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1762. void SetAttributeAnimationSpeed(const String&, float);
  1763. void SetAttributeAnimationTime(const String&, float);
  1764. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1765. void SetInterceptNetworkUpdate(const String&, bool);
  1766. void SetVertices(const Vector2&, const Vector2&);
  1767. // Properties:
  1768. bool animationEnabled;
  1769. /* readonly */
  1770. Array<Variant> attributeDefaults;
  1771. /* readonly */
  1772. Array<AttributeInfo> attributeInfos;
  1773. Array<Variant> attributes;
  1774. /* readonly */
  1775. String category;
  1776. int categoryBits;
  1777. float density;
  1778. bool enabled;
  1779. /* readonly */
  1780. bool enabledEffective;
  1781. float friction;
  1782. int groupIndex;
  1783. /* readonly */
  1784. uint id;
  1785. /* readonly */
  1786. float inertia;
  1787. int maskBits;
  1788. /* readonly */
  1789. float mass;
  1790. /* readonly */
  1791. Vector2 massCenter;
  1792. /* readonly */
  1793. Node node;
  1794. /* readonly */
  1795. uint numAttributes;
  1796. ObjectAnimation objectAnimation;
  1797. /* readonly */
  1798. int refs;
  1799. float restitution;
  1800. bool temporary;
  1801. bool trigger;
  1802. /* readonly */
  1803. StringHash type;
  1804. /* readonly */
  1805. String typeName;
  1806. Vector2 vertex1;
  1807. Vector2 vertex2;
  1808. /* readonly */
  1809. int weakRefs;
  1810. };
  1811. class CollisionPolygon2D
  1812. {
  1813. // Methods:
  1814. void ApplyAttributes();
  1815. void DrawDebugGeometry(DebugRenderer, bool);
  1816. Variant GetAttribute(const String&) const;
  1817. ValueAnimation GetAttributeAnimation(const String&) const;
  1818. float GetAttributeAnimationSpeed(const String&) const;
  1819. float GetAttributeAnimationTime(const String&) const;
  1820. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1821. Variant GetAttributeDefault(const String&) const;
  1822. bool GetInterceptNetworkUpdate(const String&) const;
  1823. Array<Vector2> GetVertices() const;
  1824. bool HasSubscribedToEvent(Object, const String&);
  1825. bool HasSubscribedToEvent(const String&);
  1826. bool Load(File, bool = false);
  1827. bool Load(VectorBuffer&, bool = false);
  1828. bool LoadJSON(const JSONValue&, bool = false);
  1829. bool LoadXML(const XMLElement&, bool = false);
  1830. void MarkNetworkUpdate() const;
  1831. void Remove();
  1832. void RemoveAttributeAnimation(const String&);
  1833. void RemoveInstanceDefault();
  1834. void RemoveObjectAnimation();
  1835. void ResetToDefault();
  1836. bool Save(File) const;
  1837. bool Save(VectorBuffer&) const;
  1838. bool SaveJSON(JSONValue&) const;
  1839. bool SaveXML(XMLElement&) const;
  1840. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1841. void SetAnimationTime(float);
  1842. bool SetAttribute(const String&, const Variant&);
  1843. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1844. void SetAttributeAnimationSpeed(const String&, float);
  1845. void SetAttributeAnimationTime(const String&, float);
  1846. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1847. void SetInterceptNetworkUpdate(const String&, bool);
  1848. void SetVertex(uint, const Vector2&);
  1849. void SetVertices(Array<Vector2>);
  1850. const Vector2& GetVertex(uint) const;
  1851. // Properties:
  1852. bool animationEnabled;
  1853. /* readonly */
  1854. Array<Variant> attributeDefaults;
  1855. /* readonly */
  1856. Array<AttributeInfo> attributeInfos;
  1857. Array<Variant> attributes;
  1858. /* readonly */
  1859. String category;
  1860. int categoryBits;
  1861. float density;
  1862. bool enabled;
  1863. /* readonly */
  1864. bool enabledEffective;
  1865. float friction;
  1866. int groupIndex;
  1867. /* readonly */
  1868. uint id;
  1869. /* readonly */
  1870. float inertia;
  1871. int maskBits;
  1872. /* readonly */
  1873. float mass;
  1874. /* readonly */
  1875. Vector2 massCenter;
  1876. /* readonly */
  1877. Node node;
  1878. /* readonly */
  1879. uint numAttributes;
  1880. ObjectAnimation objectAnimation;
  1881. /* readonly */
  1882. int refs;
  1883. float restitution;
  1884. bool temporary;
  1885. bool trigger;
  1886. /* readonly */
  1887. StringHash type;
  1888. /* readonly */
  1889. String typeName;
  1890. uint vertexCount;
  1891. /* readonly */
  1892. int weakRefs;
  1893. };
  1894. class CollisionShape
  1895. {
  1896. // Methods:
  1897. void ApplyAttributes();
  1898. void DrawDebugGeometry(DebugRenderer, bool);
  1899. Variant GetAttribute(const String&) const;
  1900. ValueAnimation GetAttributeAnimation(const String&) const;
  1901. float GetAttributeAnimationSpeed(const String&) const;
  1902. float GetAttributeAnimationTime(const String&) const;
  1903. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1904. Variant GetAttributeDefault(const String&) const;
  1905. bool GetInterceptNetworkUpdate(const String&) const;
  1906. bool HasSubscribedToEvent(Object, const String&);
  1907. bool HasSubscribedToEvent(const String&);
  1908. bool Load(File, bool = false);
  1909. bool Load(VectorBuffer&, bool = false);
  1910. bool LoadJSON(const JSONValue&, bool = false);
  1911. bool LoadXML(const XMLElement&, bool = false);
  1912. void MarkNetworkUpdate() const;
  1913. void Remove();
  1914. void RemoveAttributeAnimation(const String&);
  1915. void RemoveInstanceDefault();
  1916. void RemoveObjectAnimation();
  1917. void ResetToDefault();
  1918. bool Save(File) const;
  1919. bool Save(VectorBuffer&) const;
  1920. bool SaveJSON(JSONValue&) const;
  1921. bool SaveXML(XMLElement&) const;
  1922. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1923. void SetAnimationTime(float);
  1924. bool SetAttribute(const String&, const Variant&);
  1925. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1926. void SetAttributeAnimationSpeed(const String&, float);
  1927. void SetAttributeAnimationTime(const String&, float);
  1928. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1929. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1930. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1931. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1932. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1934. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1935. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1936. void SetInterceptNetworkUpdate(const String&, bool);
  1937. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1938. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1939. void SetTerrain(uint = 0);
  1940. void SetTransform(const Vector3&, const Quaternion&);
  1941. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1942. // Properties:
  1943. bool animationEnabled;
  1944. /* readonly */
  1945. Array<Variant> attributeDefaults;
  1946. /* readonly */
  1947. Array<AttributeInfo> attributeInfos;
  1948. Array<Variant> attributes;
  1949. /* readonly */
  1950. String category;
  1951. bool enabled;
  1952. /* readonly */
  1953. bool enabledEffective;
  1954. /* readonly */
  1955. uint id;
  1956. uint lodLevel;
  1957. float margin;
  1958. Model model;
  1959. /* readonly */
  1960. Node node;
  1961. /* readonly */
  1962. uint numAttributes;
  1963. ObjectAnimation objectAnimation;
  1964. Vector3 position;
  1965. /* readonly */
  1966. int refs;
  1967. Quaternion rotation;
  1968. ShapeType shapeType;
  1969. Vector3 size;
  1970. bool temporary;
  1971. /* readonly */
  1972. StringHash type;
  1973. /* readonly */
  1974. String typeName;
  1975. /* readonly */
  1976. int weakRefs;
  1977. /* readonly */
  1978. BoundingBox worldBoundingBox;
  1979. };
  1980. class CollisionShape2D
  1981. {
  1982. // Methods:
  1983. void ApplyAttributes();
  1984. void DrawDebugGeometry(DebugRenderer, bool);
  1985. Variant GetAttribute(const String&) const;
  1986. ValueAnimation GetAttributeAnimation(const String&) const;
  1987. float GetAttributeAnimationSpeed(const String&) const;
  1988. float GetAttributeAnimationTime(const String&) const;
  1989. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1990. Variant GetAttributeDefault(const String&) const;
  1991. bool GetInterceptNetworkUpdate(const String&) const;
  1992. bool HasSubscribedToEvent(Object, const String&);
  1993. bool HasSubscribedToEvent(const String&);
  1994. bool Load(File, bool = false);
  1995. bool Load(VectorBuffer&, bool = false);
  1996. bool LoadJSON(const JSONValue&, bool = false);
  1997. bool LoadXML(const XMLElement&, bool = false);
  1998. void MarkNetworkUpdate() const;
  1999. void Remove();
  2000. void RemoveAttributeAnimation(const String&);
  2001. void RemoveInstanceDefault();
  2002. void RemoveObjectAnimation();
  2003. void ResetToDefault();
  2004. bool Save(File) const;
  2005. bool Save(VectorBuffer&) const;
  2006. bool SaveJSON(JSONValue&) const;
  2007. bool SaveXML(XMLElement&) const;
  2008. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2009. void SetAnimationTime(float);
  2010. bool SetAttribute(const String&, const Variant&);
  2011. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2012. void SetAttributeAnimationSpeed(const String&, float);
  2013. void SetAttributeAnimationTime(const String&, float);
  2014. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2015. void SetInterceptNetworkUpdate(const String&, bool);
  2016. // Properties:
  2017. bool animationEnabled;
  2018. /* readonly */
  2019. Array<Variant> attributeDefaults;
  2020. /* readonly */
  2021. Array<AttributeInfo> attributeInfos;
  2022. Array<Variant> attributes;
  2023. /* readonly */
  2024. String category;
  2025. int categoryBits;
  2026. float density;
  2027. bool enabled;
  2028. /* readonly */
  2029. bool enabledEffective;
  2030. float friction;
  2031. int groupIndex;
  2032. /* readonly */
  2033. uint id;
  2034. /* readonly */
  2035. float inertia;
  2036. int maskBits;
  2037. /* readonly */
  2038. float mass;
  2039. /* readonly */
  2040. Vector2 massCenter;
  2041. /* readonly */
  2042. Node node;
  2043. /* readonly */
  2044. uint numAttributes;
  2045. ObjectAnimation objectAnimation;
  2046. /* readonly */
  2047. int refs;
  2048. float restitution;
  2049. bool temporary;
  2050. bool trigger;
  2051. /* readonly */
  2052. StringHash type;
  2053. /* readonly */
  2054. String typeName;
  2055. /* readonly */
  2056. int weakRefs;
  2057. };
  2058. class Color
  2059. {
  2060. // Methods:
  2061. Color Abs() const;
  2062. float Average() const;
  2063. float Chroma() const;
  2064. void Clip(bool);
  2065. bool Equals() const;
  2066. void FromHSL(float, float, float, float);
  2067. void FromHSV(float, float, float, float);
  2068. float Hue() const;
  2069. void Invert(bool);
  2070. Color Lerp(const Color&, float) const;
  2071. float Lightness() const;
  2072. float Luma() const;
  2073. float MaxRGB() const;
  2074. float MinRGB() const;
  2075. float Range() const;
  2076. float SaturationHSL() const;
  2077. float SaturationHSV() const;
  2078. float SumRGB() const;
  2079. Vector3 ToHSL() const;
  2080. Vector3 ToHSV() const;
  2081. String ToString() const;
  2082. uint ToUInt() const;
  2083. float Value() const;
  2084. // Properties:
  2085. float a;
  2086. float b;
  2087. /* readonly */
  2088. Array<float> data;
  2089. float g;
  2090. float r;
  2091. /* readonly */
  2092. Vector3 rgb;
  2093. /* readonly */
  2094. Vector4 rgba;
  2095. };
  2096. class ColorFrame
  2097. {
  2098. // Properties:
  2099. Color color;
  2100. float time;
  2101. };
  2102. class Component
  2103. {
  2104. // Methods:
  2105. void ApplyAttributes();
  2106. void DrawDebugGeometry(DebugRenderer, bool);
  2107. Variant GetAttribute(const String&) const;
  2108. ValueAnimation GetAttributeAnimation(const String&) const;
  2109. float GetAttributeAnimationSpeed(const String&) const;
  2110. float GetAttributeAnimationTime(const String&) const;
  2111. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2112. Variant GetAttributeDefault(const String&) const;
  2113. bool GetInterceptNetworkUpdate(const String&) const;
  2114. bool HasSubscribedToEvent(Object, const String&);
  2115. bool HasSubscribedToEvent(const String&);
  2116. bool Load(File, bool = false);
  2117. bool Load(VectorBuffer&, bool = false);
  2118. bool LoadJSON(const JSONValue&, bool = false);
  2119. bool LoadXML(const XMLElement&, bool = false);
  2120. void MarkNetworkUpdate() const;
  2121. void Remove();
  2122. void RemoveAttributeAnimation(const String&);
  2123. void RemoveInstanceDefault();
  2124. void RemoveObjectAnimation();
  2125. void ResetToDefault();
  2126. bool Save(File) const;
  2127. bool Save(VectorBuffer&) const;
  2128. bool SaveJSON(JSONValue&) const;
  2129. bool SaveXML(XMLElement&) const;
  2130. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2131. void SetAnimationTime(float);
  2132. bool SetAttribute(const String&, const Variant&);
  2133. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2134. void SetAttributeAnimationSpeed(const String&, float);
  2135. void SetAttributeAnimationTime(const String&, float);
  2136. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2137. void SetInterceptNetworkUpdate(const String&, bool);
  2138. // Properties:
  2139. bool animationEnabled;
  2140. /* readonly */
  2141. Array<Variant> attributeDefaults;
  2142. /* readonly */
  2143. Array<AttributeInfo> attributeInfos;
  2144. Array<Variant> attributes;
  2145. /* readonly */
  2146. String category;
  2147. bool enabled;
  2148. /* readonly */
  2149. bool enabledEffective;
  2150. /* readonly */
  2151. uint id;
  2152. /* readonly */
  2153. Node node;
  2154. /* readonly */
  2155. uint numAttributes;
  2156. ObjectAnimation objectAnimation;
  2157. /* readonly */
  2158. int refs;
  2159. bool temporary;
  2160. /* readonly */
  2161. StringHash type;
  2162. /* readonly */
  2163. String typeName;
  2164. /* readonly */
  2165. int weakRefs;
  2166. };
  2167. class Connection
  2168. {
  2169. // Methods:
  2170. void Disconnect(int = 0);
  2171. bool HasSubscribedToEvent(Object, const String&);
  2172. bool HasSubscribedToEvent(const String&);
  2173. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2174. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2175. void SendPackageToClient(PackageFile);
  2176. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2177. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2178. String ToString() const;
  2179. // Properties:
  2180. /* readonly */
  2181. String address;
  2182. /* readonly */
  2183. float bytesInPerSec;
  2184. /* readonly */
  2185. float bytesOutPerSec;
  2186. /* readonly */
  2187. String category;
  2188. /* readonly */
  2189. bool client;
  2190. /* readonly */
  2191. bool connectPending;
  2192. /* readonly */
  2193. bool connected;
  2194. Controls controls;
  2195. /* readonly */
  2196. String downloadName;
  2197. /* readonly */
  2198. float downloadProgress;
  2199. VariantMap identity;
  2200. /* readonly */
  2201. float lastHeardTime;
  2202. bool logStatistics;
  2203. /* readonly */
  2204. uint numDownloads;
  2205. /* readonly */
  2206. float packetsInPerSec;
  2207. /* readonly */
  2208. float packetsOutPerSec;
  2209. /* readonly */
  2210. uint16 port;
  2211. Vector3 position;
  2212. /* readonly */
  2213. int refs;
  2214. Quaternion rotation;
  2215. /* readonly */
  2216. float roundTripTime;
  2217. Scene scene;
  2218. /* readonly */
  2219. bool sceneLoaded;
  2220. uint8 timeStamp;
  2221. /* readonly */
  2222. StringHash type;
  2223. /* readonly */
  2224. String typeName;
  2225. /* readonly */
  2226. int weakRefs;
  2227. };
  2228. class Console
  2229. {
  2230. // Methods:
  2231. void CopySelectedRows() const;
  2232. bool HasSubscribedToEvent(Object, const String&);
  2233. bool HasSubscribedToEvent(const String&);
  2234. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2235. void Toggle();
  2236. void UpdateElements();
  2237. // Properties:
  2238. bool autoVisibleOnError;
  2239. /* readonly */
  2240. BorderImage background;
  2241. /* readonly */
  2242. String category;
  2243. /* readonly */
  2244. Button closeButton;
  2245. String commandInterpreter;
  2246. XMLFile defaultStyle;
  2247. bool focusOnShow;
  2248. /* readonly */
  2249. uint historyPosition;
  2250. /* readonly */
  2251. Array<String> historyRow;
  2252. /* readonly */
  2253. LineEdit lineEdit;
  2254. uint numBufferedRows;
  2255. uint numHistoryRows;
  2256. uint numRows;
  2257. /* readonly */
  2258. int refs;
  2259. /* readonly */
  2260. StringHash type;
  2261. /* readonly */
  2262. String typeName;
  2263. bool visible;
  2264. /* readonly */
  2265. int weakRefs;
  2266. };
  2267. class Constraint
  2268. {
  2269. // Methods:
  2270. void ApplyAttributes();
  2271. void DrawDebugGeometry(DebugRenderer, bool);
  2272. Variant GetAttribute(const String&) const;
  2273. ValueAnimation GetAttributeAnimation(const String&) const;
  2274. float GetAttributeAnimationSpeed(const String&) const;
  2275. float GetAttributeAnimationTime(const String&) const;
  2276. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2277. Variant GetAttributeDefault(const String&) const;
  2278. bool GetInterceptNetworkUpdate(const String&) const;
  2279. bool HasSubscribedToEvent(Object, const String&);
  2280. bool HasSubscribedToEvent(const String&);
  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. /* writeonly */
  2311. Vector3 axis;
  2312. /* readonly */
  2313. String category;
  2314. float cfm;
  2315. ConstraintType constraintType;
  2316. bool disableCollision;
  2317. bool enabled;
  2318. /* readonly */
  2319. bool enabledEffective;
  2320. float erp;
  2321. Vector2 highLimit;
  2322. /* readonly */
  2323. uint id;
  2324. Vector2 lowLimit;
  2325. /* readonly */
  2326. Node node;
  2327. /* readonly */
  2328. uint numAttributes;
  2329. ObjectAnimation objectAnimation;
  2330. /* writeonly */
  2331. Vector3 otherAxis;
  2332. RigidBody otherBody;
  2333. Vector3 otherPosition;
  2334. Quaternion otherRotation;
  2335. /* readonly */
  2336. RigidBody ownBody;
  2337. Vector3 position;
  2338. /* readonly */
  2339. int refs;
  2340. Quaternion rotation;
  2341. bool temporary;
  2342. /* readonly */
  2343. StringHash type;
  2344. /* readonly */
  2345. String typeName;
  2346. /* readonly */
  2347. int weakRefs;
  2348. Vector3 worldPosition;
  2349. };
  2350. class Constraint2D
  2351. {
  2352. // Methods:
  2353. void ApplyAttributes();
  2354. void DrawDebugGeometry(DebugRenderer, bool);
  2355. Variant GetAttribute(const String&) const;
  2356. ValueAnimation GetAttributeAnimation(const String&) const;
  2357. float GetAttributeAnimationSpeed(const String&) const;
  2358. float GetAttributeAnimationTime(const String&) const;
  2359. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2360. Variant GetAttributeDefault(const String&) const;
  2361. bool GetInterceptNetworkUpdate(const String&) const;
  2362. bool HasSubscribedToEvent(Object, const String&);
  2363. bool HasSubscribedToEvent(const String&);
  2364. bool Load(File, bool = false);
  2365. bool Load(VectorBuffer&, bool = false);
  2366. bool LoadJSON(const JSONValue&, bool = false);
  2367. bool LoadXML(const XMLElement&, bool = false);
  2368. void MarkNetworkUpdate() const;
  2369. void Remove();
  2370. void RemoveAttributeAnimation(const String&);
  2371. void RemoveInstanceDefault();
  2372. void RemoveObjectAnimation();
  2373. void ResetToDefault();
  2374. bool Save(File) const;
  2375. bool Save(VectorBuffer&) const;
  2376. bool SaveJSON(JSONValue&) const;
  2377. bool SaveXML(XMLElement&) const;
  2378. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2379. void SetAnimationTime(float);
  2380. bool SetAttribute(const String&, const Variant&);
  2381. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2382. void SetAttributeAnimationSpeed(const String&, float);
  2383. void SetAttributeAnimationTime(const String&, float);
  2384. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2385. void SetInterceptNetworkUpdate(const String&, bool);
  2386. // Properties:
  2387. bool animationEnabled;
  2388. /* readonly */
  2389. Array<Variant> attributeDefaults;
  2390. /* readonly */
  2391. Array<AttributeInfo> attributeInfos;
  2392. Array<Variant> attributes;
  2393. /* readonly */
  2394. String category;
  2395. bool collideConnected;
  2396. bool enabled;
  2397. /* readonly */
  2398. bool enabledEffective;
  2399. /* readonly */
  2400. uint id;
  2401. /* readonly */
  2402. Node node;
  2403. /* readonly */
  2404. uint numAttributes;
  2405. ObjectAnimation objectAnimation;
  2406. RigidBody2D otherBody;
  2407. /* readonly */
  2408. RigidBody2D ownerBody;
  2409. /* readonly */
  2410. int refs;
  2411. bool temporary;
  2412. /* readonly */
  2413. StringHash type;
  2414. /* readonly */
  2415. String typeName;
  2416. /* readonly */
  2417. int weakRefs;
  2418. };
  2419. class ConstraintDistance2D
  2420. {
  2421. // Methods:
  2422. void ApplyAttributes();
  2423. void DrawDebugGeometry(DebugRenderer, bool);
  2424. Variant GetAttribute(const String&) const;
  2425. ValueAnimation GetAttributeAnimation(const String&) const;
  2426. float GetAttributeAnimationSpeed(const String&) const;
  2427. float GetAttributeAnimationTime(const String&) const;
  2428. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2429. Variant GetAttributeDefault(const String&) const;
  2430. bool GetInterceptNetworkUpdate(const String&) const;
  2431. bool HasSubscribedToEvent(Object, const String&);
  2432. bool HasSubscribedToEvent(const String&);
  2433. bool Load(File, bool = false);
  2434. bool Load(VectorBuffer&, bool = false);
  2435. bool LoadJSON(const JSONValue&, bool = false);
  2436. bool LoadXML(const XMLElement&, bool = false);
  2437. void MarkNetworkUpdate() const;
  2438. void Remove();
  2439. void RemoveAttributeAnimation(const String&);
  2440. void RemoveInstanceDefault();
  2441. void RemoveObjectAnimation();
  2442. void ResetToDefault();
  2443. bool Save(File) const;
  2444. bool Save(VectorBuffer&) const;
  2445. bool SaveJSON(JSONValue&) const;
  2446. bool SaveXML(XMLElement&) const;
  2447. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2448. void SetAnimationTime(float);
  2449. bool SetAttribute(const String&, const Variant&);
  2450. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2451. void SetAttributeAnimationSpeed(const String&, float);
  2452. void SetAttributeAnimationTime(const String&, float);
  2453. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2454. void SetInterceptNetworkUpdate(const String&, bool);
  2455. // Properties:
  2456. bool animationEnabled;
  2457. /* readonly */
  2458. Array<Variant> attributeDefaults;
  2459. /* readonly */
  2460. Array<AttributeInfo> attributeInfos;
  2461. Array<Variant> attributes;
  2462. /* readonly */
  2463. String category;
  2464. bool collideConnected;
  2465. float dampingRatio;
  2466. bool enabled;
  2467. /* readonly */
  2468. bool enabledEffective;
  2469. float frequencyHz;
  2470. /* readonly */
  2471. uint id;
  2472. /* readonly */
  2473. Node node;
  2474. /* readonly */
  2475. uint numAttributes;
  2476. ObjectAnimation objectAnimation;
  2477. RigidBody2D otherBody;
  2478. Vector2 otherBodyAnchor;
  2479. /* readonly */
  2480. RigidBody2D ownerBody;
  2481. Vector2 ownerBodyAnchor;
  2482. /* readonly */
  2483. int refs;
  2484. bool temporary;
  2485. /* readonly */
  2486. StringHash type;
  2487. /* readonly */
  2488. String typeName;
  2489. /* readonly */
  2490. int weakRefs;
  2491. };
  2492. class ConstraintFriction2D
  2493. {
  2494. // Methods:
  2495. void ApplyAttributes();
  2496. void DrawDebugGeometry(DebugRenderer, bool);
  2497. Variant GetAttribute(const String&) const;
  2498. ValueAnimation GetAttributeAnimation(const String&) const;
  2499. float GetAttributeAnimationSpeed(const String&) const;
  2500. float GetAttributeAnimationTime(const String&) const;
  2501. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2502. Variant GetAttributeDefault(const String&) const;
  2503. bool GetInterceptNetworkUpdate(const String&) const;
  2504. bool HasSubscribedToEvent(Object, const String&);
  2505. bool HasSubscribedToEvent(const String&);
  2506. bool Load(File, bool = false);
  2507. bool Load(VectorBuffer&, bool = false);
  2508. bool LoadJSON(const JSONValue&, bool = false);
  2509. bool LoadXML(const XMLElement&, bool = false);
  2510. void MarkNetworkUpdate() const;
  2511. void Remove();
  2512. void RemoveAttributeAnimation(const String&);
  2513. void RemoveInstanceDefault();
  2514. void RemoveObjectAnimation();
  2515. void ResetToDefault();
  2516. bool Save(File) const;
  2517. bool Save(VectorBuffer&) const;
  2518. bool SaveJSON(JSONValue&) const;
  2519. bool SaveXML(XMLElement&) const;
  2520. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2521. void SetAnimationTime(float);
  2522. bool SetAttribute(const String&, const Variant&);
  2523. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2524. void SetAttributeAnimationSpeed(const String&, float);
  2525. void SetAttributeAnimationTime(const String&, float);
  2526. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2527. void SetInterceptNetworkUpdate(const String&, bool);
  2528. // Properties:
  2529. Vector2 anchor;
  2530. bool animationEnabled;
  2531. /* readonly */
  2532. Array<Variant> attributeDefaults;
  2533. /* readonly */
  2534. Array<AttributeInfo> attributeInfos;
  2535. Array<Variant> attributes;
  2536. /* readonly */
  2537. String category;
  2538. bool collideConnected;
  2539. bool enabled;
  2540. /* readonly */
  2541. bool enabledEffective;
  2542. /* readonly */
  2543. uint id;
  2544. float maxForce;
  2545. float maxTorque;
  2546. /* readonly */
  2547. Node node;
  2548. /* readonly */
  2549. uint numAttributes;
  2550. ObjectAnimation objectAnimation;
  2551. RigidBody2D otherBody;
  2552. /* readonly */
  2553. RigidBody2D ownerBody;
  2554. /* readonly */
  2555. int refs;
  2556. bool temporary;
  2557. /* readonly */
  2558. StringHash type;
  2559. /* readonly */
  2560. String typeName;
  2561. /* readonly */
  2562. int weakRefs;
  2563. };
  2564. class ConstraintGear2D
  2565. {
  2566. // Methods:
  2567. void ApplyAttributes();
  2568. void DrawDebugGeometry(DebugRenderer, bool);
  2569. Variant GetAttribute(const String&) const;
  2570. ValueAnimation GetAttributeAnimation(const String&) const;
  2571. float GetAttributeAnimationSpeed(const String&) const;
  2572. float GetAttributeAnimationTime(const String&) const;
  2573. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2574. Variant GetAttributeDefault(const String&) const;
  2575. bool GetInterceptNetworkUpdate(const String&) const;
  2576. bool HasSubscribedToEvent(Object, const String&);
  2577. bool HasSubscribedToEvent(const String&);
  2578. bool Load(File, bool = false);
  2579. bool Load(VectorBuffer&, bool = false);
  2580. bool LoadJSON(const JSONValue&, bool = false);
  2581. bool LoadXML(const XMLElement&, bool = false);
  2582. void MarkNetworkUpdate() const;
  2583. void Remove();
  2584. void RemoveAttributeAnimation(const String&);
  2585. void RemoveInstanceDefault();
  2586. void RemoveObjectAnimation();
  2587. void ResetToDefault();
  2588. bool Save(File) const;
  2589. bool Save(VectorBuffer&) const;
  2590. bool SaveJSON(JSONValue&) const;
  2591. bool SaveXML(XMLElement&) const;
  2592. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2593. void SetAnimationTime(float);
  2594. bool SetAttribute(const String&, const Variant&);
  2595. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2596. void SetAttributeAnimationSpeed(const String&, float);
  2597. void SetAttributeAnimationTime(const String&, float);
  2598. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2599. void SetInterceptNetworkUpdate(const String&, bool);
  2600. // Properties:
  2601. bool animationEnabled;
  2602. /* readonly */
  2603. Array<Variant> attributeDefaults;
  2604. /* readonly */
  2605. Array<AttributeInfo> attributeInfos;
  2606. Array<Variant> attributes;
  2607. /* readonly */
  2608. String category;
  2609. bool collideConnected;
  2610. bool enabled;
  2611. /* readonly */
  2612. bool enabledEffective;
  2613. /* readonly */
  2614. uint id;
  2615. /* readonly */
  2616. Node node;
  2617. /* readonly */
  2618. uint numAttributes;
  2619. ObjectAnimation objectAnimation;
  2620. RigidBody2D otherBody;
  2621. Constraint2D otherConstraint;
  2622. /* readonly */
  2623. RigidBody2D ownerBody;
  2624. Constraint2D ownerConstraint;
  2625. float ratio;
  2626. /* readonly */
  2627. int refs;
  2628. bool temporary;
  2629. /* readonly */
  2630. StringHash type;
  2631. /* readonly */
  2632. String typeName;
  2633. /* readonly */
  2634. int weakRefs;
  2635. };
  2636. class ConstraintMotor2D
  2637. {
  2638. // Methods:
  2639. void ApplyAttributes();
  2640. void DrawDebugGeometry(DebugRenderer, bool);
  2641. Variant GetAttribute(const String&) const;
  2642. ValueAnimation GetAttributeAnimation(const String&) const;
  2643. float GetAttributeAnimationSpeed(const String&) const;
  2644. float GetAttributeAnimationTime(const String&) const;
  2645. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2646. Variant GetAttributeDefault(const String&) const;
  2647. bool GetInterceptNetworkUpdate(const String&) const;
  2648. bool HasSubscribedToEvent(Object, const String&);
  2649. bool HasSubscribedToEvent(const String&);
  2650. bool Load(File, bool = false);
  2651. bool Load(VectorBuffer&, bool = false);
  2652. bool LoadJSON(const JSONValue&, bool = false);
  2653. bool LoadXML(const XMLElement&, bool = false);
  2654. void MarkNetworkUpdate() const;
  2655. void Remove();
  2656. void RemoveAttributeAnimation(const String&);
  2657. void RemoveInstanceDefault();
  2658. void RemoveObjectAnimation();
  2659. void ResetToDefault();
  2660. bool Save(File) const;
  2661. bool Save(VectorBuffer&) const;
  2662. bool SaveJSON(JSONValue&) const;
  2663. bool SaveXML(XMLElement&) const;
  2664. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2665. void SetAnimationTime(float);
  2666. bool SetAttribute(const String&, const Variant&);
  2667. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2668. void SetAttributeAnimationSpeed(const String&, float);
  2669. void SetAttributeAnimationTime(const String&, float);
  2670. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2671. void SetInterceptNetworkUpdate(const String&, bool);
  2672. // Properties:
  2673. float angularOffset;
  2674. bool animationEnabled;
  2675. /* readonly */
  2676. Array<Variant> attributeDefaults;
  2677. /* readonly */
  2678. Array<AttributeInfo> attributeInfos;
  2679. Array<Variant> attributes;
  2680. /* readonly */
  2681. String category;
  2682. bool collideConnected;
  2683. float correctionFactor;
  2684. bool enabled;
  2685. /* readonly */
  2686. bool enabledEffective;
  2687. /* readonly */
  2688. uint id;
  2689. Vector2 linearOffset;
  2690. float maxForce;
  2691. float maxTorque;
  2692. /* readonly */
  2693. Node node;
  2694. /* readonly */
  2695. uint numAttributes;
  2696. ObjectAnimation objectAnimation;
  2697. RigidBody2D otherBody;
  2698. /* readonly */
  2699. RigidBody2D ownerBody;
  2700. /* readonly */
  2701. int refs;
  2702. bool temporary;
  2703. /* readonly */
  2704. StringHash type;
  2705. /* readonly */
  2706. String typeName;
  2707. /* readonly */
  2708. int weakRefs;
  2709. };
  2710. class ConstraintMouse2D
  2711. {
  2712. // Methods:
  2713. void ApplyAttributes();
  2714. void DrawDebugGeometry(DebugRenderer, bool);
  2715. Variant GetAttribute(const String&) const;
  2716. ValueAnimation GetAttributeAnimation(const String&) const;
  2717. float GetAttributeAnimationSpeed(const String&) const;
  2718. float GetAttributeAnimationTime(const String&) const;
  2719. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2720. Variant GetAttributeDefault(const String&) const;
  2721. bool GetInterceptNetworkUpdate(const String&) const;
  2722. bool HasSubscribedToEvent(Object, const String&);
  2723. bool HasSubscribedToEvent(const String&);
  2724. bool Load(File, bool = false);
  2725. bool Load(VectorBuffer&, bool = false);
  2726. bool LoadJSON(const JSONValue&, bool = false);
  2727. bool LoadXML(const XMLElement&, bool = false);
  2728. void MarkNetworkUpdate() const;
  2729. void Remove();
  2730. void RemoveAttributeAnimation(const String&);
  2731. void RemoveInstanceDefault();
  2732. void RemoveObjectAnimation();
  2733. void ResetToDefault();
  2734. bool Save(File) const;
  2735. bool Save(VectorBuffer&) const;
  2736. bool SaveJSON(JSONValue&) const;
  2737. bool SaveXML(XMLElement&) const;
  2738. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2739. void SetAnimationTime(float);
  2740. bool SetAttribute(const String&, const Variant&);
  2741. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2742. void SetAttributeAnimationSpeed(const String&, float);
  2743. void SetAttributeAnimationTime(const String&, float);
  2744. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2745. void SetInterceptNetworkUpdate(const String&, bool);
  2746. // Properties:
  2747. bool animationEnabled;
  2748. /* readonly */
  2749. Array<Variant> attributeDefaults;
  2750. /* readonly */
  2751. Array<AttributeInfo> attributeInfos;
  2752. Array<Variant> attributes;
  2753. /* readonly */
  2754. String category;
  2755. bool collideConnected;
  2756. float dampingRatio;
  2757. bool enabled;
  2758. /* readonly */
  2759. bool enabledEffective;
  2760. float frequencyHz;
  2761. /* readonly */
  2762. uint id;
  2763. float maxForce;
  2764. /* readonly */
  2765. Node node;
  2766. /* readonly */
  2767. uint numAttributes;
  2768. ObjectAnimation objectAnimation;
  2769. RigidBody2D otherBody;
  2770. /* readonly */
  2771. RigidBody2D ownerBody;
  2772. /* readonly */
  2773. int refs;
  2774. Vector2 target;
  2775. bool temporary;
  2776. /* readonly */
  2777. StringHash type;
  2778. /* readonly */
  2779. String typeName;
  2780. /* readonly */
  2781. int weakRefs;
  2782. };
  2783. class ConstraintPrismatic2D
  2784. {
  2785. // Methods:
  2786. void ApplyAttributes();
  2787. void DrawDebugGeometry(DebugRenderer, bool);
  2788. Variant GetAttribute(const String&) const;
  2789. ValueAnimation GetAttributeAnimation(const String&) const;
  2790. float GetAttributeAnimationSpeed(const String&) const;
  2791. float GetAttributeAnimationTime(const String&) const;
  2792. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2793. Variant GetAttributeDefault(const String&) const;
  2794. bool GetInterceptNetworkUpdate(const String&) const;
  2795. bool HasSubscribedToEvent(Object, const String&);
  2796. bool HasSubscribedToEvent(const String&);
  2797. bool Load(File, bool = false);
  2798. bool Load(VectorBuffer&, bool = false);
  2799. bool LoadJSON(const JSONValue&, bool = false);
  2800. bool LoadXML(const XMLElement&, bool = false);
  2801. void MarkNetworkUpdate() const;
  2802. void Remove();
  2803. void RemoveAttributeAnimation(const String&);
  2804. void RemoveInstanceDefault();
  2805. void RemoveObjectAnimation();
  2806. void ResetToDefault();
  2807. bool Save(File) const;
  2808. bool Save(VectorBuffer&) const;
  2809. bool SaveJSON(JSONValue&) const;
  2810. bool SaveXML(XMLElement&) const;
  2811. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2812. void SetAnimationTime(float);
  2813. bool SetAttribute(const String&, const Variant&);
  2814. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2815. void SetAttributeAnimationSpeed(const String&, float);
  2816. void SetAttributeAnimationTime(const String&, float);
  2817. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2818. void SetInterceptNetworkUpdate(const String&, bool);
  2819. // Properties:
  2820. Vector2 anchor;
  2821. bool animationEnabled;
  2822. /* readonly */
  2823. Array<Variant> attributeDefaults;
  2824. /* readonly */
  2825. Array<AttributeInfo> attributeInfos;
  2826. Array<Variant> attributes;
  2827. Vector2 axis;
  2828. /* readonly */
  2829. String category;
  2830. bool collideConnected;
  2831. bool enableLimit;
  2832. bool enableMotor;
  2833. bool enabled;
  2834. /* readonly */
  2835. bool enabledEffective;
  2836. /* readonly */
  2837. uint id;
  2838. float lowerTranslation;
  2839. float maxMotorForce;
  2840. float motorSpeed;
  2841. /* readonly */
  2842. Node node;
  2843. /* readonly */
  2844. uint numAttributes;
  2845. ObjectAnimation objectAnimation;
  2846. RigidBody2D otherBody;
  2847. /* readonly */
  2848. RigidBody2D ownerBody;
  2849. /* readonly */
  2850. int refs;
  2851. bool temporary;
  2852. /* readonly */
  2853. StringHash type;
  2854. /* readonly */
  2855. String typeName;
  2856. float upperTranslation;
  2857. /* readonly */
  2858. int weakRefs;
  2859. };
  2860. class ConstraintPulley2D
  2861. {
  2862. // Methods:
  2863. void ApplyAttributes();
  2864. void DrawDebugGeometry(DebugRenderer, bool);
  2865. Variant GetAttribute(const String&) const;
  2866. ValueAnimation GetAttributeAnimation(const String&) const;
  2867. float GetAttributeAnimationSpeed(const String&) const;
  2868. float GetAttributeAnimationTime(const String&) const;
  2869. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2870. Variant GetAttributeDefault(const String&) const;
  2871. bool GetInterceptNetworkUpdate(const String&) const;
  2872. bool HasSubscribedToEvent(Object, const String&);
  2873. bool HasSubscribedToEvent(const String&);
  2874. bool Load(File, bool = false);
  2875. bool Load(VectorBuffer&, bool = false);
  2876. bool LoadJSON(const JSONValue&, bool = false);
  2877. bool LoadXML(const XMLElement&, bool = false);
  2878. void MarkNetworkUpdate() const;
  2879. void Remove();
  2880. void RemoveAttributeAnimation(const String&);
  2881. void RemoveInstanceDefault();
  2882. void RemoveObjectAnimation();
  2883. void ResetToDefault();
  2884. bool Save(File) const;
  2885. bool Save(VectorBuffer&) const;
  2886. bool SaveJSON(JSONValue&) const;
  2887. bool SaveXML(XMLElement&) const;
  2888. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2889. void SetAnimationTime(float);
  2890. bool SetAttribute(const String&, const Variant&);
  2891. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2892. void SetAttributeAnimationSpeed(const String&, float);
  2893. void SetAttributeAnimationTime(const String&, float);
  2894. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2895. void SetInterceptNetworkUpdate(const String&, bool);
  2896. // Properties:
  2897. bool animationEnabled;
  2898. /* readonly */
  2899. Array<Variant> attributeDefaults;
  2900. /* readonly */
  2901. Array<AttributeInfo> attributeInfos;
  2902. Array<Variant> attributes;
  2903. /* readonly */
  2904. String category;
  2905. bool collideConnected;
  2906. bool enabled;
  2907. /* readonly */
  2908. bool enabledEffective;
  2909. /* readonly */
  2910. uint id;
  2911. /* readonly */
  2912. Node node;
  2913. /* readonly */
  2914. uint numAttributes;
  2915. ObjectAnimation objectAnimation;
  2916. RigidBody2D otherBody;
  2917. Vector2 otherBodyAnchor;
  2918. Vector2 otherBodyGroundAnchor;
  2919. /* readonly */
  2920. RigidBody2D ownerBody;
  2921. Vector2 ownerBodyAnchor;
  2922. Vector2 ownerBodyGroundAnchor;
  2923. float ratio;
  2924. /* readonly */
  2925. int refs;
  2926. bool temporary;
  2927. /* readonly */
  2928. StringHash type;
  2929. /* readonly */
  2930. String typeName;
  2931. /* readonly */
  2932. int weakRefs;
  2933. };
  2934. class ConstraintRevolute2D
  2935. {
  2936. // Methods:
  2937. void ApplyAttributes();
  2938. void DrawDebugGeometry(DebugRenderer, bool);
  2939. Variant GetAttribute(const String&) const;
  2940. ValueAnimation GetAttributeAnimation(const String&) const;
  2941. float GetAttributeAnimationSpeed(const String&) const;
  2942. float GetAttributeAnimationTime(const String&) const;
  2943. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2944. Variant GetAttributeDefault(const String&) const;
  2945. bool GetInterceptNetworkUpdate(const String&) const;
  2946. bool HasSubscribedToEvent(Object, const String&);
  2947. bool HasSubscribedToEvent(const String&);
  2948. bool Load(File, bool = false);
  2949. bool Load(VectorBuffer&, bool = false);
  2950. bool LoadJSON(const JSONValue&, bool = false);
  2951. bool LoadXML(const XMLElement&, bool = false);
  2952. void MarkNetworkUpdate() const;
  2953. void Remove();
  2954. void RemoveAttributeAnimation(const String&);
  2955. void RemoveInstanceDefault();
  2956. void RemoveObjectAnimation();
  2957. void ResetToDefault();
  2958. bool Save(File) const;
  2959. bool Save(VectorBuffer&) const;
  2960. bool SaveJSON(JSONValue&) const;
  2961. bool SaveXML(XMLElement&) const;
  2962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2963. void SetAnimationTime(float);
  2964. bool SetAttribute(const String&, const Variant&);
  2965. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2966. void SetAttributeAnimationSpeed(const String&, float);
  2967. void SetAttributeAnimationTime(const String&, float);
  2968. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2969. void SetInterceptNetworkUpdate(const String&, bool);
  2970. // Properties:
  2971. Vector2 anchor;
  2972. bool animationEnabled;
  2973. /* readonly */
  2974. Array<Variant> attributeDefaults;
  2975. /* readonly */
  2976. Array<AttributeInfo> attributeInfos;
  2977. Array<Variant> attributes;
  2978. /* readonly */
  2979. String category;
  2980. bool collideConnected;
  2981. bool enableLimit;
  2982. bool enableMotor;
  2983. bool enabled;
  2984. /* readonly */
  2985. bool enabledEffective;
  2986. /* readonly */
  2987. uint id;
  2988. float lowerAngle;
  2989. float maxMotorTorque;
  2990. float motorSpeed;
  2991. /* readonly */
  2992. Node node;
  2993. /* readonly */
  2994. uint numAttributes;
  2995. ObjectAnimation objectAnimation;
  2996. RigidBody2D otherBody;
  2997. /* readonly */
  2998. RigidBody2D ownerBody;
  2999. /* readonly */
  3000. int refs;
  3001. bool temporary;
  3002. /* readonly */
  3003. StringHash type;
  3004. /* readonly */
  3005. String typeName;
  3006. float upperAngle;
  3007. /* readonly */
  3008. int weakRefs;
  3009. };
  3010. class ConstraintRope2D
  3011. {
  3012. // Methods:
  3013. void ApplyAttributes();
  3014. void DrawDebugGeometry(DebugRenderer, bool);
  3015. Variant GetAttribute(const String&) const;
  3016. ValueAnimation GetAttributeAnimation(const String&) const;
  3017. float GetAttributeAnimationSpeed(const String&) const;
  3018. float GetAttributeAnimationTime(const String&) const;
  3019. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3020. Variant GetAttributeDefault(const String&) const;
  3021. bool GetInterceptNetworkUpdate(const String&) const;
  3022. bool HasSubscribedToEvent(Object, const String&);
  3023. bool HasSubscribedToEvent(const String&);
  3024. bool Load(File, bool = false);
  3025. bool Load(VectorBuffer&, bool = false);
  3026. bool LoadJSON(const JSONValue&, bool = false);
  3027. bool LoadXML(const XMLElement&, bool = false);
  3028. void MarkNetworkUpdate() const;
  3029. void Remove();
  3030. void RemoveAttributeAnimation(const String&);
  3031. void RemoveInstanceDefault();
  3032. void RemoveObjectAnimation();
  3033. void ResetToDefault();
  3034. bool Save(File) const;
  3035. bool Save(VectorBuffer&) const;
  3036. bool SaveJSON(JSONValue&) const;
  3037. bool SaveXML(XMLElement&) const;
  3038. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3039. void SetAnimationTime(float);
  3040. bool SetAttribute(const String&, const Variant&);
  3041. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3042. void SetAttributeAnimationSpeed(const String&, float);
  3043. void SetAttributeAnimationTime(const String&, float);
  3044. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3045. void SetInterceptNetworkUpdate(const String&, bool);
  3046. // Properties:
  3047. bool animationEnabled;
  3048. /* readonly */
  3049. Array<Variant> attributeDefaults;
  3050. /* readonly */
  3051. Array<AttributeInfo> attributeInfos;
  3052. Array<Variant> attributes;
  3053. /* readonly */
  3054. String category;
  3055. bool collideConnected;
  3056. bool enabled;
  3057. /* readonly */
  3058. bool enabledEffective;
  3059. /* readonly */
  3060. uint id;
  3061. float maxLength;
  3062. /* readonly */
  3063. Node node;
  3064. /* readonly */
  3065. uint numAttributes;
  3066. ObjectAnimation objectAnimation;
  3067. RigidBody2D otherBody;
  3068. Vector2 otherBodyAnchor;
  3069. /* readonly */
  3070. RigidBody2D ownerBody;
  3071. Vector2 ownerBodyAnchor;
  3072. /* readonly */
  3073. int refs;
  3074. bool temporary;
  3075. /* readonly */
  3076. StringHash type;
  3077. /* readonly */
  3078. String typeName;
  3079. /* readonly */
  3080. int weakRefs;
  3081. };
  3082. class ConstraintWeld2D
  3083. {
  3084. // Methods:
  3085. void ApplyAttributes();
  3086. void DrawDebugGeometry(DebugRenderer, bool);
  3087. Variant GetAttribute(const String&) const;
  3088. ValueAnimation GetAttributeAnimation(const String&) const;
  3089. float GetAttributeAnimationSpeed(const String&) const;
  3090. float GetAttributeAnimationTime(const String&) const;
  3091. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3092. Variant GetAttributeDefault(const String&) const;
  3093. bool GetInterceptNetworkUpdate(const String&) const;
  3094. bool HasSubscribedToEvent(Object, const String&);
  3095. bool HasSubscribedToEvent(const String&);
  3096. bool Load(File, bool = false);
  3097. bool Load(VectorBuffer&, bool = false);
  3098. bool LoadJSON(const JSONValue&, bool = false);
  3099. bool LoadXML(const XMLElement&, bool = false);
  3100. void MarkNetworkUpdate() const;
  3101. void Remove();
  3102. void RemoveAttributeAnimation(const String&);
  3103. void RemoveInstanceDefault();
  3104. void RemoveObjectAnimation();
  3105. void ResetToDefault();
  3106. bool Save(File) const;
  3107. bool Save(VectorBuffer&) const;
  3108. bool SaveJSON(JSONValue&) const;
  3109. bool SaveXML(XMLElement&) const;
  3110. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3111. void SetAnimationTime(float);
  3112. bool SetAttribute(const String&, const Variant&);
  3113. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3114. void SetAttributeAnimationSpeed(const String&, float);
  3115. void SetAttributeAnimationTime(const String&, float);
  3116. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3117. void SetInterceptNetworkUpdate(const String&, bool);
  3118. // Properties:
  3119. Vector2 anchor;
  3120. bool animationEnabled;
  3121. /* readonly */
  3122. Array<Variant> attributeDefaults;
  3123. /* readonly */
  3124. Array<AttributeInfo> attributeInfos;
  3125. Array<Variant> attributes;
  3126. /* readonly */
  3127. String category;
  3128. bool collideConnected;
  3129. float dampingRatio;
  3130. bool enabled;
  3131. /* readonly */
  3132. bool enabledEffective;
  3133. float frequencyHz;
  3134. /* readonly */
  3135. uint id;
  3136. /* readonly */
  3137. Node node;
  3138. /* readonly */
  3139. uint numAttributes;
  3140. ObjectAnimation objectAnimation;
  3141. RigidBody2D otherBody;
  3142. /* readonly */
  3143. RigidBody2D ownerBody;
  3144. /* readonly */
  3145. int refs;
  3146. bool temporary;
  3147. /* readonly */
  3148. StringHash type;
  3149. /* readonly */
  3150. String typeName;
  3151. /* readonly */
  3152. int weakRefs;
  3153. };
  3154. class ConstraintWheel2D
  3155. {
  3156. // Methods:
  3157. void ApplyAttributes();
  3158. void DrawDebugGeometry(DebugRenderer, bool);
  3159. Variant GetAttribute(const String&) const;
  3160. ValueAnimation GetAttributeAnimation(const String&) const;
  3161. float GetAttributeAnimationSpeed(const String&) const;
  3162. float GetAttributeAnimationTime(const String&) const;
  3163. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3164. Variant GetAttributeDefault(const String&) const;
  3165. bool GetInterceptNetworkUpdate(const String&) const;
  3166. bool HasSubscribedToEvent(Object, const String&);
  3167. bool HasSubscribedToEvent(const String&);
  3168. bool Load(File, bool = false);
  3169. bool Load(VectorBuffer&, bool = false);
  3170. bool LoadJSON(const JSONValue&, bool = false);
  3171. bool LoadXML(const XMLElement&, bool = false);
  3172. void MarkNetworkUpdate() const;
  3173. void Remove();
  3174. void RemoveAttributeAnimation(const String&);
  3175. void RemoveInstanceDefault();
  3176. void RemoveObjectAnimation();
  3177. void ResetToDefault();
  3178. bool Save(File) const;
  3179. bool Save(VectorBuffer&) const;
  3180. bool SaveJSON(JSONValue&) const;
  3181. bool SaveXML(XMLElement&) const;
  3182. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3183. void SetAnimationTime(float);
  3184. bool SetAttribute(const String&, const Variant&);
  3185. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3186. void SetAttributeAnimationSpeed(const String&, float);
  3187. void SetAttributeAnimationTime(const String&, float);
  3188. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3189. void SetInterceptNetworkUpdate(const String&, bool);
  3190. // Properties:
  3191. Vector2 anchor;
  3192. bool animationEnabled;
  3193. /* readonly */
  3194. Array<Variant> attributeDefaults;
  3195. /* readonly */
  3196. Array<AttributeInfo> attributeInfos;
  3197. Array<Variant> attributes;
  3198. Vector2 axis;
  3199. /* readonly */
  3200. String category;
  3201. bool collideConnected;
  3202. float dampingRatio;
  3203. bool enableMotor;
  3204. bool enabled;
  3205. /* readonly */
  3206. bool enabledEffective;
  3207. float frequencyHz;
  3208. /* readonly */
  3209. uint id;
  3210. float maxMotorTorque;
  3211. float motorSpeed;
  3212. /* readonly */
  3213. Node node;
  3214. /* readonly */
  3215. uint numAttributes;
  3216. ObjectAnimation objectAnimation;
  3217. RigidBody2D otherBody;
  3218. /* readonly */
  3219. RigidBody2D ownerBody;
  3220. /* readonly */
  3221. int refs;
  3222. bool temporary;
  3223. /* readonly */
  3224. StringHash type;
  3225. /* readonly */
  3226. String typeName;
  3227. /* readonly */
  3228. int weakRefs;
  3229. };
  3230. class Controls
  3231. {
  3232. // Methods:
  3233. bool IsDown(uint) const;
  3234. bool IsPressed(uint, const Controls&) const;
  3235. void Reset();
  3236. void Set(uint, bool);
  3237. // Properties:
  3238. uint buttons;
  3239. VariantMap extraData;
  3240. float pitch;
  3241. float yaw;
  3242. };
  3243. class CrowdAgent
  3244. {
  3245. // Methods:
  3246. void ApplyAttributes();
  3247. void DrawDebugGeometry(DebugRenderer, bool);
  3248. void DrawDebugGeometry(bool);
  3249. Variant GetAttribute(const String&) const;
  3250. ValueAnimation GetAttributeAnimation(const String&) const;
  3251. float GetAttributeAnimationSpeed(const String&) const;
  3252. float GetAttributeAnimationTime(const String&) const;
  3253. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3254. Variant GetAttributeDefault(const String&) const;
  3255. bool GetInterceptNetworkUpdate(const String&) const;
  3256. bool HasSubscribedToEvent(Object, const String&);
  3257. bool HasSubscribedToEvent(const String&);
  3258. bool Load(File, bool = false);
  3259. bool Load(VectorBuffer&, bool = false);
  3260. bool LoadJSON(const JSONValue&, bool = false);
  3261. bool LoadXML(const XMLElement&, bool = false);
  3262. void MarkNetworkUpdate() const;
  3263. void Remove();
  3264. void RemoveAttributeAnimation(const String&);
  3265. void RemoveInstanceDefault();
  3266. void RemoveObjectAnimation();
  3267. void ResetTarget();
  3268. void ResetToDefault();
  3269. bool Save(File) const;
  3270. bool Save(VectorBuffer&) const;
  3271. bool SaveJSON(JSONValue&) const;
  3272. bool SaveXML(XMLElement&) const;
  3273. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3274. void SetAnimationTime(float);
  3275. bool SetAttribute(const String&, const Variant&);
  3276. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3277. void SetAttributeAnimationSpeed(const String&, float);
  3278. void SetAttributeAnimationTime(const String&, float);
  3279. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3280. void SetInterceptNetworkUpdate(const String&, bool);
  3281. // Properties:
  3282. /* readonly */
  3283. Vector3 actualVelocity;
  3284. /* readonly */
  3285. CrowdAgentState agentState;
  3286. bool animationEnabled;
  3287. /* readonly */
  3288. bool arrived;
  3289. /* readonly */
  3290. Array<Variant> attributeDefaults;
  3291. /* readonly */
  3292. Array<AttributeInfo> attributeInfos;
  3293. Array<Variant> attributes;
  3294. /* readonly */
  3295. String category;
  3296. /* readonly */
  3297. Vector3 desiredVelocity;
  3298. bool enabled;
  3299. /* readonly */
  3300. bool enabledEffective;
  3301. float height;
  3302. /* readonly */
  3303. uint id;
  3304. /* readonly */
  3305. bool inCrowd;
  3306. float maxAccel;
  3307. float maxSpeed;
  3308. NavigationPushiness navigationPushiness;
  3309. NavigationQuality navigationQuality;
  3310. /* readonly */
  3311. Node node;
  3312. /* readonly */
  3313. uint numAttributes;
  3314. ObjectAnimation objectAnimation;
  3315. uint obstacleAvoidanceType;
  3316. /* readonly */
  3317. Vector3 position;
  3318. uint queryFilterType;
  3319. float radius;
  3320. /* readonly */
  3321. int refs;
  3322. /* readonly */
  3323. bool requestedTarget;
  3324. /* readonly */
  3325. CrowdAgentRequestedTarget requestedTargetType;
  3326. Vector3 targetPosition;
  3327. /* readonly */
  3328. CrowdAgentTargetState targetState;
  3329. Vector3 targetVelocity;
  3330. bool temporary;
  3331. /* readonly */
  3332. StringHash type;
  3333. /* readonly */
  3334. String typeName;
  3335. bool updateNodePosition;
  3336. /* readonly */
  3337. int weakRefs;
  3338. };
  3339. class CrowdManager
  3340. {
  3341. // Methods:
  3342. void ApplyAttributes();
  3343. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3344. void DrawDebugGeometry(DebugRenderer, bool);
  3345. void DrawDebugGeometry(bool);
  3346. Vector3 FindNearestPoint(const Vector3&, int);
  3347. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3348. float GetAreaCost(uint, uint);
  3349. Variant GetAttribute(const String&) const;
  3350. ValueAnimation GetAttributeAnimation(const String&) const;
  3351. float GetAttributeAnimationSpeed(const String&) const;
  3352. float GetAttributeAnimationTime(const String&) const;
  3353. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3354. Variant GetAttributeDefault(const String&) const;
  3355. float GetDistanceToWall(const Vector3&, float, int);
  3356. uint16 GetExcludeFlags(uint);
  3357. uint16 GetIncludeFlags(uint);
  3358. bool GetInterceptNetworkUpdate(const String&) const;
  3359. Vector3 GetRandomPoint(int);
  3360. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3361. bool HasSubscribedToEvent(Object, const String&);
  3362. bool HasSubscribedToEvent(const String&);
  3363. bool Load(File, bool = false);
  3364. bool Load(VectorBuffer&, bool = false);
  3365. bool LoadJSON(const JSONValue&, bool = false);
  3366. bool LoadXML(const XMLElement&, bool = false);
  3367. void MarkNetworkUpdate() const;
  3368. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3369. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3370. void Remove();
  3371. void RemoveAttributeAnimation(const String&);
  3372. void RemoveInstanceDefault();
  3373. void RemoveObjectAnimation();
  3374. void ResetCrowdTarget(Node = null);
  3375. void ResetToDefault();
  3376. bool Save(File) const;
  3377. bool Save(VectorBuffer&) const;
  3378. bool SaveJSON(JSONValue&) const;
  3379. bool SaveXML(XMLElement&) const;
  3380. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3381. void SetAnimationTime(float);
  3382. void SetAreaCost(uint, uint, float);
  3383. bool SetAttribute(const String&, const Variant&);
  3384. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3385. void SetAttributeAnimationSpeed(const String&, float);
  3386. void SetAttributeAnimationTime(const String&, float);
  3387. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3388. void SetCrowdTarget(const Vector3&, Node = null);
  3389. void SetCrowdVelocity(const Vector3&, Node = null);
  3390. void SetExcludeFlags(uint, uint16);
  3391. void SetIncludeFlags(uint, uint16);
  3392. void SetInterceptNetworkUpdate(const String&, bool);
  3393. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3394. // Properties:
  3395. bool animationEnabled;
  3396. /* readonly */
  3397. Array<Variant> attributeDefaults;
  3398. /* readonly */
  3399. Array<AttributeInfo> attributeInfos;
  3400. Array<Variant> attributes;
  3401. /* readonly */
  3402. String category;
  3403. bool enabled;
  3404. /* readonly */
  3405. bool enabledEffective;
  3406. /* readonly */
  3407. uint id;
  3408. float maxAgentRadius;
  3409. int maxAgents;
  3410. NavigationMesh navMesh;
  3411. /* readonly */
  3412. Node node;
  3413. /* readonly */
  3414. Array<uint> numAreas;
  3415. /* readonly */
  3416. uint numAttributes;
  3417. /* readonly */
  3418. uint numObstacleAvoidanceTypes;
  3419. /* readonly */
  3420. uint numQueryFilterTypes;
  3421. ObjectAnimation objectAnimation;
  3422. /* readonly */
  3423. int refs;
  3424. bool temporary;
  3425. /* readonly */
  3426. StringHash type;
  3427. /* readonly */
  3428. String typeName;
  3429. /* readonly */
  3430. int weakRefs;
  3431. };
  3432. class CrowdObstacleAvoidanceParams
  3433. {
  3434. // Properties:
  3435. uint8 adaptiveDepth;
  3436. uint8 adaptiveDivs;
  3437. uint8 adaptiveRings;
  3438. uint8 gridSize;
  3439. float horizTime;
  3440. float velBias;
  3441. float weightCurVel;
  3442. float weightDesVel;
  3443. float weightSide;
  3444. float weightToi;
  3445. };
  3446. class Cursor
  3447. {
  3448. // Methods:
  3449. void AddChild(UIElement);
  3450. void AddTag(const String&);
  3451. void AddTags(const String&, int8 = ';');
  3452. void ApplyAttributes();
  3453. void BringToFront();
  3454. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3455. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3456. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3457. void DisableLayoutUpdate();
  3458. IntVector2 ElementToScreen(const IntVector2&);
  3459. void EnableLayoutUpdate();
  3460. uint FindChild(UIElement) const;
  3461. Variant GetAttribute(const String&) const;
  3462. ValueAnimation GetAttributeAnimation(const String&) const;
  3463. float GetAttributeAnimationSpeed(const String&) const;
  3464. float GetAttributeAnimationTime(const String&) const;
  3465. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3466. Variant GetAttributeDefault(const String&) const;
  3467. UIElement GetChild(const String&, bool = false) const;
  3468. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3469. Array<UIElement> GetChildren(bool = false) const;
  3470. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3471. UIElement GetElementEventSender() const;
  3472. bool GetInterceptNetworkUpdate(const String&) const;
  3473. uint GetNumChildren(bool) const;
  3474. bool HasSubscribedToEvent(Object, const String&);
  3475. bool HasSubscribedToEvent(const String&);
  3476. bool HasTag(const String&) const;
  3477. void InsertChild(uint, UIElement);
  3478. bool IsInside(IntVector2, bool);
  3479. bool IsInsideCombined(IntVector2, bool);
  3480. bool Load(File, bool = false);
  3481. bool Load(VectorBuffer&, bool = false);
  3482. bool LoadChildXML(XMLFile, XMLFile = null);
  3483. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3484. bool LoadJSON(const JSONValue&, bool = false);
  3485. bool LoadXML(File);
  3486. bool LoadXML(VectorBuffer&);
  3487. bool LoadXML(XMLFile, XMLFile);
  3488. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3489. bool LoadXML(const XMLElement&, bool = false);
  3490. void MarkNetworkUpdate() const;
  3491. void Remove();
  3492. void RemoveAllChildren();
  3493. void RemoveAllTags();
  3494. void RemoveAttributeAnimation(const String&);
  3495. void RemoveChild(UIElement, uint = 0);
  3496. void RemoveChild(uint);
  3497. void RemoveInstanceDefault();
  3498. void RemoveObjectAnimation();
  3499. bool RemoveTag(const String&);
  3500. void ResetDeepEnabled();
  3501. void ResetToDefault();
  3502. bool Save(File) const;
  3503. bool Save(VectorBuffer&) const;
  3504. bool SaveJSON(JSONValue&) const;
  3505. bool SaveXML(File, const String& = "\t");
  3506. bool SaveXML(VectorBuffer&, const String& = "\t");
  3507. bool SaveXML(XMLElement&) const;
  3508. IntVector2 ScreenToElement(const IntVector2&);
  3509. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3510. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3511. void SetAnimationTime(float);
  3512. bool SetAttribute(const String&, const Variant&);
  3513. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3514. void SetAttributeAnimationSpeed(const String&, float);
  3515. void SetAttributeAnimationTime(const String&, float);
  3516. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3517. void SetDeepEnabled(bool);
  3518. void SetEnabledRecursive(bool);
  3519. void SetFixedHeight(int);
  3520. void SetFixedSize(int, int);
  3521. void SetFixedWidth(int);
  3522. void SetFullImageRect();
  3523. void SetHoverOffset(int, int);
  3524. void SetInterceptNetworkUpdate(const String&, bool);
  3525. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3526. void SetMaxSize(int, int);
  3527. void SetMinSize(int, int);
  3528. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3529. void SetPosition(int, int);
  3530. void SetShape(CursorShape);
  3531. void SetShape(const String&);
  3532. void SetSize(int, int);
  3533. bool SetStyle(const String&, XMLFile = null);
  3534. bool SetStyle(const XMLElement&);
  3535. bool SetStyleAuto(XMLFile = null);
  3536. void UpdateLayout();
  3537. const Variant& GetVar(const StringHash&);
  3538. // Properties:
  3539. bool animationEnabled;
  3540. /* readonly */
  3541. Array<Variant> attributeDefaults;
  3542. /* readonly */
  3543. Array<AttributeInfo> attributeInfos;
  3544. Array<Variant> attributes;
  3545. BlendMode blendMode;
  3546. IntRect border;
  3547. bool bringToBack;
  3548. bool bringToFront;
  3549. /* readonly */
  3550. String category;
  3551. /* readonly */
  3552. IntVector2 childOffset;
  3553. /* readonly */
  3554. Array<UIElement> children;
  3555. IntRect clipBorder;
  3556. bool clipChildren;
  3557. /* writeonly */
  3558. Color color;
  3559. /* readonly */
  3560. bool colorGradient;
  3561. Array<Color> colors;
  3562. /* readonly */
  3563. IntRect combinedScreenRect;
  3564. XMLFile defaultStyle;
  3565. /* readonly */
  3566. float derivedOpacity;
  3567. /* readonly */
  3568. uint dragButtonCombo;
  3569. /* readonly */
  3570. int dragButtonCount;
  3571. uint dragDropMode;
  3572. bool editable;
  3573. bool elementEventSender;
  3574. bool enabled;
  3575. /* readonly */
  3576. bool enabledSelf;
  3577. /* readonly */
  3578. bool fixedHeight;
  3579. /* readonly */
  3580. bool fixedSize;
  3581. /* readonly */
  3582. bool fixedWidth;
  3583. bool focus;
  3584. FocusMode focusMode;
  3585. int height;
  3586. HorizontalAlignment horizontalAlignment;
  3587. IntVector2 hoverOffset;
  3588. /* readonly */
  3589. bool hovering;
  3590. IntRect imageBorder;
  3591. IntRect imageRect;
  3592. int indent;
  3593. int indentSpacing;
  3594. /* readonly */
  3595. int indentWidth;
  3596. bool internal;
  3597. IntRect layoutBorder;
  3598. Vector2 layoutFlexScale;
  3599. LayoutMode layoutMode;
  3600. int layoutSpacing;
  3601. int maxHeight;
  3602. IntVector2 maxSize;
  3603. int maxWidth;
  3604. int minHeight;
  3605. IntVector2 minSize;
  3606. int minWidth;
  3607. String name;
  3608. /* readonly */
  3609. uint numAllChildren;
  3610. /* readonly */
  3611. uint numAttributes;
  3612. /* readonly */
  3613. uint numChildren;
  3614. ObjectAnimation objectAnimation;
  3615. float opacity;
  3616. UIElement parent;
  3617. IntVector2 position;
  3618. int priority;
  3619. /* readonly */
  3620. int refs;
  3621. /* readonly */
  3622. UIElement root;
  3623. /* readonly */
  3624. IntVector2 screenPosition;
  3625. bool selected;
  3626. String shape;
  3627. IntVector2 size;
  3628. bool sortChildren;
  3629. String style;
  3630. /* readonly */
  3631. Array<String> tags;
  3632. bool temporary;
  3633. Texture texture;
  3634. bool tiled;
  3635. TraversalMode traversalMode;
  3636. /* readonly */
  3637. StringHash type;
  3638. /* readonly */
  3639. String typeName;
  3640. bool useDerivedOpacity;
  3641. bool useSystemShapes;
  3642. /* readonly */
  3643. VariantMap vars;
  3644. VerticalAlignment verticalAlignment;
  3645. bool visible;
  3646. /* readonly */
  3647. bool visibleEffective;
  3648. /* readonly */
  3649. int weakRefs;
  3650. int width;
  3651. };
  3652. class CustomGeometry
  3653. {
  3654. // Methods:
  3655. void ApplyAttributes();
  3656. void BeginGeometry(uint, PrimitiveType);
  3657. void Clear();
  3658. void Commit();
  3659. void DefineColor(const Color&);
  3660. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3661. void DefineNormal(const Vector3&);
  3662. void DefineTangent(const Vector4&);
  3663. void DefineTexCoord(const Vector2&);
  3664. void DefineVertex(const Vector3&);
  3665. void DrawDebugGeometry(DebugRenderer, bool);
  3666. Variant GetAttribute(const String&) const;
  3667. ValueAnimation GetAttributeAnimation(const String&) const;
  3668. float GetAttributeAnimationSpeed(const String&) const;
  3669. float GetAttributeAnimationTime(const String&) const;
  3670. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3671. Variant GetAttributeDefault(const String&) const;
  3672. bool GetInterceptNetworkUpdate(const String&) const;
  3673. CustomGeometryVertex GetVertex(uint, uint);
  3674. bool HasSubscribedToEvent(Object, const String&);
  3675. bool HasSubscribedToEvent(const String&);
  3676. bool IsInView(Camera) const;
  3677. bool Load(File, bool = false);
  3678. bool Load(VectorBuffer&, bool = false);
  3679. bool LoadJSON(const JSONValue&, bool = false);
  3680. bool LoadXML(const XMLElement&, bool = false);
  3681. void MarkNetworkUpdate() const;
  3682. void Remove();
  3683. void RemoveAttributeAnimation(const String&);
  3684. void RemoveInstanceDefault();
  3685. void RemoveObjectAnimation();
  3686. void ResetToDefault();
  3687. bool Save(File) const;
  3688. bool Save(VectorBuffer&) const;
  3689. bool SaveJSON(JSONValue&) const;
  3690. bool SaveXML(XMLElement&) const;
  3691. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3692. void SetAnimationTime(float);
  3693. bool SetAttribute(const String&, const Variant&);
  3694. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3695. void SetAttributeAnimationSpeed(const String&, float);
  3696. void SetAttributeAnimationTime(const String&, float);
  3697. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3698. void SetInterceptNetworkUpdate(const String&, bool);
  3699. // Properties:
  3700. bool animationEnabled;
  3701. /* readonly */
  3702. Array<Variant> attributeDefaults;
  3703. /* readonly */
  3704. Array<AttributeInfo> attributeInfos;
  3705. Array<Variant> attributes;
  3706. /* readonly */
  3707. BoundingBox boundingBox;
  3708. bool castShadows;
  3709. /* readonly */
  3710. String category;
  3711. float drawDistance;
  3712. bool dynamic;
  3713. bool enabled;
  3714. /* readonly */
  3715. bool enabledEffective;
  3716. /* readonly */
  3717. uint id;
  3718. /* readonly */
  3719. bool inView;
  3720. uint lightMask;
  3721. float lodBias;
  3722. /* writeonly */
  3723. Material material;
  3724. Array<Material> materials;
  3725. uint maxLights;
  3726. /* readonly */
  3727. Node node;
  3728. /* readonly */
  3729. uint numAttributes;
  3730. uint numGeometries;
  3731. /* readonly */
  3732. Array<uint> numVertices;
  3733. ObjectAnimation objectAnimation;
  3734. bool occludee;
  3735. bool occluder;
  3736. /* readonly */
  3737. int refs;
  3738. float shadowDistance;
  3739. uint shadowMask;
  3740. bool temporary;
  3741. /* readonly */
  3742. StringHash type;
  3743. /* readonly */
  3744. String typeName;
  3745. uint viewMask;
  3746. /* readonly */
  3747. int weakRefs;
  3748. /* readonly */
  3749. BoundingBox worldBoundingBox;
  3750. /* readonly */
  3751. Zone zone;
  3752. uint zoneMask;
  3753. };
  3754. class CustomGeometryVertex
  3755. {
  3756. // Properties:
  3757. uint color;
  3758. Vector3 normal;
  3759. Vector3 position;
  3760. Vector4 tangent;
  3761. Vector2 texCoord;
  3762. };
  3763. class Database
  3764. {
  3765. // Methods:
  3766. DbConnection Connect(const String&);
  3767. void Disconnect(DbConnection);
  3768. bool HasSubscribedToEvent(Object, const String&);
  3769. bool HasSubscribedToEvent(const String&);
  3770. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3771. // Properties:
  3772. /* readonly */
  3773. String category;
  3774. uint poolSize;
  3775. /* readonly */
  3776. bool pooling;
  3777. /* readonly */
  3778. int refs;
  3779. /* readonly */
  3780. StringHash type;
  3781. /* readonly */
  3782. String typeName;
  3783. /* readonly */
  3784. int weakRefs;
  3785. };
  3786. class DbConnection
  3787. {
  3788. // Methods:
  3789. DbResult Execute(const String&, bool = false);
  3790. bool HasSubscribedToEvent(Object, const String&);
  3791. bool HasSubscribedToEvent(const String&);
  3792. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3793. // Properties:
  3794. /* readonly */
  3795. String category;
  3796. /* readonly */
  3797. bool connected;
  3798. /* readonly */
  3799. String connectionString;
  3800. /* readonly */
  3801. int refs;
  3802. /* readonly */
  3803. StringHash type;
  3804. /* readonly */
  3805. String typeName;
  3806. /* readonly */
  3807. int weakRefs;
  3808. };
  3809. class DbResult
  3810. {
  3811. // Properties:
  3812. /* readonly */
  3813. Array<String> columns;
  3814. /* readonly */
  3815. int64 numAffectedRows;
  3816. /* readonly */
  3817. uint numColumns;
  3818. /* readonly */
  3819. uint numRows;
  3820. /* readonly */
  3821. Array<Array<Variant>> row;
  3822. };
  3823. class DebugHud
  3824. {
  3825. // Methods:
  3826. void ClearAppStats();
  3827. bool HasSubscribedToEvent(Object, const String&);
  3828. bool HasSubscribedToEvent(const String&);
  3829. void ResetAppStats(const String&);
  3830. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3831. void SetAppStats(const String&, const String&);
  3832. void SetAppStats(const String&, const Variant&);
  3833. void Toggle(uint);
  3834. void ToggleAll();
  3835. void Update();
  3836. // Properties:
  3837. /* readonly */
  3838. String category;
  3839. XMLFile defaultStyle;
  3840. /* readonly */
  3841. Text memoryText;
  3842. uint mode;
  3843. /* readonly */
  3844. Text modeText;
  3845. float profilerInterval;
  3846. uint profilerMaxDepth;
  3847. /* readonly */
  3848. Text profilerText;
  3849. /* readonly */
  3850. int refs;
  3851. /* readonly */
  3852. Text statsText;
  3853. /* readonly */
  3854. StringHash type;
  3855. /* readonly */
  3856. String typeName;
  3857. bool useRendererStats;
  3858. /* readonly */
  3859. int weakRefs;
  3860. };
  3861. class DebugRenderer
  3862. {
  3863. // Methods:
  3864. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3865. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3866. void AddCross(const Vector3&, float, const Color&, bool = true);
  3867. void AddFrustum(const Frustum&, const Color&, bool = true);
  3868. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3869. void AddNode(Node, float = 1.0, bool = true);
  3870. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3871. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3872. void AddSkeleton(Skeleton, const Color&, bool = true);
  3873. void AddSphere(const Sphere&, const Color&, bool = true);
  3874. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3875. void ApplyAttributes();
  3876. void DrawDebugGeometry(DebugRenderer, bool);
  3877. Variant GetAttribute(const String&) const;
  3878. ValueAnimation GetAttributeAnimation(const String&) const;
  3879. float GetAttributeAnimationSpeed(const String&) const;
  3880. float GetAttributeAnimationTime(const String&) const;
  3881. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3882. Variant GetAttributeDefault(const String&) const;
  3883. bool GetInterceptNetworkUpdate(const String&) const;
  3884. bool HasSubscribedToEvent(Object, const String&);
  3885. bool HasSubscribedToEvent(const String&);
  3886. bool Load(File, bool = false);
  3887. bool Load(VectorBuffer&, bool = false);
  3888. bool LoadJSON(const JSONValue&, bool = false);
  3889. bool LoadXML(const XMLElement&, bool = false);
  3890. void MarkNetworkUpdate() const;
  3891. void Remove();
  3892. void RemoveAttributeAnimation(const String&);
  3893. void RemoveInstanceDefault();
  3894. void RemoveObjectAnimation();
  3895. void ResetToDefault();
  3896. bool Save(File) const;
  3897. bool Save(VectorBuffer&) const;
  3898. bool SaveJSON(JSONValue&) const;
  3899. bool SaveXML(XMLElement&) const;
  3900. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3901. void SetAnimationTime(float);
  3902. bool SetAttribute(const String&, const Variant&);
  3903. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3904. void SetAttributeAnimationSpeed(const String&, float);
  3905. void SetAttributeAnimationTime(const String&, float);
  3906. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3907. void SetInterceptNetworkUpdate(const String&, bool);
  3908. // Properties:
  3909. bool animationEnabled;
  3910. /* readonly */
  3911. Array<Variant> attributeDefaults;
  3912. /* readonly */
  3913. Array<AttributeInfo> attributeInfos;
  3914. Array<Variant> attributes;
  3915. /* readonly */
  3916. String category;
  3917. bool enabled;
  3918. /* readonly */
  3919. bool enabledEffective;
  3920. /* readonly */
  3921. uint id;
  3922. /* readonly */
  3923. Node node;
  3924. /* readonly */
  3925. uint numAttributes;
  3926. ObjectAnimation objectAnimation;
  3927. /* readonly */
  3928. int refs;
  3929. bool temporary;
  3930. /* readonly */
  3931. StringHash type;
  3932. /* readonly */
  3933. String typeName;
  3934. /* readonly */
  3935. int weakRefs;
  3936. };
  3937. class DecalSet
  3938. {
  3939. // Methods:
  3940. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3941. void ApplyAttributes();
  3942. void DrawDebugGeometry(DebugRenderer, bool);
  3943. Variant GetAttribute(const String&) const;
  3944. ValueAnimation GetAttributeAnimation(const String&) const;
  3945. float GetAttributeAnimationSpeed(const String&) const;
  3946. float GetAttributeAnimationTime(const String&) const;
  3947. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3948. Variant GetAttributeDefault(const String&) const;
  3949. bool GetInterceptNetworkUpdate(const String&) const;
  3950. bool HasSubscribedToEvent(Object, const String&);
  3951. bool HasSubscribedToEvent(const String&);
  3952. bool IsInView(Camera) const;
  3953. bool Load(File, bool = false);
  3954. bool Load(VectorBuffer&, bool = false);
  3955. bool LoadJSON(const JSONValue&, bool = false);
  3956. bool LoadXML(const XMLElement&, bool = false);
  3957. void MarkNetworkUpdate() const;
  3958. void Remove();
  3959. void RemoveAllDecals();
  3960. void RemoveAttributeAnimation(const String&);
  3961. void RemoveDecals(uint);
  3962. void RemoveInstanceDefault();
  3963. void RemoveObjectAnimation();
  3964. void ResetToDefault();
  3965. bool Save(File) const;
  3966. bool Save(VectorBuffer&) const;
  3967. bool SaveJSON(JSONValue&) const;
  3968. bool SaveXML(XMLElement&) const;
  3969. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3970. void SetAnimationTime(float);
  3971. bool SetAttribute(const String&, const Variant&);
  3972. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3973. void SetAttributeAnimationSpeed(const String&, float);
  3974. void SetAttributeAnimationTime(const String&, float);
  3975. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3976. void SetInterceptNetworkUpdate(const String&, bool);
  3977. // Properties:
  3978. bool animationEnabled;
  3979. /* readonly */
  3980. Array<Variant> attributeDefaults;
  3981. /* readonly */
  3982. Array<AttributeInfo> attributeInfos;
  3983. Array<Variant> attributes;
  3984. /* readonly */
  3985. BoundingBox boundingBox;
  3986. bool castShadows;
  3987. /* readonly */
  3988. String category;
  3989. float drawDistance;
  3990. bool enabled;
  3991. /* readonly */
  3992. bool enabledEffective;
  3993. /* readonly */
  3994. uint id;
  3995. /* readonly */
  3996. bool inView;
  3997. uint lightMask;
  3998. float lodBias;
  3999. Material material;
  4000. uint maxIndices;
  4001. uint maxLights;
  4002. uint maxVertices;
  4003. /* readonly */
  4004. Node node;
  4005. /* readonly */
  4006. uint numAttributes;
  4007. /* readonly */
  4008. uint numDecals;
  4009. /* readonly */
  4010. uint numIndices;
  4011. /* readonly */
  4012. uint numVertices;
  4013. ObjectAnimation objectAnimation;
  4014. bool occludee;
  4015. bool occluder;
  4016. /* readonly */
  4017. int refs;
  4018. float shadowDistance;
  4019. uint shadowMask;
  4020. bool temporary;
  4021. /* readonly */
  4022. StringHash type;
  4023. /* readonly */
  4024. String typeName;
  4025. uint viewMask;
  4026. /* readonly */
  4027. int weakRefs;
  4028. /* readonly */
  4029. BoundingBox worldBoundingBox;
  4030. /* readonly */
  4031. Zone zone;
  4032. uint zoneMask;
  4033. };
  4034. class Deserializer
  4035. {
  4036. // Methods:
  4037. Array<uint8> Read(uint);
  4038. bool ReadBool();
  4039. BoundingBox ReadBoundingBox();
  4040. int8 ReadByte();
  4041. Color ReadColor();
  4042. double ReadDouble();
  4043. String ReadFileID();
  4044. float ReadFloat();
  4045. int ReadInt();
  4046. IntRect ReadIntRect();
  4047. IntVector2 ReadIntVector2();
  4048. String ReadLine();
  4049. Matrix3 ReadMatrix3();
  4050. Matrix3x4 ReadMatrix3x4();
  4051. Matrix4 ReadMatrix4();
  4052. uint ReadNetID();
  4053. Quaternion ReadPackedQuaternion();
  4054. Vector3 ReadPackedVector3(float);
  4055. Quaternion ReadQuaternion();
  4056. int16 ReadShort();
  4057. String ReadString();
  4058. StringHash ReadStringHash();
  4059. uint8 ReadUByte();
  4060. uint ReadUInt();
  4061. uint16 ReadUShort();
  4062. uint ReadVLE();
  4063. Variant ReadVariant();
  4064. VariantMap ReadVariantMap();
  4065. Vector2 ReadVector2();
  4066. Vector3 ReadVector3();
  4067. Vector4 ReadVector4();
  4068. VectorBuffer ReadVectorBuffer(uint);
  4069. uint Seek(uint);
  4070. // Properties:
  4071. /* readonly */
  4072. uint checksum;
  4073. /* readonly */
  4074. bool eof;
  4075. /* readonly */
  4076. String name;
  4077. /* readonly */
  4078. uint position;
  4079. /* readonly */
  4080. uint size;
  4081. };
  4082. class Dictionary
  4083. {
  4084. // Methods:
  4085. void Clear();
  4086. void Erase(const String&);
  4087. bool Exists(const String&) const;
  4088. bool Get(const String&, void*) const;
  4089. bool Get(const String&, double&) const;
  4090. bool Get(const String&, int64&) const;
  4091. void Set(const String&, const void*);
  4092. void Set(const String&, const double&);
  4093. void Set(const String&, const int64&);
  4094. // Properties:
  4095. /* readonly */
  4096. bool empty;
  4097. /* readonly */
  4098. Array<String> keys;
  4099. /* readonly */
  4100. uint length;
  4101. };
  4102. class DictionaryValue
  4103. {
  4104. };
  4105. class Drawable
  4106. {
  4107. // Methods:
  4108. void ApplyAttributes();
  4109. void DrawDebugGeometry(DebugRenderer, bool);
  4110. Variant GetAttribute(const String&) const;
  4111. ValueAnimation GetAttributeAnimation(const String&) const;
  4112. float GetAttributeAnimationSpeed(const String&) const;
  4113. float GetAttributeAnimationTime(const String&) const;
  4114. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4115. Variant GetAttributeDefault(const String&) const;
  4116. bool GetInterceptNetworkUpdate(const String&) const;
  4117. bool HasSubscribedToEvent(Object, const String&);
  4118. bool HasSubscribedToEvent(const String&);
  4119. bool IsInView(Camera) const;
  4120. bool Load(File, bool = false);
  4121. bool Load(VectorBuffer&, bool = false);
  4122. bool LoadJSON(const JSONValue&, bool = false);
  4123. bool LoadXML(const XMLElement&, bool = false);
  4124. void MarkNetworkUpdate() const;
  4125. void Remove();
  4126. void RemoveAttributeAnimation(const String&);
  4127. void RemoveInstanceDefault();
  4128. void RemoveObjectAnimation();
  4129. void ResetToDefault();
  4130. bool Save(File) const;
  4131. bool Save(VectorBuffer&) const;
  4132. bool SaveJSON(JSONValue&) const;
  4133. bool SaveXML(XMLElement&) const;
  4134. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4135. void SetAnimationTime(float);
  4136. bool SetAttribute(const String&, const Variant&);
  4137. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4138. void SetAttributeAnimationSpeed(const String&, float);
  4139. void SetAttributeAnimationTime(const String&, float);
  4140. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4141. void SetInterceptNetworkUpdate(const String&, bool);
  4142. // Properties:
  4143. bool animationEnabled;
  4144. /* readonly */
  4145. Array<Variant> attributeDefaults;
  4146. /* readonly */
  4147. Array<AttributeInfo> attributeInfos;
  4148. Array<Variant> attributes;
  4149. /* readonly */
  4150. BoundingBox boundingBox;
  4151. bool castShadows;
  4152. /* readonly */
  4153. String category;
  4154. float drawDistance;
  4155. bool enabled;
  4156. /* readonly */
  4157. bool enabledEffective;
  4158. /* readonly */
  4159. uint id;
  4160. /* readonly */
  4161. bool inView;
  4162. uint lightMask;
  4163. float lodBias;
  4164. uint maxLights;
  4165. /* readonly */
  4166. Node node;
  4167. /* readonly */
  4168. uint numAttributes;
  4169. ObjectAnimation objectAnimation;
  4170. bool occludee;
  4171. bool occluder;
  4172. /* readonly */
  4173. int refs;
  4174. float shadowDistance;
  4175. uint shadowMask;
  4176. bool temporary;
  4177. /* readonly */
  4178. StringHash type;
  4179. /* readonly */
  4180. String typeName;
  4181. uint viewMask;
  4182. /* readonly */
  4183. int weakRefs;
  4184. /* readonly */
  4185. BoundingBox worldBoundingBox;
  4186. uint zoneMask;
  4187. };
  4188. class Drawable2D
  4189. {
  4190. // Methods:
  4191. void ApplyAttributes();
  4192. void DrawDebugGeometry(DebugRenderer, bool);
  4193. Variant GetAttribute(const String&) const;
  4194. ValueAnimation GetAttributeAnimation(const String&) const;
  4195. float GetAttributeAnimationSpeed(const String&) const;
  4196. float GetAttributeAnimationTime(const String&) const;
  4197. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4198. Variant GetAttributeDefault(const String&) const;
  4199. bool GetInterceptNetworkUpdate(const String&) const;
  4200. bool HasSubscribedToEvent(Object, const String&);
  4201. bool HasSubscribedToEvent(const String&);
  4202. bool IsInView(Camera) const;
  4203. bool Load(File, bool = false);
  4204. bool Load(VectorBuffer&, bool = false);
  4205. bool LoadJSON(const JSONValue&, bool = false);
  4206. bool LoadXML(const XMLElement&, bool = false);
  4207. void MarkNetworkUpdate() const;
  4208. void Remove();
  4209. void RemoveAttributeAnimation(const String&);
  4210. void RemoveInstanceDefault();
  4211. void RemoveObjectAnimation();
  4212. void ResetToDefault();
  4213. bool Save(File) const;
  4214. bool Save(VectorBuffer&) const;
  4215. bool SaveJSON(JSONValue&) const;
  4216. bool SaveXML(XMLElement&) const;
  4217. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4218. void SetAnimationTime(float);
  4219. bool SetAttribute(const String&, const Variant&);
  4220. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4221. void SetAttributeAnimationSpeed(const String&, float);
  4222. void SetAttributeAnimationTime(const String&, float);
  4223. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4224. void SetInterceptNetworkUpdate(const String&, bool);
  4225. // Properties:
  4226. bool animationEnabled;
  4227. /* readonly */
  4228. Array<Variant> attributeDefaults;
  4229. /* readonly */
  4230. Array<AttributeInfo> attributeInfos;
  4231. Array<Variant> attributes;
  4232. /* readonly */
  4233. BoundingBox boundingBox;
  4234. bool castShadows;
  4235. /* readonly */
  4236. String category;
  4237. float drawDistance;
  4238. bool enabled;
  4239. /* readonly */
  4240. bool enabledEffective;
  4241. /* readonly */
  4242. uint id;
  4243. /* readonly */
  4244. bool inView;
  4245. int layer;
  4246. uint lightMask;
  4247. float lodBias;
  4248. uint maxLights;
  4249. /* readonly */
  4250. Node node;
  4251. /* readonly */
  4252. uint numAttributes;
  4253. ObjectAnimation objectAnimation;
  4254. bool occludee;
  4255. bool occluder;
  4256. int orderInLayer;
  4257. /* readonly */
  4258. int refs;
  4259. float shadowDistance;
  4260. uint shadowMask;
  4261. bool temporary;
  4262. /* readonly */
  4263. StringHash type;
  4264. /* readonly */
  4265. String typeName;
  4266. uint viewMask;
  4267. /* readonly */
  4268. int weakRefs;
  4269. /* readonly */
  4270. BoundingBox worldBoundingBox;
  4271. uint zoneMask;
  4272. };
  4273. class DropDownList
  4274. {
  4275. // Methods:
  4276. void AddChild(UIElement);
  4277. void AddItem(UIElement);
  4278. void AddTag(const String&);
  4279. void AddTags(const String&, int8 = ';');
  4280. void ApplyAttributes();
  4281. void BringToFront();
  4282. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4283. void DisableLayoutUpdate();
  4284. IntVector2 ElementToScreen(const IntVector2&);
  4285. void EnableLayoutUpdate();
  4286. uint FindChild(UIElement) const;
  4287. Variant GetAttribute(const String&) const;
  4288. ValueAnimation GetAttributeAnimation(const String&) const;
  4289. float GetAttributeAnimationSpeed(const String&) const;
  4290. float GetAttributeAnimationTime(const String&) const;
  4291. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4292. Variant GetAttributeDefault(const String&) const;
  4293. UIElement GetChild(const String&, bool = false) const;
  4294. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4295. Array<UIElement> GetChildren(bool = false) const;
  4296. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4297. UIElement GetElementEventSender() const;
  4298. bool GetInterceptNetworkUpdate(const String&) const;
  4299. Array<UIElement> GetItems() const;
  4300. uint GetNumChildren(bool) const;
  4301. bool HasSubscribedToEvent(Object, const String&);
  4302. bool HasSubscribedToEvent(const String&);
  4303. bool HasTag(const String&) const;
  4304. void InsertChild(uint, UIElement);
  4305. void InsertItem(uint, UIElement);
  4306. bool IsInside(IntVector2, bool);
  4307. bool IsInsideCombined(IntVector2, bool);
  4308. bool Load(File, bool = false);
  4309. bool Load(VectorBuffer&, bool = false);
  4310. bool LoadChildXML(XMLFile, XMLFile = null);
  4311. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4312. bool LoadJSON(const JSONValue&, bool = false);
  4313. bool LoadXML(File);
  4314. bool LoadXML(VectorBuffer&);
  4315. bool LoadXML(XMLFile, XMLFile);
  4316. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4317. bool LoadXML(const XMLElement&, bool = false);
  4318. void MarkNetworkUpdate() const;
  4319. void Remove();
  4320. void RemoveAllChildren();
  4321. void RemoveAllItems();
  4322. void RemoveAllTags();
  4323. void RemoveAttributeAnimation(const String&);
  4324. void RemoveChild(UIElement, uint = 0);
  4325. void RemoveChild(uint);
  4326. void RemoveInstanceDefault();
  4327. void RemoveItem(UIElement);
  4328. void RemoveItem(uint);
  4329. void RemoveObjectAnimation();
  4330. bool RemoveTag(const String&);
  4331. void ResetDeepEnabled();
  4332. void ResetToDefault();
  4333. bool Save(File) const;
  4334. bool Save(VectorBuffer&) const;
  4335. bool SaveJSON(JSONValue&) const;
  4336. bool SaveXML(File, const String& = "\t");
  4337. bool SaveXML(VectorBuffer&, const String& = "\t");
  4338. bool SaveXML(XMLElement&) const;
  4339. IntVector2 ScreenToElement(const IntVector2&);
  4340. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4341. void SetAccelerator(int, int);
  4342. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4343. void SetAnimationTime(float);
  4344. bool SetAttribute(const String&, const Variant&);
  4345. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4346. void SetAttributeAnimationSpeed(const String&, float);
  4347. void SetAttributeAnimationTime(const String&, float);
  4348. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4349. void SetDeepEnabled(bool);
  4350. void SetEnabledRecursive(bool);
  4351. void SetFixedHeight(int);
  4352. void SetFixedSize(int, int);
  4353. void SetFixedWidth(int);
  4354. void SetFullImageRect();
  4355. void SetHoverOffset(int, int);
  4356. void SetInterceptNetworkUpdate(const String&, bool);
  4357. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4358. void SetMaxSize(int, int);
  4359. void SetMinSize(int, int);
  4360. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4361. void SetPosition(int, int);
  4362. void SetPressedChildOffset(int, int);
  4363. void SetPressedOffset(int, int);
  4364. void SetRepeat(float, float);
  4365. void SetSize(int, int);
  4366. bool SetStyle(const String&, XMLFile = null);
  4367. bool SetStyle(const XMLElement&);
  4368. bool SetStyleAuto(XMLFile = null);
  4369. void UpdateLayout();
  4370. const Variant& GetVar(const StringHash&);
  4371. UIElement getPopup() const;
  4372. // Properties:
  4373. /* readonly */
  4374. int acceleratorKey;
  4375. /* readonly */
  4376. int acceleratorQualifiers;
  4377. bool animationEnabled;
  4378. /* readonly */
  4379. Array<Variant> attributeDefaults;
  4380. /* readonly */
  4381. Array<AttributeInfo> attributeInfos;
  4382. Array<Variant> attributes;
  4383. BlendMode blendMode;
  4384. IntRect border;
  4385. bool bringToBack;
  4386. bool bringToFront;
  4387. /* readonly */
  4388. String category;
  4389. /* readonly */
  4390. IntVector2 childOffset;
  4391. /* readonly */
  4392. Array<UIElement> children;
  4393. IntRect clipBorder;
  4394. bool clipChildren;
  4395. /* writeonly */
  4396. Color color;
  4397. /* readonly */
  4398. bool colorGradient;
  4399. Array<Color> colors;
  4400. /* readonly */
  4401. IntRect combinedScreenRect;
  4402. XMLFile defaultStyle;
  4403. /* readonly */
  4404. float derivedOpacity;
  4405. /* readonly */
  4406. uint dragButtonCombo;
  4407. /* readonly */
  4408. int dragButtonCount;
  4409. uint dragDropMode;
  4410. bool editable;
  4411. bool elementEventSender;
  4412. bool enabled;
  4413. /* readonly */
  4414. bool enabledSelf;
  4415. /* readonly */
  4416. bool fixedHeight;
  4417. /* readonly */
  4418. bool fixedSize;
  4419. /* readonly */
  4420. bool fixedWidth;
  4421. bool focus;
  4422. FocusMode focusMode;
  4423. int height;
  4424. HorizontalAlignment horizontalAlignment;
  4425. IntVector2 hoverOffset;
  4426. /* readonly */
  4427. bool hovering;
  4428. IntRect imageBorder;
  4429. IntRect imageRect;
  4430. int indent;
  4431. int indentSpacing;
  4432. /* readonly */
  4433. int indentWidth;
  4434. bool internal;
  4435. /* readonly */
  4436. Array<UIElement> items;
  4437. IntRect layoutBorder;
  4438. Vector2 layoutFlexScale;
  4439. LayoutMode layoutMode;
  4440. int layoutSpacing;
  4441. /* readonly */
  4442. ListView listView;
  4443. int maxHeight;
  4444. IntVector2 maxSize;
  4445. int maxWidth;
  4446. int minHeight;
  4447. IntVector2 minSize;
  4448. int minWidth;
  4449. String name;
  4450. /* readonly */
  4451. uint numAllChildren;
  4452. /* readonly */
  4453. uint numAttributes;
  4454. /* readonly */
  4455. uint numChildren;
  4456. /* readonly */
  4457. uint numItems;
  4458. ObjectAnimation objectAnimation;
  4459. float opacity;
  4460. UIElement parent;
  4461. /* readonly */
  4462. UIElement placeholder;
  4463. String placeholderText;
  4464. IntVector2 position;
  4465. /* readonly */
  4466. bool pressed;
  4467. IntVector2 pressedChildOffset;
  4468. IntVector2 pressedOffset;
  4469. int priority;
  4470. /* readonly */
  4471. int refs;
  4472. float repeatDelay;
  4473. float repeatRate;
  4474. bool resizePopup;
  4475. /* readonly */
  4476. UIElement root;
  4477. /* readonly */
  4478. IntVector2 screenPosition;
  4479. bool selected;
  4480. /* readonly */
  4481. UIElement selectedItem;
  4482. uint selection;
  4483. bool showPopup;
  4484. IntVector2 size;
  4485. bool sortChildren;
  4486. String style;
  4487. /* readonly */
  4488. Array<String> tags;
  4489. bool temporary;
  4490. Texture texture;
  4491. bool tiled;
  4492. TraversalMode traversalMode;
  4493. /* readonly */
  4494. StringHash type;
  4495. /* readonly */
  4496. String typeName;
  4497. bool useDerivedOpacity;
  4498. /* readonly */
  4499. VariantMap vars;
  4500. VerticalAlignment verticalAlignment;
  4501. bool visible;
  4502. /* readonly */
  4503. bool visibleEffective;
  4504. /* readonly */
  4505. int weakRefs;
  4506. int width;
  4507. };
  4508. class DynamicNavigationMesh
  4509. {
  4510. // Methods:
  4511. void ApplyAttributes();
  4512. bool Build();
  4513. bool Build(const BoundingBox&);
  4514. void DrawDebugGeometry(DebugRenderer, bool);
  4515. void DrawDebugGeometry(bool);
  4516. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4517. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4518. float GetAreaCost(uint) const;
  4519. Variant GetAttribute(const String&) const;
  4520. ValueAnimation GetAttributeAnimation(const String&) const;
  4521. float GetAttributeAnimationSpeed(const String&) const;
  4522. float GetAttributeAnimationTime(const String&) const;
  4523. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4524. Variant GetAttributeDefault(const String&) const;
  4525. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4526. bool GetInterceptNetworkUpdate(const String&) const;
  4527. Vector3 GetRandomPoint();
  4528. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4529. bool HasSubscribedToEvent(Object, const String&);
  4530. bool HasSubscribedToEvent(const String&);
  4531. bool Load(File, bool = false);
  4532. bool Load(VectorBuffer&, bool = false);
  4533. bool LoadJSON(const JSONValue&, bool = false);
  4534. bool LoadXML(const XMLElement&, bool = false);
  4535. void MarkNetworkUpdate() const;
  4536. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4537. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4538. void Remove();
  4539. void RemoveAttributeAnimation(const String&);
  4540. void RemoveInstanceDefault();
  4541. void RemoveObjectAnimation();
  4542. void ResetToDefault();
  4543. bool Save(File) const;
  4544. bool Save(VectorBuffer&) const;
  4545. bool SaveJSON(JSONValue&) const;
  4546. bool SaveXML(XMLElement&) const;
  4547. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4548. void SetAnimationTime(float);
  4549. void SetAreaCost(uint, float);
  4550. bool SetAttribute(const String&, const Variant&);
  4551. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4552. void SetAttributeAnimationSpeed(const String&, float);
  4553. void SetAttributeAnimationTime(const String&, float);
  4554. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4555. void SetInterceptNetworkUpdate(const String&, bool);
  4556. // Properties:
  4557. float agentHeight;
  4558. float agentMaxClimb;
  4559. float agentMaxSlope;
  4560. float agentRadius;
  4561. bool animationEnabled;
  4562. /* readonly */
  4563. Array<Variant> attributeDefaults;
  4564. /* readonly */
  4565. Array<AttributeInfo> attributeInfos;
  4566. Array<Variant> attributes;
  4567. /* readonly */
  4568. BoundingBox boundingBox;
  4569. /* readonly */
  4570. String category;
  4571. float cellHeight;
  4572. float cellSize;
  4573. float detailSampleDistance;
  4574. float detailSampleMaxError;
  4575. bool drawNavAreas;
  4576. bool drawObstacles;
  4577. bool drawOffMeshConnections;
  4578. float edgeMaxError;
  4579. float edgeMaxLength;
  4580. bool enabled;
  4581. /* readonly */
  4582. bool enabledEffective;
  4583. /* readonly */
  4584. uint id;
  4585. /* readonly */
  4586. bool initialized;
  4587. bool maxLayers;
  4588. uint maxObstacles;
  4589. /* readonly */
  4590. Node node;
  4591. /* readonly */
  4592. uint numAttributes;
  4593. /* readonly */
  4594. IntVector2 numTiles;
  4595. ObjectAnimation objectAnimation;
  4596. Vector3 padding;
  4597. NavmeshPartitionType partitionType;
  4598. /* readonly */
  4599. int refs;
  4600. float regionMergeSize;
  4601. float regionMinSize;
  4602. bool temporary;
  4603. int tileSize;
  4604. /* readonly */
  4605. StringHash type;
  4606. /* readonly */
  4607. String typeName;
  4608. /* readonly */
  4609. int weakRefs;
  4610. /* readonly */
  4611. BoundingBox worldBoundingBox;
  4612. };
  4613. class Engine
  4614. {
  4615. // Methods:
  4616. Console CreateConsole();
  4617. DebugHud CreateDebugHud();
  4618. void DumpMemory();
  4619. void DumpProfiler();
  4620. void DumpResources(bool = false);
  4621. void Exit();
  4622. bool HasSubscribedToEvent(Object, const String&);
  4623. bool HasSubscribedToEvent(const String&);
  4624. void RunFrame();
  4625. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4626. // Properties:
  4627. bool autoExit;
  4628. /* readonly */
  4629. String category;
  4630. /* readonly */
  4631. bool exiting;
  4632. /* readonly */
  4633. bool headless;
  4634. /* readonly */
  4635. bool initialized;
  4636. int maxFps;
  4637. int maxInactiveFps;
  4638. int minFps;
  4639. bool pauseMinimized;
  4640. /* readonly */
  4641. int refs;
  4642. int timeStepSmoothing;
  4643. /* readonly */
  4644. StringHash type;
  4645. /* readonly */
  4646. String typeName;
  4647. /* readonly */
  4648. int weakRefs;
  4649. };
  4650. class File
  4651. {
  4652. // Methods:
  4653. void Close();
  4654. bool HasSubscribedToEvent(Object, const String&);
  4655. bool HasSubscribedToEvent(const String&);
  4656. bool Open(const String&, FileMode = FILE_READ);
  4657. Array<uint8> Read(uint);
  4658. bool ReadBool();
  4659. BoundingBox ReadBoundingBox();
  4660. int8 ReadByte();
  4661. Color ReadColor();
  4662. double ReadDouble();
  4663. String ReadFileID();
  4664. float ReadFloat();
  4665. int ReadInt();
  4666. IntRect ReadIntRect();
  4667. IntVector2 ReadIntVector2();
  4668. String ReadLine();
  4669. Matrix3 ReadMatrix3();
  4670. Matrix3x4 ReadMatrix3x4();
  4671. Matrix4 ReadMatrix4();
  4672. uint ReadNetID();
  4673. Quaternion ReadPackedQuaternion();
  4674. Vector3 ReadPackedVector3(float);
  4675. Quaternion ReadQuaternion();
  4676. int16 ReadShort();
  4677. String ReadString();
  4678. StringHash ReadStringHash();
  4679. uint8 ReadUByte();
  4680. uint ReadUInt();
  4681. uint16 ReadUShort();
  4682. uint ReadVLE();
  4683. Variant ReadVariant();
  4684. VariantMap ReadVariantMap();
  4685. Vector2 ReadVector2();
  4686. Vector3 ReadVector3();
  4687. Vector4 ReadVector4();
  4688. VectorBuffer ReadVectorBuffer(uint);
  4689. uint Seek(uint);
  4690. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4691. uint Write(Array<uint8>);
  4692. bool WriteBool(bool);
  4693. bool WriteBoundingBox(const BoundingBox&);
  4694. bool WriteByte(int8);
  4695. bool WriteColor(const Color&);
  4696. bool WriteDouble(double);
  4697. bool WriteFileID(const String&);
  4698. bool WriteFloat(float);
  4699. bool WriteInt(int);
  4700. bool WriteIntRect(const IntRect&);
  4701. bool WriteIntVector2(const IntVector2&);
  4702. bool WriteLine(const String&);
  4703. bool WriteMatrix3(const Matrix3&);
  4704. bool WriteMatrix3x4(const Matrix3x4&);
  4705. bool WriteMatrix4(const Matrix4&);
  4706. bool WriteNetID(uint);
  4707. bool WritePackedQuaternion(const Quaternion&);
  4708. bool WritePackedVector3(const Vector3&, float);
  4709. bool WriteQuaternion(const Quaternion&);
  4710. bool WriteShort(int16);
  4711. bool WriteString(const String&);
  4712. bool WriteStringHash(const StringHash&);
  4713. bool WriteUByte(uint8);
  4714. bool WriteUInt(uint);
  4715. bool WriteUShort(uint16);
  4716. bool WriteVLE(uint);
  4717. bool WriteVariant(const Variant&);
  4718. bool WriteVariantMap(const VariantMap&);
  4719. bool WriteVector2(const Vector2&);
  4720. bool WriteVector3(const Vector3&);
  4721. bool WriteVector4(const Vector4&);
  4722. bool WriteVectorBuffer(const VectorBuffer&);
  4723. // Properties:
  4724. /* readonly */
  4725. String category;
  4726. /* readonly */
  4727. uint checksum;
  4728. /* readonly */
  4729. bool eof;
  4730. /* readonly */
  4731. FileMode mode;
  4732. /* readonly */
  4733. String name;
  4734. /* readonly */
  4735. bool open;
  4736. /* readonly */
  4737. bool packaged;
  4738. /* readonly */
  4739. uint position;
  4740. /* readonly */
  4741. int refs;
  4742. /* readonly */
  4743. uint size;
  4744. /* readonly */
  4745. StringHash type;
  4746. /* readonly */
  4747. String typeName;
  4748. /* readonly */
  4749. int weakRefs;
  4750. };
  4751. class FileSelector
  4752. {
  4753. // Methods:
  4754. bool HasSubscribedToEvent(Object, const String&);
  4755. bool HasSubscribedToEvent(const String&);
  4756. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4757. void SetButtonTexts(const String&, const String&);
  4758. void SetFilters(Array<String>, uint);
  4759. void UpdateElements();
  4760. // Properties:
  4761. /* readonly */
  4762. Button cancelButton;
  4763. /* readonly */
  4764. String category;
  4765. XMLFile defaultStyle;
  4766. bool directoryMode;
  4767. /* readonly */
  4768. ListView fileList;
  4769. String fileName;
  4770. /* readonly */
  4771. LineEdit fileNameEdit;
  4772. /* readonly */
  4773. String filter;
  4774. /* readonly */
  4775. uint filterIndex;
  4776. /* readonly */
  4777. DropDownList filterList;
  4778. /* readonly */
  4779. Button okButton;
  4780. String path;
  4781. /* readonly */
  4782. LineEdit pathEdit;
  4783. /* readonly */
  4784. int refs;
  4785. String title;
  4786. /* readonly */
  4787. Text titleText;
  4788. /* readonly */
  4789. StringHash type;
  4790. /* readonly */
  4791. String typeName;
  4792. /* readonly */
  4793. int weakRefs;
  4794. /* readonly */
  4795. Window window;
  4796. };
  4797. class FileSystem
  4798. {
  4799. // Methods:
  4800. bool Copy(const String&, const String&);
  4801. bool CreateDir(const String&);
  4802. bool Delete(const String&);
  4803. bool DirExists(const String&) const;
  4804. bool FileExists(const String&) const;
  4805. String GetAppPreferencesDir(const String&, const String&) const;
  4806. uint GetLastModifiedTime(const String&) const;
  4807. bool HasSubscribedToEvent(Object, const String&);
  4808. bool HasSubscribedToEvent(const String&);
  4809. bool Rename(const String&, const String&);
  4810. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4811. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4812. bool SetLastModifiedTime(const String&, uint);
  4813. int SystemCommand(const String&, bool = false);
  4814. uint SystemCommandAsync(const String&);
  4815. bool SystemOpen(const String&, const String&);
  4816. int SystemRun(const String&, Array<String>);
  4817. uint SystemRunAsync(const String&, Array<String>);
  4818. // Properties:
  4819. /* readonly */
  4820. String category;
  4821. String currentDir;
  4822. bool executeConsoleCommands;
  4823. /* readonly */
  4824. String programDir;
  4825. /* readonly */
  4826. int refs;
  4827. /* readonly */
  4828. StringHash type;
  4829. /* readonly */
  4830. String typeName;
  4831. /* readonly */
  4832. String userDocumentsDir;
  4833. /* readonly */
  4834. int weakRefs;
  4835. };
  4836. class FocusParameters
  4837. {
  4838. // Properties:
  4839. bool autoSize;
  4840. bool focus;
  4841. float minView;
  4842. bool nonUniform;
  4843. float quantize;
  4844. };
  4845. class Font
  4846. {
  4847. // Methods:
  4848. IntVector2 GetTotalGlyphOffset(int) const;
  4849. bool HasSubscribedToEvent(Object, const String&);
  4850. bool HasSubscribedToEvent(const String&);
  4851. bool Load(File);
  4852. bool Load(VectorBuffer&);
  4853. bool Save(File) const;
  4854. bool Save(VectorBuffer&) const;
  4855. bool SaveXML(File, int, bool = false, const String& = "\t");
  4856. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4857. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4858. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4859. // Properties:
  4860. IntVector2 absoluteGlyphOffset;
  4861. /* readonly */
  4862. String category;
  4863. /* readonly */
  4864. uint memoryUse;
  4865. String name;
  4866. /* readonly */
  4867. int refs;
  4868. Vector2 scaledGlyphOffset;
  4869. /* readonly */
  4870. StringHash type;
  4871. /* readonly */
  4872. String typeName;
  4873. /* readonly */
  4874. uint useTimer;
  4875. /* readonly */
  4876. int weakRefs;
  4877. };
  4878. class Frustum
  4879. {
  4880. // Methods:
  4881. void Define(const BoundingBox&, const Matrix3x4&);
  4882. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4883. void Define(float, float, float, float, float, const Matrix3x4&);
  4884. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4885. float Distance(const Vector3&) const;
  4886. Intersection IsInside(const BoundingBox&);
  4887. Intersection IsInside(const Sphere&);
  4888. Intersection IsInside(const Vector3&);
  4889. Intersection IsInsideFast(const BoundingBox&) const;
  4890. Intersection IsInsideFast(const Sphere&) const;
  4891. void Transform(const Matrix3&);
  4892. void Transform(const Matrix3x4&);
  4893. Frustum Transformed(const Matrix3&) const;
  4894. Frustum Transformed(const Matrix3x4&) const;
  4895. // Properties:
  4896. /* readonly */
  4897. Array<Vector3> vertices;
  4898. };
  4899. class Geometry
  4900. {
  4901. // Methods:
  4902. bool HasSubscribedToEvent(Object, const String&);
  4903. bool HasSubscribedToEvent(const String&);
  4904. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4905. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4906. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4907. void SetIndexBuffer(IndexBuffer);
  4908. bool SetVertexBuffer(uint, VertexBuffer);
  4909. // Properties:
  4910. /* readonly */
  4911. String category;
  4912. /* readonly */
  4913. bool empty;
  4914. IndexBuffer indexBuffer;
  4915. /* readonly */
  4916. uint indexCount;
  4917. /* readonly */
  4918. uint indexStart;
  4919. float lodDistance;
  4920. uint numVertexBuffers;
  4921. /* readonly */
  4922. PrimitiveType primitiveType;
  4923. /* readonly */
  4924. int refs;
  4925. /* readonly */
  4926. StringHash type;
  4927. /* readonly */
  4928. String typeName;
  4929. /* readonly */
  4930. Array<VertexBuffer> vertexBuffers;
  4931. /* readonly */
  4932. uint vertexCount;
  4933. /* readonly */
  4934. uint vertexStart;
  4935. /* readonly */
  4936. int weakRefs;
  4937. };
  4938. class Graphics
  4939. {
  4940. // Methods:
  4941. void BeginDumpShaders(const String&);
  4942. void Close();
  4943. void EndDumpShaders();
  4944. bool HasSubscribedToEvent(Object, const String&);
  4945. bool HasSubscribedToEvent(const String&);
  4946. void Maximize();
  4947. void Minimize();
  4948. void PrecacheShaders(File);
  4949. void PrecacheShaders(VectorBuffer&);
  4950. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4951. bool SetMode(int, int);
  4952. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  4953. void SetWindowPosition(int, int);
  4954. bool TakeScreenShot(Image);
  4955. bool ToggleFullscreen();
  4956. // Properties:
  4957. /* readonly */
  4958. String apiName;
  4959. /* readonly */
  4960. bool borderless;
  4961. /* readonly */
  4962. String category;
  4963. /* readonly */
  4964. bool deferredSupport;
  4965. /* readonly */
  4966. IntVector2 desktopResolution;
  4967. /* readonly */
  4968. bool deviceLost;
  4969. bool flushGPU;
  4970. /* readonly */
  4971. bool fullscreen;
  4972. /* readonly */
  4973. bool hardwareShadowSupport;
  4974. /* readonly */
  4975. int height;
  4976. /* readonly */
  4977. bool initialized;
  4978. /* readonly */
  4979. bool instancingSupport;
  4980. /* readonly */
  4981. bool lightPrepassSupport;
  4982. /* readonly */
  4983. int multiSample;
  4984. /* readonly */
  4985. Array<int> multiSampleLevels;
  4986. /* readonly */
  4987. uint numBatches;
  4988. /* readonly */
  4989. uint numPrimitives;
  4990. String orientations;
  4991. /* readonly */
  4992. bool readableDepthSupport;
  4993. /* readonly */
  4994. int refs;
  4995. /* readonly */
  4996. bool resizable;
  4997. /* readonly */
  4998. Array<IntVector2> resolutions;
  4999. bool sRGB;
  5000. /* readonly */
  5001. bool sRGBSupport;
  5002. /* readonly */
  5003. bool sRGBWriteSupport;
  5004. /* readonly */
  5005. bool tripleBuffer;
  5006. /* readonly */
  5007. StringHash type;
  5008. /* readonly */
  5009. String typeName;
  5010. /* readonly */
  5011. bool vsync;
  5012. /* readonly */
  5013. int weakRefs;
  5014. /* readonly */
  5015. int width;
  5016. /* writeonly */
  5017. Image windowIcon;
  5018. IntVector2 windowPosition;
  5019. String windowTitle;
  5020. };
  5021. class HttpRequest
  5022. {
  5023. // Methods:
  5024. Array<uint8> Read(uint);
  5025. bool ReadBool();
  5026. BoundingBox ReadBoundingBox();
  5027. int8 ReadByte();
  5028. Color ReadColor();
  5029. double ReadDouble();
  5030. String ReadFileID();
  5031. float ReadFloat();
  5032. int ReadInt();
  5033. IntRect ReadIntRect();
  5034. IntVector2 ReadIntVector2();
  5035. String ReadLine();
  5036. Matrix3 ReadMatrix3();
  5037. Matrix3x4 ReadMatrix3x4();
  5038. Matrix4 ReadMatrix4();
  5039. uint ReadNetID();
  5040. Quaternion ReadPackedQuaternion();
  5041. Vector3 ReadPackedVector3(float);
  5042. Quaternion ReadQuaternion();
  5043. int16 ReadShort();
  5044. String ReadString();
  5045. StringHash ReadStringHash();
  5046. uint8 ReadUByte();
  5047. uint ReadUInt();
  5048. uint16 ReadUShort();
  5049. uint ReadVLE();
  5050. Variant ReadVariant();
  5051. VariantMap ReadVariantMap();
  5052. Vector2 ReadVector2();
  5053. Vector3 ReadVector3();
  5054. Vector4 ReadVector4();
  5055. VectorBuffer ReadVectorBuffer(uint);
  5056. uint Seek(uint);
  5057. // Properties:
  5058. /* readonly */
  5059. uint availableSize;
  5060. /* readonly */
  5061. uint checksum;
  5062. /* readonly */
  5063. bool eof;
  5064. /* readonly */
  5065. String error;
  5066. /* readonly */
  5067. String name;
  5068. /* readonly */
  5069. bool open;
  5070. /* readonly */
  5071. uint position;
  5072. /* readonly */
  5073. int refs;
  5074. /* readonly */
  5075. uint size;
  5076. /* readonly */
  5077. HttpRequestState state;
  5078. /* readonly */
  5079. String url;
  5080. /* readonly */
  5081. String verb;
  5082. /* readonly */
  5083. int weakRefs;
  5084. };
  5085. class Image
  5086. {
  5087. // Methods:
  5088. void Clear(const Color&);
  5089. void ClearInt(uint);
  5090. bool FlipHorizontal();
  5091. bool FlipVertical();
  5092. Color GetPixel(int, int) const;
  5093. Color GetPixel(int, int, int) const;
  5094. Color GetPixelBilinear(float, float) const;
  5095. uint GetPixelInt(int, int) const;
  5096. uint GetPixelInt(int, int, int) const;
  5097. Color GetPixelTrilinear(float, float, float) const;
  5098. Image GetSubimage(const IntRect&) const;
  5099. bool HasSubscribedToEvent(Object, const String&);
  5100. bool HasSubscribedToEvent(const String&);
  5101. bool Load(File);
  5102. bool Load(VectorBuffer&);
  5103. bool LoadColorLUT(File);
  5104. bool LoadColorLUT(VectorBuffer&);
  5105. bool Resize(int, int);
  5106. bool Save(File) const;
  5107. bool Save(VectorBuffer&) const;
  5108. bool SaveBMP(const String&) const;
  5109. bool SaveJPG(const String&, int) const;
  5110. bool SavePNG(const String&) const;
  5111. bool SaveTGA(const String&) const;
  5112. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5113. void SetPixel(int, int, const Color&);
  5114. void SetPixel(int, int, int, const Color&);
  5115. void SetPixelInt(int, int, int, uint);
  5116. void SetPixelInt(int, int, uint);
  5117. bool SetSize(int, int, int, uint);
  5118. bool SetSize(int, int, uint);
  5119. // Properties:
  5120. /* readonly */
  5121. bool array;
  5122. /* readonly */
  5123. String category;
  5124. /* readonly */
  5125. uint components;
  5126. /* readonly */
  5127. bool compressed;
  5128. /* readonly */
  5129. CompressedFormat compressedFormat;
  5130. /* readonly */
  5131. bool cubemap;
  5132. /* readonly */
  5133. int depth;
  5134. /* readonly */
  5135. int height;
  5136. /* readonly */
  5137. uint memoryUse;
  5138. String name;
  5139. /* readonly */
  5140. uint numCompressedLevels;
  5141. /* readonly */
  5142. int refs;
  5143. /* readonly */
  5144. bool sRGB;
  5145. /* readonly */
  5146. StringHash type;
  5147. /* readonly */
  5148. String typeName;
  5149. /* readonly */
  5150. uint useTimer;
  5151. /* readonly */
  5152. int weakRefs;
  5153. /* readonly */
  5154. int width;
  5155. };
  5156. class IndexBuffer
  5157. {
  5158. // Methods:
  5159. VectorBuffer GetData();
  5160. bool HasSubscribedToEvent(Object, const String&);
  5161. bool HasSubscribedToEvent(const String&);
  5162. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5163. bool SetData(VectorBuffer&);
  5164. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5165. void SetSize(uint, bool, bool = false);
  5166. // Properties:
  5167. /* readonly */
  5168. String category;
  5169. /* readonly */
  5170. bool dynamic;
  5171. /* readonly */
  5172. uint indexCount;
  5173. /* readonly */
  5174. uint indexSize;
  5175. /* readonly */
  5176. int refs;
  5177. bool shadowed;
  5178. /* readonly */
  5179. StringHash type;
  5180. /* readonly */
  5181. String typeName;
  5182. /* readonly */
  5183. int weakRefs;
  5184. };
  5185. class Input
  5186. {
  5187. // Methods:
  5188. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5189. int GetKeyFromName(const String&) const;
  5190. int GetKeyFromScancode(int) const;
  5191. String GetKeyName(int) const;
  5192. int GetScancodeFromKey(int) const;
  5193. int GetScancodeFromName(const String&) const;
  5194. String GetScancodeName(int) const;
  5195. bool HasSubscribedToEvent(Object, const String&);
  5196. bool HasSubscribedToEvent(const String&);
  5197. uint LoadGestures(File);
  5198. uint LoadGestures(VectorBuffer&);
  5199. bool RecordGesture();
  5200. void RemoveAllGestures();
  5201. bool RemoveGesture(uint);
  5202. bool RemoveScreenJoystick(int);
  5203. void ResetMouseGrabbed();
  5204. void ResetMouseMode();
  5205. void ResetMouseVisible();
  5206. bool SaveGesture(File, uint);
  5207. bool SaveGesture(VectorBuffer&, uint);
  5208. bool SaveGestures(File);
  5209. bool SaveGestures(VectorBuffer&);
  5210. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5211. void SetMouseGrabbed(bool, bool = false);
  5212. void SetMouseMode(MouseMode, bool = false);
  5213. void SetMouseVisible(bool, bool = false);
  5214. // Properties:
  5215. /* readonly */
  5216. String category;
  5217. /* readonly */
  5218. bool focus;
  5219. /* readonly */
  5220. Array<JoystickState> joysticks;
  5221. /* readonly */
  5222. Array<JoystickState> joysticksByIndex;
  5223. /* readonly */
  5224. Array<JoystickState> joysticksByName;
  5225. /* readonly */
  5226. Array<bool> keyDown;
  5227. /* readonly */
  5228. Array<bool> keyPress;
  5229. /* readonly */
  5230. bool minimized;
  5231. /* readonly */
  5232. Array<bool> mouseButtonDown;
  5233. /* readonly */
  5234. Array<bool> mouseButtonPress;
  5235. bool mouseGrabbed;
  5236. /* readonly */
  5237. bool mouseLocked;
  5238. MouseMode mouseMode;
  5239. /* readonly */
  5240. IntVector2 mouseMove;
  5241. /* readonly */
  5242. int mouseMoveWheel;
  5243. /* readonly */
  5244. int mouseMoveX;
  5245. /* readonly */
  5246. int mouseMoveY;
  5247. /* readonly */
  5248. IntVector2 mousePosition;
  5249. bool mouseVisible;
  5250. /* readonly */
  5251. uint numJoysticks;
  5252. /* readonly */
  5253. uint numTouches;
  5254. /* readonly */
  5255. Array<bool> qualifierDown;
  5256. /* readonly */
  5257. Array<bool> qualifierPress;
  5258. /* readonly */
  5259. int qualifiers;
  5260. /* readonly */
  5261. int refs;
  5262. /* readonly */
  5263. Array<bool> scancodeDown;
  5264. /* readonly */
  5265. Array<bool> scancodePress;
  5266. Array<bool> screenJoystickVisible;
  5267. /* readonly */
  5268. bool screenKeyboardSupport;
  5269. bool screenKeyboardVisible;
  5270. bool toggleFullscreen;
  5271. bool touchEmulation;
  5272. /* readonly */
  5273. Array<TouchState> touches;
  5274. /* readonly */
  5275. StringHash type;
  5276. /* readonly */
  5277. String typeName;
  5278. /* readonly */
  5279. int weakRefs;
  5280. };
  5281. class IntRect
  5282. {
  5283. // Methods:
  5284. Intersection IsInside(const IntVector2&) const;
  5285. // Properties:
  5286. int bottom;
  5287. /* readonly */
  5288. Array<int> data;
  5289. /* readonly */
  5290. int height;
  5291. int left;
  5292. int right;
  5293. /* readonly */
  5294. IntVector2 size;
  5295. int top;
  5296. /* readonly */
  5297. int width;
  5298. };
  5299. class IntVector2
  5300. {
  5301. // Methods:
  5302. String ToString() const;
  5303. // Properties:
  5304. /* readonly */
  5305. Array<int> data;
  5306. int x;
  5307. int y;
  5308. };
  5309. class JSONFile
  5310. {
  5311. // Methods:
  5312. JSONValue& GetRoot();
  5313. bool HasSubscribedToEvent(Object, const String&);
  5314. bool HasSubscribedToEvent(const String&);
  5315. bool Load(File);
  5316. bool Load(VectorBuffer&);
  5317. bool Save(File) const;
  5318. bool Save(File, const String&) const;
  5319. bool Save(VectorBuffer&) const;
  5320. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5321. // Properties:
  5322. /* readonly */
  5323. String category;
  5324. /* readonly */
  5325. uint memoryUse;
  5326. String name;
  5327. /* readonly */
  5328. int refs;
  5329. /* readonly */
  5330. JSONValue root;
  5331. /* readonly */
  5332. StringHash type;
  5333. /* readonly */
  5334. String typeName;
  5335. /* readonly */
  5336. uint useTimer;
  5337. /* readonly */
  5338. int weakRefs;
  5339. };
  5340. class JSONValue
  5341. {
  5342. // Methods:
  5343. void Clear();
  5344. bool Contains(const String&) const;
  5345. void Erase(const String&);
  5346. void Erase(uint, uint = 1);
  5347. bool GetBool() const;
  5348. double GetDouble() const;
  5349. float GetFloat() const;
  5350. int GetInt() const;
  5351. uint GetUInt() const;
  5352. void Insert(uint, const JSONValue&);
  5353. const JSONValue& Get(const String&) const;
  5354. void Pop();
  5355. void Push(const JSONValue&);
  5356. void Resize(uint);
  5357. void Set(const String&, const JSONValue&);
  5358. const String& GetString() const;
  5359. // Properties:
  5360. /* readonly */
  5361. bool isArray;
  5362. /* readonly */
  5363. bool isBool;
  5364. /* readonly */
  5365. bool isNull;
  5366. /* readonly */
  5367. bool isNumber;
  5368. /* readonly */
  5369. bool isObject;
  5370. /* readonly */
  5371. bool isString;
  5372. /* readonly */
  5373. uint size;
  5374. /* readonly */
  5375. JSONValueType valueType;
  5376. };
  5377. class JoystickState
  5378. {
  5379. // Properties:
  5380. /* readonly */
  5381. Array<float> axisPosition;
  5382. /* readonly */
  5383. Array<bool> buttonDown;
  5384. /* readonly */
  5385. Array<bool> buttonPress;
  5386. /* readonly */
  5387. bool controller;
  5388. /* readonly */
  5389. Array<int> hatPosition;
  5390. int joystickID;
  5391. String name;
  5392. /* readonly */
  5393. uint numAxes;
  5394. /* readonly */
  5395. uint numButtons;
  5396. /* readonly */
  5397. uint numHats;
  5398. };
  5399. class Light
  5400. {
  5401. // Methods:
  5402. void ApplyAttributes();
  5403. void DrawDebugGeometry(DebugRenderer, bool);
  5404. Variant GetAttribute(const String&) const;
  5405. ValueAnimation GetAttributeAnimation(const String&) const;
  5406. float GetAttributeAnimationSpeed(const String&) const;
  5407. float GetAttributeAnimationTime(const String&) const;
  5408. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5409. Variant GetAttributeDefault(const String&) const;
  5410. bool GetInterceptNetworkUpdate(const String&) const;
  5411. bool HasSubscribedToEvent(Object, const String&);
  5412. bool HasSubscribedToEvent(const String&);
  5413. bool IsInView(Camera) const;
  5414. bool Load(File, bool = false);
  5415. bool Load(VectorBuffer&, bool = false);
  5416. bool LoadJSON(const JSONValue&, bool = false);
  5417. bool LoadXML(const XMLElement&, bool = false);
  5418. void MarkNetworkUpdate() const;
  5419. void Remove();
  5420. void RemoveAttributeAnimation(const String&);
  5421. void RemoveInstanceDefault();
  5422. void RemoveObjectAnimation();
  5423. void ResetToDefault();
  5424. bool Save(File) const;
  5425. bool Save(VectorBuffer&) const;
  5426. bool SaveJSON(JSONValue&) const;
  5427. bool SaveXML(XMLElement&) const;
  5428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5429. void SetAnimationTime(float);
  5430. bool SetAttribute(const String&, const Variant&);
  5431. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5432. void SetAttributeAnimationSpeed(const String&, float);
  5433. void SetAttributeAnimationTime(const String&, float);
  5434. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5435. void SetInterceptNetworkUpdate(const String&, bool);
  5436. // Properties:
  5437. bool animationEnabled;
  5438. float aspectRatio;
  5439. /* readonly */
  5440. Array<Variant> attributeDefaults;
  5441. /* readonly */
  5442. Array<AttributeInfo> attributeInfos;
  5443. Array<Variant> attributes;
  5444. /* readonly */
  5445. BoundingBox boundingBox;
  5446. float brightness;
  5447. bool castShadows;
  5448. /* readonly */
  5449. String category;
  5450. Color color;
  5451. float drawDistance;
  5452. /* readonly */
  5453. Color effectiveColor;
  5454. /* readonly */
  5455. float effectiveSpecularIntensity;
  5456. bool enabled;
  5457. /* readonly */
  5458. bool enabledEffective;
  5459. float fadeDistance;
  5460. float fov;
  5461. /* readonly */
  5462. Frustum frustum;
  5463. /* readonly */
  5464. uint id;
  5465. /* readonly */
  5466. bool inView;
  5467. uint lightMask;
  5468. LightType lightType;
  5469. float lodBias;
  5470. uint maxLights;
  5471. /* readonly */
  5472. bool negative;
  5473. /* readonly */
  5474. Node node;
  5475. /* readonly */
  5476. uint numAttributes;
  5477. /* readonly */
  5478. int numShadowSplits;
  5479. ObjectAnimation objectAnimation;
  5480. bool occludee;
  5481. bool occluder;
  5482. bool perVertex;
  5483. Texture rampTexture;
  5484. float range;
  5485. /* readonly */
  5486. int refs;
  5487. BiasParameters shadowBias;
  5488. CascadeParameters shadowCascade;
  5489. float shadowDistance;
  5490. float shadowFadeDistance;
  5491. FocusParameters shadowFocus;
  5492. float shadowIntensity;
  5493. uint shadowMask;
  5494. float shadowNearFarRatio;
  5495. float shadowResolution;
  5496. Texture shapeTexture;
  5497. float specularIntensity;
  5498. bool temporary;
  5499. /* readonly */
  5500. StringHash type;
  5501. /* readonly */
  5502. String typeName;
  5503. uint viewMask;
  5504. /* readonly */
  5505. int weakRefs;
  5506. /* readonly */
  5507. BoundingBox worldBoundingBox;
  5508. uint zoneMask;
  5509. };
  5510. class LineEdit
  5511. {
  5512. // Methods:
  5513. void AddChild(UIElement);
  5514. void AddTag(const String&);
  5515. void AddTags(const String&, int8 = ';');
  5516. void ApplyAttributes();
  5517. void BringToFront();
  5518. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5519. void DisableLayoutUpdate();
  5520. IntVector2 ElementToScreen(const IntVector2&);
  5521. void EnableLayoutUpdate();
  5522. uint FindChild(UIElement) const;
  5523. Variant GetAttribute(const String&) const;
  5524. ValueAnimation GetAttributeAnimation(const String&) const;
  5525. float GetAttributeAnimationSpeed(const String&) const;
  5526. float GetAttributeAnimationTime(const String&) const;
  5527. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5528. Variant GetAttributeDefault(const String&) const;
  5529. UIElement GetChild(const String&, bool = false) const;
  5530. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5531. Array<UIElement> GetChildren(bool = false) const;
  5532. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5533. UIElement GetElementEventSender() const;
  5534. bool GetInterceptNetworkUpdate(const String&) const;
  5535. uint GetNumChildren(bool) const;
  5536. bool HasSubscribedToEvent(Object, const String&);
  5537. bool HasSubscribedToEvent(const String&);
  5538. bool HasTag(const String&) const;
  5539. void InsertChild(uint, UIElement);
  5540. bool IsInside(IntVector2, bool);
  5541. bool IsInsideCombined(IntVector2, bool);
  5542. bool Load(File, bool = false);
  5543. bool Load(VectorBuffer&, bool = false);
  5544. bool LoadChildXML(XMLFile, XMLFile = null);
  5545. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5546. bool LoadJSON(const JSONValue&, bool = false);
  5547. bool LoadXML(File);
  5548. bool LoadXML(VectorBuffer&);
  5549. bool LoadXML(XMLFile, XMLFile);
  5550. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5551. bool LoadXML(const XMLElement&, bool = false);
  5552. void MarkNetworkUpdate() const;
  5553. void Remove();
  5554. void RemoveAllChildren();
  5555. void RemoveAllTags();
  5556. void RemoveAttributeAnimation(const String&);
  5557. void RemoveChild(UIElement, uint = 0);
  5558. void RemoveChild(uint);
  5559. void RemoveInstanceDefault();
  5560. void RemoveObjectAnimation();
  5561. bool RemoveTag(const String&);
  5562. void ResetDeepEnabled();
  5563. void ResetToDefault();
  5564. bool Save(File) const;
  5565. bool Save(VectorBuffer&) const;
  5566. bool SaveJSON(JSONValue&) const;
  5567. bool SaveXML(File, const String& = "\t");
  5568. bool SaveXML(VectorBuffer&, const String& = "\t");
  5569. bool SaveXML(XMLElement&) const;
  5570. IntVector2 ScreenToElement(const IntVector2&);
  5571. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5572. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5573. void SetAnimationTime(float);
  5574. bool SetAttribute(const String&, const Variant&);
  5575. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5576. void SetAttributeAnimationSpeed(const String&, float);
  5577. void SetAttributeAnimationTime(const String&, float);
  5578. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5579. void SetDeepEnabled(bool);
  5580. void SetEnabledRecursive(bool);
  5581. void SetFixedHeight(int);
  5582. void SetFixedSize(int, int);
  5583. void SetFixedWidth(int);
  5584. void SetFullImageRect();
  5585. void SetHoverOffset(int, int);
  5586. void SetInterceptNetworkUpdate(const String&, bool);
  5587. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5588. void SetMaxSize(int, int);
  5589. void SetMinSize(int, int);
  5590. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5591. void SetPosition(int, int);
  5592. void SetSize(int, int);
  5593. bool SetStyle(const String&, XMLFile = null);
  5594. bool SetStyle(const XMLElement&);
  5595. bool SetStyleAuto(XMLFile = null);
  5596. void UpdateLayout();
  5597. const Variant& GetVar(const StringHash&);
  5598. // Properties:
  5599. bool animationEnabled;
  5600. /* readonly */
  5601. Array<Variant> attributeDefaults;
  5602. /* readonly */
  5603. Array<AttributeInfo> attributeInfos;
  5604. Array<Variant> attributes;
  5605. BlendMode blendMode;
  5606. IntRect border;
  5607. bool bringToBack;
  5608. bool bringToFront;
  5609. /* readonly */
  5610. String category;
  5611. /* readonly */
  5612. IntVector2 childOffset;
  5613. /* readonly */
  5614. Array<UIElement> children;
  5615. IntRect clipBorder;
  5616. bool clipChildren;
  5617. /* writeonly */
  5618. Color color;
  5619. /* readonly */
  5620. bool colorGradient;
  5621. Array<Color> colors;
  5622. /* readonly */
  5623. IntRect combinedScreenRect;
  5624. /* readonly */
  5625. BorderImage cursor;
  5626. float cursorBlinkRate;
  5627. bool cursorMovable;
  5628. uint cursorPosition;
  5629. XMLFile defaultStyle;
  5630. /* readonly */
  5631. float derivedOpacity;
  5632. /* readonly */
  5633. uint dragButtonCombo;
  5634. /* readonly */
  5635. int dragButtonCount;
  5636. uint dragDropMode;
  5637. uint echoCharacter;
  5638. bool editable;
  5639. bool elementEventSender;
  5640. bool enabled;
  5641. /* readonly */
  5642. bool enabledSelf;
  5643. /* readonly */
  5644. bool fixedHeight;
  5645. /* readonly */
  5646. bool fixedSize;
  5647. /* readonly */
  5648. bool fixedWidth;
  5649. bool focus;
  5650. FocusMode focusMode;
  5651. int height;
  5652. HorizontalAlignment horizontalAlignment;
  5653. IntVector2 hoverOffset;
  5654. /* readonly */
  5655. bool hovering;
  5656. IntRect imageBorder;
  5657. IntRect imageRect;
  5658. int indent;
  5659. int indentSpacing;
  5660. /* readonly */
  5661. int indentWidth;
  5662. bool internal;
  5663. IntRect layoutBorder;
  5664. Vector2 layoutFlexScale;
  5665. LayoutMode layoutMode;
  5666. int layoutSpacing;
  5667. int maxHeight;
  5668. uint maxLength;
  5669. IntVector2 maxSize;
  5670. int maxWidth;
  5671. int minHeight;
  5672. IntVector2 minSize;
  5673. int minWidth;
  5674. String name;
  5675. /* readonly */
  5676. uint numAllChildren;
  5677. /* readonly */
  5678. uint numAttributes;
  5679. /* readonly */
  5680. uint numChildren;
  5681. ObjectAnimation objectAnimation;
  5682. float opacity;
  5683. UIElement parent;
  5684. IntVector2 position;
  5685. int priority;
  5686. /* readonly */
  5687. int refs;
  5688. /* readonly */
  5689. UIElement root;
  5690. /* readonly */
  5691. IntVector2 screenPosition;
  5692. bool selected;
  5693. IntVector2 size;
  5694. bool sortChildren;
  5695. String style;
  5696. /* readonly */
  5697. Array<String> tags;
  5698. bool temporary;
  5699. String text;
  5700. bool textCopyable;
  5701. /* readonly */
  5702. Text textElement;
  5703. bool textSelectable;
  5704. Texture texture;
  5705. bool tiled;
  5706. TraversalMode traversalMode;
  5707. /* readonly */
  5708. StringHash type;
  5709. /* readonly */
  5710. String typeName;
  5711. bool useDerivedOpacity;
  5712. /* readonly */
  5713. VariantMap vars;
  5714. VerticalAlignment verticalAlignment;
  5715. bool visible;
  5716. /* readonly */
  5717. bool visibleEffective;
  5718. /* readonly */
  5719. int weakRefs;
  5720. int width;
  5721. };
  5722. class ListView
  5723. {
  5724. // Methods:
  5725. void AddChild(UIElement);
  5726. void AddItem(UIElement);
  5727. void AddSelection(uint);
  5728. void AddTag(const String&);
  5729. void AddTags(const String&, int8 = ';');
  5730. void ApplyAttributes();
  5731. void BringToFront();
  5732. void ChangeSelection(int, bool);
  5733. void ClearSelection();
  5734. void CopySelectedItemsToClipboard();
  5735. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5736. void DisableLayoutUpdate();
  5737. IntVector2 ElementToScreen(const IntVector2&);
  5738. void EnableLayoutUpdate();
  5739. void Expand(uint, bool, bool = false);
  5740. uint FindChild(UIElement) const;
  5741. uint FindItem(UIElement);
  5742. Variant GetAttribute(const String&) const;
  5743. ValueAnimation GetAttributeAnimation(const String&) const;
  5744. float GetAttributeAnimationSpeed(const String&) const;
  5745. float GetAttributeAnimationTime(const String&) const;
  5746. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5747. Variant GetAttributeDefault(const String&) const;
  5748. UIElement GetChild(const String&, bool = false) const;
  5749. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5750. Array<UIElement> GetChildren(bool = false) const;
  5751. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5752. UIElement GetElementEventSender() const;
  5753. bool GetInterceptNetworkUpdate(const String&) const;
  5754. Array<UIElement> GetItems() const;
  5755. uint GetNumChildren(bool) const;
  5756. bool HasSubscribedToEvent(Object, const String&);
  5757. bool HasSubscribedToEvent(const String&);
  5758. bool HasTag(const String&) const;
  5759. void InsertChild(uint, UIElement);
  5760. void InsertItem(uint, UIElement, UIElement = null);
  5761. bool IsExpanded(uint) const;
  5762. bool IsInside(IntVector2, bool);
  5763. bool IsInsideCombined(IntVector2, bool);
  5764. bool IsSelected(uint) const;
  5765. bool Load(File, bool = false);
  5766. bool Load(VectorBuffer&, bool = false);
  5767. bool LoadChildXML(XMLFile, XMLFile = null);
  5768. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5769. bool LoadJSON(const JSONValue&, bool = false);
  5770. bool LoadXML(File);
  5771. bool LoadXML(VectorBuffer&);
  5772. bool LoadXML(XMLFile, XMLFile);
  5773. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5774. bool LoadXML(const XMLElement&, bool = false);
  5775. void MarkNetworkUpdate() const;
  5776. void Remove();
  5777. void RemoveAllChildren();
  5778. void RemoveAllItems();
  5779. void RemoveAllTags();
  5780. void RemoveAttributeAnimation(const String&);
  5781. void RemoveChild(UIElement, uint = 0);
  5782. void RemoveChild(uint);
  5783. void RemoveInstanceDefault();
  5784. void RemoveItem(UIElement, uint = 0);
  5785. void RemoveItem(uint);
  5786. void RemoveObjectAnimation();
  5787. void RemoveSelection(uint);
  5788. bool RemoveTag(const String&);
  5789. void ResetDeepEnabled();
  5790. void ResetToDefault();
  5791. bool Save(File) const;
  5792. bool Save(VectorBuffer&) const;
  5793. bool SaveJSON(JSONValue&) const;
  5794. bool SaveXML(File, const String& = "\t");
  5795. bool SaveXML(VectorBuffer&, const String& = "\t");
  5796. bool SaveXML(XMLElement&) const;
  5797. IntVector2 ScreenToElement(const IntVector2&);
  5798. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5799. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5800. void SetAnimationTime(float);
  5801. bool SetAttribute(const String&, const Variant&);
  5802. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5803. void SetAttributeAnimationSpeed(const String&, float);
  5804. void SetAttributeAnimationTime(const String&, float);
  5805. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5806. void SetDeepEnabled(bool);
  5807. void SetEnabledRecursive(bool);
  5808. void SetFixedHeight(int);
  5809. void SetFixedSize(int, int);
  5810. void SetFixedWidth(int);
  5811. void SetInterceptNetworkUpdate(const String&, bool);
  5812. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5813. void SetMaxSize(int, int);
  5814. void SetMinSize(int, int);
  5815. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5816. void SetPosition(int, int);
  5817. void SetScrollBarsVisible(bool, bool);
  5818. void SetSelections(Array<uint>);
  5819. void SetSize(int, int);
  5820. bool SetStyle(const String&, XMLFile = null);
  5821. bool SetStyle(const XMLElement&);
  5822. bool SetStyleAuto(XMLFile = null);
  5823. void SetViewPosition(int, int);
  5824. void ToggleExpand(uint, bool = false);
  5825. void ToggleSelection(uint);
  5826. void UpdateLayout();
  5827. const Variant& GetVar(const StringHash&);
  5828. // Properties:
  5829. bool animationEnabled;
  5830. /* readonly */
  5831. Array<Variant> attributeDefaults;
  5832. /* readonly */
  5833. Array<AttributeInfo> attributeInfos;
  5834. Array<Variant> attributes;
  5835. bool autoDisableChildren;
  5836. float autoDisableThreshold;
  5837. int baseIndent;
  5838. bool bringToBack;
  5839. bool bringToFront;
  5840. /* readonly */
  5841. String category;
  5842. /* readonly */
  5843. IntVector2 childOffset;
  5844. /* readonly */
  5845. Array<UIElement> children;
  5846. bool clearSelectionOnDefocus;
  5847. IntRect clipBorder;
  5848. bool clipChildren;
  5849. /* writeonly */
  5850. Color color;
  5851. /* readonly */
  5852. bool colorGradient;
  5853. Array<Color> colors;
  5854. /* readonly */
  5855. IntRect combinedScreenRect;
  5856. /* readonly */
  5857. UIElement contentElement;
  5858. XMLFile defaultStyle;
  5859. /* readonly */
  5860. float derivedOpacity;
  5861. /* readonly */
  5862. uint dragButtonCombo;
  5863. /* readonly */
  5864. int dragButtonCount;
  5865. uint dragDropMode;
  5866. bool editable;
  5867. bool elementEventSender;
  5868. bool enabled;
  5869. /* readonly */
  5870. bool enabledSelf;
  5871. /* readonly */
  5872. bool fixedHeight;
  5873. /* readonly */
  5874. bool fixedSize;
  5875. /* readonly */
  5876. bool fixedWidth;
  5877. bool focus;
  5878. FocusMode focusMode;
  5879. int height;
  5880. bool hierarchyMode;
  5881. HighlightMode highlightMode;
  5882. HorizontalAlignment horizontalAlignment;
  5883. /* readonly */
  5884. ScrollBar horizontalScrollBar;
  5885. /* readonly */
  5886. bool hovering;
  5887. int indent;
  5888. int indentSpacing;
  5889. /* readonly */
  5890. int indentWidth;
  5891. bool internal;
  5892. /* readonly */
  5893. Array<UIElement> items;
  5894. IntRect layoutBorder;
  5895. Vector2 layoutFlexScale;
  5896. LayoutMode layoutMode;
  5897. int layoutSpacing;
  5898. int maxHeight;
  5899. IntVector2 maxSize;
  5900. int maxWidth;
  5901. int minHeight;
  5902. IntVector2 minSize;
  5903. int minWidth;
  5904. bool multiselect;
  5905. String name;
  5906. /* readonly */
  5907. uint numAllChildren;
  5908. /* readonly */
  5909. uint numAttributes;
  5910. /* readonly */
  5911. uint numChildren;
  5912. /* readonly */
  5913. uint numItems;
  5914. ObjectAnimation objectAnimation;
  5915. float opacity;
  5916. float pageStep;
  5917. UIElement parent;
  5918. IntVector2 position;
  5919. int priority;
  5920. /* readonly */
  5921. int refs;
  5922. /* readonly */
  5923. UIElement root;
  5924. /* readonly */
  5925. IntVector2 screenPosition;
  5926. bool scrollBarsAutoVisible;
  5927. float scrollDeceleration;
  5928. /* readonly */
  5929. BorderImage scrollPanel;
  5930. float scrollSnapEpsilon;
  5931. float scrollStep;
  5932. bool selectOnClickEnd;
  5933. bool selected;
  5934. /* readonly */
  5935. UIElement selectedItem;
  5936. /* readonly */
  5937. Array<UIElement> selectedItems;
  5938. uint selection;
  5939. /* readonly */
  5940. Array<uint> selections;
  5941. IntVector2 size;
  5942. bool sortChildren;
  5943. String style;
  5944. /* readonly */
  5945. Array<String> tags;
  5946. bool temporary;
  5947. TraversalMode traversalMode;
  5948. /* readonly */
  5949. StringHash type;
  5950. /* readonly */
  5951. String typeName;
  5952. bool useDerivedOpacity;
  5953. /* readonly */
  5954. VariantMap vars;
  5955. VerticalAlignment verticalAlignment;
  5956. /* readonly */
  5957. ScrollBar verticalScrollBar;
  5958. IntVector2 viewPosition;
  5959. bool visible;
  5960. /* readonly */
  5961. bool visibleEffective;
  5962. /* readonly */
  5963. int weakRefs;
  5964. int width;
  5965. };
  5966. class Localization
  5967. {
  5968. // Methods:
  5969. String Get(const String&);
  5970. String GetLanguage(int);
  5971. int GetLanguageIndex(const String&);
  5972. bool HasSubscribedToEvent(Object, const String&);
  5973. bool HasSubscribedToEvent(const String&);
  5974. void LoadJSON(const JSONValue&);
  5975. void LoadJSONFile(const String&);
  5976. void Reset();
  5977. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5978. void SetLanguage(const String&);
  5979. void SetLanguage(int);
  5980. // Properties:
  5981. /* readonly */
  5982. String category;
  5983. /* readonly */
  5984. String language;
  5985. /* readonly */
  5986. int languageIndex;
  5987. /* readonly */
  5988. int numLanguages;
  5989. /* readonly */
  5990. int refs;
  5991. /* readonly */
  5992. StringHash type;
  5993. /* readonly */
  5994. String typeName;
  5995. /* readonly */
  5996. int weakRefs;
  5997. };
  5998. class Log
  5999. {
  6000. // Methods:
  6001. void Close();
  6002. void Debug(const String&);
  6003. void Error(const String&);
  6004. bool HasSubscribedToEvent(Object, const String&);
  6005. bool HasSubscribedToEvent(const String&);
  6006. void Info(const String&);
  6007. void Open(const String&);
  6008. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6009. void Warning(const String&);
  6010. void Write(const String&, bool = false);
  6011. // Properties:
  6012. /* readonly */
  6013. String category;
  6014. /* readonly */
  6015. String lastMessage;
  6016. int level;
  6017. bool quiet;
  6018. /* readonly */
  6019. int refs;
  6020. bool timeStamp;
  6021. /* readonly */
  6022. StringHash type;
  6023. /* readonly */
  6024. String typeName;
  6025. /* readonly */
  6026. int weakRefs;
  6027. };
  6028. class Material
  6029. {
  6030. // Methods:
  6031. Material Clone(const String& = String ( )) const;
  6032. Pass GetPass(uint, const String&);
  6033. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6034. float GetShaderParameterAnimationSpeed(const String&) const;
  6035. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6036. bool HasSubscribedToEvent(Object, const String&);
  6037. bool HasSubscribedToEvent(const String&);
  6038. bool Load(File);
  6039. bool Load(VectorBuffer&);
  6040. bool Load(const JSONValue&);
  6041. bool Load(const XMLElement&);
  6042. void RemoveShaderParameter(const String&);
  6043. bool Save(File) const;
  6044. bool Save(JSONValue&) const;
  6045. bool Save(VectorBuffer&) const;
  6046. bool Save(XMLElement&) const;
  6047. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6048. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6049. void SetShaderParameterAnimationSpeed(const String&, float);
  6050. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6051. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6052. void SetUVTransform(const Vector2&, float, const Vector2&);
  6053. void SetUVTransform(const Vector2&, float, float);
  6054. void SortTechniques();
  6055. // Properties:
  6056. /* readonly */
  6057. String category;
  6058. CullMode cullMode;
  6059. BiasParameters depthBias;
  6060. FillMode fillMode;
  6061. /* readonly */
  6062. uint memoryUse;
  6063. String name;
  6064. uint numTechniques;
  6065. /* readonly */
  6066. bool occlusion;
  6067. /* readonly */
  6068. int refs;
  6069. uint8 renderOrder;
  6070. Scene scene;
  6071. /* readonly */
  6072. Array<String> shaderParameterNames;
  6073. Array<Variant> shaderParameters;
  6074. CullMode shadowCullMode;
  6075. /* readonly */
  6076. Array<TechniqueEntry> techniqueEntries;
  6077. /* readonly */
  6078. Array<Technique> techniques;
  6079. Array<Texture> textures;
  6080. /* readonly */
  6081. StringHash type;
  6082. /* readonly */
  6083. String typeName;
  6084. /* readonly */
  6085. uint useTimer;
  6086. /* readonly */
  6087. int weakRefs;
  6088. };
  6089. class Matrix2
  6090. {
  6091. // Methods:
  6092. bool Equals(const Matrix2&) const;
  6093. Matrix2 Inverse() const;
  6094. Vector2 Scale() const;
  6095. Matrix2 Scaled(const Vector2&) const;
  6096. void SetScale(const Vector2&);
  6097. void SetScale(float);
  6098. String ToString() const;
  6099. Matrix2 Transpose() const;
  6100. // Properties:
  6101. float m00;
  6102. float m01;
  6103. float m10;
  6104. float m11;
  6105. };
  6106. class Matrix3
  6107. {
  6108. // Methods:
  6109. bool Equals(const Matrix3&) const;
  6110. Matrix3 Inverse() const;
  6111. Vector3 Scale() const;
  6112. Matrix3 Scaled(const Vector3&) const;
  6113. void SetScale(const Vector3&);
  6114. void SetScale(float);
  6115. String ToString() const;
  6116. Matrix3 Transpose() const;
  6117. // Properties:
  6118. float m00;
  6119. float m01;
  6120. float m02;
  6121. float m10;
  6122. float m11;
  6123. float m12;
  6124. float m20;
  6125. float m21;
  6126. float m22;
  6127. };
  6128. class Matrix3x4
  6129. {
  6130. // Methods:
  6131. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6132. bool Equals(const Matrix3x4&) const;
  6133. Matrix3x4 Inverse() const;
  6134. Quaternion Rotation() const;
  6135. Matrix3 RotationMatrix() const;
  6136. Vector3 Scale() const;
  6137. void SetRotation(const Matrix3&);
  6138. void SetScale(const Vector3&);
  6139. void SetScale(float);
  6140. void SetTranslation(const Vector3&);
  6141. Matrix3 ToMatrix3() const;
  6142. Matrix4 ToMatrix4() const;
  6143. String ToString() const;
  6144. Vector3 Translation() const;
  6145. // Properties:
  6146. float m00;
  6147. float m01;
  6148. float m02;
  6149. float m03;
  6150. float m10;
  6151. float m11;
  6152. float m12;
  6153. float m13;
  6154. float m20;
  6155. float m21;
  6156. float m22;
  6157. float m23;
  6158. };
  6159. class Matrix4
  6160. {
  6161. // Methods:
  6162. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6163. bool Equals(const Matrix4&) const;
  6164. Matrix4 Inverse() const;
  6165. Quaternion Rotation() const;
  6166. Matrix3 RotationMatrix() const;
  6167. Vector3 Scale() const;
  6168. void SetRotation(const Matrix3&);
  6169. void SetScale(const Vector3&);
  6170. void SetScale(float);
  6171. void SetTranslation(const Vector3&);
  6172. Matrix3 ToMatrix3() const;
  6173. String ToString() const;
  6174. Vector3 Translation() const;
  6175. Matrix4 Transpose() const;
  6176. // Properties:
  6177. float m00;
  6178. float m01;
  6179. float m02;
  6180. float m03;
  6181. float m10;
  6182. float m11;
  6183. float m12;
  6184. float m13;
  6185. float m20;
  6186. float m21;
  6187. float m22;
  6188. float m23;
  6189. float m30;
  6190. float m31;
  6191. float m32;
  6192. float m33;
  6193. };
  6194. class Menu
  6195. {
  6196. // Methods:
  6197. void AddChild(UIElement);
  6198. void AddTag(const String&);
  6199. void AddTags(const String&, int8 = ';');
  6200. void ApplyAttributes();
  6201. void BringToFront();
  6202. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6203. void DisableLayoutUpdate();
  6204. IntVector2 ElementToScreen(const IntVector2&);
  6205. void EnableLayoutUpdate();
  6206. uint FindChild(UIElement) const;
  6207. Variant GetAttribute(const String&) const;
  6208. ValueAnimation GetAttributeAnimation(const String&) const;
  6209. float GetAttributeAnimationSpeed(const String&) const;
  6210. float GetAttributeAnimationTime(const String&) const;
  6211. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6212. Variant GetAttributeDefault(const String&) const;
  6213. UIElement GetChild(const String&, bool = false) const;
  6214. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6215. Array<UIElement> GetChildren(bool = false) const;
  6216. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6217. UIElement GetElementEventSender() const;
  6218. bool GetInterceptNetworkUpdate(const String&) const;
  6219. uint GetNumChildren(bool) const;
  6220. bool HasSubscribedToEvent(Object, const String&);
  6221. bool HasSubscribedToEvent(const String&);
  6222. bool HasTag(const String&) const;
  6223. void InsertChild(uint, UIElement);
  6224. bool IsInside(IntVector2, bool);
  6225. bool IsInsideCombined(IntVector2, bool);
  6226. bool Load(File, bool = false);
  6227. bool Load(VectorBuffer&, bool = false);
  6228. bool LoadChildXML(XMLFile, XMLFile = null);
  6229. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6230. bool LoadJSON(const JSONValue&, bool = false);
  6231. bool LoadXML(File);
  6232. bool LoadXML(VectorBuffer&);
  6233. bool LoadXML(XMLFile, XMLFile);
  6234. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6235. bool LoadXML(const XMLElement&, bool = false);
  6236. void MarkNetworkUpdate() const;
  6237. void Remove();
  6238. void RemoveAllChildren();
  6239. void RemoveAllTags();
  6240. void RemoveAttributeAnimation(const String&);
  6241. void RemoveChild(UIElement, uint = 0);
  6242. void RemoveChild(uint);
  6243. void RemoveInstanceDefault();
  6244. void RemoveObjectAnimation();
  6245. bool RemoveTag(const String&);
  6246. void ResetDeepEnabled();
  6247. void ResetToDefault();
  6248. bool Save(File) const;
  6249. bool Save(VectorBuffer&) const;
  6250. bool SaveJSON(JSONValue&) const;
  6251. bool SaveXML(File, const String& = "\t");
  6252. bool SaveXML(VectorBuffer&, const String& = "\t");
  6253. bool SaveXML(XMLElement&) const;
  6254. IntVector2 ScreenToElement(const IntVector2&);
  6255. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6256. void SetAccelerator(int, int);
  6257. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6258. void SetAnimationTime(float);
  6259. bool SetAttribute(const String&, const Variant&);
  6260. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6261. void SetAttributeAnimationSpeed(const String&, float);
  6262. void SetAttributeAnimationTime(const String&, float);
  6263. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6264. void SetDeepEnabled(bool);
  6265. void SetEnabledRecursive(bool);
  6266. void SetFixedHeight(int);
  6267. void SetFixedSize(int, int);
  6268. void SetFixedWidth(int);
  6269. void SetFullImageRect();
  6270. void SetHoverOffset(int, int);
  6271. void SetInterceptNetworkUpdate(const String&, bool);
  6272. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6273. void SetMaxSize(int, int);
  6274. void SetMinSize(int, int);
  6275. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6276. void SetPopupOffset(int, int);
  6277. void SetPosition(int, int);
  6278. void SetPressedChildOffset(int, int);
  6279. void SetPressedOffset(int, int);
  6280. void SetRepeat(float, float);
  6281. void SetSize(int, int);
  6282. bool SetStyle(const String&, XMLFile = null);
  6283. bool SetStyle(const XMLElement&);
  6284. bool SetStyleAuto(XMLFile = null);
  6285. void UpdateLayout();
  6286. const Variant& GetVar(const StringHash&);
  6287. // Properties:
  6288. /* readonly */
  6289. int acceleratorKey;
  6290. /* readonly */
  6291. int acceleratorQualifiers;
  6292. bool animationEnabled;
  6293. /* readonly */
  6294. Array<Variant> attributeDefaults;
  6295. /* readonly */
  6296. Array<AttributeInfo> attributeInfos;
  6297. Array<Variant> attributes;
  6298. BlendMode blendMode;
  6299. IntRect border;
  6300. bool bringToBack;
  6301. bool bringToFront;
  6302. /* readonly */
  6303. String category;
  6304. /* readonly */
  6305. IntVector2 childOffset;
  6306. /* readonly */
  6307. Array<UIElement> children;
  6308. IntRect clipBorder;
  6309. bool clipChildren;
  6310. /* writeonly */
  6311. Color color;
  6312. /* readonly */
  6313. bool colorGradient;
  6314. Array<Color> colors;
  6315. /* readonly */
  6316. IntRect combinedScreenRect;
  6317. XMLFile defaultStyle;
  6318. /* readonly */
  6319. float derivedOpacity;
  6320. /* readonly */
  6321. uint dragButtonCombo;
  6322. /* readonly */
  6323. int dragButtonCount;
  6324. uint dragDropMode;
  6325. bool editable;
  6326. bool elementEventSender;
  6327. bool enabled;
  6328. /* readonly */
  6329. bool enabledSelf;
  6330. /* readonly */
  6331. bool fixedHeight;
  6332. /* readonly */
  6333. bool fixedSize;
  6334. /* readonly */
  6335. bool fixedWidth;
  6336. bool focus;
  6337. FocusMode focusMode;
  6338. int height;
  6339. HorizontalAlignment horizontalAlignment;
  6340. IntVector2 hoverOffset;
  6341. /* readonly */
  6342. bool hovering;
  6343. IntRect imageBorder;
  6344. IntRect imageRect;
  6345. int indent;
  6346. int indentSpacing;
  6347. /* readonly */
  6348. int indentWidth;
  6349. bool internal;
  6350. IntRect layoutBorder;
  6351. Vector2 layoutFlexScale;
  6352. LayoutMode layoutMode;
  6353. int layoutSpacing;
  6354. int maxHeight;
  6355. IntVector2 maxSize;
  6356. int maxWidth;
  6357. int minHeight;
  6358. IntVector2 minSize;
  6359. int minWidth;
  6360. String name;
  6361. /* readonly */
  6362. uint numAllChildren;
  6363. /* readonly */
  6364. uint numAttributes;
  6365. /* readonly */
  6366. uint numChildren;
  6367. ObjectAnimation objectAnimation;
  6368. float opacity;
  6369. UIElement parent;
  6370. UIElement popup;
  6371. IntVector2 popupOffset;
  6372. IntVector2 position;
  6373. /* readonly */
  6374. bool pressed;
  6375. IntVector2 pressedChildOffset;
  6376. IntVector2 pressedOffset;
  6377. int priority;
  6378. /* readonly */
  6379. int refs;
  6380. float repeatDelay;
  6381. float repeatRate;
  6382. /* readonly */
  6383. UIElement root;
  6384. /* readonly */
  6385. IntVector2 screenPosition;
  6386. bool selected;
  6387. bool showPopup;
  6388. IntVector2 size;
  6389. bool sortChildren;
  6390. String style;
  6391. /* readonly */
  6392. Array<String> tags;
  6393. bool temporary;
  6394. Texture texture;
  6395. bool tiled;
  6396. TraversalMode traversalMode;
  6397. /* readonly */
  6398. StringHash type;
  6399. /* readonly */
  6400. String typeName;
  6401. bool useDerivedOpacity;
  6402. /* readonly */
  6403. VariantMap vars;
  6404. VerticalAlignment verticalAlignment;
  6405. bool visible;
  6406. /* readonly */
  6407. bool visibleEffective;
  6408. /* readonly */
  6409. int weakRefs;
  6410. int width;
  6411. };
  6412. class MessageBox
  6413. {
  6414. // Methods:
  6415. bool HasSubscribedToEvent(Object, const String&);
  6416. bool HasSubscribedToEvent(const String&);
  6417. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6418. // Properties:
  6419. /* readonly */
  6420. String category;
  6421. String message;
  6422. /* readonly */
  6423. int refs;
  6424. String title;
  6425. /* readonly */
  6426. StringHash type;
  6427. /* readonly */
  6428. String typeName;
  6429. /* readonly */
  6430. int weakRefs;
  6431. /* readonly */
  6432. UIElement window;
  6433. };
  6434. class Model
  6435. {
  6436. // Methods:
  6437. Model Clone(const String& = String ( )) const;
  6438. Geometry GetGeometry(uint, uint) const;
  6439. bool HasSubscribedToEvent(Object, const String&);
  6440. bool HasSubscribedToEvent(const String&);
  6441. bool Load(File);
  6442. bool Load(VectorBuffer&);
  6443. bool Save(File) const;
  6444. bool Save(VectorBuffer&) const;
  6445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6446. bool SetGeometry(uint, uint, Geometry);
  6447. // Properties:
  6448. BoundingBox boundingBox;
  6449. /* readonly */
  6450. String category;
  6451. Array<Vector3> geometryCenters;
  6452. /* readonly */
  6453. uint memoryUse;
  6454. String name;
  6455. uint numGeometries;
  6456. Array<uint> numGeometryLodLevels;
  6457. /* readonly */
  6458. uint numMorphs;
  6459. /* readonly */
  6460. int refs;
  6461. /* readonly */
  6462. Skeleton skeleton;
  6463. /* readonly */
  6464. StringHash type;
  6465. /* readonly */
  6466. String typeName;
  6467. /* readonly */
  6468. uint useTimer;
  6469. /* readonly */
  6470. int weakRefs;
  6471. };
  6472. class NavArea
  6473. {
  6474. // Methods:
  6475. void ApplyAttributes();
  6476. void DrawDebugGeometry(DebugRenderer, bool);
  6477. Variant GetAttribute(const String&) const;
  6478. ValueAnimation GetAttributeAnimation(const String&) const;
  6479. float GetAttributeAnimationSpeed(const String&) const;
  6480. float GetAttributeAnimationTime(const String&) const;
  6481. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6482. Variant GetAttributeDefault(const String&) const;
  6483. bool GetInterceptNetworkUpdate(const String&) const;
  6484. bool HasSubscribedToEvent(Object, const String&);
  6485. bool HasSubscribedToEvent(const String&);
  6486. bool Load(File, bool = false);
  6487. bool Load(VectorBuffer&, bool = false);
  6488. bool LoadJSON(const JSONValue&, bool = false);
  6489. bool LoadXML(const XMLElement&, bool = false);
  6490. void MarkNetworkUpdate() const;
  6491. void Remove();
  6492. void RemoveAttributeAnimation(const String&);
  6493. void RemoveInstanceDefault();
  6494. void RemoveObjectAnimation();
  6495. void ResetToDefault();
  6496. bool Save(File) const;
  6497. bool Save(VectorBuffer&) const;
  6498. bool SaveJSON(JSONValue&) const;
  6499. bool SaveXML(XMLElement&) const;
  6500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6501. void SetAnimationTime(float);
  6502. bool SetAttribute(const String&, const Variant&);
  6503. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6504. void SetAttributeAnimationSpeed(const String&, float);
  6505. void SetAttributeAnimationTime(const String&, float);
  6506. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6507. void SetInterceptNetworkUpdate(const String&, bool);
  6508. // Properties:
  6509. bool animationEnabled;
  6510. uint areaID;
  6511. /* readonly */
  6512. Array<Variant> attributeDefaults;
  6513. /* readonly */
  6514. Array<AttributeInfo> attributeInfos;
  6515. Array<Variant> attributes;
  6516. BoundingBox boundingBox;
  6517. /* readonly */
  6518. String category;
  6519. bool enabled;
  6520. /* readonly */
  6521. bool enabledEffective;
  6522. /* readonly */
  6523. uint id;
  6524. /* readonly */
  6525. Node node;
  6526. /* readonly */
  6527. uint numAttributes;
  6528. ObjectAnimation objectAnimation;
  6529. /* readonly */
  6530. int refs;
  6531. bool temporary;
  6532. /* readonly */
  6533. StringHash type;
  6534. /* readonly */
  6535. String typeName;
  6536. /* readonly */
  6537. int weakRefs;
  6538. /* readonly */
  6539. BoundingBox worldBoundingBox;
  6540. };
  6541. class Navigable
  6542. {
  6543. // Methods:
  6544. void ApplyAttributes();
  6545. void DrawDebugGeometry(DebugRenderer, bool);
  6546. Variant GetAttribute(const String&) const;
  6547. ValueAnimation GetAttributeAnimation(const String&) const;
  6548. float GetAttributeAnimationSpeed(const String&) const;
  6549. float GetAttributeAnimationTime(const String&) const;
  6550. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6551. Variant GetAttributeDefault(const String&) const;
  6552. bool GetInterceptNetworkUpdate(const String&) const;
  6553. bool HasSubscribedToEvent(Object, const String&);
  6554. bool HasSubscribedToEvent(const String&);
  6555. bool Load(File, bool = false);
  6556. bool Load(VectorBuffer&, bool = false);
  6557. bool LoadJSON(const JSONValue&, bool = false);
  6558. bool LoadXML(const XMLElement&, bool = false);
  6559. void MarkNetworkUpdate() const;
  6560. void Remove();
  6561. void RemoveAttributeAnimation(const String&);
  6562. void RemoveInstanceDefault();
  6563. void RemoveObjectAnimation();
  6564. void ResetToDefault();
  6565. bool Save(File) const;
  6566. bool Save(VectorBuffer&) const;
  6567. bool SaveJSON(JSONValue&) const;
  6568. bool SaveXML(XMLElement&) const;
  6569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6570. void SetAnimationTime(float);
  6571. bool SetAttribute(const String&, const Variant&);
  6572. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6573. void SetAttributeAnimationSpeed(const String&, float);
  6574. void SetAttributeAnimationTime(const String&, float);
  6575. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6576. void SetInterceptNetworkUpdate(const String&, bool);
  6577. // Properties:
  6578. bool animationEnabled;
  6579. /* readonly */
  6580. Array<Variant> attributeDefaults;
  6581. /* readonly */
  6582. Array<AttributeInfo> attributeInfos;
  6583. Array<Variant> attributes;
  6584. /* readonly */
  6585. String category;
  6586. bool enabled;
  6587. /* readonly */
  6588. bool enabledEffective;
  6589. /* readonly */
  6590. uint id;
  6591. /* readonly */
  6592. Node node;
  6593. /* readonly */
  6594. uint numAttributes;
  6595. ObjectAnimation objectAnimation;
  6596. bool recursive;
  6597. /* readonly */
  6598. int refs;
  6599. bool temporary;
  6600. /* readonly */
  6601. StringHash type;
  6602. /* readonly */
  6603. String typeName;
  6604. /* readonly */
  6605. int weakRefs;
  6606. };
  6607. class NavigationMesh
  6608. {
  6609. // Methods:
  6610. void ApplyAttributes();
  6611. bool Build();
  6612. bool Build(const BoundingBox&);
  6613. void DrawDebugGeometry(DebugRenderer, bool);
  6614. void DrawDebugGeometry(bool);
  6615. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6616. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6617. float GetAreaCost(uint) const;
  6618. Variant GetAttribute(const String&) const;
  6619. ValueAnimation GetAttributeAnimation(const String&) const;
  6620. float GetAttributeAnimationSpeed(const String&) const;
  6621. float GetAttributeAnimationTime(const String&) const;
  6622. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6623. Variant GetAttributeDefault(const String&) const;
  6624. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6625. bool GetInterceptNetworkUpdate(const String&) const;
  6626. Vector3 GetRandomPoint();
  6627. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6628. bool HasSubscribedToEvent(Object, const String&);
  6629. bool HasSubscribedToEvent(const String&);
  6630. bool Load(File, bool = false);
  6631. bool Load(VectorBuffer&, bool = false);
  6632. bool LoadJSON(const JSONValue&, bool = false);
  6633. bool LoadXML(const XMLElement&, bool = false);
  6634. void MarkNetworkUpdate() const;
  6635. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6636. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6637. void Remove();
  6638. void RemoveAttributeAnimation(const String&);
  6639. void RemoveInstanceDefault();
  6640. void RemoveObjectAnimation();
  6641. void ResetToDefault();
  6642. bool Save(File) const;
  6643. bool Save(VectorBuffer&) const;
  6644. bool SaveJSON(JSONValue&) const;
  6645. bool SaveXML(XMLElement&) const;
  6646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6647. void SetAnimationTime(float);
  6648. void SetAreaCost(uint, float);
  6649. bool SetAttribute(const String&, const Variant&);
  6650. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6651. void SetAttributeAnimationSpeed(const String&, float);
  6652. void SetAttributeAnimationTime(const String&, float);
  6653. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6654. void SetInterceptNetworkUpdate(const String&, bool);
  6655. // Properties:
  6656. float agentHeight;
  6657. float agentMaxClimb;
  6658. float agentMaxSlope;
  6659. float agentRadius;
  6660. bool animationEnabled;
  6661. /* readonly */
  6662. Array<Variant> attributeDefaults;
  6663. /* readonly */
  6664. Array<AttributeInfo> attributeInfos;
  6665. Array<Variant> attributes;
  6666. /* readonly */
  6667. BoundingBox boundingBox;
  6668. /* readonly */
  6669. String category;
  6670. float cellHeight;
  6671. float cellSize;
  6672. float detailSampleDistance;
  6673. float detailSampleMaxError;
  6674. bool drawNavAreas;
  6675. bool drawOffMeshConnections;
  6676. float edgeMaxError;
  6677. float edgeMaxLength;
  6678. bool enabled;
  6679. /* readonly */
  6680. bool enabledEffective;
  6681. /* readonly */
  6682. uint id;
  6683. /* readonly */
  6684. bool initialized;
  6685. /* readonly */
  6686. Node node;
  6687. /* readonly */
  6688. uint numAttributes;
  6689. /* readonly */
  6690. IntVector2 numTiles;
  6691. ObjectAnimation objectAnimation;
  6692. Vector3 padding;
  6693. NavmeshPartitionType partitionType;
  6694. /* readonly */
  6695. int refs;
  6696. float regionMergeSize;
  6697. float regionMinSize;
  6698. bool temporary;
  6699. int tileSize;
  6700. /* readonly */
  6701. StringHash type;
  6702. /* readonly */
  6703. String typeName;
  6704. /* readonly */
  6705. int weakRefs;
  6706. /* readonly */
  6707. BoundingBox worldBoundingBox;
  6708. };
  6709. class Network
  6710. {
  6711. // Methods:
  6712. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6713. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6714. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6715. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6716. bool CheckRemoteEvent(const String&) const;
  6717. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6718. void Disconnect(int = 0);
  6719. bool HasSubscribedToEvent(Object, const String&);
  6720. bool HasSubscribedToEvent(const String&);
  6721. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6722. void RegisterRemoteEvent(const String&) const;
  6723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6724. void SendPackageToClients(Scene, PackageFile);
  6725. bool StartServer(uint16);
  6726. void StopServer();
  6727. void UnregisterAllRemoteEvents();
  6728. void UnregisterRemoteEvent(const String&) const;
  6729. // Properties:
  6730. /* readonly */
  6731. String category;
  6732. /* readonly */
  6733. Array<Connection> clientConnections;
  6734. String packageCacheDir;
  6735. /* readonly */
  6736. int refs;
  6737. /* readonly */
  6738. Connection serverConnection;
  6739. /* readonly */
  6740. bool serverRunning;
  6741. int simulatedLatency;
  6742. float simulatedPacketLoss;
  6743. /* readonly */
  6744. StringHash type;
  6745. /* readonly */
  6746. String typeName;
  6747. int updateFps;
  6748. /* readonly */
  6749. int weakRefs;
  6750. };
  6751. class NetworkPriority
  6752. {
  6753. // Methods:
  6754. void ApplyAttributes();
  6755. void DrawDebugGeometry(DebugRenderer, bool);
  6756. Variant GetAttribute(const String&) const;
  6757. ValueAnimation GetAttributeAnimation(const String&) const;
  6758. float GetAttributeAnimationSpeed(const String&) const;
  6759. float GetAttributeAnimationTime(const String&) const;
  6760. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6761. Variant GetAttributeDefault(const String&) const;
  6762. bool GetInterceptNetworkUpdate(const String&) const;
  6763. bool HasSubscribedToEvent(Object, const String&);
  6764. bool HasSubscribedToEvent(const String&);
  6765. bool Load(File, bool = false);
  6766. bool Load(VectorBuffer&, bool = false);
  6767. bool LoadJSON(const JSONValue&, bool = false);
  6768. bool LoadXML(const XMLElement&, bool = false);
  6769. void MarkNetworkUpdate() const;
  6770. void Remove();
  6771. void RemoveAttributeAnimation(const String&);
  6772. void RemoveInstanceDefault();
  6773. void RemoveObjectAnimation();
  6774. void ResetToDefault();
  6775. bool Save(File) const;
  6776. bool Save(VectorBuffer&) const;
  6777. bool SaveJSON(JSONValue&) const;
  6778. bool SaveXML(XMLElement&) const;
  6779. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6780. void SetAnimationTime(float);
  6781. bool SetAttribute(const String&, const Variant&);
  6782. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6783. void SetAttributeAnimationSpeed(const String&, float);
  6784. void SetAttributeAnimationTime(const String&, float);
  6785. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6786. void SetInterceptNetworkUpdate(const String&, bool);
  6787. // Properties:
  6788. bool alwaysUpdateOwner;
  6789. bool animationEnabled;
  6790. /* readonly */
  6791. Array<Variant> attributeDefaults;
  6792. /* readonly */
  6793. Array<AttributeInfo> attributeInfos;
  6794. Array<Variant> attributes;
  6795. float basePriority;
  6796. /* readonly */
  6797. String category;
  6798. float distanceFactor;
  6799. bool enabled;
  6800. /* readonly */
  6801. bool enabledEffective;
  6802. /* readonly */
  6803. uint id;
  6804. float minPriority;
  6805. /* readonly */
  6806. Node node;
  6807. /* readonly */
  6808. uint numAttributes;
  6809. ObjectAnimation objectAnimation;
  6810. /* readonly */
  6811. int refs;
  6812. bool temporary;
  6813. /* readonly */
  6814. StringHash type;
  6815. /* readonly */
  6816. String typeName;
  6817. /* readonly */
  6818. int weakRefs;
  6819. };
  6820. class Node
  6821. {
  6822. // Methods:
  6823. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6824. void AddTag(const String&);
  6825. void AddTags(const String&, int8 = ';');
  6826. void ApplyAttributes();
  6827. Node Clone(CreateMode = REPLICATED);
  6828. Component CloneComponent(Component, CreateMode, uint = 0);
  6829. Component CloneComponent(Component, uint = 0);
  6830. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6831. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6832. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6833. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6834. Variant GetAttribute(const String&) const;
  6835. ValueAnimation GetAttributeAnimation(const String&) const;
  6836. float GetAttributeAnimationSpeed(const String&) const;
  6837. float GetAttributeAnimationTime(const String&) const;
  6838. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6839. Variant GetAttributeDefault(const String&) const;
  6840. Node GetChild(const String&, bool = false) const;
  6841. Array<Node> GetChildren(bool = false) const;
  6842. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6843. Array<Node> GetChildrenWithScript(bool = false) const;
  6844. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6845. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6846. Component GetComponent(const String&, bool = false) const;
  6847. Array<Component> GetComponents() const;
  6848. Array<Component> GetComponents(const String&, bool = false) const;
  6849. bool GetInterceptNetworkUpdate(const String&) const;
  6850. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6851. Component GetParentComponent(const String&, bool = false) const;
  6852. ScriptObject GetScriptObject() const;
  6853. ScriptObject GetScriptObject(const String&) const;
  6854. bool HasComponent(const String&) const;
  6855. bool HasSubscribedToEvent(Object, const String&);
  6856. bool HasSubscribedToEvent(const String&);
  6857. bool HasTag(const String&);
  6858. bool Load(File, bool = false);
  6859. bool Load(VectorBuffer&, bool = false);
  6860. bool LoadJSON(const JSONValue&, bool = false);
  6861. bool LoadXML(const XMLElement&, bool = false);
  6862. Vector3 LocalToWorld(const Vector3&) const;
  6863. Vector3 LocalToWorld(const Vector4&) const;
  6864. Vector2 LocalToWorld2D(const Vector2&) const;
  6865. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6866. void MarkDirty();
  6867. void MarkNetworkUpdate() const;
  6868. void Pitch(float, TransformSpace = TS_LOCAL);
  6869. void Remove();
  6870. void RemoveAllChildren();
  6871. void RemoveAllComponents();
  6872. void RemoveAllTags();
  6873. void RemoveAttributeAnimation(const String&);
  6874. void RemoveChild(Node);
  6875. void RemoveChildren(bool, bool, bool);
  6876. void RemoveComponent(Component);
  6877. void RemoveComponent(const String&);
  6878. void RemoveComponents(bool, bool);
  6879. void RemoveComponents(const String&);
  6880. void RemoveInstanceDefault();
  6881. void RemoveObjectAnimation();
  6882. bool RemoveTag(const String&);
  6883. void ResetDeepEnabled();
  6884. void ResetToDefault();
  6885. void Roll(float, TransformSpace = TS_LOCAL);
  6886. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6887. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6888. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6889. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6890. bool Save(File) const;
  6891. bool Save(VectorBuffer&) const;
  6892. bool SaveJSON(File);
  6893. bool SaveJSON(JSONValue&) const;
  6894. bool SaveJSON(VectorBuffer&);
  6895. bool SaveXML(File, const String& = "\t");
  6896. bool SaveXML(VectorBuffer&, const String& = "\t");
  6897. bool SaveXML(XMLElement&) const;
  6898. void Scale(const Vector3&);
  6899. void Scale(float);
  6900. void Scale2D(const Vector2&);
  6901. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6902. void SetAnimationTime(float);
  6903. bool SetAttribute(const String&, const Variant&);
  6904. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6905. void SetAttributeAnimationSpeed(const String&, float);
  6906. void SetAttributeAnimationTime(const String&, float);
  6907. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6908. void SetDeepEnabled(bool);
  6909. void SetEnabledRecursive(bool);
  6910. void SetInterceptNetworkUpdate(const String&, bool);
  6911. void SetPosition2D(float, float);
  6912. void SetScale(float);
  6913. void SetScale2D(float, float);
  6914. void SetTransform(const Vector3&, const Quaternion&);
  6915. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6916. void SetTransform(const Vector3&, const Quaternion&, float);
  6917. void SetTransform2D(const Vector2&, float);
  6918. void SetTransform2D(const Vector2&, float, const Vector2&);
  6919. void SetTransform2D(const Vector2&, float, float);
  6920. void SetWorldTransform(const Vector3&, const Quaternion&);
  6921. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6922. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6923. void SetWorldTransform2D(const Vector2&, float);
  6924. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6925. void SetWorldTransform2D(const Vector2&, float, float);
  6926. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6927. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6928. Vector3 WorldToLocal(const Vector3&) const;
  6929. Vector3 WorldToLocal(const Vector4&) const;
  6930. Vector2 WorldToLocal2D(const Vector2&) const;
  6931. void Yaw(float, TransformSpace = TS_LOCAL);
  6932. // Properties:
  6933. bool animationEnabled;
  6934. /* readonly */
  6935. Array<Variant> attributeDefaults;
  6936. /* readonly */
  6937. Array<AttributeInfo> attributeInfos;
  6938. Array<Variant> attributes;
  6939. /* readonly */
  6940. String category;
  6941. /* readonly */
  6942. Array<Node> children;
  6943. /* readonly */
  6944. Array<Component> components;
  6945. Vector3 direction;
  6946. bool enabled;
  6947. /* readonly */
  6948. bool enabledSelf;
  6949. /* readonly */
  6950. uint id;
  6951. String name;
  6952. /* readonly */
  6953. uint numAllChildren;
  6954. /* readonly */
  6955. uint numAttributes;
  6956. /* readonly */
  6957. uint numChildren;
  6958. /* readonly */
  6959. uint numComponents;
  6960. ObjectAnimation objectAnimation;
  6961. Connection owner;
  6962. Node parent;
  6963. Vector3 position;
  6964. Vector2 position2D;
  6965. /* readonly */
  6966. int refs;
  6967. /* readonly */
  6968. Vector3 right;
  6969. Quaternion rotation;
  6970. float rotation2D;
  6971. Vector3 scale;
  6972. Vector2 scale2D;
  6973. /* readonly */
  6974. Scene scene;
  6975. /* readonly */
  6976. ScriptObject scriptObject;
  6977. /* readonly */
  6978. Array<String> tags;
  6979. bool temporary;
  6980. /* readonly */
  6981. Matrix3x4 transform;
  6982. /* readonly */
  6983. StringHash type;
  6984. /* readonly */
  6985. String typeName;
  6986. /* readonly */
  6987. Vector3 up;
  6988. /* readonly */
  6989. VariantMap vars;
  6990. /* readonly */
  6991. int weakRefs;
  6992. Vector3 worldDirection;
  6993. Vector3 worldPosition;
  6994. Vector2 worldPosition2D;
  6995. /* readonly */
  6996. Vector3 worldRight;
  6997. Quaternion worldRotation;
  6998. float worldRotation2D;
  6999. Vector3 worldScale;
  7000. Vector2 worldScale2D;
  7001. /* readonly */
  7002. Matrix3x4 worldTransform;
  7003. /* readonly */
  7004. Vector3 worldUp;
  7005. };
  7006. class Object
  7007. {
  7008. // Methods:
  7009. bool HasSubscribedToEvent(Object, const String&);
  7010. bool HasSubscribedToEvent(const String&);
  7011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7012. // Properties:
  7013. /* readonly */
  7014. String category;
  7015. /* readonly */
  7016. int refs;
  7017. /* readonly */
  7018. StringHash type;
  7019. /* readonly */
  7020. String typeName;
  7021. /* readonly */
  7022. int weakRefs;
  7023. };
  7024. class ObjectAnimation
  7025. {
  7026. // Methods:
  7027. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7028. ValueAnimation GetAttributeAnimation(const String&) const;
  7029. float GetAttributeAnimationSpeed(const String&) const;
  7030. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7031. bool HasSubscribedToEvent(Object, const String&);
  7032. bool HasSubscribedToEvent(const String&);
  7033. bool Load(File);
  7034. bool Load(VectorBuffer&);
  7035. void RemoveAttributeAnimation(ValueAnimation);
  7036. void RemoveAttributeAnimation(const String&);
  7037. bool Save(File) const;
  7038. bool Save(VectorBuffer&) const;
  7039. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7040. // Properties:
  7041. /* readonly */
  7042. Array<Variant> attributeAnimations;
  7043. /* readonly */
  7044. String category;
  7045. /* readonly */
  7046. uint memoryUse;
  7047. String name;
  7048. /* readonly */
  7049. int refs;
  7050. /* readonly */
  7051. Array<Variant> speeds;
  7052. /* readonly */
  7053. StringHash type;
  7054. /* readonly */
  7055. String typeName;
  7056. /* readonly */
  7057. uint useTimer;
  7058. /* readonly */
  7059. int weakRefs;
  7060. /* readonly */
  7061. Array<Variant> wrapModes;
  7062. };
  7063. class Obstacle
  7064. {
  7065. // Methods:
  7066. void ApplyAttributes();
  7067. void DrawDebugGeometry(DebugRenderer, bool);
  7068. void DrawDebugGeometry(bool);
  7069. Variant GetAttribute(const String&) const;
  7070. ValueAnimation GetAttributeAnimation(const String&) const;
  7071. float GetAttributeAnimationSpeed(const String&) const;
  7072. float GetAttributeAnimationTime(const String&) const;
  7073. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7074. Variant GetAttributeDefault(const String&) const;
  7075. bool GetInterceptNetworkUpdate(const String&) const;
  7076. bool HasSubscribedToEvent(Object, const String&);
  7077. bool HasSubscribedToEvent(const String&);
  7078. bool Load(File, bool = false);
  7079. bool Load(VectorBuffer&, bool = false);
  7080. bool LoadJSON(const JSONValue&, bool = false);
  7081. bool LoadXML(const XMLElement&, bool = false);
  7082. void MarkNetworkUpdate() const;
  7083. void Remove();
  7084. void RemoveAttributeAnimation(const String&);
  7085. void RemoveInstanceDefault();
  7086. void RemoveObjectAnimation();
  7087. void ResetToDefault();
  7088. bool Save(File) const;
  7089. bool Save(VectorBuffer&) const;
  7090. bool SaveJSON(JSONValue&) const;
  7091. bool SaveXML(XMLElement&) const;
  7092. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7093. void SetAnimationTime(float);
  7094. bool SetAttribute(const String&, const Variant&);
  7095. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7096. void SetAttributeAnimationSpeed(const String&, float);
  7097. void SetAttributeAnimationTime(const String&, float);
  7098. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7099. void SetInterceptNetworkUpdate(const String&, bool);
  7100. // Properties:
  7101. bool animationEnabled;
  7102. /* readonly */
  7103. Array<Variant> attributeDefaults;
  7104. /* readonly */
  7105. Array<AttributeInfo> attributeInfos;
  7106. Array<Variant> attributes;
  7107. /* readonly */
  7108. String category;
  7109. bool enabled;
  7110. /* readonly */
  7111. bool enabledEffective;
  7112. float height;
  7113. /* readonly */
  7114. uint id;
  7115. /* readonly */
  7116. Node node;
  7117. /* readonly */
  7118. uint numAttributes;
  7119. ObjectAnimation objectAnimation;
  7120. /* readonly */
  7121. uint obstacleId;
  7122. float radius;
  7123. /* readonly */
  7124. int refs;
  7125. bool temporary;
  7126. /* readonly */
  7127. StringHash type;
  7128. /* readonly */
  7129. String typeName;
  7130. /* readonly */
  7131. int weakRefs;
  7132. };
  7133. class Octree
  7134. {
  7135. // Methods:
  7136. void AddManualDrawable(Drawable);
  7137. void ApplyAttributes();
  7138. void DrawDebugGeometry(DebugRenderer, bool);
  7139. void DrawDebugGeometry(bool) const;
  7140. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7141. Variant GetAttribute(const String&) const;
  7142. ValueAnimation GetAttributeAnimation(const String&) const;
  7143. float GetAttributeAnimationSpeed(const String&) const;
  7144. float GetAttributeAnimationTime(const String&) const;
  7145. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7146. Variant GetAttributeDefault(const String&) const;
  7147. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7148. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7149. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7150. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7151. bool GetInterceptNetworkUpdate(const String&) const;
  7152. bool HasSubscribedToEvent(Object, const String&);
  7153. bool HasSubscribedToEvent(const String&);
  7154. bool Load(File, bool = false);
  7155. bool Load(VectorBuffer&, bool = false);
  7156. bool LoadJSON(const JSONValue&, bool = false);
  7157. bool LoadXML(const XMLElement&, bool = false);
  7158. void MarkNetworkUpdate() const;
  7159. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7160. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7161. void Remove();
  7162. void RemoveAttributeAnimation(const String&);
  7163. void RemoveInstanceDefault();
  7164. void RemoveManualDrawable(Drawable);
  7165. void RemoveObjectAnimation();
  7166. void ResetToDefault();
  7167. bool Save(File) const;
  7168. bool Save(VectorBuffer&) const;
  7169. bool SaveJSON(JSONValue&) const;
  7170. bool SaveXML(XMLElement&) const;
  7171. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7172. void SetAnimationTime(float);
  7173. bool SetAttribute(const String&, const Variant&);
  7174. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7175. void SetAttributeAnimationSpeed(const String&, float);
  7176. void SetAttributeAnimationTime(const String&, float);
  7177. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7178. void SetInterceptNetworkUpdate(const String&, bool);
  7179. void SetSize(const BoundingBox&, uint);
  7180. // Properties:
  7181. bool animationEnabled;
  7182. /* readonly */
  7183. Array<Variant> attributeDefaults;
  7184. /* readonly */
  7185. Array<AttributeInfo> attributeInfos;
  7186. Array<Variant> attributes;
  7187. /* readonly */
  7188. String category;
  7189. bool enabled;
  7190. /* readonly */
  7191. bool enabledEffective;
  7192. /* readonly */
  7193. uint id;
  7194. /* readonly */
  7195. Node node;
  7196. /* readonly */
  7197. uint numAttributes;
  7198. /* readonly */
  7199. uint numLevels;
  7200. ObjectAnimation objectAnimation;
  7201. /* readonly */
  7202. int refs;
  7203. bool temporary;
  7204. /* readonly */
  7205. StringHash type;
  7206. /* readonly */
  7207. String typeName;
  7208. /* readonly */
  7209. int weakRefs;
  7210. /* readonly */
  7211. BoundingBox worldBoundingBox;
  7212. };
  7213. class OffMeshConnection
  7214. {
  7215. // Methods:
  7216. void ApplyAttributes();
  7217. void DrawDebugGeometry(DebugRenderer, bool);
  7218. Variant GetAttribute(const String&) const;
  7219. ValueAnimation GetAttributeAnimation(const String&) const;
  7220. float GetAttributeAnimationSpeed(const String&) const;
  7221. float GetAttributeAnimationTime(const String&) const;
  7222. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7223. Variant GetAttributeDefault(const String&) const;
  7224. bool GetInterceptNetworkUpdate(const String&) const;
  7225. bool HasSubscribedToEvent(Object, const String&);
  7226. bool HasSubscribedToEvent(const String&);
  7227. bool Load(File, bool = false);
  7228. bool Load(VectorBuffer&, bool = false);
  7229. bool LoadJSON(const JSONValue&, bool = false);
  7230. bool LoadXML(const XMLElement&, bool = false);
  7231. void MarkNetworkUpdate() const;
  7232. void Remove();
  7233. void RemoveAttributeAnimation(const String&);
  7234. void RemoveInstanceDefault();
  7235. void RemoveObjectAnimation();
  7236. void ResetToDefault();
  7237. bool Save(File) const;
  7238. bool Save(VectorBuffer&) const;
  7239. bool SaveJSON(JSONValue&) const;
  7240. bool SaveXML(XMLElement&) const;
  7241. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7242. void SetAnimationTime(float);
  7243. bool SetAttribute(const String&, const Variant&);
  7244. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7245. void SetAttributeAnimationSpeed(const String&, float);
  7246. void SetAttributeAnimationTime(const String&, float);
  7247. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7248. void SetInterceptNetworkUpdate(const String&, bool);
  7249. // Properties:
  7250. bool animationEnabled;
  7251. uint areaID;
  7252. /* readonly */
  7253. Array<Variant> attributeDefaults;
  7254. /* readonly */
  7255. Array<AttributeInfo> attributeInfos;
  7256. Array<Variant> attributes;
  7257. bool bidirectional;
  7258. /* readonly */
  7259. String category;
  7260. bool enabled;
  7261. /* readonly */
  7262. bool enabledEffective;
  7263. Node endPoint;
  7264. /* readonly */
  7265. uint id;
  7266. uint mask;
  7267. /* readonly */
  7268. Node node;
  7269. /* readonly */
  7270. uint numAttributes;
  7271. ObjectAnimation objectAnimation;
  7272. float radius;
  7273. /* readonly */
  7274. int refs;
  7275. bool temporary;
  7276. /* readonly */
  7277. StringHash type;
  7278. /* readonly */
  7279. String typeName;
  7280. /* readonly */
  7281. int weakRefs;
  7282. };
  7283. class PackageFile
  7284. {
  7285. // Methods:
  7286. bool Exists(const String&) const;
  7287. Array<String> GetEntryNames() const;
  7288. bool HasSubscribedToEvent(Object, const String&);
  7289. bool HasSubscribedToEvent(const String&);
  7290. bool Open(const String&, uint = 0) const;
  7291. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7292. bool compressed() const;
  7293. // Properties:
  7294. /* readonly */
  7295. String category;
  7296. /* readonly */
  7297. uint checksum;
  7298. /* readonly */
  7299. String name;
  7300. /* readonly */
  7301. uint numFiles;
  7302. /* readonly */
  7303. int refs;
  7304. /* readonly */
  7305. uint totalSize;
  7306. /* readonly */
  7307. StringHash type;
  7308. /* readonly */
  7309. String typeName;
  7310. /* readonly */
  7311. int weakRefs;
  7312. };
  7313. class ParticleEffect
  7314. {
  7315. // Methods:
  7316. void AddColorFrame(ColorFrame);
  7317. void AddColorTime(Color&, float);
  7318. void AddTextureFrame(TextureFrame);
  7319. void AddTextureTime(Rect&, float);
  7320. ColorFrame GetColorFrame(uint) const;
  7321. TextureFrame GetTextureFrame(uint) const;
  7322. bool HasSubscribedToEvent(Object, const String&);
  7323. bool HasSubscribedToEvent(const String&);
  7324. bool Load(File);
  7325. bool Load(VectorBuffer&);
  7326. bool Load(const XMLElement&);
  7327. void RemoveColorFrame(uint);
  7328. void RemoveTextureFrame(uint);
  7329. bool Save(File) const;
  7330. bool Save(VectorBuffer&) const;
  7331. bool Save(XMLElement&) const;
  7332. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7333. void SetColorFrame(uint, ColorFrame);
  7334. void SetTextureFrame(uint, TextureFrame);
  7335. void SortColorFrames();
  7336. void SortTextureFrames();
  7337. // Properties:
  7338. float activeTime;
  7339. float animationLodBias;
  7340. /* readonly */
  7341. String category;
  7342. Vector3 constantForce;
  7343. float dampingForce;
  7344. Vector3 emitterSize;
  7345. EmitterType emitterType;
  7346. FaceCameraMode faceCameraMode;
  7347. float inactiveTime;
  7348. Material material;
  7349. Vector3 maxDirection;
  7350. float maxEmissionRate;
  7351. Vector2 maxParticleSize;
  7352. float maxRotation;
  7353. float maxRotationSpeed;
  7354. float maxTimeToLive;
  7355. float maxVelocity;
  7356. /* readonly */
  7357. uint memoryUse;
  7358. Vector3 minDirection;
  7359. float minEmissionRate;
  7360. Vector2 minParticleSize;
  7361. float minRotation;
  7362. float minRotationSpeed;
  7363. float minTimeToLive;
  7364. float minVelocity;
  7365. String name;
  7366. uint numColorFrames;
  7367. uint numParticles;
  7368. uint numTextureFrames;
  7369. /* readonly */
  7370. int refs;
  7371. bool relative;
  7372. bool scaled;
  7373. float sizeAdd;
  7374. float sizeMul;
  7375. bool sorted;
  7376. /* readonly */
  7377. StringHash type;
  7378. /* readonly */
  7379. String typeName;
  7380. bool updateInvisible;
  7381. /* readonly */
  7382. uint useTimer;
  7383. /* readonly */
  7384. int weakRefs;
  7385. };
  7386. class ParticleEffect2D
  7387. {
  7388. // Methods:
  7389. bool HasSubscribedToEvent(Object, const String&);
  7390. bool HasSubscribedToEvent(const String&);
  7391. bool Load(File);
  7392. bool Load(VectorBuffer&);
  7393. bool Save(File) const;
  7394. bool Save(VectorBuffer&) const;
  7395. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7396. // Properties:
  7397. /* readonly */
  7398. String category;
  7399. /* readonly */
  7400. uint memoryUse;
  7401. String name;
  7402. /* readonly */
  7403. int refs;
  7404. /* readonly */
  7405. StringHash type;
  7406. /* readonly */
  7407. String typeName;
  7408. /* readonly */
  7409. uint useTimer;
  7410. /* readonly */
  7411. int weakRefs;
  7412. };
  7413. class ParticleEmitter
  7414. {
  7415. // Methods:
  7416. void ApplyAttributes();
  7417. void ApplyEffect();
  7418. void Commit();
  7419. void DrawDebugGeometry(DebugRenderer, bool);
  7420. Variant GetAttribute(const String&) const;
  7421. ValueAnimation GetAttributeAnimation(const String&) const;
  7422. float GetAttributeAnimationSpeed(const String&) const;
  7423. float GetAttributeAnimationTime(const String&) const;
  7424. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7425. Variant GetAttributeDefault(const String&) const;
  7426. bool GetInterceptNetworkUpdate(const String&) const;
  7427. bool HasSubscribedToEvent(Object, const String&);
  7428. bool HasSubscribedToEvent(const String&);
  7429. bool IsInView(Camera) const;
  7430. bool Load(File, bool = false);
  7431. bool Load(VectorBuffer&, bool = false);
  7432. bool LoadJSON(const JSONValue&, bool = false);
  7433. bool LoadXML(const XMLElement&, bool = false);
  7434. void MarkNetworkUpdate() const;
  7435. void Remove();
  7436. void RemoveAllParticles();
  7437. void RemoveAttributeAnimation(const String&);
  7438. void RemoveInstanceDefault();
  7439. void RemoveObjectAnimation();
  7440. void Reset();
  7441. void ResetEmissionTimer();
  7442. void ResetToDefault();
  7443. bool Save(File) const;
  7444. bool Save(VectorBuffer&) const;
  7445. bool SaveJSON(JSONValue&) const;
  7446. bool SaveXML(XMLElement&) const;
  7447. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7448. void SetAnimationTime(float);
  7449. bool SetAttribute(const String&, const Variant&);
  7450. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7451. void SetAttributeAnimationSpeed(const String&, float);
  7452. void SetAttributeAnimationTime(const String&, float);
  7453. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7454. void SetInterceptNetworkUpdate(const String&, bool);
  7455. // Properties:
  7456. bool animationEnabled;
  7457. float animationLodBias;
  7458. /* readonly */
  7459. Array<Variant> attributeDefaults;
  7460. /* readonly */
  7461. Array<AttributeInfo> attributeInfos;
  7462. Array<Variant> attributes;
  7463. /* readonly */
  7464. Array<Billboard> billboards;
  7465. /* readonly */
  7466. BoundingBox boundingBox;
  7467. bool castShadows;
  7468. /* readonly */
  7469. String category;
  7470. float drawDistance;
  7471. ParticleEffect effect;
  7472. bool emitting;
  7473. bool enabled;
  7474. /* readonly */
  7475. bool enabledEffective;
  7476. FaceCameraMode faceCameraMode;
  7477. /* readonly */
  7478. uint id;
  7479. /* readonly */
  7480. bool inView;
  7481. uint lightMask;
  7482. float lodBias;
  7483. Material material;
  7484. uint maxLights;
  7485. /* readonly */
  7486. Node node;
  7487. /* readonly */
  7488. uint numAttributes;
  7489. uint numBillboards;
  7490. uint numParticles;
  7491. ObjectAnimation objectAnimation;
  7492. bool occludee;
  7493. bool occluder;
  7494. /* readonly */
  7495. int refs;
  7496. bool relative;
  7497. bool scaled;
  7498. bool serializeParticles;
  7499. float shadowDistance;
  7500. uint shadowMask;
  7501. bool sorted;
  7502. bool temporary;
  7503. /* readonly */
  7504. StringHash type;
  7505. /* readonly */
  7506. String typeName;
  7507. uint viewMask;
  7508. /* readonly */
  7509. int weakRefs;
  7510. /* readonly */
  7511. BoundingBox worldBoundingBox;
  7512. /* readonly */
  7513. Zone zone;
  7514. uint zoneMask;
  7515. };
  7516. class ParticleEmitter2D
  7517. {
  7518. // Methods:
  7519. void ApplyAttributes();
  7520. void DrawDebugGeometry(DebugRenderer, bool);
  7521. Variant GetAttribute(const String&) const;
  7522. ValueAnimation GetAttributeAnimation(const String&) const;
  7523. float GetAttributeAnimationSpeed(const String&) const;
  7524. float GetAttributeAnimationTime(const String&) const;
  7525. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7526. Variant GetAttributeDefault(const String&) const;
  7527. bool GetInterceptNetworkUpdate(const String&) const;
  7528. bool HasSubscribedToEvent(Object, const String&);
  7529. bool HasSubscribedToEvent(const String&);
  7530. bool IsInView(Camera) const;
  7531. bool Load(File, bool = false);
  7532. bool Load(VectorBuffer&, bool = false);
  7533. bool LoadJSON(const JSONValue&, bool = false);
  7534. bool LoadXML(const XMLElement&, bool = false);
  7535. void MarkNetworkUpdate() const;
  7536. void Remove();
  7537. void RemoveAttributeAnimation(const String&);
  7538. void RemoveInstanceDefault();
  7539. void RemoveObjectAnimation();
  7540. void ResetToDefault();
  7541. bool Save(File) const;
  7542. bool Save(VectorBuffer&) const;
  7543. bool SaveJSON(JSONValue&) const;
  7544. bool SaveXML(XMLElement&) const;
  7545. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7546. void SetAnimationTime(float);
  7547. bool SetAttribute(const String&, const Variant&);
  7548. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7549. void SetAttributeAnimationSpeed(const String&, float);
  7550. void SetAttributeAnimationTime(const String&, float);
  7551. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7552. void SetInterceptNetworkUpdate(const String&, bool);
  7553. // Properties:
  7554. bool animationEnabled;
  7555. /* readonly */
  7556. Array<Variant> attributeDefaults;
  7557. /* readonly */
  7558. Array<AttributeInfo> attributeInfos;
  7559. Array<Variant> attributes;
  7560. BlendMode blendMode;
  7561. /* readonly */
  7562. BoundingBox boundingBox;
  7563. bool castShadows;
  7564. /* readonly */
  7565. String category;
  7566. float drawDistance;
  7567. ParticleEffect2D effect;
  7568. bool enabled;
  7569. /* readonly */
  7570. bool enabledEffective;
  7571. /* readonly */
  7572. uint id;
  7573. /* readonly */
  7574. bool inView;
  7575. int layer;
  7576. uint lightMask;
  7577. float lodBias;
  7578. uint maxLights;
  7579. /* readonly */
  7580. Node node;
  7581. /* readonly */
  7582. uint numAttributes;
  7583. ObjectAnimation objectAnimation;
  7584. bool occludee;
  7585. bool occluder;
  7586. int orderInLayer;
  7587. /* readonly */
  7588. int refs;
  7589. float shadowDistance;
  7590. uint shadowMask;
  7591. Sprite2D sprite;
  7592. bool temporary;
  7593. /* readonly */
  7594. StringHash type;
  7595. /* readonly */
  7596. String typeName;
  7597. uint viewMask;
  7598. /* readonly */
  7599. int weakRefs;
  7600. /* readonly */
  7601. BoundingBox worldBoundingBox;
  7602. uint zoneMask;
  7603. };
  7604. class Pass
  7605. {
  7606. // Properties:
  7607. bool alphaMask;
  7608. BlendMode blendMode;
  7609. CompareMode depthTestMode;
  7610. bool depthWrite;
  7611. bool desktop;
  7612. PassLightingMode lightingMode;
  7613. String pixelShader;
  7614. String pixelShaderDefines;
  7615. /* readonly */
  7616. int refs;
  7617. String vertexShader;
  7618. String vertexShaderDefines;
  7619. /* readonly */
  7620. int weakRefs;
  7621. };
  7622. class PhysicsRaycastResult
  7623. {
  7624. // Properties:
  7625. /* readonly */
  7626. RigidBody body;
  7627. float distance;
  7628. float hitFraction;
  7629. Vector3 normal;
  7630. Vector3 position;
  7631. };
  7632. class PhysicsRaycastResult2D
  7633. {
  7634. // Properties:
  7635. /* readonly */
  7636. RigidBody2D body;
  7637. float distance;
  7638. Vector2 normal;
  7639. Vector2 position;
  7640. };
  7641. class PhysicsWorld
  7642. {
  7643. // Methods:
  7644. void ApplyAttributes();
  7645. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7646. void DrawDebugGeometry(DebugRenderer, bool);
  7647. void DrawDebugGeometry(bool);
  7648. Variant GetAttribute(const String&) const;
  7649. ValueAnimation GetAttributeAnimation(const String&) const;
  7650. float GetAttributeAnimationSpeed(const String&) const;
  7651. float GetAttributeAnimationTime(const String&) const;
  7652. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7653. Variant GetAttributeDefault(const String&) const;
  7654. Array<RigidBody> GetCollidingBodies(RigidBody);
  7655. bool GetInterceptNetworkUpdate(const String&) const;
  7656. Array<RigidBody> GetRigidBodies(RigidBody);
  7657. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7658. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7659. bool HasSubscribedToEvent(Object, const String&);
  7660. bool HasSubscribedToEvent(const String&);
  7661. bool Load(File, bool = false);
  7662. bool Load(VectorBuffer&, bool = false);
  7663. bool LoadJSON(const JSONValue&, bool = false);
  7664. bool LoadXML(const XMLElement&, bool = false);
  7665. void MarkNetworkUpdate() const;
  7666. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7667. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7668. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7669. void Remove();
  7670. void RemoveAttributeAnimation(const String&);
  7671. void RemoveCachedGeometry(Model);
  7672. void RemoveInstanceDefault();
  7673. void RemoveObjectAnimation();
  7674. void ResetToDefault();
  7675. bool Save(File) const;
  7676. bool Save(VectorBuffer&) const;
  7677. bool SaveJSON(JSONValue&) const;
  7678. bool SaveXML(XMLElement&) const;
  7679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7680. void SetAnimationTime(float);
  7681. bool SetAttribute(const String&, const Variant&);
  7682. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7683. void SetAttributeAnimationSpeed(const String&, float);
  7684. void SetAttributeAnimationTime(const String&, float);
  7685. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7686. void SetInterceptNetworkUpdate(const String&, bool);
  7687. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7688. void Update(float);
  7689. void UpdateCollisions();
  7690. // Properties:
  7691. bool animationEnabled;
  7692. /* readonly */
  7693. Array<Variant> attributeDefaults;
  7694. /* readonly */
  7695. Array<AttributeInfo> attributeInfos;
  7696. Array<Variant> attributes;
  7697. /* readonly */
  7698. String category;
  7699. bool enabled;
  7700. /* readonly */
  7701. bool enabledEffective;
  7702. int fps;
  7703. Vector3 gravity;
  7704. /* readonly */
  7705. uint id;
  7706. bool internalEdge;
  7707. bool interpolation;
  7708. int maxSubSteps;
  7709. /* readonly */
  7710. Node node;
  7711. /* readonly */
  7712. uint numAttributes;
  7713. int numIterations;
  7714. ObjectAnimation objectAnimation;
  7715. /* readonly */
  7716. int refs;
  7717. bool splitImpulse;
  7718. bool temporary;
  7719. /* readonly */
  7720. StringHash type;
  7721. /* readonly */
  7722. String typeName;
  7723. bool updateEnabled;
  7724. /* readonly */
  7725. int weakRefs;
  7726. };
  7727. class PhysicsWorld2D
  7728. {
  7729. // Methods:
  7730. void ApplyAttributes();
  7731. void DrawDebugGeometry() const;
  7732. void DrawDebugGeometry(DebugRenderer, bool);
  7733. Variant GetAttribute(const String&) const;
  7734. ValueAnimation GetAttributeAnimation(const String&) const;
  7735. float GetAttributeAnimationSpeed(const String&) const;
  7736. float GetAttributeAnimationTime(const String&) const;
  7737. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7738. Variant GetAttributeDefault(const String&) const;
  7739. bool GetInterceptNetworkUpdate(const String&) const;
  7740. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7741. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7742. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7743. bool HasSubscribedToEvent(Object, const String&);
  7744. bool HasSubscribedToEvent(const String&);
  7745. bool Load(File, bool = false);
  7746. bool Load(VectorBuffer&, bool = false);
  7747. bool LoadJSON(const JSONValue&, bool = false);
  7748. bool LoadXML(const XMLElement&, bool = false);
  7749. void MarkNetworkUpdate() const;
  7750. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7751. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7752. void Remove();
  7753. void RemoveAttributeAnimation(const String&);
  7754. void RemoveInstanceDefault();
  7755. void RemoveObjectAnimation();
  7756. void ResetToDefault();
  7757. bool Save(File) const;
  7758. bool Save(VectorBuffer&) const;
  7759. bool SaveJSON(JSONValue&) const;
  7760. bool SaveXML(XMLElement&) const;
  7761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7762. void SetAnimationTime(float);
  7763. bool SetAttribute(const String&, const Variant&);
  7764. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7765. void SetAttributeAnimationSpeed(const String&, float);
  7766. void SetAttributeAnimationTime(const String&, float);
  7767. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7768. void SetInterceptNetworkUpdate(const String&, bool);
  7769. // Properties:
  7770. bool allowSleeping;
  7771. bool animationEnabled;
  7772. /* readonly */
  7773. Array<Variant> attributeDefaults;
  7774. /* readonly */
  7775. Array<AttributeInfo> attributeInfos;
  7776. Array<Variant> attributes;
  7777. bool autoClearForces;
  7778. /* readonly */
  7779. String category;
  7780. bool continuousPhysics;
  7781. bool drawAabb;
  7782. bool drawCenterOfMass;
  7783. bool drawJoint;
  7784. bool drawPair;
  7785. bool drawShape;
  7786. bool enabled;
  7787. /* readonly */
  7788. bool enabledEffective;
  7789. Vector2 gravity;
  7790. /* readonly */
  7791. uint id;
  7792. /* readonly */
  7793. Node node;
  7794. /* readonly */
  7795. uint numAttributes;
  7796. ObjectAnimation objectAnimation;
  7797. uint positionIterations;
  7798. /* readonly */
  7799. int refs;
  7800. bool subStepping;
  7801. bool temporary;
  7802. /* readonly */
  7803. StringHash type;
  7804. /* readonly */
  7805. String typeName;
  7806. bool updateEnabled;
  7807. uint velocityIterations;
  7808. bool warmStarting;
  7809. /* readonly */
  7810. int weakRefs;
  7811. };
  7812. class Plane
  7813. {
  7814. // Methods:
  7815. void Define(const Vector3&, const Vector3&);
  7816. void Define(const Vector3&, const Vector3&, const Vector3&);
  7817. void Define(const Vector4&);
  7818. float Distance(const Vector3&) const;
  7819. Vector3 Project(const Vector3&) const;
  7820. Vector3 Reflect(const Vector3&) const;
  7821. Vector4 ToVector4() const;
  7822. void Transform(const Matrix3&);
  7823. void Transform(const Matrix3x4&);
  7824. void Transform(const Matrix4&);
  7825. Plane Transformed(const Matrix3&) const;
  7826. Plane Transformed(const Matrix3x4&) const;
  7827. Plane Transformed(const Matrix4&) const;
  7828. // Properties:
  7829. Vector3 absNormal;
  7830. float d;
  7831. Vector3 normal;
  7832. /* readonly */
  7833. Matrix3x4 reflectionMatrix;
  7834. };
  7835. class Polyhedron
  7836. {
  7837. // Methods:
  7838. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7839. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7840. void AddFace(const Array<Vector3>);
  7841. void Clear();
  7842. void Clip(const BoundingBox&);
  7843. void Clip(const Frustum&);
  7844. void Define(const BoundingBox&);
  7845. void Define(const Frustum&);
  7846. void Transform(const Matrix3&);
  7847. void Transform(const Matrix3x4&);
  7848. Polyhedron Transformed(const Matrix3&) const;
  7849. Polyhedron Transformed(const Matrix3x4&) const;
  7850. // Properties:
  7851. /* readonly */
  7852. Array<Array<Vector3>> face;
  7853. /* readonly */
  7854. uint numFaces;
  7855. };
  7856. class PropertySet2D
  7857. {
  7858. // Methods:
  7859. bool HasProperty(const String&) const;
  7860. const String& GetProperty(const String&) const;
  7861. // Properties:
  7862. /* readonly */
  7863. int refs;
  7864. /* readonly */
  7865. int weakRefs;
  7866. };
  7867. class Quaternion
  7868. {
  7869. // Methods:
  7870. Quaternion Conjugate() const;
  7871. float DotProduct(const Quaternion&) const;
  7872. bool Equals(const Quaternion&) const;
  7873. void FromAngleAxis(float, const Vector3&);
  7874. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7875. void FromEulerAngles(float, float, float);
  7876. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7877. void FromRotationMatrix(const Matrix3&);
  7878. void FromRotationTo(const Vector3&, const Vector3&);
  7879. Quaternion Inverse() const;
  7880. bool IsNaN() const;
  7881. float LengthSquared() const;
  7882. Quaternion Nlerp(Quaternion, float, bool) const;
  7883. void Normalize();
  7884. Quaternion Normalized() const;
  7885. Quaternion Slerp(Quaternion, float) const;
  7886. String ToString() const;
  7887. // Properties:
  7888. /* readonly */
  7889. Vector3 eulerAngles;
  7890. /* readonly */
  7891. float pitch;
  7892. /* readonly */
  7893. float roll;
  7894. /* readonly */
  7895. Matrix3 rotationMatrix;
  7896. float w;
  7897. float x;
  7898. float y;
  7899. /* readonly */
  7900. float yaw;
  7901. float z;
  7902. };
  7903. class Ray
  7904. {
  7905. // Methods:
  7906. Vector3 ClosestPoint(const Ray&) const;
  7907. void Define(const Vector3&, const Vector3&);
  7908. float Distance(const Vector3&) const;
  7909. float HitDistance(const BoundingBox&) const;
  7910. float HitDistance(const Frustum&, bool = true) const;
  7911. float HitDistance(const Plane&) const;
  7912. float HitDistance(const Sphere&) const;
  7913. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7914. Vector3 Project(const Vector3&) const;
  7915. Ray Transformed(const Matrix3x4&) const;
  7916. // Properties:
  7917. Vector3 direction;
  7918. Vector3 origin;
  7919. };
  7920. class RayQueryResult
  7921. {
  7922. // Properties:
  7923. float distance;
  7924. /* readonly */
  7925. Drawable drawable;
  7926. /* readonly */
  7927. Node node;
  7928. Vector3 normal;
  7929. Vector3 position;
  7930. uint subObject;
  7931. Vector2 textureUV;
  7932. };
  7933. class Rect
  7934. {
  7935. // Methods:
  7936. void Clear();
  7937. void Clip(const Rect&);
  7938. void Define(const Vector2&);
  7939. void Define(const Vector2&, const Vector2&);
  7940. bool Defined() const;
  7941. bool Equals(const Rect&) const;
  7942. Intersection IsInside(const Vector2&) const;
  7943. void Merge(const Rect&);
  7944. void Merge(const Vector2&);
  7945. Vector4 ToVector4() const;
  7946. // Properties:
  7947. float bottom;
  7948. /* readonly */
  7949. Vector2 center;
  7950. /* readonly */
  7951. Vector2 halfSize;
  7952. float left;
  7953. Vector2 max;
  7954. Vector2 min;
  7955. float right;
  7956. /* readonly */
  7957. Vector2 size;
  7958. float top;
  7959. };
  7960. class RefCounted
  7961. {
  7962. // Properties:
  7963. /* readonly */
  7964. int refs;
  7965. /* readonly */
  7966. int weakRefs;
  7967. };
  7968. class RenderPath
  7969. {
  7970. // Methods:
  7971. void AddCommand(const RenderPathCommand&);
  7972. void AddRenderTarget(const RenderTargetInfo&);
  7973. bool Append(XMLFile);
  7974. RenderPath Clone();
  7975. void InsertCommand(uint, const RenderPathCommand&);
  7976. bool Load(XMLFile);
  7977. void RemoveCommand(uint);
  7978. void RemoveCommands(const String&);
  7979. void RemoveRenderTarget(const String&);
  7980. void RemoveRenderTarget(uint);
  7981. void RemoveRenderTargts(const String&);
  7982. void SetEnabled(const String&, bool);
  7983. void ToggleEnabled(const String&);
  7984. // Properties:
  7985. Array<RenderPathCommand> commands;
  7986. /* readonly */
  7987. uint numCommands;
  7988. /* readonly */
  7989. uint numRenderTargets;
  7990. /* readonly */
  7991. int refs;
  7992. Array<RenderTargetInfo> renderTargets;
  7993. Array<Variant> shaderParameters;
  7994. /* readonly */
  7995. int weakRefs;
  7996. };
  7997. class RenderPathCommand
  7998. {
  7999. // Methods:
  8000. void RemoveShaderParameter(const String&);
  8001. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8002. // Properties:
  8003. BlendMode blendMode;
  8004. Color clearColor;
  8005. float clearDepth;
  8006. uint clearFlags;
  8007. uint clearStencil;
  8008. String depthStencilName;
  8009. bool enabled;
  8010. bool markToStencil;
  8011. String metadata;
  8012. uint numOutputs;
  8013. Array<CubeMapFace> outputFaces;
  8014. Array<String> outputNames;
  8015. String pass;
  8016. String pixelShaderDefines;
  8017. String pixelShaderName;
  8018. Array<Variant> shaderParameters;
  8019. RenderCommandSortMode sortMode;
  8020. String tag;
  8021. Array<String> textureNames;
  8022. RenderCommandType type;
  8023. bool useFogColor;
  8024. bool useLitBase;
  8025. bool vertexLights;
  8026. String vertexShaderDefines;
  8027. String vertexShaderName;
  8028. };
  8029. class RenderSurface
  8030. {
  8031. // Methods:
  8032. void QueueUpdate();
  8033. // Properties:
  8034. /* readonly */
  8035. int height;
  8036. RenderSurface linkedDepthStencil;
  8037. RenderSurface linkedRenderTarget;
  8038. uint numViewports;
  8039. /* readonly */
  8040. Texture parentTexture;
  8041. RenderSurfaceUpdateMode updateMode;
  8042. /* readonly */
  8043. TextureUsage usage;
  8044. Array<Viewport> viewports;
  8045. /* readonly */
  8046. int width;
  8047. };
  8048. class RenderTargetInfo
  8049. {
  8050. // Properties:
  8051. bool cubemap;
  8052. bool enabled;
  8053. bool filtered;
  8054. uint format;
  8055. String name;
  8056. bool persistent;
  8057. bool sRGB;
  8058. Vector2 size;
  8059. RenderTargetSizeMode sizeMode;
  8060. String tag;
  8061. };
  8062. class Renderer
  8063. {
  8064. // Methods:
  8065. void DrawDebugGeometry(bool) const;
  8066. bool HasSubscribedToEvent(Object, const String&);
  8067. bool HasSubscribedToEvent(const String&);
  8068. void ReloadShaders() const;
  8069. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8070. void SetDefaultRenderPath(XMLFile);
  8071. void SetVSMShadowParameters(float, float);
  8072. // Properties:
  8073. /* readonly */
  8074. String category;
  8075. /* readonly */
  8076. Material defaultLightRamp;
  8077. /* readonly */
  8078. Material defaultLightSpot;
  8079. /* readonly */
  8080. Material defaultMaterial;
  8081. RenderPath defaultRenderPath;
  8082. Technique defaultTechnique;
  8083. /* readonly */
  8084. Zone defaultZone;
  8085. bool drawShadows;
  8086. bool dynamicInstancing;
  8087. bool hdrRendering;
  8088. int materialQuality;
  8089. int maxOccluderTriangles;
  8090. int maxShadowMaps;
  8091. int maxSortedInstances;
  8092. int minInstances;
  8093. float mobileNormalOffsetMul;
  8094. float mobileShadowBiasAdd;
  8095. float mobileShadowBiasMul;
  8096. /* readonly */
  8097. uint numBatches;
  8098. /* readonly */
  8099. Array<uint> numGeometries;
  8100. /* readonly */
  8101. Array<uint> numLights;
  8102. /* readonly */
  8103. Array<uint> numOccluders;
  8104. /* readonly */
  8105. uint numPrimitives;
  8106. /* readonly */
  8107. Array<uint> numShadowMaps;
  8108. uint numViewports;
  8109. /* readonly */
  8110. uint numViews;
  8111. float occluderSizeThreshold;
  8112. int occlusionBufferSize;
  8113. /* readonly */
  8114. int refs;
  8115. bool reuseShadowMaps;
  8116. int shadowMapSize;
  8117. ShadowQuality shadowQuality;
  8118. float shadowSoftness;
  8119. bool specularLighting;
  8120. int textureAnisotropy;
  8121. TextureFilterMode textureFilterMode;
  8122. int textureQuality;
  8123. bool threadedOcclusion;
  8124. /* readonly */
  8125. StringHash type;
  8126. /* readonly */
  8127. String typeName;
  8128. Array<Viewport> viewports;
  8129. Vector2 vsmShadowParameters;
  8130. /* readonly */
  8131. int weakRefs;
  8132. };
  8133. class Resource
  8134. {
  8135. // Methods:
  8136. bool HasSubscribedToEvent(Object, const String&);
  8137. bool HasSubscribedToEvent(const String&);
  8138. bool Load(File);
  8139. bool Load(VectorBuffer&);
  8140. bool Save(File) const;
  8141. bool Save(VectorBuffer&) const;
  8142. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8143. // Properties:
  8144. /* readonly */
  8145. String category;
  8146. /* readonly */
  8147. uint memoryUse;
  8148. String name;
  8149. /* readonly */
  8150. int refs;
  8151. /* readonly */
  8152. StringHash type;
  8153. /* readonly */
  8154. String typeName;
  8155. /* readonly */
  8156. uint useTimer;
  8157. /* readonly */
  8158. int weakRefs;
  8159. };
  8160. class ResourceCache
  8161. {
  8162. // Methods:
  8163. bool AddManualResource(Resource);
  8164. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8165. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8166. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8167. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8168. bool Exists(const String&) const;
  8169. Resource GetExistingResource(StringHash, const String&);
  8170. Resource GetExistingResource(const String&, const String&);
  8171. File GetFile(const String&);
  8172. String GetPreferredResourceDir(const String&) const;
  8173. Resource GetResource(StringHash, const String&, bool = true);
  8174. Resource GetResource(const String&, const String&, bool = true);
  8175. String GetResourceFileName(const String&) const;
  8176. bool HasSubscribedToEvent(Object, const String&);
  8177. bool HasSubscribedToEvent(const String&);
  8178. void ReleaseAllResources(bool = false);
  8179. void ReleaseResource(const String&, const String&, bool = false);
  8180. void ReleaseResources(StringHash, bool = false);
  8181. void ReleaseResources(const String&, bool = false);
  8182. void ReleaseResources(const String&, const String&, bool = false);
  8183. bool ReloadResource(Resource);
  8184. void ReloadResourceWithDependencies(const String&);
  8185. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8186. void RemovePackageFile(const String&, bool = true, bool = false);
  8187. void RemoveResourceDir(const String&);
  8188. String SanitateResourceDirName(const String&) const;
  8189. String SanitateResourceName(const String&) const;
  8190. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8191. // Properties:
  8192. bool autoReloadResources;
  8193. /* readonly */
  8194. String category;
  8195. int finishBackgroundResourcesMs;
  8196. Array<uint64> memoryBudget;
  8197. /* readonly */
  8198. Array<uint64> memoryUse;
  8199. /* readonly */
  8200. uint numBackgroundLoadResources;
  8201. /* readonly */
  8202. Array<PackageFile> packageFiles;
  8203. /* readonly */
  8204. int refs;
  8205. /* readonly */
  8206. Array<String> resourceDirs;
  8207. bool returnFailedResources;
  8208. /* readonly */
  8209. bool seachPackagesFirst;
  8210. /* writeonly */
  8211. bool searchPackagesFirst;
  8212. /* readonly */
  8213. uint64 totalMemoryUse;
  8214. /* readonly */
  8215. StringHash type;
  8216. /* readonly */
  8217. String typeName;
  8218. /* readonly */
  8219. int weakRefs;
  8220. };
  8221. class ResourceRef
  8222. {
  8223. // Properties:
  8224. String name;
  8225. StringHash type;
  8226. };
  8227. class ResourceRefList
  8228. {
  8229. // Methods:
  8230. void Resize(uint);
  8231. // Properties:
  8232. /* readonly */
  8233. bool empty;
  8234. /* readonly */
  8235. uint length;
  8236. Array<String> names;
  8237. StringHash type;
  8238. };
  8239. class RigidBody
  8240. {
  8241. // Methods:
  8242. void Activate();
  8243. void ApplyAttributes();
  8244. void ApplyForce(const Vector3&);
  8245. void ApplyForce(const Vector3&, const Vector3&);
  8246. void ApplyImpulse(const Vector3&);
  8247. void ApplyImpulse(const Vector3&, const Vector3&);
  8248. void ApplyTorque(const Vector3&);
  8249. void ApplyTorqueImpulse(const Vector3&);
  8250. void DisableMassUpdate();
  8251. void DrawDebugGeometry(DebugRenderer, bool);
  8252. void EnableMassUpdate();
  8253. Variant GetAttribute(const String&) const;
  8254. ValueAnimation GetAttributeAnimation(const String&) const;
  8255. float GetAttributeAnimationSpeed(const String&) const;
  8256. float GetAttributeAnimationTime(const String&) const;
  8257. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8258. Variant GetAttributeDefault(const String&) const;
  8259. bool GetInterceptNetworkUpdate(const String&) const;
  8260. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8261. bool HasSubscribedToEvent(Object, const String&);
  8262. bool HasSubscribedToEvent(const String&);
  8263. bool Load(File, bool = false);
  8264. bool Load(VectorBuffer&, bool = false);
  8265. bool LoadJSON(const JSONValue&, bool = false);
  8266. bool LoadXML(const XMLElement&, bool = false);
  8267. void MarkNetworkUpdate() const;
  8268. void ReAddBodyToWorld();
  8269. void Remove();
  8270. void RemoveAttributeAnimation(const String&);
  8271. void RemoveInstanceDefault();
  8272. void RemoveObjectAnimation();
  8273. void ResetForces();
  8274. void ResetToDefault();
  8275. bool Save(File) const;
  8276. bool Save(VectorBuffer&) const;
  8277. bool SaveJSON(JSONValue&) const;
  8278. bool SaveXML(XMLElement&) const;
  8279. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8280. void SetAnimationTime(float);
  8281. bool SetAttribute(const String&, const Variant&);
  8282. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8283. void SetAttributeAnimationSpeed(const String&, float);
  8284. void SetAttributeAnimationTime(const String&, float);
  8285. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8286. void SetCollisionLayerAndMask(uint, uint);
  8287. void SetInterceptNetworkUpdate(const String&, bool);
  8288. void SetTransform(const Vector3&, const Quaternion&);
  8289. // Properties:
  8290. /* readonly */
  8291. bool active;
  8292. float angularDamping;
  8293. Vector3 angularFactor;
  8294. float angularRestThreshold;
  8295. Vector3 angularVelocity;
  8296. bool animationEnabled;
  8297. Vector3 anisotropicFriction;
  8298. /* readonly */
  8299. Array<Variant> attributeDefaults;
  8300. /* readonly */
  8301. Array<AttributeInfo> attributeInfos;
  8302. Array<Variant> attributes;
  8303. /* readonly */
  8304. String category;
  8305. float ccdMotionThreshold;
  8306. float ccdRadius;
  8307. /* readonly */
  8308. Vector3 centerOfMass;
  8309. /* readonly */
  8310. Array<RigidBody> collidingBodies;
  8311. CollisionEventMode collisionEventMode;
  8312. uint collisionLayer;
  8313. uint collisionMask;
  8314. float contactProcessingThreshold;
  8315. bool enabled;
  8316. /* readonly */
  8317. bool enabledEffective;
  8318. float friction;
  8319. Vector3 gravityOverride;
  8320. /* readonly */
  8321. uint id;
  8322. bool kinematic;
  8323. float linearDamping;
  8324. Vector3 linearFactor;
  8325. float linearRestThreshold;
  8326. Vector3 linearVelocity;
  8327. float mass;
  8328. /* readonly */
  8329. Node node;
  8330. /* readonly */
  8331. uint numAttributes;
  8332. ObjectAnimation objectAnimation;
  8333. Vector3 position;
  8334. /* readonly */
  8335. int refs;
  8336. float restitution;
  8337. float rollingFriction;
  8338. Quaternion rotation;
  8339. bool temporary;
  8340. bool trigger;
  8341. /* readonly */
  8342. StringHash type;
  8343. /* readonly */
  8344. String typeName;
  8345. bool useGravity;
  8346. /* readonly */
  8347. int weakRefs;
  8348. };
  8349. class RigidBody2D
  8350. {
  8351. // Methods:
  8352. void ApplyAngularImpulse(float, bool);
  8353. void ApplyAttributes();
  8354. void ApplyForce(const Vector2&, const Vector2&, bool);
  8355. void ApplyForceToCenter(const Vector2&, bool);
  8356. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8357. void ApplyTorque(float, bool);
  8358. void DrawDebugGeometry(DebugRenderer, bool);
  8359. Variant GetAttribute(const String&) const;
  8360. ValueAnimation GetAttributeAnimation(const String&) const;
  8361. float GetAttributeAnimationSpeed(const String&) const;
  8362. float GetAttributeAnimationTime(const String&) const;
  8363. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8364. Variant GetAttributeDefault(const String&) const;
  8365. bool GetInterceptNetworkUpdate(const String&) const;
  8366. bool HasSubscribedToEvent(Object, const String&);
  8367. bool HasSubscribedToEvent(const String&);
  8368. bool Load(File, bool = false);
  8369. bool Load(VectorBuffer&, bool = false);
  8370. bool LoadJSON(const JSONValue&, bool = false);
  8371. bool LoadXML(const XMLElement&, bool = false);
  8372. void MarkNetworkUpdate() const;
  8373. void Remove();
  8374. void RemoveAttributeAnimation(const String&);
  8375. void RemoveInstanceDefault();
  8376. void RemoveObjectAnimation();
  8377. void ResetToDefault();
  8378. bool Save(File) const;
  8379. bool Save(VectorBuffer&) const;
  8380. bool SaveJSON(JSONValue&) const;
  8381. bool SaveXML(XMLElement&) const;
  8382. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8383. void SetAnimationTime(float);
  8384. bool SetAttribute(const String&, const Variant&);
  8385. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8386. void SetAttributeAnimationSpeed(const String&, float);
  8387. void SetAttributeAnimationTime(const String&, float);
  8388. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8389. void SetInterceptNetworkUpdate(const String&, bool);
  8390. // Properties:
  8391. bool allowSleep;
  8392. float angularDamping;
  8393. bool animationEnabled;
  8394. /* readonly */
  8395. Array<Variant> attributeDefaults;
  8396. /* readonly */
  8397. Array<AttributeInfo> attributeInfos;
  8398. Array<Variant> attributes;
  8399. bool awake;
  8400. BodyType2D bodyType;
  8401. bool bullet;
  8402. /* readonly */
  8403. String category;
  8404. bool enabled;
  8405. /* readonly */
  8406. bool enabledEffective;
  8407. bool fixedRotation;
  8408. float gravityScale;
  8409. /* readonly */
  8410. uint id;
  8411. float inertia;
  8412. float linearDamping;
  8413. Vector2 linearVelocity;
  8414. float mass;
  8415. Vector2 massCenter;
  8416. /* readonly */
  8417. Node node;
  8418. /* readonly */
  8419. uint numAttributes;
  8420. ObjectAnimation objectAnimation;
  8421. /* readonly */
  8422. int refs;
  8423. bool temporary;
  8424. /* readonly */
  8425. StringHash type;
  8426. /* readonly */
  8427. String typeName;
  8428. bool useFixtureMass;
  8429. /* readonly */
  8430. int weakRefs;
  8431. };
  8432. class Scene
  8433. {
  8434. // Methods:
  8435. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8436. void AddRequiredPackageFile(PackageFile);
  8437. void AddTag(const String&);
  8438. void AddTags(const String&, int8 = ';');
  8439. void ApplyAttributes();
  8440. void Clear(bool = true, bool = true);
  8441. void ClearRequiredPackageFiles();
  8442. Component CloneComponent(Component, CreateMode, uint = 0);
  8443. Component CloneComponent(Component, uint = 0);
  8444. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8445. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8446. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8447. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8448. Variant GetAttribute(const String&) const;
  8449. ValueAnimation GetAttributeAnimation(const String&) const;
  8450. float GetAttributeAnimationSpeed(const String&) const;
  8451. float GetAttributeAnimationTime(const String&) const;
  8452. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8453. Variant GetAttributeDefault(const String&) const;
  8454. Node GetChild(const String&, bool = false) const;
  8455. Array<Node> GetChildren(bool = false) const;
  8456. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8457. Array<Node> GetChildrenWithScript(bool = false) const;
  8458. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8459. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8460. Component GetComponent(const String&, bool = false) const;
  8461. Component GetComponent(uint) const;
  8462. Array<Component> GetComponents() const;
  8463. Array<Component> GetComponents(const String&, bool = false) const;
  8464. bool GetInterceptNetworkUpdate(const String&) const;
  8465. Node GetNode(uint) const;
  8466. Array<Node> GetNodesWithTag(const String&) const;
  8467. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8468. Component GetParentComponent(const String&, bool = false) const;
  8469. ScriptObject GetScriptObject() const;
  8470. ScriptObject GetScriptObject(const String&) const;
  8471. bool HasComponent(const String&) const;
  8472. bool HasSubscribedToEvent(Object, const String&);
  8473. bool HasSubscribedToEvent(const String&);
  8474. bool HasTag(const String&);
  8475. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8476. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8477. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8478. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8479. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8480. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8481. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8482. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8483. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8484. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8485. bool Load(File, bool = false);
  8486. bool Load(VectorBuffer&, bool = false);
  8487. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8488. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8489. bool LoadJSON(File);
  8490. bool LoadJSON(VectorBuffer&);
  8491. bool LoadJSON(const JSONValue&, bool = false);
  8492. bool LoadXML(File);
  8493. bool LoadXML(VectorBuffer&);
  8494. bool LoadXML(const XMLElement&, bool = false);
  8495. Vector3 LocalToWorld(const Vector3&) const;
  8496. Vector3 LocalToWorld(const Vector4&) const;
  8497. Vector2 LocalToWorld2D(const Vector2&) const;
  8498. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8499. void MarkNetworkUpdate() const;
  8500. void Pitch(float, TransformSpace = TS_LOCAL);
  8501. void RegisterVar(const String&);
  8502. void Remove();
  8503. void RemoveAllChildren();
  8504. void RemoveAllComponents();
  8505. void RemoveAllTags();
  8506. void RemoveAttributeAnimation(const String&);
  8507. void RemoveChild(Node);
  8508. void RemoveChildren(bool, bool, bool);
  8509. void RemoveComponent(Component);
  8510. void RemoveComponent(const String&);
  8511. void RemoveComponents(bool, bool);
  8512. void RemoveComponents(const String&);
  8513. void RemoveInstanceDefault();
  8514. void RemoveObjectAnimation();
  8515. bool RemoveTag(const String&);
  8516. void ResetToDefault();
  8517. void Roll(float, TransformSpace = TS_LOCAL);
  8518. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8519. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8520. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8521. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8522. bool Save(File) const;
  8523. bool Save(VectorBuffer&) const;
  8524. bool SaveJSON(File, const String& = "\t");
  8525. bool SaveJSON(JSONValue&) const;
  8526. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8527. bool SaveXML(File, const String& = "\t");
  8528. bool SaveXML(VectorBuffer&, const String& = "\t");
  8529. bool SaveXML(XMLElement&) const;
  8530. void Scale(const Vector3&);
  8531. void Scale(float);
  8532. void Scale2D(const Vector2&);
  8533. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8534. void SetAnimationTime(float);
  8535. bool SetAttribute(const String&, const Variant&);
  8536. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8537. void SetAttributeAnimationSpeed(const String&, float);
  8538. void SetAttributeAnimationTime(const String&, float);
  8539. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8540. void SetInterceptNetworkUpdate(const String&, bool);
  8541. void SetPosition2D(float, float);
  8542. void SetScale(float);
  8543. void SetScale2D(float, float);
  8544. void SetTransform(const Vector3&, const Quaternion&);
  8545. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8546. void SetTransform(const Vector3&, const Quaternion&, float);
  8547. void SetTransform2D(const Vector2&, float);
  8548. void SetTransform2D(const Vector2&, float, const Vector2&);
  8549. void SetTransform2D(const Vector2&, float, float);
  8550. void SetWorldTransform(const Vector3&, const Quaternion&);
  8551. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8552. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8553. void SetWorldTransform2D(const Vector2&, float);
  8554. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8555. void SetWorldTransform2D(const Vector2&, float, float);
  8556. void StopAsyncLoading();
  8557. const String& GetVarName(StringHash) const;
  8558. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8559. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8560. void UnregisterAllVars(const String&);
  8561. void UnregisterVar(const String&);
  8562. void Update(float);
  8563. Vector3 WorldToLocal(const Vector3&) const;
  8564. Vector3 WorldToLocal(const Vector4&) const;
  8565. Vector2 WorldToLocal2D(const Vector2&) const;
  8566. void Yaw(float, TransformSpace = TS_LOCAL);
  8567. // Properties:
  8568. bool animationEnabled;
  8569. /* readonly */
  8570. LoadMode asyncLoadMode;
  8571. /* readonly */
  8572. bool asyncLoading;
  8573. int asyncLoadingMs;
  8574. /* readonly */
  8575. float asyncProgress;
  8576. /* readonly */
  8577. Array<Variant> attributeDefaults;
  8578. /* readonly */
  8579. Array<AttributeInfo> attributeInfos;
  8580. Array<Variant> attributes;
  8581. /* readonly */
  8582. String category;
  8583. /* readonly */
  8584. uint checksum;
  8585. /* readonly */
  8586. Array<Node> children;
  8587. /* readonly */
  8588. Array<Component> components;
  8589. /* readonly */
  8590. DebugRenderer debugRenderer;
  8591. Vector3 direction;
  8592. float elapsedTime;
  8593. /* readonly */
  8594. String fileName;
  8595. /* readonly */
  8596. uint id;
  8597. String name;
  8598. /* readonly */
  8599. uint numAllChildren;
  8600. /* readonly */
  8601. uint numAttributes;
  8602. /* readonly */
  8603. uint numChildren;
  8604. /* readonly */
  8605. uint numComponents;
  8606. ObjectAnimation objectAnimation;
  8607. /* readonly */
  8608. Octree octree;
  8609. Node parent;
  8610. /* readonly */
  8611. PhysicsWorld physicsWorld;
  8612. /* readonly */
  8613. PhysicsWorld2D physicsWorld2D;
  8614. Vector3 position;
  8615. Vector2 position2D;
  8616. /* readonly */
  8617. int refs;
  8618. /* readonly */
  8619. Array<PackageFile> requiredPackageFiles;
  8620. /* readonly */
  8621. Vector3 right;
  8622. Quaternion rotation;
  8623. float rotation2D;
  8624. Vector3 scale;
  8625. Vector2 scale2D;
  8626. /* readonly */
  8627. ScriptObject scriptObject;
  8628. float smoothingConstant;
  8629. float snapThreshold;
  8630. /* readonly */
  8631. Array<String> tags;
  8632. bool temporary;
  8633. float timeScale;
  8634. /* readonly */
  8635. Matrix3x4 transform;
  8636. /* readonly */
  8637. StringHash type;
  8638. /* readonly */
  8639. String typeName;
  8640. /* readonly */
  8641. Vector3 up;
  8642. bool updateEnabled;
  8643. /* readonly */
  8644. VariantMap vars;
  8645. /* readonly */
  8646. int weakRefs;
  8647. Vector3 worldDirection;
  8648. Vector3 worldPosition;
  8649. Vector2 worldPosition2D;
  8650. /* readonly */
  8651. Vector3 worldRight;
  8652. Quaternion worldRotation;
  8653. float worldRotation2D;
  8654. Vector3 worldScale;
  8655. Vector2 worldScale2D;
  8656. /* readonly */
  8657. Matrix3x4 worldTransform;
  8658. /* readonly */
  8659. Vector3 worldUp;
  8660. };
  8661. class Script
  8662. {
  8663. // Methods:
  8664. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8665. bool Execute(const String&);
  8666. bool HasSubscribedToEvent(Object, const String&);
  8667. bool HasSubscribedToEvent(const String&);
  8668. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8669. // Properties:
  8670. /* readonly */
  8671. String category;
  8672. Scene defaultScene;
  8673. ScriptFile defaultScriptFile;
  8674. bool executeConsoleCommands;
  8675. /* readonly */
  8676. int refs;
  8677. /* readonly */
  8678. StringHash type;
  8679. /* readonly */
  8680. String typeName;
  8681. /* readonly */
  8682. int weakRefs;
  8683. };
  8684. class ScriptFile
  8685. {
  8686. // Methods:
  8687. void ClearDelayedExecute(const String& = String ( ));
  8688. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8689. bool Execute(const String&, const Array<Variant> = null);
  8690. bool HasSubscribedToEvent(Object, const String&);
  8691. bool HasSubscribedToEvent(const String&);
  8692. bool Load(File);
  8693. bool Load(VectorBuffer&);
  8694. bool Save(File) const;
  8695. bool Save(VectorBuffer&) const;
  8696. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8697. // Properties:
  8698. /* readonly */
  8699. String category;
  8700. /* readonly */
  8701. bool compiled;
  8702. /* readonly */
  8703. uint memoryUse;
  8704. String name;
  8705. /* readonly */
  8706. int refs;
  8707. /* readonly */
  8708. StringHash type;
  8709. /* readonly */
  8710. String typeName;
  8711. /* readonly */
  8712. uint useTimer;
  8713. /* readonly */
  8714. int weakRefs;
  8715. };
  8716. class ScriptInstance
  8717. {
  8718. // Methods:
  8719. void ApplyAttributes();
  8720. void ClearDelayedExecute(const String& = String ( ));
  8721. bool CreateObject(ScriptFile, const String&);
  8722. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8723. void DrawDebugGeometry(DebugRenderer, bool);
  8724. bool Execute(const String&, const Array<Variant> = null);
  8725. Variant GetAttribute(const String&) const;
  8726. ValueAnimation GetAttributeAnimation(const String&) const;
  8727. float GetAttributeAnimationSpeed(const String&) const;
  8728. float GetAttributeAnimationTime(const String&) const;
  8729. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8730. Variant GetAttributeDefault(const String&) const;
  8731. bool GetInterceptNetworkUpdate(const String&) const;
  8732. bool HasMethod(const String&) const;
  8733. bool HasSubscribedToEvent(Object, const String&);
  8734. bool HasSubscribedToEvent(const String&);
  8735. bool IsA(const String&) const;
  8736. bool Load(File, bool = false);
  8737. bool Load(VectorBuffer&, bool = false);
  8738. bool LoadJSON(const JSONValue&, bool = false);
  8739. bool LoadXML(const XMLElement&, bool = false);
  8740. void MarkNetworkUpdate() const;
  8741. void Remove();
  8742. void RemoveAttributeAnimation(const String&);
  8743. void RemoveInstanceDefault();
  8744. void RemoveObjectAnimation();
  8745. void ResetToDefault();
  8746. bool Save(File) const;
  8747. bool Save(VectorBuffer&) const;
  8748. bool SaveJSON(JSONValue&) const;
  8749. bool SaveXML(XMLElement&) const;
  8750. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8751. void SetAnimationTime(float);
  8752. bool SetAttribute(const String&, const Variant&);
  8753. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8754. void SetAttributeAnimationSpeed(const String&, float);
  8755. void SetAttributeAnimationTime(const String&, float);
  8756. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8757. void SetInterceptNetworkUpdate(const String&, bool);
  8758. // Properties:
  8759. bool animationEnabled;
  8760. /* readonly */
  8761. Array<Variant> attributeDefaults;
  8762. /* readonly */
  8763. Array<AttributeInfo> attributeInfos;
  8764. Array<Variant> attributes;
  8765. /* readonly */
  8766. String category;
  8767. String className;
  8768. bool enabled;
  8769. /* readonly */
  8770. bool enabledEffective;
  8771. /* readonly */
  8772. uint id;
  8773. /* readonly */
  8774. Node node;
  8775. /* readonly */
  8776. uint numAttributes;
  8777. ObjectAnimation objectAnimation;
  8778. /* readonly */
  8779. int refs;
  8780. ScriptFile scriptFile;
  8781. /* readonly */
  8782. ScriptObject scriptObject;
  8783. bool temporary;
  8784. /* readonly */
  8785. StringHash type;
  8786. /* readonly */
  8787. String typeName;
  8788. /* readonly */
  8789. int weakRefs;
  8790. };
  8791. class ScriptObject
  8792. {
  8793. };
  8794. class ScrollBar
  8795. {
  8796. // Methods:
  8797. void AddChild(UIElement);
  8798. void AddTag(const String&);
  8799. void AddTags(const String&, int8 = ';');
  8800. void ApplyAttributes();
  8801. void BringToFront();
  8802. void ChangeValue(float);
  8803. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8804. void DisableLayoutUpdate();
  8805. IntVector2 ElementToScreen(const IntVector2&);
  8806. void EnableLayoutUpdate();
  8807. uint FindChild(UIElement) const;
  8808. Variant GetAttribute(const String&) const;
  8809. ValueAnimation GetAttributeAnimation(const String&) const;
  8810. float GetAttributeAnimationSpeed(const String&) const;
  8811. float GetAttributeAnimationTime(const String&) const;
  8812. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8813. Variant GetAttributeDefault(const String&) const;
  8814. UIElement GetChild(const String&, bool = false) const;
  8815. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8816. Array<UIElement> GetChildren(bool = false) const;
  8817. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8818. UIElement GetElementEventSender() const;
  8819. bool GetInterceptNetworkUpdate(const String&) const;
  8820. uint GetNumChildren(bool) const;
  8821. bool HasSubscribedToEvent(Object, const String&);
  8822. bool HasSubscribedToEvent(const String&);
  8823. bool HasTag(const String&) const;
  8824. void InsertChild(uint, UIElement);
  8825. bool IsInside(IntVector2, bool);
  8826. bool IsInsideCombined(IntVector2, bool);
  8827. bool Load(File, bool = false);
  8828. bool Load(VectorBuffer&, bool = false);
  8829. bool LoadChildXML(XMLFile, XMLFile = null);
  8830. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8831. bool LoadJSON(const JSONValue&, bool = false);
  8832. bool LoadXML(File);
  8833. bool LoadXML(VectorBuffer&);
  8834. bool LoadXML(XMLFile, XMLFile);
  8835. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8836. bool LoadXML(const XMLElement&, bool = false);
  8837. void MarkNetworkUpdate() const;
  8838. void Remove();
  8839. void RemoveAllChildren();
  8840. void RemoveAllTags();
  8841. void RemoveAttributeAnimation(const String&);
  8842. void RemoveChild(UIElement, uint = 0);
  8843. void RemoveChild(uint);
  8844. void RemoveInstanceDefault();
  8845. void RemoveObjectAnimation();
  8846. bool RemoveTag(const String&);
  8847. void ResetDeepEnabled();
  8848. void ResetToDefault();
  8849. bool Save(File) const;
  8850. bool Save(VectorBuffer&) const;
  8851. bool SaveJSON(JSONValue&) const;
  8852. bool SaveXML(File, const String& = "\t");
  8853. bool SaveXML(VectorBuffer&, const String& = "\t");
  8854. bool SaveXML(XMLElement&) const;
  8855. IntVector2 ScreenToElement(const IntVector2&);
  8856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8857. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8858. void SetAnimationTime(float);
  8859. bool SetAttribute(const String&, const Variant&);
  8860. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8861. void SetAttributeAnimationSpeed(const String&, float);
  8862. void SetAttributeAnimationTime(const String&, float);
  8863. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8864. void SetDeepEnabled(bool);
  8865. void SetEnabledRecursive(bool);
  8866. void SetFixedHeight(int);
  8867. void SetFixedSize(int, int);
  8868. void SetFixedWidth(int);
  8869. void SetInterceptNetworkUpdate(const String&, bool);
  8870. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8871. void SetMaxSize(int, int);
  8872. void SetMinSize(int, int);
  8873. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8874. void SetPosition(int, int);
  8875. void SetSize(int, int);
  8876. bool SetStyle(const String&, XMLFile = null);
  8877. bool SetStyle(const XMLElement&);
  8878. bool SetStyleAuto(XMLFile = null);
  8879. void StepBack();
  8880. void StepForward();
  8881. void UpdateLayout();
  8882. const Variant& GetVar(const StringHash&);
  8883. // Properties:
  8884. bool animationEnabled;
  8885. /* readonly */
  8886. Array<Variant> attributeDefaults;
  8887. /* readonly */
  8888. Array<AttributeInfo> attributeInfos;
  8889. Array<Variant> attributes;
  8890. /* readonly */
  8891. Button backButton;
  8892. bool bringToBack;
  8893. bool bringToFront;
  8894. /* readonly */
  8895. String category;
  8896. /* readonly */
  8897. IntVector2 childOffset;
  8898. /* readonly */
  8899. Array<UIElement> children;
  8900. IntRect clipBorder;
  8901. bool clipChildren;
  8902. /* writeonly */
  8903. Color color;
  8904. /* readonly */
  8905. bool colorGradient;
  8906. Array<Color> colors;
  8907. /* readonly */
  8908. IntRect combinedScreenRect;
  8909. XMLFile defaultStyle;
  8910. /* readonly */
  8911. float derivedOpacity;
  8912. /* readonly */
  8913. uint dragButtonCombo;
  8914. /* readonly */
  8915. int dragButtonCount;
  8916. uint dragDropMode;
  8917. bool editable;
  8918. /* readonly */
  8919. float effectiveScrollStep;
  8920. bool elementEventSender;
  8921. bool enabled;
  8922. /* readonly */
  8923. bool enabledSelf;
  8924. /* readonly */
  8925. bool fixedHeight;
  8926. /* readonly */
  8927. bool fixedSize;
  8928. /* readonly */
  8929. bool fixedWidth;
  8930. bool focus;
  8931. FocusMode focusMode;
  8932. /* readonly */
  8933. Button forwardButton;
  8934. int height;
  8935. HorizontalAlignment horizontalAlignment;
  8936. /* readonly */
  8937. bool hovering;
  8938. int indent;
  8939. int indentSpacing;
  8940. /* readonly */
  8941. int indentWidth;
  8942. bool internal;
  8943. IntRect layoutBorder;
  8944. Vector2 layoutFlexScale;
  8945. LayoutMode layoutMode;
  8946. int layoutSpacing;
  8947. int maxHeight;
  8948. IntVector2 maxSize;
  8949. int maxWidth;
  8950. int minHeight;
  8951. IntVector2 minSize;
  8952. int minWidth;
  8953. String name;
  8954. /* readonly */
  8955. uint numAllChildren;
  8956. /* readonly */
  8957. uint numAttributes;
  8958. /* readonly */
  8959. uint numChildren;
  8960. ObjectAnimation objectAnimation;
  8961. float opacity;
  8962. Orientation orientation;
  8963. UIElement parent;
  8964. IntVector2 position;
  8965. int priority;
  8966. float range;
  8967. /* readonly */
  8968. int refs;
  8969. /* readonly */
  8970. UIElement root;
  8971. /* readonly */
  8972. IntVector2 screenPosition;
  8973. float scrollStep;
  8974. bool selected;
  8975. IntVector2 size;
  8976. /* readonly */
  8977. Slider slider;
  8978. bool sortChildren;
  8979. float stepFactor;
  8980. String style;
  8981. /* readonly */
  8982. Array<String> tags;
  8983. bool temporary;
  8984. TraversalMode traversalMode;
  8985. /* readonly */
  8986. StringHash type;
  8987. /* readonly */
  8988. String typeName;
  8989. bool useDerivedOpacity;
  8990. float value;
  8991. /* readonly */
  8992. VariantMap vars;
  8993. VerticalAlignment verticalAlignment;
  8994. bool visible;
  8995. /* readonly */
  8996. bool visibleEffective;
  8997. /* readonly */
  8998. int weakRefs;
  8999. int width;
  9000. };
  9001. class ScrollView
  9002. {
  9003. // Methods:
  9004. void AddChild(UIElement);
  9005. void AddTag(const String&);
  9006. void AddTags(const String&, int8 = ';');
  9007. void ApplyAttributes();
  9008. void BringToFront();
  9009. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9010. void DisableLayoutUpdate();
  9011. IntVector2 ElementToScreen(const IntVector2&);
  9012. void EnableLayoutUpdate();
  9013. uint FindChild(UIElement) const;
  9014. Variant GetAttribute(const String&) const;
  9015. ValueAnimation GetAttributeAnimation(const String&) const;
  9016. float GetAttributeAnimationSpeed(const String&) const;
  9017. float GetAttributeAnimationTime(const String&) const;
  9018. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9019. Variant GetAttributeDefault(const String&) const;
  9020. UIElement GetChild(const String&, bool = false) const;
  9021. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9022. Array<UIElement> GetChildren(bool = false) const;
  9023. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9024. UIElement GetElementEventSender() const;
  9025. bool GetInterceptNetworkUpdate(const String&) const;
  9026. uint GetNumChildren(bool) const;
  9027. bool HasSubscribedToEvent(Object, const String&);
  9028. bool HasSubscribedToEvent(const String&);
  9029. bool HasTag(const String&) const;
  9030. void InsertChild(uint, UIElement);
  9031. bool IsInside(IntVector2, bool);
  9032. bool IsInsideCombined(IntVector2, bool);
  9033. bool Load(File, bool = false);
  9034. bool Load(VectorBuffer&, bool = false);
  9035. bool LoadChildXML(XMLFile, XMLFile = null);
  9036. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9037. bool LoadJSON(const JSONValue&, bool = false);
  9038. bool LoadXML(File);
  9039. bool LoadXML(VectorBuffer&);
  9040. bool LoadXML(XMLFile, XMLFile);
  9041. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9042. bool LoadXML(const XMLElement&, bool = false);
  9043. void MarkNetworkUpdate() const;
  9044. void Remove();
  9045. void RemoveAllChildren();
  9046. void RemoveAllTags();
  9047. void RemoveAttributeAnimation(const String&);
  9048. void RemoveChild(UIElement, uint = 0);
  9049. void RemoveChild(uint);
  9050. void RemoveInstanceDefault();
  9051. void RemoveObjectAnimation();
  9052. bool RemoveTag(const String&);
  9053. void ResetDeepEnabled();
  9054. void ResetToDefault();
  9055. bool Save(File) const;
  9056. bool Save(VectorBuffer&) const;
  9057. bool SaveJSON(JSONValue&) const;
  9058. bool SaveXML(File, const String& = "\t");
  9059. bool SaveXML(VectorBuffer&, const String& = "\t");
  9060. bool SaveXML(XMLElement&) const;
  9061. IntVector2 ScreenToElement(const IntVector2&);
  9062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9063. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9064. void SetAnimationTime(float);
  9065. bool SetAttribute(const String&, const Variant&);
  9066. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9067. void SetAttributeAnimationSpeed(const String&, float);
  9068. void SetAttributeAnimationTime(const String&, float);
  9069. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9070. void SetDeepEnabled(bool);
  9071. void SetEnabledRecursive(bool);
  9072. void SetFixedHeight(int);
  9073. void SetFixedSize(int, int);
  9074. void SetFixedWidth(int);
  9075. void SetInterceptNetworkUpdate(const String&, bool);
  9076. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9077. void SetMaxSize(int, int);
  9078. void SetMinSize(int, int);
  9079. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9080. void SetPosition(int, int);
  9081. void SetScrollBarsVisible(bool, bool);
  9082. void SetSize(int, int);
  9083. bool SetStyle(const String&, XMLFile = null);
  9084. bool SetStyle(const XMLElement&);
  9085. bool SetStyleAuto(XMLFile = null);
  9086. void SetViewPosition(int, int);
  9087. void UpdateLayout();
  9088. const Variant& GetVar(const StringHash&);
  9089. // Properties:
  9090. bool animationEnabled;
  9091. /* readonly */
  9092. Array<Variant> attributeDefaults;
  9093. /* readonly */
  9094. Array<AttributeInfo> attributeInfos;
  9095. Array<Variant> attributes;
  9096. bool autoDisableChildren;
  9097. float autoDisableThreshold;
  9098. bool bringToBack;
  9099. bool bringToFront;
  9100. /* readonly */
  9101. String category;
  9102. /* readonly */
  9103. IntVector2 childOffset;
  9104. /* readonly */
  9105. Array<UIElement> children;
  9106. IntRect clipBorder;
  9107. bool clipChildren;
  9108. /* writeonly */
  9109. Color color;
  9110. /* readonly */
  9111. bool colorGradient;
  9112. Array<Color> colors;
  9113. /* readonly */
  9114. IntRect combinedScreenRect;
  9115. UIElement contentElement;
  9116. XMLFile defaultStyle;
  9117. /* readonly */
  9118. float derivedOpacity;
  9119. /* readonly */
  9120. uint dragButtonCombo;
  9121. /* readonly */
  9122. int dragButtonCount;
  9123. uint dragDropMode;
  9124. bool editable;
  9125. bool elementEventSender;
  9126. bool enabled;
  9127. /* readonly */
  9128. bool enabledSelf;
  9129. /* readonly */
  9130. bool fixedHeight;
  9131. /* readonly */
  9132. bool fixedSize;
  9133. /* readonly */
  9134. bool fixedWidth;
  9135. bool focus;
  9136. FocusMode focusMode;
  9137. int height;
  9138. HorizontalAlignment horizontalAlignment;
  9139. /* readonly */
  9140. ScrollBar horizontalScrollBar;
  9141. /* readonly */
  9142. bool hovering;
  9143. int indent;
  9144. int indentSpacing;
  9145. /* readonly */
  9146. int indentWidth;
  9147. bool internal;
  9148. IntRect layoutBorder;
  9149. Vector2 layoutFlexScale;
  9150. LayoutMode layoutMode;
  9151. int layoutSpacing;
  9152. int maxHeight;
  9153. IntVector2 maxSize;
  9154. int maxWidth;
  9155. int minHeight;
  9156. IntVector2 minSize;
  9157. int minWidth;
  9158. String name;
  9159. /* readonly */
  9160. uint numAllChildren;
  9161. /* readonly */
  9162. uint numAttributes;
  9163. /* readonly */
  9164. uint numChildren;
  9165. ObjectAnimation objectAnimation;
  9166. float opacity;
  9167. float pageStep;
  9168. UIElement parent;
  9169. IntVector2 position;
  9170. int priority;
  9171. /* readonly */
  9172. int refs;
  9173. /* readonly */
  9174. UIElement root;
  9175. /* readonly */
  9176. IntVector2 screenPosition;
  9177. bool scrollBarsAutoVisible;
  9178. float scrollDeceleration;
  9179. /* readonly */
  9180. BorderImage scrollPanel;
  9181. float scrollSnapEpsilon;
  9182. float scrollStep;
  9183. bool selected;
  9184. IntVector2 size;
  9185. bool sortChildren;
  9186. String style;
  9187. /* readonly */
  9188. Array<String> tags;
  9189. bool temporary;
  9190. TraversalMode traversalMode;
  9191. /* readonly */
  9192. StringHash type;
  9193. /* readonly */
  9194. String typeName;
  9195. bool useDerivedOpacity;
  9196. /* readonly */
  9197. VariantMap vars;
  9198. VerticalAlignment verticalAlignment;
  9199. /* readonly */
  9200. ScrollBar verticalScrollBar;
  9201. IntVector2 viewPosition;
  9202. bool visible;
  9203. /* readonly */
  9204. bool visibleEffective;
  9205. /* readonly */
  9206. int weakRefs;
  9207. int width;
  9208. };
  9209. class Serializable
  9210. {
  9211. // Methods:
  9212. void ApplyAttributes();
  9213. Variant GetAttribute(const String&) const;
  9214. Variant GetAttributeDefault(const String&) const;
  9215. bool GetInterceptNetworkUpdate(const String&) const;
  9216. bool HasSubscribedToEvent(Object, const String&);
  9217. bool HasSubscribedToEvent(const String&);
  9218. bool Load(File, bool = false);
  9219. bool Load(VectorBuffer&, bool = false);
  9220. bool LoadJSON(const JSONValue&, bool = false);
  9221. bool LoadXML(const XMLElement&, bool = false);
  9222. void MarkNetworkUpdate() const;
  9223. void RemoveInstanceDefault();
  9224. void ResetToDefault();
  9225. bool Save(File) const;
  9226. bool Save(VectorBuffer&) const;
  9227. bool SaveJSON(JSONValue&) const;
  9228. bool SaveXML(XMLElement&) const;
  9229. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9230. bool SetAttribute(const String&, const Variant&);
  9231. void SetInterceptNetworkUpdate(const String&, bool);
  9232. // Properties:
  9233. /* readonly */
  9234. Array<Variant> attributeDefaults;
  9235. /* readonly */
  9236. Array<AttributeInfo> attributeInfos;
  9237. Array<Variant> attributes;
  9238. /* readonly */
  9239. String category;
  9240. /* readonly */
  9241. uint numAttributes;
  9242. /* readonly */
  9243. int refs;
  9244. bool temporary;
  9245. /* readonly */
  9246. StringHash type;
  9247. /* readonly */
  9248. String typeName;
  9249. /* readonly */
  9250. int weakRefs;
  9251. };
  9252. class Serializer
  9253. {
  9254. // Methods:
  9255. uint Write(Array<uint8>);
  9256. bool WriteBool(bool);
  9257. bool WriteBoundingBox(const BoundingBox&);
  9258. bool WriteByte(int8);
  9259. bool WriteColor(const Color&);
  9260. bool WriteDouble(double);
  9261. bool WriteFileID(const String&);
  9262. bool WriteFloat(float);
  9263. bool WriteInt(int);
  9264. bool WriteIntRect(const IntRect&);
  9265. bool WriteIntVector2(const IntVector2&);
  9266. bool WriteLine(const String&);
  9267. bool WriteMatrix3(const Matrix3&);
  9268. bool WriteMatrix3x4(const Matrix3x4&);
  9269. bool WriteMatrix4(const Matrix4&);
  9270. bool WriteNetID(uint);
  9271. bool WritePackedQuaternion(const Quaternion&);
  9272. bool WritePackedVector3(const Vector3&, float);
  9273. bool WriteQuaternion(const Quaternion&);
  9274. bool WriteShort(int16);
  9275. bool WriteString(const String&);
  9276. bool WriteStringHash(const StringHash&);
  9277. bool WriteUByte(uint8);
  9278. bool WriteUInt(uint);
  9279. bool WriteUShort(uint16);
  9280. bool WriteVLE(uint);
  9281. bool WriteVariant(const Variant&);
  9282. bool WriteVariantMap(const VariantMap&);
  9283. bool WriteVector2(const Vector2&);
  9284. bool WriteVector3(const Vector3&);
  9285. bool WriteVector4(const Vector4&);
  9286. bool WriteVectorBuffer(const VectorBuffer&);
  9287. };
  9288. class Skeleton
  9289. {
  9290. // Methods:
  9291. Bone GetBone(const String&) const;
  9292. void Reset();
  9293. // Properties:
  9294. /* readonly */
  9295. Array<Bone> bones;
  9296. /* readonly */
  9297. uint numBones;
  9298. /* readonly */
  9299. Bone rootBone;
  9300. };
  9301. class Skybox
  9302. {
  9303. // Methods:
  9304. void ApplyAttributes();
  9305. void ApplyMaterialList(const String& = String ( ));
  9306. void DrawDebugGeometry(DebugRenderer, bool);
  9307. Variant GetAttribute(const String&) const;
  9308. ValueAnimation GetAttributeAnimation(const String&) const;
  9309. float GetAttributeAnimationSpeed(const String&) const;
  9310. float GetAttributeAnimationTime(const String&) const;
  9311. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9312. Variant GetAttributeDefault(const String&) const;
  9313. bool GetInterceptNetworkUpdate(const String&) const;
  9314. bool HasSubscribedToEvent(Object, const String&);
  9315. bool HasSubscribedToEvent(const String&);
  9316. bool IsInView(Camera) const;
  9317. bool Load(File, bool = false);
  9318. bool Load(VectorBuffer&, bool = false);
  9319. bool LoadJSON(const JSONValue&, bool = false);
  9320. bool LoadXML(const XMLElement&, bool = false);
  9321. void MarkNetworkUpdate() const;
  9322. void Remove();
  9323. void RemoveAttributeAnimation(const String&);
  9324. void RemoveInstanceDefault();
  9325. void RemoveObjectAnimation();
  9326. void ResetToDefault();
  9327. bool Save(File) const;
  9328. bool Save(VectorBuffer&) const;
  9329. bool SaveJSON(JSONValue&) const;
  9330. bool SaveXML(XMLElement&) const;
  9331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9332. void SetAnimationTime(float);
  9333. bool SetAttribute(const String&, const Variant&);
  9334. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9335. void SetAttributeAnimationSpeed(const String&, float);
  9336. void SetAttributeAnimationTime(const String&, float);
  9337. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9338. void SetInterceptNetworkUpdate(const String&, bool);
  9339. // Properties:
  9340. bool animationEnabled;
  9341. /* readonly */
  9342. Array<Variant> attributeDefaults;
  9343. /* readonly */
  9344. Array<AttributeInfo> attributeInfos;
  9345. Array<Variant> attributes;
  9346. /* readonly */
  9347. BoundingBox boundingBox;
  9348. bool castShadows;
  9349. /* readonly */
  9350. String category;
  9351. float drawDistance;
  9352. bool enabled;
  9353. /* readonly */
  9354. bool enabledEffective;
  9355. /* readonly */
  9356. uint id;
  9357. /* readonly */
  9358. bool inView;
  9359. uint lightMask;
  9360. float lodBias;
  9361. /* writeonly */
  9362. Material material;
  9363. Array<Material> materials;
  9364. uint maxLights;
  9365. Model model;
  9366. /* readonly */
  9367. Node node;
  9368. /* readonly */
  9369. uint numAttributes;
  9370. /* readonly */
  9371. uint numGeometries;
  9372. ObjectAnimation objectAnimation;
  9373. bool occludee;
  9374. bool occluder;
  9375. /* readonly */
  9376. int refs;
  9377. float shadowDistance;
  9378. uint shadowMask;
  9379. bool temporary;
  9380. /* readonly */
  9381. StringHash type;
  9382. /* readonly */
  9383. String typeName;
  9384. uint viewMask;
  9385. /* readonly */
  9386. int weakRefs;
  9387. /* readonly */
  9388. BoundingBox worldBoundingBox;
  9389. /* readonly */
  9390. Zone zone;
  9391. uint zoneMask;
  9392. };
  9393. class Slider
  9394. {
  9395. // Methods:
  9396. void AddChild(UIElement);
  9397. void AddTag(const String&);
  9398. void AddTags(const String&, int8 = ';');
  9399. void ApplyAttributes();
  9400. void BringToFront();
  9401. void ChangeValue(float);
  9402. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9403. void DisableLayoutUpdate();
  9404. IntVector2 ElementToScreen(const IntVector2&);
  9405. void EnableLayoutUpdate();
  9406. uint FindChild(UIElement) const;
  9407. Variant GetAttribute(const String&) const;
  9408. ValueAnimation GetAttributeAnimation(const String&) const;
  9409. float GetAttributeAnimationSpeed(const String&) const;
  9410. float GetAttributeAnimationTime(const String&) const;
  9411. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9412. Variant GetAttributeDefault(const String&) const;
  9413. UIElement GetChild(const String&, bool = false) const;
  9414. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9415. Array<UIElement> GetChildren(bool = false) const;
  9416. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9417. UIElement GetElementEventSender() const;
  9418. bool GetInterceptNetworkUpdate(const String&) const;
  9419. uint GetNumChildren(bool) const;
  9420. bool HasSubscribedToEvent(Object, const String&);
  9421. bool HasSubscribedToEvent(const String&);
  9422. bool HasTag(const String&) const;
  9423. void InsertChild(uint, UIElement);
  9424. bool IsInside(IntVector2, bool);
  9425. bool IsInsideCombined(IntVector2, bool);
  9426. bool Load(File, bool = false);
  9427. bool Load(VectorBuffer&, bool = false);
  9428. bool LoadChildXML(XMLFile, XMLFile = null);
  9429. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9430. bool LoadJSON(const JSONValue&, bool = false);
  9431. bool LoadXML(File);
  9432. bool LoadXML(VectorBuffer&);
  9433. bool LoadXML(XMLFile, XMLFile);
  9434. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9435. bool LoadXML(const XMLElement&, bool = false);
  9436. void MarkNetworkUpdate() const;
  9437. void Remove();
  9438. void RemoveAllChildren();
  9439. void RemoveAllTags();
  9440. void RemoveAttributeAnimation(const String&);
  9441. void RemoveChild(UIElement, uint = 0);
  9442. void RemoveChild(uint);
  9443. void RemoveInstanceDefault();
  9444. void RemoveObjectAnimation();
  9445. bool RemoveTag(const String&);
  9446. void ResetDeepEnabled();
  9447. void ResetToDefault();
  9448. bool Save(File) const;
  9449. bool Save(VectorBuffer&) const;
  9450. bool SaveJSON(JSONValue&) const;
  9451. bool SaveXML(File, const String& = "\t");
  9452. bool SaveXML(VectorBuffer&, const String& = "\t");
  9453. bool SaveXML(XMLElement&) const;
  9454. IntVector2 ScreenToElement(const IntVector2&);
  9455. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9456. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9457. void SetAnimationTime(float);
  9458. bool SetAttribute(const String&, const Variant&);
  9459. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9460. void SetAttributeAnimationSpeed(const String&, float);
  9461. void SetAttributeAnimationTime(const String&, float);
  9462. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9463. void SetDeepEnabled(bool);
  9464. void SetEnabledRecursive(bool);
  9465. void SetFixedHeight(int);
  9466. void SetFixedSize(int, int);
  9467. void SetFixedWidth(int);
  9468. void SetFullImageRect();
  9469. void SetHoverOffset(int, int);
  9470. void SetInterceptNetworkUpdate(const String&, bool);
  9471. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9472. void SetMaxSize(int, int);
  9473. void SetMinSize(int, int);
  9474. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9475. void SetPosition(int, int);
  9476. void SetSize(int, int);
  9477. bool SetStyle(const String&, XMLFile = null);
  9478. bool SetStyle(const XMLElement&);
  9479. bool SetStyleAuto(XMLFile = null);
  9480. void UpdateLayout();
  9481. const Variant& GetVar(const StringHash&);
  9482. // Properties:
  9483. bool animationEnabled;
  9484. /* readonly */
  9485. Array<Variant> attributeDefaults;
  9486. /* readonly */
  9487. Array<AttributeInfo> attributeInfos;
  9488. Array<Variant> attributes;
  9489. BlendMode blendMode;
  9490. IntRect border;
  9491. bool bringToBack;
  9492. bool bringToFront;
  9493. /* readonly */
  9494. String category;
  9495. /* readonly */
  9496. IntVector2 childOffset;
  9497. /* readonly */
  9498. Array<UIElement> children;
  9499. IntRect clipBorder;
  9500. bool clipChildren;
  9501. /* writeonly */
  9502. Color color;
  9503. /* readonly */
  9504. bool colorGradient;
  9505. Array<Color> colors;
  9506. /* readonly */
  9507. IntRect combinedScreenRect;
  9508. XMLFile defaultStyle;
  9509. /* readonly */
  9510. float derivedOpacity;
  9511. /* readonly */
  9512. uint dragButtonCombo;
  9513. /* readonly */
  9514. int dragButtonCount;
  9515. uint dragDropMode;
  9516. bool editable;
  9517. bool elementEventSender;
  9518. bool enabled;
  9519. /* readonly */
  9520. bool enabledSelf;
  9521. /* readonly */
  9522. bool fixedHeight;
  9523. /* readonly */
  9524. bool fixedSize;
  9525. /* readonly */
  9526. bool fixedWidth;
  9527. bool focus;
  9528. FocusMode focusMode;
  9529. int height;
  9530. HorizontalAlignment horizontalAlignment;
  9531. IntVector2 hoverOffset;
  9532. /* readonly */
  9533. bool hovering;
  9534. IntRect imageBorder;
  9535. IntRect imageRect;
  9536. int indent;
  9537. int indentSpacing;
  9538. /* readonly */
  9539. int indentWidth;
  9540. bool internal;
  9541. /* readonly */
  9542. BorderImage knob;
  9543. IntRect layoutBorder;
  9544. Vector2 layoutFlexScale;
  9545. LayoutMode layoutMode;
  9546. int layoutSpacing;
  9547. int maxHeight;
  9548. IntVector2 maxSize;
  9549. int maxWidth;
  9550. int minHeight;
  9551. IntVector2 minSize;
  9552. int minWidth;
  9553. String name;
  9554. /* readonly */
  9555. uint numAllChildren;
  9556. /* readonly */
  9557. uint numAttributes;
  9558. /* readonly */
  9559. uint numChildren;
  9560. ObjectAnimation objectAnimation;
  9561. float opacity;
  9562. Orientation orientation;
  9563. UIElement parent;
  9564. IntVector2 position;
  9565. int priority;
  9566. float range;
  9567. /* readonly */
  9568. int refs;
  9569. float repeatRate;
  9570. /* readonly */
  9571. UIElement root;
  9572. /* readonly */
  9573. IntVector2 screenPosition;
  9574. bool selected;
  9575. IntVector2 size;
  9576. bool sortChildren;
  9577. String style;
  9578. /* readonly */
  9579. Array<String> tags;
  9580. bool temporary;
  9581. Texture texture;
  9582. bool tiled;
  9583. TraversalMode traversalMode;
  9584. /* readonly */
  9585. StringHash type;
  9586. /* readonly */
  9587. String typeName;
  9588. bool useDerivedOpacity;
  9589. float value;
  9590. /* readonly */
  9591. VariantMap vars;
  9592. VerticalAlignment verticalAlignment;
  9593. bool visible;
  9594. /* readonly */
  9595. bool visibleEffective;
  9596. /* readonly */
  9597. int weakRefs;
  9598. int width;
  9599. };
  9600. class SmoothedTransform
  9601. {
  9602. // Methods:
  9603. void ApplyAttributes();
  9604. void DrawDebugGeometry(DebugRenderer, bool);
  9605. Variant GetAttribute(const String&) const;
  9606. ValueAnimation GetAttributeAnimation(const String&) const;
  9607. float GetAttributeAnimationSpeed(const String&) const;
  9608. float GetAttributeAnimationTime(const String&) const;
  9609. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9610. Variant GetAttributeDefault(const String&) const;
  9611. bool GetInterceptNetworkUpdate(const String&) const;
  9612. bool HasSubscribedToEvent(Object, const String&);
  9613. bool HasSubscribedToEvent(const String&);
  9614. bool Load(File, bool = false);
  9615. bool Load(VectorBuffer&, bool = false);
  9616. bool LoadJSON(const JSONValue&, bool = false);
  9617. bool LoadXML(const XMLElement&, bool = false);
  9618. void MarkNetworkUpdate() const;
  9619. void Remove();
  9620. void RemoveAttributeAnimation(const String&);
  9621. void RemoveInstanceDefault();
  9622. void RemoveObjectAnimation();
  9623. void ResetToDefault();
  9624. bool Save(File) const;
  9625. bool Save(VectorBuffer&) const;
  9626. bool SaveJSON(JSONValue&) const;
  9627. bool SaveXML(XMLElement&) const;
  9628. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9629. void SetAnimationTime(float);
  9630. bool SetAttribute(const String&, const Variant&);
  9631. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9632. void SetAttributeAnimationSpeed(const String&, float);
  9633. void SetAttributeAnimationTime(const String&, float);
  9634. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9635. void SetInterceptNetworkUpdate(const String&, bool);
  9636. void Update(float, float);
  9637. // Properties:
  9638. bool animationEnabled;
  9639. /* readonly */
  9640. Array<Variant> attributeDefaults;
  9641. /* readonly */
  9642. Array<AttributeInfo> attributeInfos;
  9643. Array<Variant> attributes;
  9644. /* readonly */
  9645. String category;
  9646. bool enabled;
  9647. /* readonly */
  9648. bool enabledEffective;
  9649. /* readonly */
  9650. uint id;
  9651. /* readonly */
  9652. bool inProgress;
  9653. /* readonly */
  9654. Node node;
  9655. /* readonly */
  9656. uint numAttributes;
  9657. ObjectAnimation objectAnimation;
  9658. /* readonly */
  9659. int refs;
  9660. Vector3 targetPosition;
  9661. Quaternion targetRotation;
  9662. Vector3 targetWorldPosition;
  9663. Quaternion targetWorldRotation;
  9664. bool temporary;
  9665. /* readonly */
  9666. StringHash type;
  9667. /* readonly */
  9668. String typeName;
  9669. /* readonly */
  9670. int weakRefs;
  9671. };
  9672. class Sound
  9673. {
  9674. // Methods:
  9675. bool HasSubscribedToEvent(Object, const String&);
  9676. bool HasSubscribedToEvent(const String&);
  9677. bool Load(File);
  9678. bool Load(VectorBuffer&);
  9679. bool Save(File) const;
  9680. bool Save(VectorBuffer&) const;
  9681. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9682. // Properties:
  9683. /* readonly */
  9684. String category;
  9685. /* readonly */
  9686. bool compressed;
  9687. /* readonly */
  9688. float frequency;
  9689. /* readonly */
  9690. float length;
  9691. bool looped;
  9692. /* readonly */
  9693. uint memoryUse;
  9694. String name;
  9695. /* readonly */
  9696. int refs;
  9697. /* readonly */
  9698. uint sampleSize;
  9699. /* readonly */
  9700. bool sixteenBit;
  9701. /* readonly */
  9702. bool stereo;
  9703. /* readonly */
  9704. StringHash type;
  9705. /* readonly */
  9706. String typeName;
  9707. /* readonly */
  9708. uint useTimer;
  9709. /* readonly */
  9710. int weakRefs;
  9711. };
  9712. class SoundListener
  9713. {
  9714. // Methods:
  9715. void ApplyAttributes();
  9716. void DrawDebugGeometry(DebugRenderer, bool);
  9717. Variant GetAttribute(const String&) const;
  9718. ValueAnimation GetAttributeAnimation(const String&) const;
  9719. float GetAttributeAnimationSpeed(const String&) const;
  9720. float GetAttributeAnimationTime(const String&) const;
  9721. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9722. Variant GetAttributeDefault(const String&) const;
  9723. bool GetInterceptNetworkUpdate(const String&) const;
  9724. bool HasSubscribedToEvent(Object, const String&);
  9725. bool HasSubscribedToEvent(const String&);
  9726. bool Load(File, bool = false);
  9727. bool Load(VectorBuffer&, bool = false);
  9728. bool LoadJSON(const JSONValue&, bool = false);
  9729. bool LoadXML(const XMLElement&, bool = false);
  9730. void MarkNetworkUpdate() const;
  9731. void Remove();
  9732. void RemoveAttributeAnimation(const String&);
  9733. void RemoveInstanceDefault();
  9734. void RemoveObjectAnimation();
  9735. void ResetToDefault();
  9736. bool Save(File) const;
  9737. bool Save(VectorBuffer&) const;
  9738. bool SaveJSON(JSONValue&) const;
  9739. bool SaveXML(XMLElement&) const;
  9740. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9741. void SetAnimationTime(float);
  9742. bool SetAttribute(const String&, const Variant&);
  9743. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9744. void SetAttributeAnimationSpeed(const String&, float);
  9745. void SetAttributeAnimationTime(const String&, float);
  9746. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9747. void SetInterceptNetworkUpdate(const String&, bool);
  9748. // Properties:
  9749. bool animationEnabled;
  9750. /* readonly */
  9751. Array<Variant> attributeDefaults;
  9752. /* readonly */
  9753. Array<AttributeInfo> attributeInfos;
  9754. Array<Variant> attributes;
  9755. /* readonly */
  9756. String category;
  9757. bool enabled;
  9758. /* readonly */
  9759. bool enabledEffective;
  9760. /* readonly */
  9761. uint id;
  9762. /* readonly */
  9763. Node node;
  9764. /* readonly */
  9765. uint numAttributes;
  9766. ObjectAnimation objectAnimation;
  9767. /* readonly */
  9768. int refs;
  9769. bool temporary;
  9770. /* readonly */
  9771. StringHash type;
  9772. /* readonly */
  9773. String typeName;
  9774. /* readonly */
  9775. int weakRefs;
  9776. };
  9777. class SoundSource
  9778. {
  9779. // Methods:
  9780. void ApplyAttributes();
  9781. void DrawDebugGeometry(DebugRenderer, bool);
  9782. Variant GetAttribute(const String&) const;
  9783. ValueAnimation GetAttributeAnimation(const String&) const;
  9784. float GetAttributeAnimationSpeed(const String&) const;
  9785. float GetAttributeAnimationTime(const String&) const;
  9786. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9787. Variant GetAttributeDefault(const String&) const;
  9788. bool GetInterceptNetworkUpdate(const String&) const;
  9789. bool HasSubscribedToEvent(Object, const String&);
  9790. bool HasSubscribedToEvent(const String&);
  9791. bool Load(File, bool = false);
  9792. bool Load(VectorBuffer&, bool = false);
  9793. bool LoadJSON(const JSONValue&, bool = false);
  9794. bool LoadXML(const XMLElement&, bool = false);
  9795. void MarkNetworkUpdate() const;
  9796. void Play(Sound);
  9797. void Play(Sound, float);
  9798. void Play(Sound, float, float);
  9799. void Play(Sound, float, float, float);
  9800. void Remove();
  9801. void RemoveAttributeAnimation(const String&);
  9802. void RemoveInstanceDefault();
  9803. void RemoveObjectAnimation();
  9804. void ResetToDefault();
  9805. bool Save(File) const;
  9806. bool Save(VectorBuffer&) const;
  9807. bool SaveJSON(JSONValue&) const;
  9808. bool SaveXML(XMLElement&) const;
  9809. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9810. void SetAnimationTime(float);
  9811. bool SetAttribute(const String&, const Variant&);
  9812. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9813. void SetAttributeAnimationSpeed(const String&, float);
  9814. void SetAttributeAnimationTime(const String&, float);
  9815. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9816. void SetInterceptNetworkUpdate(const String&, bool);
  9817. void Stop();
  9818. // Properties:
  9819. bool animationEnabled;
  9820. /* readonly */
  9821. float attenuation;
  9822. /* readonly */
  9823. Array<Variant> attributeDefaults;
  9824. /* readonly */
  9825. Array<AttributeInfo> attributeInfos;
  9826. Array<Variant> attributes;
  9827. bool autoRemove;
  9828. /* readonly */
  9829. String category;
  9830. bool enabled;
  9831. /* readonly */
  9832. bool enabledEffective;
  9833. float frequency;
  9834. float gain;
  9835. /* readonly */
  9836. uint id;
  9837. /* readonly */
  9838. Node node;
  9839. /* readonly */
  9840. uint numAttributes;
  9841. ObjectAnimation objectAnimation;
  9842. float panning;
  9843. /* readonly */
  9844. bool playing;
  9845. /* readonly */
  9846. int refs;
  9847. /* readonly */
  9848. Sound sound;
  9849. String soundType;
  9850. bool temporary;
  9851. /* readonly */
  9852. float timePosition;
  9853. /* readonly */
  9854. StringHash type;
  9855. /* readonly */
  9856. String typeName;
  9857. /* readonly */
  9858. int weakRefs;
  9859. };
  9860. class SoundSource3D
  9861. {
  9862. // Methods:
  9863. void ApplyAttributes();
  9864. void DrawDebugGeometry(DebugRenderer, bool);
  9865. Variant GetAttribute(const String&) const;
  9866. ValueAnimation GetAttributeAnimation(const String&) const;
  9867. float GetAttributeAnimationSpeed(const String&) const;
  9868. float GetAttributeAnimationTime(const String&) const;
  9869. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9870. Variant GetAttributeDefault(const String&) const;
  9871. bool GetInterceptNetworkUpdate(const String&) const;
  9872. bool HasSubscribedToEvent(Object, const String&);
  9873. bool HasSubscribedToEvent(const String&);
  9874. bool Load(File, bool = false);
  9875. bool Load(VectorBuffer&, bool = false);
  9876. bool LoadJSON(const JSONValue&, bool = false);
  9877. bool LoadXML(const XMLElement&, bool = false);
  9878. void MarkNetworkUpdate() const;
  9879. void Play(Sound);
  9880. void Play(Sound, float);
  9881. void Play(Sound, float, float);
  9882. void Play(Sound, float, float, float);
  9883. void Remove();
  9884. void RemoveAttributeAnimation(const String&);
  9885. void RemoveInstanceDefault();
  9886. void RemoveObjectAnimation();
  9887. void ResetToDefault();
  9888. bool Save(File) const;
  9889. bool Save(VectorBuffer&) const;
  9890. bool SaveJSON(JSONValue&) const;
  9891. bool SaveXML(XMLElement&) const;
  9892. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9893. void SetAngleAttenuation(float, float);
  9894. void SetAnimationTime(float);
  9895. bool SetAttribute(const String&, const Variant&);
  9896. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9897. void SetAttributeAnimationSpeed(const String&, float);
  9898. void SetAttributeAnimationTime(const String&, float);
  9899. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9900. void SetDistanceAttenuation(float, float, float);
  9901. void SetInterceptNetworkUpdate(const String&, bool);
  9902. void Stop();
  9903. // Properties:
  9904. bool animationEnabled;
  9905. /* readonly */
  9906. float attenuation;
  9907. /* readonly */
  9908. Array<Variant> attributeDefaults;
  9909. /* readonly */
  9910. Array<AttributeInfo> attributeInfos;
  9911. Array<Variant> attributes;
  9912. bool autoRemove;
  9913. /* readonly */
  9914. String category;
  9915. bool enabled;
  9916. /* readonly */
  9917. bool enabledEffective;
  9918. float farDistance;
  9919. float frequency;
  9920. float gain;
  9921. /* readonly */
  9922. uint id;
  9923. float innerAngle;
  9924. float nearDistance;
  9925. /* readonly */
  9926. Node node;
  9927. /* readonly */
  9928. uint numAttributes;
  9929. ObjectAnimation objectAnimation;
  9930. float outerAngle;
  9931. float panning;
  9932. /* readonly */
  9933. bool playing;
  9934. /* readonly */
  9935. int refs;
  9936. float rolloffFactor;
  9937. /* readonly */
  9938. Sound sound;
  9939. String soundType;
  9940. bool temporary;
  9941. /* readonly */
  9942. float timePosition;
  9943. /* readonly */
  9944. StringHash type;
  9945. /* readonly */
  9946. String typeName;
  9947. /* readonly */
  9948. int weakRefs;
  9949. };
  9950. class Sphere
  9951. {
  9952. // Methods:
  9953. void Clear();
  9954. void Define(const BoundingBox&);
  9955. void Define(const Frustum&);
  9956. void Define(const Polyhedron&);
  9957. void Define(const Sphere&);
  9958. void Define(const Vector3&, float);
  9959. bool Defined() const;
  9960. float Distance(const Vector3&) const;
  9961. Intersection IsInside(const BoundingBox&) const;
  9962. Intersection IsInside(const Sphere&) const;
  9963. Intersection IsInside(const Vector3&) const;
  9964. Intersection IsInsideFast(const BoundingBox&) const;
  9965. Intersection IsInsideFast(const Sphere&) const;
  9966. void Merge(const BoundingBox&);
  9967. void Merge(const Frustum&);
  9968. void Merge(const Sphere&);
  9969. void Merge(const Vector3&);
  9970. // Properties:
  9971. Vector3 center;
  9972. float radius;
  9973. };
  9974. class Spline
  9975. {
  9976. // Methods:
  9977. void AddKnot(const Variant&);
  9978. void AddKnot(const Variant&, uint);
  9979. void Clear();
  9980. Variant GetPoint(float);
  9981. void RemoveKnot();
  9982. void RemoveKnot(uint);
  9983. // Properties:
  9984. InterpolationMode interpolationMode;
  9985. Array<Variant> knot;
  9986. Array<Variant> knots;
  9987. };
  9988. class SplinePath
  9989. {
  9990. // Methods:
  9991. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9992. void ApplyAttributes();
  9993. void ClearControlPoints();
  9994. void DrawDebugGeometry(DebugRenderer, bool);
  9995. Variant GetAttribute(const String&) const;
  9996. ValueAnimation GetAttributeAnimation(const String&) const;
  9997. float GetAttributeAnimationSpeed(const String&) const;
  9998. float GetAttributeAnimationTime(const String&) const;
  9999. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10000. Variant GetAttributeDefault(const String&) const;
  10001. bool GetInterceptNetworkUpdate(const String&) const;
  10002. Vector3 GetPoint(float) const;
  10003. Vector3 GetPosition() const;
  10004. bool HasSubscribedToEvent(Object, const String&);
  10005. bool HasSubscribedToEvent(const String&);
  10006. bool Load(File, bool = false);
  10007. bool Load(VectorBuffer&, bool = false);
  10008. bool LoadJSON(const JSONValue&, bool = false);
  10009. bool LoadXML(const XMLElement&, bool = false);
  10010. void MarkNetworkUpdate() const;
  10011. void Move(float);
  10012. void Remove();
  10013. void RemoveAttributeAnimation(const String&);
  10014. void RemoveControlPoint(Node);
  10015. void RemoveInstanceDefault();
  10016. void RemoveObjectAnimation();
  10017. void Reset();
  10018. void ResetToDefault();
  10019. bool Save(File) const;
  10020. bool Save(VectorBuffer&) const;
  10021. bool SaveJSON(JSONValue&) const;
  10022. bool SaveXML(XMLElement&) const;
  10023. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10024. void SetAnimationTime(float);
  10025. bool SetAttribute(const String&, const Variant&);
  10026. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10027. void SetAttributeAnimationSpeed(const String&, float);
  10028. void SetAttributeAnimationTime(const String&, float);
  10029. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10030. void SetInterceptNetworkUpdate(const String&, bool);
  10031. void SetPosition(float);
  10032. // Properties:
  10033. bool animationEnabled;
  10034. /* readonly */
  10035. Array<Variant> attributeDefaults;
  10036. /* readonly */
  10037. Array<AttributeInfo> attributeInfos;
  10038. Array<Variant> attributes;
  10039. /* readonly */
  10040. String category;
  10041. Node controlledNode;
  10042. bool enabled;
  10043. /* readonly */
  10044. bool enabledEffective;
  10045. /* readonly */
  10046. uint id;
  10047. InterpolationMode interpolationMode;
  10048. /* readonly */
  10049. bool isFinished;
  10050. /* readonly */
  10051. float length;
  10052. /* readonly */
  10053. Node node;
  10054. /* readonly */
  10055. uint numAttributes;
  10056. ObjectAnimation objectAnimation;
  10057. /* readonly */
  10058. int refs;
  10059. float speed;
  10060. bool temporary;
  10061. /* readonly */
  10062. StringHash type;
  10063. /* readonly */
  10064. String typeName;
  10065. /* readonly */
  10066. int weakRefs;
  10067. };
  10068. class Sprite
  10069. {
  10070. // Methods:
  10071. void AddChild(UIElement);
  10072. void AddTag(const String&);
  10073. void AddTags(const String&, int8 = ';');
  10074. void ApplyAttributes();
  10075. void BringToFront();
  10076. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10077. void DisableLayoutUpdate();
  10078. IntVector2 ElementToScreen(const IntVector2&);
  10079. void EnableLayoutUpdate();
  10080. uint FindChild(UIElement) const;
  10081. Variant GetAttribute(const String&) const;
  10082. ValueAnimation GetAttributeAnimation(const String&) const;
  10083. float GetAttributeAnimationSpeed(const String&) const;
  10084. float GetAttributeAnimationTime(const String&) const;
  10085. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10086. Variant GetAttributeDefault(const String&) const;
  10087. UIElement GetChild(const String&, bool = false) const;
  10088. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10089. Array<UIElement> GetChildren(bool = false) const;
  10090. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10091. UIElement GetElementEventSender() const;
  10092. bool GetInterceptNetworkUpdate(const String&) const;
  10093. uint GetNumChildren(bool) const;
  10094. bool HasSubscribedToEvent(Object, const String&);
  10095. bool HasSubscribedToEvent(const String&);
  10096. bool HasTag(const String&) const;
  10097. void InsertChild(uint, UIElement);
  10098. bool IsInside(IntVector2, bool);
  10099. bool IsInsideCombined(IntVector2, bool);
  10100. bool Load(File, bool = false);
  10101. bool Load(VectorBuffer&, bool = false);
  10102. bool LoadChildXML(XMLFile, XMLFile = null);
  10103. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10104. bool LoadJSON(const JSONValue&, bool = false);
  10105. bool LoadXML(File);
  10106. bool LoadXML(VectorBuffer&);
  10107. bool LoadXML(XMLFile, XMLFile);
  10108. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10109. bool LoadXML(const XMLElement&, bool = false);
  10110. void MarkNetworkUpdate() const;
  10111. void Remove();
  10112. void RemoveAllChildren();
  10113. void RemoveAllTags();
  10114. void RemoveAttributeAnimation(const String&);
  10115. void RemoveChild(UIElement, uint = 0);
  10116. void RemoveChild(uint);
  10117. void RemoveInstanceDefault();
  10118. void RemoveObjectAnimation();
  10119. bool RemoveTag(const String&);
  10120. void ResetDeepEnabled();
  10121. void ResetToDefault();
  10122. bool Save(File) const;
  10123. bool Save(VectorBuffer&) const;
  10124. bool SaveJSON(JSONValue&) const;
  10125. bool SaveXML(File, const String& = "\t");
  10126. bool SaveXML(VectorBuffer&, const String& = "\t");
  10127. bool SaveXML(XMLElement&) const;
  10128. IntVector2 ScreenToElement(const IntVector2&);
  10129. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10130. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10131. void SetAnimationTime(float);
  10132. bool SetAttribute(const String&, const Variant&);
  10133. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10134. void SetAttributeAnimationSpeed(const String&, float);
  10135. void SetAttributeAnimationTime(const String&, float);
  10136. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10137. void SetDeepEnabled(bool);
  10138. void SetEnabledRecursive(bool);
  10139. void SetFixedHeight(int);
  10140. void SetFixedSize(int, int);
  10141. void SetFixedWidth(int);
  10142. void SetFullImageRect();
  10143. void SetHotSpot(int, int);
  10144. void SetInterceptNetworkUpdate(const String&, bool);
  10145. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10146. void SetMaxSize(int, int);
  10147. void SetMinSize(int, int);
  10148. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10149. void SetPosition(float, float);
  10150. void SetScale(float);
  10151. void SetScale(float, float);
  10152. void SetSize(int, int);
  10153. bool SetStyle(const String&, XMLFile = null);
  10154. bool SetStyle(const XMLElement&);
  10155. bool SetStyleAuto(XMLFile = null);
  10156. void UpdateLayout();
  10157. const Variant& GetVar(const StringHash&);
  10158. // Properties:
  10159. bool animationEnabled;
  10160. /* readonly */
  10161. Array<Variant> attributeDefaults;
  10162. /* readonly */
  10163. Array<AttributeInfo> attributeInfos;
  10164. Array<Variant> attributes;
  10165. BlendMode blendMode;
  10166. bool bringToBack;
  10167. bool bringToFront;
  10168. /* readonly */
  10169. String category;
  10170. /* readonly */
  10171. IntVector2 childOffset;
  10172. /* readonly */
  10173. Array<UIElement> children;
  10174. IntRect clipBorder;
  10175. bool clipChildren;
  10176. /* writeonly */
  10177. Color color;
  10178. /* readonly */
  10179. bool colorGradient;
  10180. Array<Color> colors;
  10181. /* readonly */
  10182. IntRect combinedScreenRect;
  10183. XMLFile defaultStyle;
  10184. /* readonly */
  10185. float derivedOpacity;
  10186. /* readonly */
  10187. uint dragButtonCombo;
  10188. /* readonly */
  10189. int dragButtonCount;
  10190. uint dragDropMode;
  10191. bool editable;
  10192. bool elementEventSender;
  10193. bool enabled;
  10194. /* readonly */
  10195. bool enabledSelf;
  10196. /* readonly */
  10197. bool fixedHeight;
  10198. /* readonly */
  10199. bool fixedSize;
  10200. /* readonly */
  10201. bool fixedWidth;
  10202. bool focus;
  10203. FocusMode focusMode;
  10204. int height;
  10205. HorizontalAlignment horizontalAlignment;
  10206. IntVector2 hotSpot;
  10207. /* readonly */
  10208. bool hovering;
  10209. IntRect imageRect;
  10210. int indent;
  10211. int indentSpacing;
  10212. /* readonly */
  10213. int indentWidth;
  10214. bool internal;
  10215. IntRect layoutBorder;
  10216. Vector2 layoutFlexScale;
  10217. LayoutMode layoutMode;
  10218. int layoutSpacing;
  10219. int maxHeight;
  10220. IntVector2 maxSize;
  10221. int maxWidth;
  10222. int minHeight;
  10223. IntVector2 minSize;
  10224. int minWidth;
  10225. String name;
  10226. /* readonly */
  10227. uint numAllChildren;
  10228. /* readonly */
  10229. uint numAttributes;
  10230. /* readonly */
  10231. uint numChildren;
  10232. ObjectAnimation objectAnimation;
  10233. float opacity;
  10234. UIElement parent;
  10235. Vector2 position;
  10236. int priority;
  10237. /* readonly */
  10238. int refs;
  10239. /* readonly */
  10240. UIElement root;
  10241. float rotation;
  10242. Vector2 scale;
  10243. /* readonly */
  10244. IntVector2 screenPosition;
  10245. bool selected;
  10246. IntVector2 size;
  10247. bool sortChildren;
  10248. String style;
  10249. /* readonly */
  10250. Array<String> tags;
  10251. bool temporary;
  10252. Texture texture;
  10253. TraversalMode traversalMode;
  10254. /* readonly */
  10255. StringHash type;
  10256. /* readonly */
  10257. String typeName;
  10258. bool useDerivedOpacity;
  10259. /* readonly */
  10260. VariantMap vars;
  10261. VerticalAlignment verticalAlignment;
  10262. bool visible;
  10263. /* readonly */
  10264. bool visibleEffective;
  10265. /* readonly */
  10266. int weakRefs;
  10267. int width;
  10268. };
  10269. class Sprite2D
  10270. {
  10271. // Methods:
  10272. bool HasSubscribedToEvent(Object, const String&);
  10273. bool HasSubscribedToEvent(const String&);
  10274. bool Load(File);
  10275. bool Load(VectorBuffer&);
  10276. bool Save(File) const;
  10277. bool Save(VectorBuffer&) const;
  10278. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10279. // Properties:
  10280. /* readonly */
  10281. String category;
  10282. Vector2 hotSpot;
  10283. /* readonly */
  10284. uint memoryUse;
  10285. String name;
  10286. IntVector2 offset;
  10287. IntRect rectangle;
  10288. /* readonly */
  10289. int refs;
  10290. Texture2D texture;
  10291. float textureEdgeOffset;
  10292. /* readonly */
  10293. StringHash type;
  10294. /* readonly */
  10295. String typeName;
  10296. /* readonly */
  10297. uint useTimer;
  10298. /* readonly */
  10299. int weakRefs;
  10300. };
  10301. class SpriteSheet2D
  10302. {
  10303. // Methods:
  10304. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10305. Sprite2D GetSprite(const String&);
  10306. bool HasSubscribedToEvent(Object, const String&);
  10307. bool HasSubscribedToEvent(const String&);
  10308. bool Load(File);
  10309. bool Load(VectorBuffer&);
  10310. bool Save(File) const;
  10311. bool Save(VectorBuffer&) const;
  10312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10313. // Properties:
  10314. /* readonly */
  10315. String category;
  10316. /* readonly */
  10317. uint memoryUse;
  10318. String name;
  10319. /* readonly */
  10320. int refs;
  10321. Texture2D texture;
  10322. /* readonly */
  10323. StringHash type;
  10324. /* readonly */
  10325. String typeName;
  10326. /* readonly */
  10327. uint useTimer;
  10328. /* readonly */
  10329. int weakRefs;
  10330. };
  10331. class StaticModel
  10332. {
  10333. // Methods:
  10334. void ApplyAttributes();
  10335. void ApplyMaterialList(const String& = String ( ));
  10336. void DrawDebugGeometry(DebugRenderer, bool);
  10337. Variant GetAttribute(const String&) const;
  10338. ValueAnimation GetAttributeAnimation(const String&) const;
  10339. float GetAttributeAnimationSpeed(const String&) const;
  10340. float GetAttributeAnimationTime(const String&) const;
  10341. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10342. Variant GetAttributeDefault(const String&) const;
  10343. bool GetInterceptNetworkUpdate(const String&) const;
  10344. bool HasSubscribedToEvent(Object, const String&);
  10345. bool HasSubscribedToEvent(const String&);
  10346. bool IsInView(Camera) const;
  10347. bool IsInside(const Vector3&) const;
  10348. bool IsInsideLocal(const Vector3&) const;
  10349. bool Load(File, bool = false);
  10350. bool Load(VectorBuffer&, bool = false);
  10351. bool LoadJSON(const JSONValue&, bool = false);
  10352. bool LoadXML(const XMLElement&, bool = false);
  10353. void MarkNetworkUpdate() const;
  10354. void Remove();
  10355. void RemoveAttributeAnimation(const String&);
  10356. void RemoveInstanceDefault();
  10357. void RemoveObjectAnimation();
  10358. void ResetToDefault();
  10359. bool Save(File) const;
  10360. bool Save(VectorBuffer&) const;
  10361. bool SaveJSON(JSONValue&) const;
  10362. bool SaveXML(XMLElement&) const;
  10363. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10364. void SetAnimationTime(float);
  10365. bool SetAttribute(const String&, const Variant&);
  10366. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10367. void SetAttributeAnimationSpeed(const String&, float);
  10368. void SetAttributeAnimationTime(const String&, float);
  10369. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10370. void SetInterceptNetworkUpdate(const String&, bool);
  10371. // Properties:
  10372. bool animationEnabled;
  10373. /* readonly */
  10374. Array<Variant> attributeDefaults;
  10375. /* readonly */
  10376. Array<AttributeInfo> attributeInfos;
  10377. Array<Variant> attributes;
  10378. /* readonly */
  10379. BoundingBox boundingBox;
  10380. bool castShadows;
  10381. /* readonly */
  10382. String category;
  10383. float drawDistance;
  10384. bool enabled;
  10385. /* readonly */
  10386. bool enabledEffective;
  10387. /* readonly */
  10388. uint id;
  10389. /* readonly */
  10390. bool inView;
  10391. uint lightMask;
  10392. float lodBias;
  10393. /* writeonly */
  10394. Material material;
  10395. Array<Material> materials;
  10396. uint maxLights;
  10397. Model model;
  10398. /* readonly */
  10399. Node node;
  10400. /* readonly */
  10401. uint numAttributes;
  10402. /* readonly */
  10403. uint numGeometries;
  10404. ObjectAnimation objectAnimation;
  10405. bool occludee;
  10406. bool occluder;
  10407. uint occlusionLodLevel;
  10408. /* readonly */
  10409. int refs;
  10410. float shadowDistance;
  10411. uint shadowMask;
  10412. bool temporary;
  10413. /* readonly */
  10414. StringHash type;
  10415. /* readonly */
  10416. String typeName;
  10417. uint viewMask;
  10418. /* readonly */
  10419. int weakRefs;
  10420. /* readonly */
  10421. BoundingBox worldBoundingBox;
  10422. uint zoneMask;
  10423. };
  10424. class StaticModelGroup
  10425. {
  10426. // Methods:
  10427. void AddInstanceNode(Node);
  10428. void ApplyAttributes();
  10429. void ApplyMaterialList(const String& = String ( ));
  10430. void DrawDebugGeometry(DebugRenderer, bool);
  10431. Variant GetAttribute(const String&) const;
  10432. ValueAnimation GetAttributeAnimation(const String&) const;
  10433. float GetAttributeAnimationSpeed(const String&) const;
  10434. float GetAttributeAnimationTime(const String&) const;
  10435. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10436. Variant GetAttributeDefault(const String&) const;
  10437. bool GetInterceptNetworkUpdate(const String&) const;
  10438. bool HasSubscribedToEvent(Object, const String&);
  10439. bool HasSubscribedToEvent(const String&);
  10440. bool IsInView(Camera) const;
  10441. bool Load(File, bool = false);
  10442. bool Load(VectorBuffer&, bool = false);
  10443. bool LoadJSON(const JSONValue&, bool = false);
  10444. bool LoadXML(const XMLElement&, bool = false);
  10445. void MarkNetworkUpdate() const;
  10446. void Remove();
  10447. void RemoveAllInstanceNodes();
  10448. void RemoveAttributeAnimation(const String&);
  10449. void RemoveInstanceDefault();
  10450. void RemoveInstanceNode(Node);
  10451. void RemoveObjectAnimation();
  10452. void ResetToDefault();
  10453. bool Save(File) const;
  10454. bool Save(VectorBuffer&) const;
  10455. bool SaveJSON(JSONValue&) const;
  10456. bool SaveXML(XMLElement&) const;
  10457. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10458. void SetAnimationTime(float);
  10459. bool SetAttribute(const String&, const Variant&);
  10460. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10461. void SetAttributeAnimationSpeed(const String&, float);
  10462. void SetAttributeAnimationTime(const String&, float);
  10463. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10464. void SetInterceptNetworkUpdate(const String&, bool);
  10465. // Properties:
  10466. bool animationEnabled;
  10467. /* readonly */
  10468. Array<Variant> attributeDefaults;
  10469. /* readonly */
  10470. Array<AttributeInfo> attributeInfos;
  10471. Array<Variant> attributes;
  10472. /* readonly */
  10473. BoundingBox boundingBox;
  10474. bool castShadows;
  10475. /* readonly */
  10476. String category;
  10477. float drawDistance;
  10478. bool enabled;
  10479. /* readonly */
  10480. bool enabledEffective;
  10481. /* readonly */
  10482. uint id;
  10483. /* readonly */
  10484. bool inView;
  10485. /* readonly */
  10486. Array<Node> instanceNodes;
  10487. uint lightMask;
  10488. float lodBias;
  10489. /* writeonly */
  10490. Material material;
  10491. Array<Material> materials;
  10492. uint maxLights;
  10493. Model model;
  10494. /* readonly */
  10495. Node node;
  10496. /* readonly */
  10497. uint numAttributes;
  10498. /* readonly */
  10499. uint numGeometries;
  10500. /* readonly */
  10501. uint numInstanceNodes;
  10502. ObjectAnimation objectAnimation;
  10503. bool occludee;
  10504. bool occluder;
  10505. uint occlusionLodLevel;
  10506. /* readonly */
  10507. int refs;
  10508. float shadowDistance;
  10509. uint shadowMask;
  10510. bool temporary;
  10511. /* readonly */
  10512. StringHash type;
  10513. /* readonly */
  10514. String typeName;
  10515. uint viewMask;
  10516. /* readonly */
  10517. int weakRefs;
  10518. /* readonly */
  10519. BoundingBox worldBoundingBox;
  10520. /* readonly */
  10521. Zone zone;
  10522. uint zoneMask;
  10523. };
  10524. class StaticSprite2D
  10525. {
  10526. // Methods:
  10527. void ApplyAttributes();
  10528. void DrawDebugGeometry(DebugRenderer, bool);
  10529. Variant GetAttribute(const String&) const;
  10530. ValueAnimation GetAttributeAnimation(const String&) const;
  10531. float GetAttributeAnimationSpeed(const String&) const;
  10532. float GetAttributeAnimationTime(const String&) const;
  10533. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10534. Variant GetAttributeDefault(const String&) const;
  10535. bool GetInterceptNetworkUpdate(const String&) const;
  10536. bool HasSubscribedToEvent(Object, const String&);
  10537. bool HasSubscribedToEvent(const String&);
  10538. bool IsInView(Camera) const;
  10539. bool Load(File, bool = false);
  10540. bool Load(VectorBuffer&, bool = false);
  10541. bool LoadJSON(const JSONValue&, bool = false);
  10542. bool LoadXML(const XMLElement&, bool = false);
  10543. void MarkNetworkUpdate() const;
  10544. void Remove();
  10545. void RemoveAttributeAnimation(const String&);
  10546. void RemoveInstanceDefault();
  10547. void RemoveObjectAnimation();
  10548. void ResetToDefault();
  10549. bool Save(File) const;
  10550. bool Save(VectorBuffer&) const;
  10551. bool SaveJSON(JSONValue&) const;
  10552. bool SaveXML(XMLElement&) const;
  10553. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10554. void SetAnimationTime(float);
  10555. bool SetAttribute(const String&, const Variant&);
  10556. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10557. void SetAttributeAnimationSpeed(const String&, float);
  10558. void SetAttributeAnimationTime(const String&, float);
  10559. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10560. void SetFlip(bool, bool);
  10561. void SetInterceptNetworkUpdate(const String&, bool);
  10562. // Properties:
  10563. float alpha;
  10564. bool animationEnabled;
  10565. /* readonly */
  10566. Array<Variant> attributeDefaults;
  10567. /* readonly */
  10568. Array<AttributeInfo> attributeInfos;
  10569. Array<Variant> attributes;
  10570. BlendMode blendMode;
  10571. /* readonly */
  10572. BoundingBox boundingBox;
  10573. bool castShadows;
  10574. /* readonly */
  10575. String category;
  10576. Color color;
  10577. Material customMaterial;
  10578. float drawDistance;
  10579. bool enabled;
  10580. /* readonly */
  10581. bool enabledEffective;
  10582. bool flipX;
  10583. bool flipY;
  10584. Vector2 hotSpot;
  10585. /* readonly */
  10586. uint id;
  10587. /* readonly */
  10588. bool inView;
  10589. int layer;
  10590. uint lightMask;
  10591. float lodBias;
  10592. uint maxLights;
  10593. /* readonly */
  10594. Node node;
  10595. /* readonly */
  10596. uint numAttributes;
  10597. ObjectAnimation objectAnimation;
  10598. bool occludee;
  10599. bool occluder;
  10600. int orderInLayer;
  10601. /* readonly */
  10602. int refs;
  10603. float shadowDistance;
  10604. uint shadowMask;
  10605. Sprite2D sprite;
  10606. bool temporary;
  10607. /* readonly */
  10608. StringHash type;
  10609. /* readonly */
  10610. String typeName;
  10611. bool useHotSpot;
  10612. uint viewMask;
  10613. /* readonly */
  10614. int weakRefs;
  10615. /* readonly */
  10616. BoundingBox worldBoundingBox;
  10617. uint zoneMask;
  10618. };
  10619. class String
  10620. {
  10621. // Methods:
  10622. void AppendUTF8(uint);
  10623. uint AtUTF8(uint) const;
  10624. uint ByteOffsetUTF8(uint) const;
  10625. void Clear();
  10626. int Compare(const String&, bool = true) const;
  10627. bool Contains(const String&, bool = true) const;
  10628. bool Contains(uint8, bool = true) const;
  10629. bool EndsWith(const String&, bool = true) const;
  10630. uint Find(const String&, uint = 0, bool = true) const;
  10631. uint Find(uint8, uint = 0, bool = true) const;
  10632. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10633. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10634. void Join(Array<String>&, const String&);
  10635. uint NextUTF8Char(uint&) const;
  10636. void Replace(const String&, const String&, bool = true);
  10637. void Replace(uint8, uint8, bool = true);
  10638. void ReplaceUTF8(uint, uint);
  10639. String Replaced(const String&, const String&, bool = true) const;
  10640. String Replaced(uint8, uint8, bool = true) const;
  10641. void Resize(uint);
  10642. void SetUTF8FromLatin1(const String&);
  10643. Array<String> Split(uint8, bool = false) const;
  10644. bool StartsWith(const String&, bool = true) const;
  10645. String Substring(uint) const;
  10646. String Substring(uint, uint) const;
  10647. String SubstringUTF8(uint) const;
  10648. String SubstringUTF8(uint, uint) const;
  10649. bool ToBool() const;
  10650. Color ToColor() const;
  10651. double ToDouble() const;
  10652. float ToFloat() const;
  10653. int ToInt() const;
  10654. IntRect ToIntRect() const;
  10655. IntVector2 ToIntVector2() const;
  10656. String ToLower() const;
  10657. Matrix3 ToMatrix3() const;
  10658. Matrix3x4 ToMatrix3x4() const;
  10659. Matrix4 ToMatrix4() const;
  10660. Quaternion ToQuaternion() const;
  10661. uint ToUInt() const;
  10662. String ToUpper() const;
  10663. Vector2 ToVector2() const;
  10664. Vector3 ToVector3() const;
  10665. Vector4 ToVector4(bool = false) const;
  10666. Variant ToVectorVariant() const;
  10667. String Trimmed() const;
  10668. // Properties:
  10669. /* readonly */
  10670. bool empty;
  10671. /* readonly */
  10672. uint length;
  10673. /* readonly */
  10674. uint utf8Length;
  10675. };
  10676. class StringHash
  10677. {
  10678. // Methods:
  10679. String ToString() const;
  10680. // Properties:
  10681. /* readonly */
  10682. uint value;
  10683. };
  10684. class Technique
  10685. {
  10686. // Methods:
  10687. Technique Clone(const String& = String ( )) const;
  10688. Pass CreatePass(const String&);
  10689. Pass GetPass(const String&);
  10690. Pass GetSupportedPass(const String&);
  10691. bool HasPass(const String&) const;
  10692. bool HasSubscribedToEvent(Object, const String&);
  10693. bool HasSubscribedToEvent(const String&);
  10694. bool Load(File);
  10695. bool Load(VectorBuffer&);
  10696. void RemovePass(const String&);
  10697. bool Save(File) const;
  10698. bool Save(VectorBuffer&) const;
  10699. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10700. // Properties:
  10701. /* readonly */
  10702. String category;
  10703. bool desktop;
  10704. /* readonly */
  10705. uint memoryUse;
  10706. String name;
  10707. /* readonly */
  10708. uint numPasses;
  10709. /* readonly */
  10710. Array<String> passNames;
  10711. /* readonly */
  10712. Array<Pass> passes;
  10713. /* readonly */
  10714. int refs;
  10715. /* readonly */
  10716. bool supported;
  10717. /* readonly */
  10718. StringHash type;
  10719. /* readonly */
  10720. String typeName;
  10721. /* readonly */
  10722. uint useTimer;
  10723. /* readonly */
  10724. int weakRefs;
  10725. };
  10726. class TechniqueEntry
  10727. {
  10728. // Properties:
  10729. float lodDistance;
  10730. int qualityLevel;
  10731. Technique technique;
  10732. };
  10733. class Terrain
  10734. {
  10735. // Methods:
  10736. void ApplyAttributes();
  10737. void ApplyHeightMap();
  10738. void DrawDebugGeometry(DebugRenderer, bool);
  10739. Variant GetAttribute(const String&) const;
  10740. ValueAnimation GetAttributeAnimation(const String&) const;
  10741. float GetAttributeAnimationSpeed(const String&) const;
  10742. float GetAttributeAnimationTime(const String&) const;
  10743. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10744. Variant GetAttributeDefault(const String&) const;
  10745. float GetHeight(const Vector3&) const;
  10746. bool GetInterceptNetworkUpdate(const String&) const;
  10747. Vector3 GetNormal(const Vector3&) const;
  10748. TerrainPatch GetPatch(int, int) const;
  10749. bool HasSubscribedToEvent(Object, const String&);
  10750. bool HasSubscribedToEvent(const String&);
  10751. bool Load(File, bool = false);
  10752. bool Load(VectorBuffer&, bool = false);
  10753. bool LoadJSON(const JSONValue&, bool = false);
  10754. bool LoadXML(const XMLElement&, bool = false);
  10755. void MarkNetworkUpdate() const;
  10756. void Remove();
  10757. void RemoveAttributeAnimation(const String&);
  10758. void RemoveInstanceDefault();
  10759. void RemoveObjectAnimation();
  10760. void ResetToDefault();
  10761. bool Save(File) const;
  10762. bool Save(VectorBuffer&) const;
  10763. bool SaveJSON(JSONValue&) const;
  10764. bool SaveXML(XMLElement&) const;
  10765. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10766. void SetAnimationTime(float);
  10767. bool SetAttribute(const String&, const Variant&);
  10768. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10769. void SetAttributeAnimationSpeed(const String&, float);
  10770. void SetAttributeAnimationTime(const String&, float);
  10771. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10772. void SetInterceptNetworkUpdate(const String&, bool);
  10773. IntVector2 WorldToHeightMap(const Vector3&) const;
  10774. // Properties:
  10775. bool animationEnabled;
  10776. /* readonly */
  10777. Array<Variant> attributeDefaults;
  10778. /* readonly */
  10779. Array<AttributeInfo> attributeInfos;
  10780. Array<Variant> attributes;
  10781. bool castShadows;
  10782. /* readonly */
  10783. String category;
  10784. float drawDistance;
  10785. bool enabled;
  10786. /* readonly */
  10787. bool enabledEffective;
  10788. Image heightMap;
  10789. /* readonly */
  10790. uint id;
  10791. uint lightMask;
  10792. float lodBias;
  10793. Material material;
  10794. uint maxLights;
  10795. uint maxLodLevels;
  10796. /* readonly */
  10797. Node node;
  10798. /* readonly */
  10799. uint numAttributes;
  10800. /* readonly */
  10801. IntVector2 numPatches;
  10802. /* readonly */
  10803. IntVector2 numVertices;
  10804. ObjectAnimation objectAnimation;
  10805. bool occludee;
  10806. bool occluder;
  10807. uint occlusionLodLevel;
  10808. int patchSize;
  10809. /* readonly */
  10810. Array<TerrainPatch> patches;
  10811. /* readonly */
  10812. int refs;
  10813. float shadowDistance;
  10814. uint shadowMask;
  10815. bool smoothing;
  10816. Vector3 spacing;
  10817. bool temporary;
  10818. /* readonly */
  10819. StringHash type;
  10820. /* readonly */
  10821. String typeName;
  10822. uint viewMask;
  10823. /* readonly */
  10824. int weakRefs;
  10825. uint zoneMask;
  10826. };
  10827. class TerrainPatch
  10828. {
  10829. // Methods:
  10830. void ApplyAttributes();
  10831. void DrawDebugGeometry(DebugRenderer, bool);
  10832. Variant GetAttribute(const String&) const;
  10833. ValueAnimation GetAttributeAnimation(const String&) const;
  10834. float GetAttributeAnimationSpeed(const String&) const;
  10835. float GetAttributeAnimationTime(const String&) const;
  10836. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10837. Variant GetAttributeDefault(const String&) const;
  10838. bool GetInterceptNetworkUpdate(const String&) const;
  10839. bool HasSubscribedToEvent(Object, const String&);
  10840. bool HasSubscribedToEvent(const String&);
  10841. bool IsInView(Camera) const;
  10842. bool Load(File, bool = false);
  10843. bool Load(VectorBuffer&, bool = false);
  10844. bool LoadJSON(const JSONValue&, bool = false);
  10845. bool LoadXML(const XMLElement&, bool = false);
  10846. void MarkNetworkUpdate() const;
  10847. void Remove();
  10848. void RemoveAttributeAnimation(const String&);
  10849. void RemoveInstanceDefault();
  10850. void RemoveObjectAnimation();
  10851. void ResetToDefault();
  10852. bool Save(File) const;
  10853. bool Save(VectorBuffer&) const;
  10854. bool SaveJSON(JSONValue&) const;
  10855. bool SaveXML(XMLElement&) const;
  10856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10857. void SetAnimationTime(float);
  10858. bool SetAttribute(const String&, const Variant&);
  10859. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10860. void SetAttributeAnimationSpeed(const String&, float);
  10861. void SetAttributeAnimationTime(const String&, float);
  10862. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10863. void SetInterceptNetworkUpdate(const String&, bool);
  10864. // Properties:
  10865. bool animationEnabled;
  10866. /* readonly */
  10867. Array<Variant> attributeDefaults;
  10868. /* readonly */
  10869. Array<AttributeInfo> attributeInfos;
  10870. Array<Variant> attributes;
  10871. /* readonly */
  10872. BoundingBox boundingBox;
  10873. bool castShadows;
  10874. /* readonly */
  10875. String category;
  10876. float drawDistance;
  10877. bool enabled;
  10878. /* readonly */
  10879. bool enabledEffective;
  10880. /* readonly */
  10881. uint id;
  10882. /* readonly */
  10883. bool inView;
  10884. uint lightMask;
  10885. float lodBias;
  10886. uint maxLights;
  10887. /* readonly */
  10888. Node node;
  10889. /* readonly */
  10890. uint numAttributes;
  10891. ObjectAnimation objectAnimation;
  10892. bool occludee;
  10893. bool occluder;
  10894. /* readonly */
  10895. int refs;
  10896. float shadowDistance;
  10897. uint shadowMask;
  10898. bool temporary;
  10899. /* readonly */
  10900. StringHash type;
  10901. /* readonly */
  10902. String typeName;
  10903. uint viewMask;
  10904. /* readonly */
  10905. int weakRefs;
  10906. /* readonly */
  10907. BoundingBox worldBoundingBox;
  10908. uint zoneMask;
  10909. };
  10910. class Text
  10911. {
  10912. // Methods:
  10913. void AddChild(UIElement);
  10914. void AddTag(const String&);
  10915. void AddTags(const String&, int8 = ';');
  10916. void ApplyAttributes();
  10917. void BringToFront();
  10918. void ClearSelection();
  10919. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10920. void DisableLayoutUpdate();
  10921. IntVector2 ElementToScreen(const IntVector2&);
  10922. void EnableLayoutUpdate();
  10923. uint FindChild(UIElement) const;
  10924. Variant GetAttribute(const String&) const;
  10925. ValueAnimation GetAttributeAnimation(const String&) const;
  10926. float GetAttributeAnimationSpeed(const String&) const;
  10927. float GetAttributeAnimationTime(const String&) const;
  10928. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10929. Variant GetAttributeDefault(const String&) const;
  10930. UIElement GetChild(const String&, bool = false) const;
  10931. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10932. Array<UIElement> GetChildren(bool = false) const;
  10933. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10934. UIElement GetElementEventSender() const;
  10935. bool GetInterceptNetworkUpdate(const String&) const;
  10936. uint GetNumChildren(bool) const;
  10937. bool HasSubscribedToEvent(Object, const String&);
  10938. bool HasSubscribedToEvent(const String&);
  10939. bool HasTag(const String&) const;
  10940. void InsertChild(uint, UIElement);
  10941. bool IsInside(IntVector2, bool);
  10942. bool IsInsideCombined(IntVector2, bool);
  10943. bool Load(File, bool = false);
  10944. bool Load(VectorBuffer&, bool = false);
  10945. bool LoadChildXML(XMLFile, XMLFile = null);
  10946. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10947. bool LoadJSON(const JSONValue&, bool = false);
  10948. bool LoadXML(File);
  10949. bool LoadXML(VectorBuffer&);
  10950. bool LoadXML(XMLFile, XMLFile);
  10951. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10952. bool LoadXML(const XMLElement&, bool = false);
  10953. void MarkNetworkUpdate() const;
  10954. void Remove();
  10955. void RemoveAllChildren();
  10956. void RemoveAllTags();
  10957. void RemoveAttributeAnimation(const String&);
  10958. void RemoveChild(UIElement, uint = 0);
  10959. void RemoveChild(uint);
  10960. void RemoveInstanceDefault();
  10961. void RemoveObjectAnimation();
  10962. bool RemoveTag(const String&);
  10963. void ResetDeepEnabled();
  10964. void ResetToDefault();
  10965. bool Save(File) const;
  10966. bool Save(VectorBuffer&) const;
  10967. bool SaveJSON(JSONValue&) const;
  10968. bool SaveXML(File, const String& = "\t");
  10969. bool SaveXML(VectorBuffer&, const String& = "\t");
  10970. bool SaveXML(XMLElement&) const;
  10971. IntVector2 ScreenToElement(const IntVector2&);
  10972. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10973. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10974. void SetAnimationTime(float);
  10975. bool SetAttribute(const String&, const Variant&);
  10976. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10977. void SetAttributeAnimationSpeed(const String&, float);
  10978. void SetAttributeAnimationTime(const String&, float);
  10979. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10980. void SetDeepEnabled(bool);
  10981. void SetEnabledRecursive(bool);
  10982. void SetFixedHeight(int);
  10983. void SetFixedSize(int, int);
  10984. void SetFixedWidth(int);
  10985. bool SetFont(Font, int);
  10986. bool SetFont(const String&, int);
  10987. void SetInterceptNetworkUpdate(const String&, bool);
  10988. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10989. void SetMaxSize(int, int);
  10990. void SetMinSize(int, int);
  10991. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10992. void SetPosition(int, int);
  10993. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10994. void SetSize(int, int);
  10995. bool SetStyle(const String&, XMLFile = null);
  10996. bool SetStyle(const XMLElement&);
  10997. bool SetStyleAuto(XMLFile = null);
  10998. void UpdateLayout();
  10999. const Variant& GetVar(const StringHash&);
  11000. // Properties:
  11001. bool animationEnabled;
  11002. /* readonly */
  11003. Array<Variant> attributeDefaults;
  11004. /* readonly */
  11005. Array<AttributeInfo> attributeInfos;
  11006. Array<Variant> attributes;
  11007. bool autoLocalizable;
  11008. bool bringToBack;
  11009. bool bringToFront;
  11010. /* readonly */
  11011. String category;
  11012. /* readonly */
  11013. Array<IntVector2> charPositions;
  11014. /* readonly */
  11015. Array<IntVector2> charSizes;
  11016. /* readonly */
  11017. IntVector2 childOffset;
  11018. /* readonly */
  11019. Array<UIElement> children;
  11020. IntRect clipBorder;
  11021. bool clipChildren;
  11022. /* writeonly */
  11023. Color color;
  11024. /* readonly */
  11025. bool colorGradient;
  11026. Array<Color> colors;
  11027. /* readonly */
  11028. IntRect combinedScreenRect;
  11029. XMLFile defaultStyle;
  11030. /* readonly */
  11031. float derivedOpacity;
  11032. /* readonly */
  11033. uint dragButtonCombo;
  11034. /* readonly */
  11035. int dragButtonCount;
  11036. uint dragDropMode;
  11037. bool editable;
  11038. Color effectColor;
  11039. bool elementEventSender;
  11040. bool enabled;
  11041. /* readonly */
  11042. bool enabledSelf;
  11043. /* readonly */
  11044. bool fixedHeight;
  11045. /* readonly */
  11046. bool fixedSize;
  11047. /* readonly */
  11048. bool fixedWidth;
  11049. bool focus;
  11050. FocusMode focusMode;
  11051. /* readonly */
  11052. Font font;
  11053. /* readonly */
  11054. int fontSize;
  11055. int height;
  11056. HorizontalAlignment horizontalAlignment;
  11057. Color hoverColor;
  11058. /* readonly */
  11059. bool hovering;
  11060. int indent;
  11061. int indentSpacing;
  11062. /* readonly */
  11063. int indentWidth;
  11064. bool internal;
  11065. IntRect layoutBorder;
  11066. Vector2 layoutFlexScale;
  11067. LayoutMode layoutMode;
  11068. int layoutSpacing;
  11069. int maxHeight;
  11070. IntVector2 maxSize;
  11071. int maxWidth;
  11072. int minHeight;
  11073. IntVector2 minSize;
  11074. int minWidth;
  11075. String name;
  11076. /* readonly */
  11077. uint numAllChildren;
  11078. /* readonly */
  11079. uint numAttributes;
  11080. /* readonly */
  11081. uint numChars;
  11082. /* readonly */
  11083. uint numChildren;
  11084. /* readonly */
  11085. uint numRows;
  11086. ObjectAnimation objectAnimation;
  11087. float opacity;
  11088. UIElement parent;
  11089. IntVector2 position;
  11090. int priority;
  11091. /* readonly */
  11092. int refs;
  11093. /* readonly */
  11094. UIElement root;
  11095. /* readonly */
  11096. int rowHeight;
  11097. float rowSpacing;
  11098. /* readonly */
  11099. Array<int> rowWidths;
  11100. /* readonly */
  11101. IntVector2 screenPosition;
  11102. bool selected;
  11103. Color selectionColor;
  11104. /* readonly */
  11105. uint selectionLength;
  11106. /* readonly */
  11107. uint selectionStart;
  11108. IntVector2 size;
  11109. bool sortChildren;
  11110. String style;
  11111. /* readonly */
  11112. Array<String> tags;
  11113. bool temporary;
  11114. String text;
  11115. HorizontalAlignment textAlignment;
  11116. TextEffect textEffect;
  11117. TraversalMode traversalMode;
  11118. /* readonly */
  11119. StringHash type;
  11120. /* readonly */
  11121. String typeName;
  11122. bool useDerivedOpacity;
  11123. /* readonly */
  11124. VariantMap vars;
  11125. VerticalAlignment verticalAlignment;
  11126. bool visible;
  11127. /* readonly */
  11128. bool visibleEffective;
  11129. /* readonly */
  11130. int weakRefs;
  11131. int width;
  11132. bool wordwrap;
  11133. };
  11134. class Text3D
  11135. {
  11136. // Methods:
  11137. void ApplyAttributes();
  11138. void DrawDebugGeometry(DebugRenderer, bool);
  11139. Variant GetAttribute(const String&) const;
  11140. ValueAnimation GetAttributeAnimation(const String&) const;
  11141. float GetAttributeAnimationSpeed(const String&) const;
  11142. float GetAttributeAnimationTime(const String&) const;
  11143. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11144. Variant GetAttributeDefault(const String&) const;
  11145. bool GetInterceptNetworkUpdate(const String&) const;
  11146. bool HasSubscribedToEvent(Object, const String&);
  11147. bool HasSubscribedToEvent(const String&);
  11148. bool IsInView(Camera) const;
  11149. bool Load(File, bool = false);
  11150. bool Load(VectorBuffer&, bool = false);
  11151. bool LoadJSON(const JSONValue&, bool = false);
  11152. bool LoadXML(const XMLElement&, bool = false);
  11153. void MarkNetworkUpdate() const;
  11154. void Remove();
  11155. void RemoveAttributeAnimation(const String&);
  11156. void RemoveInstanceDefault();
  11157. void RemoveObjectAnimation();
  11158. void ResetToDefault();
  11159. bool Save(File) const;
  11160. bool Save(VectorBuffer&) const;
  11161. bool SaveJSON(JSONValue&) const;
  11162. bool SaveXML(XMLElement&) const;
  11163. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11164. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11165. void SetAnimationTime(float);
  11166. bool SetAttribute(const String&, const Variant&);
  11167. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11168. void SetAttributeAnimationSpeed(const String&, float);
  11169. void SetAttributeAnimationTime(const String&, float);
  11170. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11171. bool SetFont(Font, int);
  11172. bool SetFont(const String&, int);
  11173. void SetInterceptNetworkUpdate(const String&, bool);
  11174. // Properties:
  11175. bool animationEnabled;
  11176. /* readonly */
  11177. Array<Variant> attributeDefaults;
  11178. /* readonly */
  11179. Array<AttributeInfo> attributeInfos;
  11180. Array<Variant> attributes;
  11181. /* readonly */
  11182. BoundingBox boundingBox;
  11183. bool castShadows;
  11184. /* readonly */
  11185. String category;
  11186. /* readonly */
  11187. Array<IntVector2> charPositions;
  11188. /* readonly */
  11189. Array<IntVector2> charSizes;
  11190. /* writeonly */
  11191. Color color;
  11192. Array<Color> colors;
  11193. float drawDistance;
  11194. Color effectColor;
  11195. float effectDepthBias;
  11196. bool enabled;
  11197. /* readonly */
  11198. bool enabledEffective;
  11199. FaceCameraMode faceCameraMode;
  11200. /* readonly */
  11201. Font font;
  11202. /* readonly */
  11203. int fontSize;
  11204. HorizontalAlignment horizontalAlignment;
  11205. /* readonly */
  11206. uint id;
  11207. /* readonly */
  11208. bool inView;
  11209. uint lightMask;
  11210. float lodBias;
  11211. Material material;
  11212. uint maxLights;
  11213. /* readonly */
  11214. Node node;
  11215. /* readonly */
  11216. uint numAttributes;
  11217. /* readonly */
  11218. uint numChars;
  11219. /* readonly */
  11220. uint numRows;
  11221. ObjectAnimation objectAnimation;
  11222. bool occludee;
  11223. bool occluder;
  11224. float opacity;
  11225. /* readonly */
  11226. int refs;
  11227. /* readonly */
  11228. int rowHeight;
  11229. float rowSpacing;
  11230. /* readonly */
  11231. Array<int> rowWidths;
  11232. float shadowDistance;
  11233. uint shadowMask;
  11234. bool temporary;
  11235. String text;
  11236. HorizontalAlignment textAlignment;
  11237. TextEffect textEffect;
  11238. /* readonly */
  11239. StringHash type;
  11240. /* readonly */
  11241. String typeName;
  11242. VerticalAlignment verticalAlignment;
  11243. uint viewMask;
  11244. /* readonly */
  11245. int weakRefs;
  11246. int width;
  11247. bool wordwrap;
  11248. /* readonly */
  11249. BoundingBox worldBoundingBox;
  11250. uint zoneMask;
  11251. };
  11252. class Texture
  11253. {
  11254. // Methods:
  11255. void ClearDataLost();
  11256. bool HasSubscribedToEvent(Object, const String&);
  11257. bool HasSubscribedToEvent(const String&);
  11258. bool Load(File);
  11259. bool Load(VectorBuffer&);
  11260. bool Save(File) const;
  11261. bool Save(VectorBuffer&) const;
  11262. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11263. void SetNumLevels(uint);
  11264. // Properties:
  11265. Array<TextureAddressMode> addressMode;
  11266. Texture backupTexture;
  11267. Color borderColor;
  11268. /* readonly */
  11269. String category;
  11270. /* readonly */
  11271. uint components;
  11272. /* readonly */
  11273. bool compressed;
  11274. /* readonly */
  11275. bool dataLost;
  11276. TextureFilterMode filterMode;
  11277. /* readonly */
  11278. uint format;
  11279. /* readonly */
  11280. int height;
  11281. /* readonly */
  11282. Array<int> levelHeight;
  11283. /* readonly */
  11284. Array<int> levelWidth;
  11285. /* readonly */
  11286. uint levels;
  11287. /* readonly */
  11288. uint memoryUse;
  11289. Array<int> mipsToSkip;
  11290. String name;
  11291. /* readonly */
  11292. int refs;
  11293. bool sRGB;
  11294. /* readonly */
  11295. StringHash type;
  11296. /* readonly */
  11297. String typeName;
  11298. /* readonly */
  11299. TextureUsage usage;
  11300. /* readonly */
  11301. uint useTimer;
  11302. /* readonly */
  11303. int weakRefs;
  11304. /* readonly */
  11305. int width;
  11306. };
  11307. class Texture2D
  11308. {
  11309. // Methods:
  11310. void ClearDataLost();
  11311. Image GetImage() const;
  11312. bool HasSubscribedToEvent(Object, const String&);
  11313. bool HasSubscribedToEvent(const String&);
  11314. bool Load(File);
  11315. bool Load(VectorBuffer&);
  11316. bool Save(File) const;
  11317. bool Save(VectorBuffer&) const;
  11318. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11319. bool SetData(Image, bool = false);
  11320. void SetNumLevels(uint);
  11321. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11322. // Properties:
  11323. Array<TextureAddressMode> addressMode;
  11324. Texture backupTexture;
  11325. Color borderColor;
  11326. /* readonly */
  11327. String category;
  11328. /* readonly */
  11329. uint components;
  11330. /* readonly */
  11331. bool compressed;
  11332. /* readonly */
  11333. bool dataLost;
  11334. TextureFilterMode filterMode;
  11335. /* readonly */
  11336. uint format;
  11337. /* readonly */
  11338. int height;
  11339. /* readonly */
  11340. Array<int> levelHeight;
  11341. /* readonly */
  11342. Array<int> levelWidth;
  11343. /* readonly */
  11344. uint levels;
  11345. /* readonly */
  11346. uint memoryUse;
  11347. Array<int> mipsToSkip;
  11348. String name;
  11349. /* readonly */
  11350. int refs;
  11351. /* readonly */
  11352. RenderSurface renderSurface;
  11353. bool sRGB;
  11354. /* readonly */
  11355. StringHash type;
  11356. /* readonly */
  11357. String typeName;
  11358. /* readonly */
  11359. TextureUsage usage;
  11360. /* readonly */
  11361. uint useTimer;
  11362. /* readonly */
  11363. int weakRefs;
  11364. /* readonly */
  11365. int width;
  11366. };
  11367. class Texture2DArray
  11368. {
  11369. // Methods:
  11370. void ClearDataLost();
  11371. bool HasSubscribedToEvent(Object, const String&);
  11372. bool HasSubscribedToEvent(const String&);
  11373. bool Load(File);
  11374. bool Load(VectorBuffer&);
  11375. bool Save(File) const;
  11376. bool Save(VectorBuffer&) const;
  11377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11378. bool SetData(uint, Image, bool = false);
  11379. void SetNumLevels(uint);
  11380. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11381. // Properties:
  11382. Array<TextureAddressMode> addressMode;
  11383. Texture backupTexture;
  11384. Color borderColor;
  11385. /* readonly */
  11386. String category;
  11387. /* readonly */
  11388. uint components;
  11389. /* readonly */
  11390. bool compressed;
  11391. /* readonly */
  11392. bool dataLost;
  11393. TextureFilterMode filterMode;
  11394. /* readonly */
  11395. uint format;
  11396. /* readonly */
  11397. int height;
  11398. uint layers;
  11399. /* readonly */
  11400. Array<int> levelHeight;
  11401. /* readonly */
  11402. Array<int> levelWidth;
  11403. /* readonly */
  11404. uint levels;
  11405. /* readonly */
  11406. uint memoryUse;
  11407. Array<int> mipsToSkip;
  11408. String name;
  11409. /* readonly */
  11410. int refs;
  11411. /* readonly */
  11412. RenderSurface renderSurface;
  11413. bool sRGB;
  11414. /* readonly */
  11415. StringHash type;
  11416. /* readonly */
  11417. String typeName;
  11418. /* readonly */
  11419. TextureUsage usage;
  11420. /* readonly */
  11421. uint useTimer;
  11422. /* readonly */
  11423. int weakRefs;
  11424. /* readonly */
  11425. int width;
  11426. };
  11427. class Texture3D
  11428. {
  11429. // Methods:
  11430. void ClearDataLost();
  11431. bool HasSubscribedToEvent(Object, const String&);
  11432. bool HasSubscribedToEvent(const String&);
  11433. bool Load(File);
  11434. bool Load(VectorBuffer&);
  11435. bool Save(File) const;
  11436. bool Save(VectorBuffer&) const;
  11437. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11438. bool SetData(Image, bool = false);
  11439. void SetNumLevels(uint);
  11440. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11441. // Properties:
  11442. Array<TextureAddressMode> addressMode;
  11443. Texture backupTexture;
  11444. Color borderColor;
  11445. /* readonly */
  11446. String category;
  11447. /* readonly */
  11448. uint components;
  11449. /* readonly */
  11450. bool compressed;
  11451. /* readonly */
  11452. bool dataLost;
  11453. TextureFilterMode filterMode;
  11454. /* readonly */
  11455. uint format;
  11456. /* readonly */
  11457. int height;
  11458. /* readonly */
  11459. Array<int> levelHeight;
  11460. /* readonly */
  11461. Array<int> levelWidth;
  11462. /* readonly */
  11463. uint levels;
  11464. /* readonly */
  11465. uint memoryUse;
  11466. Array<int> mipsToSkip;
  11467. String name;
  11468. /* readonly */
  11469. int refs;
  11470. bool sRGB;
  11471. /* readonly */
  11472. StringHash type;
  11473. /* readonly */
  11474. String typeName;
  11475. /* readonly */
  11476. TextureUsage usage;
  11477. /* readonly */
  11478. uint useTimer;
  11479. /* readonly */
  11480. int weakRefs;
  11481. /* readonly */
  11482. int width;
  11483. };
  11484. class TextureCube
  11485. {
  11486. // Methods:
  11487. void ClearDataLost();
  11488. Image GetImage(CubeMapFace) const;
  11489. bool HasSubscribedToEvent(Object, const String&);
  11490. bool HasSubscribedToEvent(const String&);
  11491. bool Load(File);
  11492. bool Load(VectorBuffer&);
  11493. bool Save(File) const;
  11494. bool Save(VectorBuffer&) const;
  11495. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11496. bool SetData(CubeMapFace, Image, bool = false);
  11497. void SetNumLevels(uint);
  11498. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11499. // Properties:
  11500. Array<TextureAddressMode> addressMode;
  11501. Texture backupTexture;
  11502. Color borderColor;
  11503. /* readonly */
  11504. String category;
  11505. /* readonly */
  11506. uint components;
  11507. /* readonly */
  11508. bool compressed;
  11509. /* readonly */
  11510. bool dataLost;
  11511. TextureFilterMode filterMode;
  11512. /* readonly */
  11513. uint format;
  11514. /* readonly */
  11515. int height;
  11516. /* readonly */
  11517. Array<int> levelHeight;
  11518. /* readonly */
  11519. Array<int> levelWidth;
  11520. /* readonly */
  11521. uint levels;
  11522. /* readonly */
  11523. uint memoryUse;
  11524. Array<int> mipsToSkip;
  11525. String name;
  11526. /* readonly */
  11527. int refs;
  11528. /* readonly */
  11529. Array<RenderSurface> renderSurfaces;
  11530. bool sRGB;
  11531. /* readonly */
  11532. StringHash type;
  11533. /* readonly */
  11534. String typeName;
  11535. /* readonly */
  11536. TextureUsage usage;
  11537. /* readonly */
  11538. uint useTimer;
  11539. /* readonly */
  11540. int weakRefs;
  11541. /* readonly */
  11542. int width;
  11543. };
  11544. class TextureFrame
  11545. {
  11546. // Properties:
  11547. float time;
  11548. Rect uv;
  11549. };
  11550. class Tile2D
  11551. {
  11552. // Methods:
  11553. bool HasProperty(const String&) const;
  11554. const String& GetProperty(const String&) const;
  11555. // Properties:
  11556. /* readonly */
  11557. int gid;
  11558. /* readonly */
  11559. int refs;
  11560. /* readonly */
  11561. Sprite2D sprite;
  11562. /* readonly */
  11563. int weakRefs;
  11564. };
  11565. class TileMap2D
  11566. {
  11567. // Methods:
  11568. void ApplyAttributes();
  11569. void DrawDebugGeometry(DebugRenderer, bool);
  11570. Variant GetAttribute(const String&) const;
  11571. ValueAnimation GetAttributeAnimation(const String&) const;
  11572. float GetAttributeAnimationSpeed(const String&) const;
  11573. float GetAttributeAnimationTime(const String&) const;
  11574. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11575. Variant GetAttributeDefault(const String&) const;
  11576. bool GetInterceptNetworkUpdate(const String&) const;
  11577. TileMapLayer2D GetLayer(uint) const;
  11578. bool HasSubscribedToEvent(Object, const String&);
  11579. bool HasSubscribedToEvent(const String&);
  11580. bool Load(File, bool = false);
  11581. bool Load(VectorBuffer&, bool = false);
  11582. bool LoadJSON(const JSONValue&, bool = false);
  11583. bool LoadXML(const XMLElement&, bool = false);
  11584. void MarkNetworkUpdate() const;
  11585. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11586. void Remove();
  11587. void RemoveAttributeAnimation(const String&);
  11588. void RemoveInstanceDefault();
  11589. void RemoveObjectAnimation();
  11590. void ResetToDefault();
  11591. bool Save(File) const;
  11592. bool Save(VectorBuffer&) const;
  11593. bool SaveJSON(JSONValue&) const;
  11594. bool SaveXML(XMLElement&) const;
  11595. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11596. void SetAnimationTime(float);
  11597. bool SetAttribute(const String&, const Variant&);
  11598. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11599. void SetAttributeAnimationSpeed(const String&, float);
  11600. void SetAttributeAnimationTime(const String&, float);
  11601. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11602. void SetInterceptNetworkUpdate(const String&, bool);
  11603. Vector2 TileIndexToPosition(int, int) const;
  11604. // Properties:
  11605. bool animationEnabled;
  11606. /* readonly */
  11607. Array<Variant> attributeDefaults;
  11608. /* readonly */
  11609. Array<AttributeInfo> attributeInfos;
  11610. Array<Variant> attributes;
  11611. /* readonly */
  11612. String category;
  11613. bool enabled;
  11614. /* readonly */
  11615. bool enabledEffective;
  11616. /* readonly */
  11617. uint id;
  11618. /* readonly */
  11619. TileMapInfo2D info;
  11620. /* readonly */
  11621. Node node;
  11622. /* readonly */
  11623. uint numAttributes;
  11624. /* readonly */
  11625. uint numLayers;
  11626. ObjectAnimation objectAnimation;
  11627. /* readonly */
  11628. int refs;
  11629. bool temporary;
  11630. TmxFile2D tmxFile;
  11631. /* readonly */
  11632. StringHash type;
  11633. /* readonly */
  11634. String typeName;
  11635. /* readonly */
  11636. int weakRefs;
  11637. };
  11638. class TileMapInfo2D
  11639. {
  11640. // Properties:
  11641. int height;
  11642. /* readonly */
  11643. float mapHeight;
  11644. /* readonly */
  11645. float mapWidth;
  11646. Orientation2D orientation;
  11647. float tileHeight;
  11648. float tileWidth;
  11649. int width;
  11650. };
  11651. class TileMapLayer2D
  11652. {
  11653. // Methods:
  11654. void ApplyAttributes();
  11655. void DrawDebugGeometry(DebugRenderer, bool);
  11656. Variant GetAttribute(const String&) const;
  11657. ValueAnimation GetAttributeAnimation(const String&) const;
  11658. float GetAttributeAnimationSpeed(const String&) const;
  11659. float GetAttributeAnimationTime(const String&) const;
  11660. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11661. Variant GetAttributeDefault(const String&) const;
  11662. bool GetInterceptNetworkUpdate(const String&) const;
  11663. TileMapObject2D GetObject(uint) const;
  11664. Node GetObjectNode(uint) const;
  11665. Tile2D GetTile(int, int) const;
  11666. Node GetTileNode(int, int) const;
  11667. bool HasProperty(const String&) const;
  11668. bool HasSubscribedToEvent(Object, const String&);
  11669. bool HasSubscribedToEvent(const String&);
  11670. bool Load(File, bool = false);
  11671. bool Load(VectorBuffer&, bool = false);
  11672. bool LoadJSON(const JSONValue&, bool = false);
  11673. bool LoadXML(const XMLElement&, bool = false);
  11674. void MarkNetworkUpdate() const;
  11675. void Remove();
  11676. void RemoveAttributeAnimation(const String&);
  11677. void RemoveInstanceDefault();
  11678. void RemoveObjectAnimation();
  11679. void ResetToDefault();
  11680. bool Save(File) const;
  11681. bool Save(VectorBuffer&) const;
  11682. bool SaveJSON(JSONValue&) const;
  11683. bool SaveXML(XMLElement&) const;
  11684. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11685. void SetAnimationTime(float);
  11686. bool SetAttribute(const String&, const Variant&);
  11687. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11688. void SetAttributeAnimationSpeed(const String&, float);
  11689. void SetAttributeAnimationTime(const String&, float);
  11690. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11691. void SetInterceptNetworkUpdate(const String&, bool);
  11692. const String& GetProperty(const String&) const;
  11693. // Properties:
  11694. bool animationEnabled;
  11695. /* readonly */
  11696. Array<Variant> attributeDefaults;
  11697. /* readonly */
  11698. Array<AttributeInfo> attributeInfos;
  11699. Array<Variant> attributes;
  11700. /* readonly */
  11701. String category;
  11702. int drawOrder;
  11703. bool enabled;
  11704. /* readonly */
  11705. bool enabledEffective;
  11706. /* readonly */
  11707. int height;
  11708. /* readonly */
  11709. uint id;
  11710. /* readonly */
  11711. Node imageNode;
  11712. /* readonly */
  11713. TileMapLayerType2D layerType;
  11714. /* readonly */
  11715. Node node;
  11716. /* readonly */
  11717. uint numAttributes;
  11718. /* readonly */
  11719. uint numObjects;
  11720. ObjectAnimation objectAnimation;
  11721. /* readonly */
  11722. int refs;
  11723. bool temporary;
  11724. /* readonly */
  11725. StringHash type;
  11726. /* readonly */
  11727. String typeName;
  11728. bool visible;
  11729. /* readonly */
  11730. int weakRefs;
  11731. /* readonly */
  11732. int width;
  11733. };
  11734. class TileMapObject2D
  11735. {
  11736. // Methods:
  11737. bool HasProperty(const String&) const;
  11738. const String& GetProperty(const String&) const;
  11739. const Vector2& GetPoint(uint) const;
  11740. // Properties:
  11741. /* readonly */
  11742. String name;
  11743. /* readonly */
  11744. uint numPoints;
  11745. /* readonly */
  11746. TileObjectType2D objectType;
  11747. /* readonly */
  11748. Vector2 position;
  11749. /* readonly */
  11750. int refs;
  11751. /* readonly */
  11752. Vector2 size;
  11753. /* readonly */
  11754. int tileGid;
  11755. /* readonly */
  11756. Sprite2D tileSprite;
  11757. /* readonly */
  11758. String type;
  11759. /* readonly */
  11760. int weakRefs;
  11761. };
  11762. class Time
  11763. {
  11764. // Methods:
  11765. bool HasSubscribedToEvent(Object, const String&);
  11766. bool HasSubscribedToEvent(const String&);
  11767. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11768. // Properties:
  11769. /* readonly */
  11770. String category;
  11771. /* readonly */
  11772. float elapsedTime;
  11773. /* readonly */
  11774. uint frameNumber;
  11775. /* readonly */
  11776. int refs;
  11777. /* readonly */
  11778. uint systemTime;
  11779. /* readonly */
  11780. uint timeSinceEpoch;
  11781. /* readonly */
  11782. String timeStamp;
  11783. /* readonly */
  11784. float timeStep;
  11785. /* readonly */
  11786. StringHash type;
  11787. /* readonly */
  11788. String typeName;
  11789. /* readonly */
  11790. int weakRefs;
  11791. };
  11792. class Timer
  11793. {
  11794. // Methods:
  11795. uint GetMSec(bool);
  11796. void Reset();
  11797. };
  11798. class TmxFile2D
  11799. {
  11800. // Methods:
  11801. bool HasSubscribedToEvent(Object, const String&);
  11802. bool HasSubscribedToEvent(const String&);
  11803. bool Load(File);
  11804. bool Load(VectorBuffer&);
  11805. bool Save(File) const;
  11806. bool Save(VectorBuffer&) const;
  11807. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11808. // Properties:
  11809. /* readonly */
  11810. String category;
  11811. /* readonly */
  11812. uint memoryUse;
  11813. String name;
  11814. /* readonly */
  11815. int refs;
  11816. /* readonly */
  11817. StringHash type;
  11818. /* readonly */
  11819. String typeName;
  11820. /* readonly */
  11821. uint useTimer;
  11822. /* readonly */
  11823. int weakRefs;
  11824. };
  11825. class ToolTip
  11826. {
  11827. // Methods:
  11828. void AddChild(UIElement);
  11829. void AddTag(const String&);
  11830. void AddTags(const String&, int8 = ';');
  11831. void ApplyAttributes();
  11832. void BringToFront();
  11833. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11834. void DisableLayoutUpdate();
  11835. IntVector2 ElementToScreen(const IntVector2&);
  11836. void EnableLayoutUpdate();
  11837. uint FindChild(UIElement) const;
  11838. Variant GetAttribute(const String&) const;
  11839. ValueAnimation GetAttributeAnimation(const String&) const;
  11840. float GetAttributeAnimationSpeed(const String&) const;
  11841. float GetAttributeAnimationTime(const String&) const;
  11842. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11843. Variant GetAttributeDefault(const String&) const;
  11844. UIElement GetChild(const String&, bool = false) const;
  11845. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11846. Array<UIElement> GetChildren(bool = false) const;
  11847. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11848. UIElement GetElementEventSender() const;
  11849. bool GetInterceptNetworkUpdate(const String&) const;
  11850. uint GetNumChildren(bool) const;
  11851. bool HasSubscribedToEvent(Object, const String&);
  11852. bool HasSubscribedToEvent(const String&);
  11853. bool HasTag(const String&) const;
  11854. void InsertChild(uint, UIElement);
  11855. bool IsInside(IntVector2, bool);
  11856. bool IsInsideCombined(IntVector2, bool);
  11857. bool Load(File, bool = false);
  11858. bool Load(VectorBuffer&, bool = false);
  11859. bool LoadChildXML(XMLFile, XMLFile = null);
  11860. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11861. bool LoadJSON(const JSONValue&, bool = false);
  11862. bool LoadXML(File);
  11863. bool LoadXML(VectorBuffer&);
  11864. bool LoadXML(XMLFile, XMLFile);
  11865. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11866. bool LoadXML(const XMLElement&, bool = false);
  11867. void MarkNetworkUpdate() const;
  11868. void Remove();
  11869. void RemoveAllChildren();
  11870. void RemoveAllTags();
  11871. void RemoveAttributeAnimation(const String&);
  11872. void RemoveChild(UIElement, uint = 0);
  11873. void RemoveChild(uint);
  11874. void RemoveInstanceDefault();
  11875. void RemoveObjectAnimation();
  11876. bool RemoveTag(const String&);
  11877. void ResetDeepEnabled();
  11878. void ResetToDefault();
  11879. bool Save(File) const;
  11880. bool Save(VectorBuffer&) const;
  11881. bool SaveJSON(JSONValue&) const;
  11882. bool SaveXML(File, const String& = "\t");
  11883. bool SaveXML(VectorBuffer&, const String& = "\t");
  11884. bool SaveXML(XMLElement&) const;
  11885. IntVector2 ScreenToElement(const IntVector2&);
  11886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11887. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11888. void SetAnimationTime(float);
  11889. bool SetAttribute(const String&, const Variant&);
  11890. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11891. void SetAttributeAnimationSpeed(const String&, float);
  11892. void SetAttributeAnimationTime(const String&, float);
  11893. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11894. void SetDeepEnabled(bool);
  11895. void SetEnabledRecursive(bool);
  11896. void SetFixedHeight(int);
  11897. void SetFixedSize(int, int);
  11898. void SetFixedWidth(int);
  11899. void SetInterceptNetworkUpdate(const String&, bool);
  11900. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11901. void SetMaxSize(int, int);
  11902. void SetMinSize(int, int);
  11903. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11904. void SetPosition(int, int);
  11905. void SetSize(int, int);
  11906. bool SetStyle(const String&, XMLFile = null);
  11907. bool SetStyle(const XMLElement&);
  11908. bool SetStyleAuto(XMLFile = null);
  11909. void UpdateLayout();
  11910. const Variant& GetVar(const StringHash&);
  11911. // Properties:
  11912. bool animationEnabled;
  11913. /* readonly */
  11914. Array<Variant> attributeDefaults;
  11915. /* readonly */
  11916. Array<AttributeInfo> attributeInfos;
  11917. Array<Variant> attributes;
  11918. bool bringToBack;
  11919. bool bringToFront;
  11920. /* readonly */
  11921. String category;
  11922. /* readonly */
  11923. IntVector2 childOffset;
  11924. /* readonly */
  11925. Array<UIElement> children;
  11926. IntRect clipBorder;
  11927. bool clipChildren;
  11928. /* writeonly */
  11929. Color color;
  11930. /* readonly */
  11931. bool colorGradient;
  11932. Array<Color> colors;
  11933. /* readonly */
  11934. IntRect combinedScreenRect;
  11935. XMLFile defaultStyle;
  11936. float delay;
  11937. /* readonly */
  11938. float derivedOpacity;
  11939. /* readonly */
  11940. uint dragButtonCombo;
  11941. /* readonly */
  11942. int dragButtonCount;
  11943. uint dragDropMode;
  11944. bool editable;
  11945. bool elementEventSender;
  11946. bool enabled;
  11947. /* readonly */
  11948. bool enabledSelf;
  11949. /* readonly */
  11950. bool fixedHeight;
  11951. /* readonly */
  11952. bool fixedSize;
  11953. /* readonly */
  11954. bool fixedWidth;
  11955. bool focus;
  11956. FocusMode focusMode;
  11957. int height;
  11958. HorizontalAlignment horizontalAlignment;
  11959. /* readonly */
  11960. bool hovering;
  11961. int indent;
  11962. int indentSpacing;
  11963. /* readonly */
  11964. int indentWidth;
  11965. bool internal;
  11966. IntRect layoutBorder;
  11967. Vector2 layoutFlexScale;
  11968. LayoutMode layoutMode;
  11969. int layoutSpacing;
  11970. int maxHeight;
  11971. IntVector2 maxSize;
  11972. int maxWidth;
  11973. int minHeight;
  11974. IntVector2 minSize;
  11975. int minWidth;
  11976. String name;
  11977. /* readonly */
  11978. uint numAllChildren;
  11979. /* readonly */
  11980. uint numAttributes;
  11981. /* readonly */
  11982. uint numChildren;
  11983. ObjectAnimation objectAnimation;
  11984. float opacity;
  11985. UIElement parent;
  11986. IntVector2 position;
  11987. int priority;
  11988. /* readonly */
  11989. int refs;
  11990. /* readonly */
  11991. UIElement root;
  11992. /* readonly */
  11993. IntVector2 screenPosition;
  11994. bool selected;
  11995. IntVector2 size;
  11996. bool sortChildren;
  11997. String style;
  11998. /* readonly */
  11999. Array<String> tags;
  12000. bool temporary;
  12001. TraversalMode traversalMode;
  12002. /* readonly */
  12003. StringHash type;
  12004. /* readonly */
  12005. String typeName;
  12006. bool useDerivedOpacity;
  12007. /* readonly */
  12008. VariantMap vars;
  12009. VerticalAlignment verticalAlignment;
  12010. bool visible;
  12011. /* readonly */
  12012. bool visibleEffective;
  12013. /* readonly */
  12014. int weakRefs;
  12015. int width;
  12016. };
  12017. class TouchState
  12018. {
  12019. // Properties:
  12020. IntVector2 delta;
  12021. IntVector2 lastPosition;
  12022. IntVector2 position;
  12023. float pressure;
  12024. int touchID;
  12025. /* readonly */
  12026. UIElement touchedElement;
  12027. };
  12028. class UI
  12029. {
  12030. // Methods:
  12031. void Clear();
  12032. void DebugDraw(UIElement);
  12033. UIElement GetElementAt(const IntVector2&, bool = true);
  12034. UIElement GetElementAt(int, int, bool = true);
  12035. bool HasModalElement() const;
  12036. bool HasSubscribedToEvent(Object, const String&);
  12037. bool HasSubscribedToEvent(const String&);
  12038. bool IsDragging() const;
  12039. UIElement LoadLayout(File);
  12040. UIElement LoadLayout(File, XMLFile);
  12041. UIElement LoadLayout(VectorBuffer&);
  12042. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12043. UIElement LoadLayout(XMLFile);
  12044. UIElement LoadLayout(XMLFile, XMLFile);
  12045. bool SaveLayout(File, UIElement);
  12046. bool SaveLayout(VectorBuffer&, UIElement);
  12047. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12048. void SetFocusElement(UIElement, bool = false);
  12049. void SetHeight(float);
  12050. void SetWidth(float);
  12051. const Array<UIElement> GetDragElements();
  12052. // Properties:
  12053. /* readonly */
  12054. String category;
  12055. String clipBoardText;
  12056. Cursor cursor;
  12057. /* readonly */
  12058. IntVector2 cursorPosition;
  12059. float defaultToolTipDelay;
  12060. float doubleClickInterval;
  12061. int dragBeginDistance;
  12062. float dragBeginInterval;
  12063. UIElement focusElement;
  12064. bool forceAutoHint;
  12065. /* readonly */
  12066. UIElement frontElement;
  12067. int maxFontTextureSize;
  12068. /* readonly */
  12069. UIElement modalRoot;
  12070. bool nonFocusedMouseWheel;
  12071. /* readonly */
  12072. int refs;
  12073. /* readonly */
  12074. UIElement root;
  12075. float scale;
  12076. /* readonly */
  12077. StringHash type;
  12078. /* readonly */
  12079. String typeName;
  12080. bool useMutableGlyphs;
  12081. bool useScreenKeyboard;
  12082. bool useSystemClipboard;
  12083. /* readonly */
  12084. int weakRefs;
  12085. };
  12086. class UIElement
  12087. {
  12088. // Methods:
  12089. void AddChild(UIElement);
  12090. void AddTag(const String&);
  12091. void AddTags(const String&, int8 = ';');
  12092. void ApplyAttributes();
  12093. void BringToFront();
  12094. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12095. void DisableLayoutUpdate();
  12096. IntVector2 ElementToScreen(const IntVector2&);
  12097. void EnableLayoutUpdate();
  12098. uint FindChild(UIElement) const;
  12099. Variant GetAttribute(const String&) const;
  12100. ValueAnimation GetAttributeAnimation(const String&) const;
  12101. float GetAttributeAnimationSpeed(const String&) const;
  12102. float GetAttributeAnimationTime(const String&) const;
  12103. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12104. Variant GetAttributeDefault(const String&) const;
  12105. UIElement GetChild(const String&, bool = false) const;
  12106. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12107. Array<UIElement> GetChildren(bool = false) const;
  12108. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12109. UIElement GetElementEventSender() const;
  12110. bool GetInterceptNetworkUpdate(const String&) const;
  12111. uint GetNumChildren(bool) const;
  12112. bool HasSubscribedToEvent(Object, const String&);
  12113. bool HasSubscribedToEvent(const String&);
  12114. bool HasTag(const String&) const;
  12115. void InsertChild(uint, UIElement);
  12116. bool IsInside(IntVector2, bool);
  12117. bool IsInsideCombined(IntVector2, bool);
  12118. bool Load(File, bool = false);
  12119. bool Load(VectorBuffer&, bool = false);
  12120. bool LoadChildXML(XMLFile, XMLFile = null);
  12121. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12122. bool LoadJSON(const JSONValue&, bool = false);
  12123. bool LoadXML(File);
  12124. bool LoadXML(VectorBuffer&);
  12125. bool LoadXML(XMLFile, XMLFile);
  12126. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12127. bool LoadXML(const XMLElement&, bool = false);
  12128. void MarkNetworkUpdate() const;
  12129. void Remove();
  12130. void RemoveAllChildren();
  12131. void RemoveAllTags();
  12132. void RemoveAttributeAnimation(const String&);
  12133. void RemoveChild(UIElement, uint = 0);
  12134. void RemoveChild(uint);
  12135. void RemoveInstanceDefault();
  12136. void RemoveObjectAnimation();
  12137. bool RemoveTag(const String&);
  12138. void ResetDeepEnabled();
  12139. void ResetToDefault();
  12140. bool Save(File) const;
  12141. bool Save(VectorBuffer&) const;
  12142. bool SaveJSON(JSONValue&) const;
  12143. bool SaveXML(File, const String& = "\t");
  12144. bool SaveXML(VectorBuffer&, const String& = "\t");
  12145. bool SaveXML(XMLElement&) const;
  12146. IntVector2 ScreenToElement(const IntVector2&);
  12147. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12148. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12149. void SetAnimationTime(float);
  12150. bool SetAttribute(const String&, const Variant&);
  12151. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12152. void SetAttributeAnimationSpeed(const String&, float);
  12153. void SetAttributeAnimationTime(const String&, float);
  12154. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12155. void SetDeepEnabled(bool);
  12156. void SetEnabledRecursive(bool);
  12157. void SetFixedHeight(int);
  12158. void SetFixedSize(int, int);
  12159. void SetFixedWidth(int);
  12160. void SetInterceptNetworkUpdate(const String&, bool);
  12161. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12162. void SetMaxSize(int, int);
  12163. void SetMinSize(int, int);
  12164. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12165. void SetPosition(int, int);
  12166. void SetSize(int, int);
  12167. bool SetStyle(const String&, XMLFile = null);
  12168. bool SetStyle(const XMLElement&);
  12169. bool SetStyleAuto(XMLFile = null);
  12170. void UpdateLayout();
  12171. const Variant& GetVar(const StringHash&);
  12172. // Properties:
  12173. bool animationEnabled;
  12174. /* readonly */
  12175. Array<Variant> attributeDefaults;
  12176. /* readonly */
  12177. Array<AttributeInfo> attributeInfos;
  12178. Array<Variant> attributes;
  12179. bool bringToBack;
  12180. bool bringToFront;
  12181. /* readonly */
  12182. String category;
  12183. /* readonly */
  12184. IntVector2 childOffset;
  12185. /* readonly */
  12186. Array<UIElement> children;
  12187. IntRect clipBorder;
  12188. bool clipChildren;
  12189. /* writeonly */
  12190. Color color;
  12191. /* readonly */
  12192. bool colorGradient;
  12193. Array<Color> colors;
  12194. /* readonly */
  12195. IntRect combinedScreenRect;
  12196. XMLFile defaultStyle;
  12197. /* readonly */
  12198. float derivedOpacity;
  12199. /* readonly */
  12200. uint dragButtonCombo;
  12201. /* readonly */
  12202. int dragButtonCount;
  12203. uint dragDropMode;
  12204. bool editable;
  12205. bool elementEventSender;
  12206. bool enabled;
  12207. /* readonly */
  12208. bool enabledSelf;
  12209. /* readonly */
  12210. bool fixedHeight;
  12211. /* readonly */
  12212. bool fixedSize;
  12213. /* readonly */
  12214. bool fixedWidth;
  12215. bool focus;
  12216. FocusMode focusMode;
  12217. int height;
  12218. HorizontalAlignment horizontalAlignment;
  12219. /* readonly */
  12220. bool hovering;
  12221. int indent;
  12222. int indentSpacing;
  12223. /* readonly */
  12224. int indentWidth;
  12225. bool internal;
  12226. IntRect layoutBorder;
  12227. Vector2 layoutFlexScale;
  12228. LayoutMode layoutMode;
  12229. int layoutSpacing;
  12230. int maxHeight;
  12231. IntVector2 maxSize;
  12232. int maxWidth;
  12233. int minHeight;
  12234. IntVector2 minSize;
  12235. int minWidth;
  12236. String name;
  12237. /* readonly */
  12238. uint numAllChildren;
  12239. /* readonly */
  12240. uint numAttributes;
  12241. /* readonly */
  12242. uint numChildren;
  12243. ObjectAnimation objectAnimation;
  12244. float opacity;
  12245. UIElement parent;
  12246. IntVector2 position;
  12247. int priority;
  12248. /* readonly */
  12249. int refs;
  12250. /* readonly */
  12251. UIElement root;
  12252. /* readonly */
  12253. IntVector2 screenPosition;
  12254. bool selected;
  12255. IntVector2 size;
  12256. bool sortChildren;
  12257. String style;
  12258. /* readonly */
  12259. Array<String> tags;
  12260. bool temporary;
  12261. TraversalMode traversalMode;
  12262. /* readonly */
  12263. StringHash type;
  12264. /* readonly */
  12265. String typeName;
  12266. bool useDerivedOpacity;
  12267. /* readonly */
  12268. VariantMap vars;
  12269. VerticalAlignment verticalAlignment;
  12270. bool visible;
  12271. /* readonly */
  12272. bool visibleEffective;
  12273. /* readonly */
  12274. int weakRefs;
  12275. int width;
  12276. };
  12277. class ValueAnimation
  12278. {
  12279. // Methods:
  12280. bool HasSubscribedToEvent(Object, const String&);
  12281. bool HasSubscribedToEvent(const String&);
  12282. bool Load(File);
  12283. bool Load(VectorBuffer&);
  12284. bool Save(File) const;
  12285. bool Save(VectorBuffer&) const;
  12286. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12287. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12288. void SetKeyFrame(float, const Variant&);
  12289. // Properties:
  12290. /* readonly */
  12291. String category;
  12292. InterpMethod interpolationMethod;
  12293. /* readonly */
  12294. uint memoryUse;
  12295. String name;
  12296. /* readonly */
  12297. int refs;
  12298. float splineTension;
  12299. /* readonly */
  12300. StringHash type;
  12301. /* readonly */
  12302. String typeName;
  12303. /* readonly */
  12304. uint useTimer;
  12305. VariantType valueType;
  12306. /* readonly */
  12307. int weakRefs;
  12308. };
  12309. class Variant
  12310. {
  12311. // Methods:
  12312. void Clear();
  12313. const Color& GetColor() const;
  12314. void FromString(VariantType, const String&);
  12315. void FromString(const String&, const String&);
  12316. bool GetBool() const;
  12317. VectorBuffer GetBuffer() const;
  12318. double GetDouble() const;
  12319. float GetFloat() const;
  12320. int GetInt() const;
  12321. RefCounted GetPtr() const;
  12322. ScriptObject GetScriptObject() const;
  12323. StringHash GetStringHash() const;
  12324. Array<String> GetStringVector() const;
  12325. uint GetUInt() const;
  12326. Array<Variant> GetVariantVector() const;
  12327. const IntRect& GetIntRect() const;
  12328. const IntVector2& GetIntVector2() const;
  12329. const Matrix3& GetMatrix3() const;
  12330. const Matrix3x4& GetMatrix3x4() const;
  12331. const Matrix4& GetMatrix4() const;
  12332. const Quaternion& GetQuaternion() const;
  12333. const ResourceRef& GetResourceRef() const;
  12334. const ResourceRefList& GetResourceRefList() const;
  12335. const String& GetString() const;
  12336. String ToString() const;
  12337. const VariantMap& GetVariantMap() const;
  12338. const Vector2& GetVector2() const;
  12339. const Vector3& GetVector3() const;
  12340. const Vector4& GetVector4() const;
  12341. // Properties:
  12342. /* readonly */
  12343. bool empty;
  12344. /* readonly */
  12345. VariantType type;
  12346. /* readonly */
  12347. String typeName;
  12348. /* readonly */
  12349. bool zero;
  12350. };
  12351. class VariantMap
  12352. {
  12353. // Methods:
  12354. void Clear();
  12355. bool Contains(StringHash) const;
  12356. bool Contains(const String&) const;
  12357. bool Erase(StringHash);
  12358. bool Erase(const String&);
  12359. // Properties:
  12360. /* readonly */
  12361. Array<StringHash> keys;
  12362. /* readonly */
  12363. uint length;
  12364. /* readonly */
  12365. Array<Variant> values;
  12366. };
  12367. class Vector2
  12368. {
  12369. // Methods:
  12370. Vector2 Abs() const;
  12371. float AbsDotProduct(const Vector2&) const;
  12372. float Angle(const Vector2&) const;
  12373. float DotProduct(const Vector2&) const;
  12374. bool Equals(const Vector2&) const;
  12375. bool IsNaN() const;
  12376. Vector2 Lerp(const Vector2&, float) const;
  12377. void Normalize();
  12378. Vector2 Normalized() const;
  12379. String ToString() const;
  12380. // Properties:
  12381. /* readonly */
  12382. Array<float> data;
  12383. /* readonly */
  12384. float length;
  12385. /* readonly */
  12386. float lengthSquared;
  12387. float x;
  12388. float y;
  12389. };
  12390. class Vector3
  12391. {
  12392. // Methods:
  12393. Vector3 Abs() const;
  12394. float AbsDotProduct(const Vector3&) const;
  12395. float Angle(const Vector3&) const;
  12396. Vector3 CrossProduct(const Vector3&) const;
  12397. float DotProduct(const Vector3&) const;
  12398. bool Equals(const Vector3&) const;
  12399. bool IsNaN() const;
  12400. Vector3 Lerp(const Vector3&, float) const;
  12401. void Normalize();
  12402. Vector3 Normalized() const;
  12403. String ToString() const;
  12404. // Properties:
  12405. /* readonly */
  12406. Array<float> data;
  12407. /* readonly */
  12408. float length;
  12409. /* readonly */
  12410. float lengthSquared;
  12411. float x;
  12412. float y;
  12413. float z;
  12414. };
  12415. class Vector4
  12416. {
  12417. // Methods:
  12418. Vector4 Abs() const;
  12419. float AbsDotProduct(const Vector4&) const;
  12420. float DotProduct(const Vector4&) const;
  12421. bool Equals(const Vector4&) const;
  12422. bool IsNaN() const;
  12423. Vector4 Lerp(const Vector4&, float) const;
  12424. String ToString() const;
  12425. // Properties:
  12426. /* readonly */
  12427. Array<float> data;
  12428. float w;
  12429. float x;
  12430. float y;
  12431. float z;
  12432. };
  12433. class VectorBuffer
  12434. {
  12435. // Methods:
  12436. void Clear();
  12437. Array<uint8> Read(uint);
  12438. bool ReadBool();
  12439. BoundingBox ReadBoundingBox();
  12440. int8 ReadByte();
  12441. Color ReadColor();
  12442. double ReadDouble();
  12443. String ReadFileID();
  12444. float ReadFloat();
  12445. int ReadInt();
  12446. IntRect ReadIntRect();
  12447. IntVector2 ReadIntVector2();
  12448. String ReadLine();
  12449. Matrix3 ReadMatrix3();
  12450. Matrix3x4 ReadMatrix3x4();
  12451. Matrix4 ReadMatrix4();
  12452. uint ReadNetID();
  12453. Quaternion ReadPackedQuaternion();
  12454. Vector3 ReadPackedVector3(float);
  12455. Quaternion ReadQuaternion();
  12456. int16 ReadShort();
  12457. String ReadString();
  12458. StringHash ReadStringHash();
  12459. uint8 ReadUByte();
  12460. uint ReadUInt();
  12461. uint16 ReadUShort();
  12462. uint ReadVLE();
  12463. Variant ReadVariant();
  12464. VariantMap ReadVariantMap();
  12465. Vector2 ReadVector2();
  12466. Vector3 ReadVector3();
  12467. Vector4 ReadVector4();
  12468. VectorBuffer ReadVectorBuffer(uint);
  12469. void Resize(uint);
  12470. uint Seek(uint);
  12471. void SetData(Deserializer, uint);
  12472. uint Write(Array<uint8>);
  12473. bool WriteBool(bool);
  12474. bool WriteBoundingBox(const BoundingBox&);
  12475. bool WriteByte(int8);
  12476. bool WriteColor(const Color&);
  12477. bool WriteDouble(double);
  12478. bool WriteFileID(const String&);
  12479. bool WriteFloat(float);
  12480. bool WriteInt(int);
  12481. bool WriteIntRect(const IntRect&);
  12482. bool WriteIntVector2(const IntVector2&);
  12483. bool WriteLine(const String&);
  12484. bool WriteMatrix3(const Matrix3&);
  12485. bool WriteMatrix3x4(const Matrix3x4&);
  12486. bool WriteMatrix4(const Matrix4&);
  12487. bool WriteNetID(uint);
  12488. bool WritePackedQuaternion(const Quaternion&);
  12489. bool WritePackedVector3(const Vector3&, float);
  12490. bool WriteQuaternion(const Quaternion&);
  12491. bool WriteShort(int16);
  12492. bool WriteString(const String&);
  12493. bool WriteStringHash(const StringHash&);
  12494. bool WriteUByte(uint8);
  12495. bool WriteUInt(uint);
  12496. bool WriteUShort(uint16);
  12497. bool WriteVLE(uint);
  12498. bool WriteVariant(const Variant&);
  12499. bool WriteVariantMap(const VariantMap&);
  12500. bool WriteVector2(const Vector2&);
  12501. bool WriteVector3(const Vector3&);
  12502. bool WriteVector4(const Vector4&);
  12503. bool WriteVectorBuffer(const VectorBuffer&);
  12504. // Properties:
  12505. /* readonly */
  12506. uint checksum;
  12507. /* readonly */
  12508. bool eof;
  12509. /* readonly */
  12510. String name;
  12511. /* readonly */
  12512. uint position;
  12513. /* readonly */
  12514. uint size;
  12515. };
  12516. class VertexBuffer
  12517. {
  12518. // Methods:
  12519. VectorBuffer GetData() const;
  12520. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  12521. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12522. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  12523. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12524. bool HasSubscribedToEvent(Object, const String&);
  12525. bool HasSubscribedToEvent(const String&);
  12526. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12527. bool SetData(VectorBuffer&);
  12528. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12529. void SetSize(uint, Array<VertexElement>, bool = false);
  12530. void SetSize(uint, uint, bool = false);
  12531. // Properties:
  12532. /* readonly */
  12533. String category;
  12534. /* readonly */
  12535. bool dynamic;
  12536. /* readonly */
  12537. uint elementMask;
  12538. /* readonly */
  12539. Array<VertexElement> elements;
  12540. /* readonly */
  12541. int refs;
  12542. bool shadowed;
  12543. /* readonly */
  12544. StringHash type;
  12545. /* readonly */
  12546. String typeName;
  12547. /* readonly */
  12548. uint vertexCount;
  12549. /* readonly */
  12550. uint vertexSize;
  12551. /* readonly */
  12552. int weakRefs;
  12553. };
  12554. class VertexElement
  12555. {
  12556. // Properties:
  12557. uint8 index;
  12558. uint offset;
  12559. bool perInstance;
  12560. VertexElementSemantic semantic;
  12561. VertexElementType type;
  12562. };
  12563. class View3D
  12564. {
  12565. // Methods:
  12566. void AddChild(UIElement);
  12567. void AddTag(const String&);
  12568. void AddTags(const String&, int8 = ';');
  12569. void ApplyAttributes();
  12570. void BringToFront();
  12571. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12572. void DisableLayoutUpdate();
  12573. IntVector2 ElementToScreen(const IntVector2&);
  12574. void EnableLayoutUpdate();
  12575. uint FindChild(UIElement) const;
  12576. Variant GetAttribute(const String&) const;
  12577. ValueAnimation GetAttributeAnimation(const String&) const;
  12578. float GetAttributeAnimationSpeed(const String&) const;
  12579. float GetAttributeAnimationTime(const String&) const;
  12580. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12581. Variant GetAttributeDefault(const String&) const;
  12582. UIElement GetChild(const String&, bool = false) const;
  12583. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12584. Array<UIElement> GetChildren(bool = false) const;
  12585. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12586. UIElement GetElementEventSender() const;
  12587. bool GetInterceptNetworkUpdate(const String&) const;
  12588. uint GetNumChildren(bool) const;
  12589. bool HasSubscribedToEvent(Object, const String&);
  12590. bool HasSubscribedToEvent(const String&);
  12591. bool HasTag(const String&) const;
  12592. void InsertChild(uint, UIElement);
  12593. bool IsInside(IntVector2, bool);
  12594. bool IsInsideCombined(IntVector2, bool);
  12595. bool Load(File, bool = false);
  12596. bool Load(VectorBuffer&, bool = false);
  12597. bool LoadChildXML(XMLFile, XMLFile = null);
  12598. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12599. bool LoadJSON(const JSONValue&, bool = false);
  12600. bool LoadXML(File);
  12601. bool LoadXML(VectorBuffer&);
  12602. bool LoadXML(XMLFile, XMLFile);
  12603. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12604. bool LoadXML(const XMLElement&, bool = false);
  12605. void MarkNetworkUpdate() const;
  12606. void QueueUpdate();
  12607. void Remove();
  12608. void RemoveAllChildren();
  12609. void RemoveAllTags();
  12610. void RemoveAttributeAnimation(const String&);
  12611. void RemoveChild(UIElement, uint = 0);
  12612. void RemoveChild(uint);
  12613. void RemoveInstanceDefault();
  12614. void RemoveObjectAnimation();
  12615. bool RemoveTag(const String&);
  12616. void ResetDeepEnabled();
  12617. void ResetToDefault();
  12618. bool Save(File) const;
  12619. bool Save(VectorBuffer&) const;
  12620. bool SaveJSON(JSONValue&) const;
  12621. bool SaveXML(File, const String& = "\t");
  12622. bool SaveXML(VectorBuffer&, const String& = "\t");
  12623. bool SaveXML(XMLElement&) const;
  12624. IntVector2 ScreenToElement(const IntVector2&);
  12625. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12626. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12627. void SetAnimationTime(float);
  12628. bool SetAttribute(const String&, const Variant&);
  12629. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12630. void SetAttributeAnimationSpeed(const String&, float);
  12631. void SetAttributeAnimationTime(const String&, float);
  12632. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12633. void SetDeepEnabled(bool);
  12634. void SetEnabledRecursive(bool);
  12635. void SetFixedHeight(int);
  12636. void SetFixedSize(int, int);
  12637. void SetFixedWidth(int);
  12638. void SetFullImageRect();
  12639. void SetHoverOffset(int, int);
  12640. void SetInterceptNetworkUpdate(const String&, bool);
  12641. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12642. void SetMaxSize(int, int);
  12643. void SetMinSize(int, int);
  12644. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12645. void SetPosition(int, int);
  12646. void SetSize(int, int);
  12647. bool SetStyle(const String&, XMLFile = null);
  12648. bool SetStyle(const XMLElement&);
  12649. bool SetStyleAuto(XMLFile = null);
  12650. void SetView(Scene, Camera, bool = true);
  12651. void UpdateLayout();
  12652. const Variant& GetVar(const StringHash&);
  12653. // Properties:
  12654. bool animationEnabled;
  12655. /* readonly */
  12656. Array<Variant> attributeDefaults;
  12657. /* readonly */
  12658. Array<AttributeInfo> attributeInfos;
  12659. Array<Variant> attributes;
  12660. bool autoUpdate;
  12661. BlendMode blendMode;
  12662. IntRect border;
  12663. bool bringToBack;
  12664. bool bringToFront;
  12665. /* readonly */
  12666. Node cameraNode;
  12667. /* readonly */
  12668. String category;
  12669. /* readonly */
  12670. IntVector2 childOffset;
  12671. /* readonly */
  12672. Array<UIElement> children;
  12673. IntRect clipBorder;
  12674. bool clipChildren;
  12675. /* writeonly */
  12676. Color color;
  12677. /* readonly */
  12678. bool colorGradient;
  12679. Array<Color> colors;
  12680. /* readonly */
  12681. IntRect combinedScreenRect;
  12682. XMLFile defaultStyle;
  12683. /* readonly */
  12684. Texture2D depthTexture;
  12685. /* readonly */
  12686. float derivedOpacity;
  12687. /* readonly */
  12688. uint dragButtonCombo;
  12689. /* readonly */
  12690. int dragButtonCount;
  12691. uint dragDropMode;
  12692. bool editable;
  12693. bool elementEventSender;
  12694. bool enabled;
  12695. /* readonly */
  12696. bool enabledSelf;
  12697. /* readonly */
  12698. bool fixedHeight;
  12699. bool fixedHeightResizing;
  12700. /* readonly */
  12701. bool fixedSize;
  12702. /* readonly */
  12703. bool fixedWidth;
  12704. bool fixedWidthResizing;
  12705. bool focus;
  12706. FocusMode focusMode;
  12707. uint format;
  12708. int height;
  12709. HorizontalAlignment horizontalAlignment;
  12710. IntVector2 hoverOffset;
  12711. /* readonly */
  12712. bool hovering;
  12713. IntRect imageBorder;
  12714. IntRect imageRect;
  12715. int indent;
  12716. int indentSpacing;
  12717. /* readonly */
  12718. int indentWidth;
  12719. bool internal;
  12720. IntRect layoutBorder;
  12721. Vector2 layoutFlexScale;
  12722. LayoutMode layoutMode;
  12723. int layoutSpacing;
  12724. int maxHeight;
  12725. IntVector2 maxSize;
  12726. int maxWidth;
  12727. int minHeight;
  12728. IntVector2 minSize;
  12729. int minWidth;
  12730. bool modal;
  12731. bool modalAutoDismiss;
  12732. Color modalFrameColor;
  12733. IntVector2 modalFrameSize;
  12734. Color modalShadeColor;
  12735. bool movable;
  12736. String name;
  12737. /* readonly */
  12738. uint numAllChildren;
  12739. /* readonly */
  12740. uint numAttributes;
  12741. /* readonly */
  12742. uint numChildren;
  12743. ObjectAnimation objectAnimation;
  12744. float opacity;
  12745. UIElement parent;
  12746. IntVector2 position;
  12747. int priority;
  12748. /* readonly */
  12749. int refs;
  12750. /* readonly */
  12751. Texture2D renderTexture;
  12752. bool resizable;
  12753. IntRect resizeBorder;
  12754. /* readonly */
  12755. UIElement root;
  12756. /* readonly */
  12757. Scene scene;
  12758. /* readonly */
  12759. IntVector2 screenPosition;
  12760. bool selected;
  12761. IntVector2 size;
  12762. bool sortChildren;
  12763. String style;
  12764. /* readonly */
  12765. Array<String> tags;
  12766. bool temporary;
  12767. Texture texture;
  12768. bool tiled;
  12769. TraversalMode traversalMode;
  12770. /* readonly */
  12771. StringHash type;
  12772. /* readonly */
  12773. String typeName;
  12774. bool useDerivedOpacity;
  12775. /* readonly */
  12776. VariantMap vars;
  12777. VerticalAlignment verticalAlignment;
  12778. /* readonly */
  12779. Viewport viewport;
  12780. bool visible;
  12781. /* readonly */
  12782. bool visibleEffective;
  12783. /* readonly */
  12784. int weakRefs;
  12785. int width;
  12786. };
  12787. class Viewport
  12788. {
  12789. // Methods:
  12790. Ray GetScreenRay(int, int) const;
  12791. bool HasSubscribedToEvent(Object, const String&);
  12792. bool HasSubscribedToEvent(const String&);
  12793. Vector3 ScreenToWorldPoint(int, int, float) const;
  12794. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12795. void SetRenderPath(XMLFile);
  12796. Vector2 WorldToScreenPoint(const Vector3&) const;
  12797. // Properties:
  12798. Camera camera;
  12799. /* readonly */
  12800. String category;
  12801. Camera cullCamera;
  12802. bool drawDebug;
  12803. IntRect rect;
  12804. /* readonly */
  12805. int refs;
  12806. RenderPath renderPath;
  12807. Scene scene;
  12808. /* readonly */
  12809. StringHash type;
  12810. /* readonly */
  12811. String typeName;
  12812. /* readonly */
  12813. int weakRefs;
  12814. };
  12815. class WeakHandle
  12816. {
  12817. // Methods:
  12818. RefCounted Get() const;
  12819. // Properties:
  12820. /* readonly */
  12821. bool expired;
  12822. /* readonly */
  12823. int refs;
  12824. /* readonly */
  12825. int weakRefs;
  12826. };
  12827. class Window
  12828. {
  12829. // Methods:
  12830. void AddChild(UIElement);
  12831. void AddTag(const String&);
  12832. void AddTags(const String&, int8 = ';');
  12833. void ApplyAttributes();
  12834. void BringToFront();
  12835. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12836. void DisableLayoutUpdate();
  12837. IntVector2 ElementToScreen(const IntVector2&);
  12838. void EnableLayoutUpdate();
  12839. uint FindChild(UIElement) const;
  12840. Variant GetAttribute(const String&) const;
  12841. ValueAnimation GetAttributeAnimation(const String&) const;
  12842. float GetAttributeAnimationSpeed(const String&) const;
  12843. float GetAttributeAnimationTime(const String&) const;
  12844. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12845. Variant GetAttributeDefault(const String&) const;
  12846. UIElement GetChild(const String&, bool = false) const;
  12847. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12848. Array<UIElement> GetChildren(bool = false) const;
  12849. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12850. UIElement GetElementEventSender() const;
  12851. bool GetInterceptNetworkUpdate(const String&) const;
  12852. uint GetNumChildren(bool) const;
  12853. bool HasSubscribedToEvent(Object, const String&);
  12854. bool HasSubscribedToEvent(const String&);
  12855. bool HasTag(const String&) const;
  12856. void InsertChild(uint, UIElement);
  12857. bool IsInside(IntVector2, bool);
  12858. bool IsInsideCombined(IntVector2, bool);
  12859. bool Load(File, bool = false);
  12860. bool Load(VectorBuffer&, bool = false);
  12861. bool LoadChildXML(XMLFile, XMLFile = null);
  12862. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12863. bool LoadJSON(const JSONValue&, bool = false);
  12864. bool LoadXML(File);
  12865. bool LoadXML(VectorBuffer&);
  12866. bool LoadXML(XMLFile, XMLFile);
  12867. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12868. bool LoadXML(const XMLElement&, bool = false);
  12869. void MarkNetworkUpdate() const;
  12870. void Remove();
  12871. void RemoveAllChildren();
  12872. void RemoveAllTags();
  12873. void RemoveAttributeAnimation(const String&);
  12874. void RemoveChild(UIElement, uint = 0);
  12875. void RemoveChild(uint);
  12876. void RemoveInstanceDefault();
  12877. void RemoveObjectAnimation();
  12878. bool RemoveTag(const String&);
  12879. void ResetDeepEnabled();
  12880. void ResetToDefault();
  12881. bool Save(File) const;
  12882. bool Save(VectorBuffer&) const;
  12883. bool SaveJSON(JSONValue&) const;
  12884. bool SaveXML(File, const String& = "\t");
  12885. bool SaveXML(VectorBuffer&, const String& = "\t");
  12886. bool SaveXML(XMLElement&) const;
  12887. IntVector2 ScreenToElement(const IntVector2&);
  12888. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12889. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12890. void SetAnimationTime(float);
  12891. bool SetAttribute(const String&, const Variant&);
  12892. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12893. void SetAttributeAnimationSpeed(const String&, float);
  12894. void SetAttributeAnimationTime(const String&, float);
  12895. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12896. void SetDeepEnabled(bool);
  12897. void SetEnabledRecursive(bool);
  12898. void SetFixedHeight(int);
  12899. void SetFixedSize(int, int);
  12900. void SetFixedWidth(int);
  12901. void SetFullImageRect();
  12902. void SetHoverOffset(int, int);
  12903. void SetInterceptNetworkUpdate(const String&, bool);
  12904. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12905. void SetMaxSize(int, int);
  12906. void SetMinSize(int, int);
  12907. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12908. void SetPosition(int, int);
  12909. void SetSize(int, int);
  12910. bool SetStyle(const String&, XMLFile = null);
  12911. bool SetStyle(const XMLElement&);
  12912. bool SetStyleAuto(XMLFile = null);
  12913. void UpdateLayout();
  12914. const Variant& GetVar(const StringHash&);
  12915. // Properties:
  12916. bool animationEnabled;
  12917. /* readonly */
  12918. Array<Variant> attributeDefaults;
  12919. /* readonly */
  12920. Array<AttributeInfo> attributeInfos;
  12921. Array<Variant> attributes;
  12922. BlendMode blendMode;
  12923. IntRect border;
  12924. bool bringToBack;
  12925. bool bringToFront;
  12926. /* readonly */
  12927. String category;
  12928. /* readonly */
  12929. IntVector2 childOffset;
  12930. /* readonly */
  12931. Array<UIElement> children;
  12932. IntRect clipBorder;
  12933. bool clipChildren;
  12934. /* writeonly */
  12935. Color color;
  12936. /* readonly */
  12937. bool colorGradient;
  12938. Array<Color> colors;
  12939. /* readonly */
  12940. IntRect combinedScreenRect;
  12941. XMLFile defaultStyle;
  12942. /* readonly */
  12943. float derivedOpacity;
  12944. /* readonly */
  12945. uint dragButtonCombo;
  12946. /* readonly */
  12947. int dragButtonCount;
  12948. uint dragDropMode;
  12949. bool editable;
  12950. bool elementEventSender;
  12951. bool enabled;
  12952. /* readonly */
  12953. bool enabledSelf;
  12954. /* readonly */
  12955. bool fixedHeight;
  12956. bool fixedHeightResizing;
  12957. /* readonly */
  12958. bool fixedSize;
  12959. /* readonly */
  12960. bool fixedWidth;
  12961. bool fixedWidthResizing;
  12962. bool focus;
  12963. FocusMode focusMode;
  12964. int height;
  12965. HorizontalAlignment horizontalAlignment;
  12966. IntVector2 hoverOffset;
  12967. /* readonly */
  12968. bool hovering;
  12969. IntRect imageBorder;
  12970. IntRect imageRect;
  12971. int indent;
  12972. int indentSpacing;
  12973. /* readonly */
  12974. int indentWidth;
  12975. bool internal;
  12976. IntRect layoutBorder;
  12977. Vector2 layoutFlexScale;
  12978. LayoutMode layoutMode;
  12979. int layoutSpacing;
  12980. int maxHeight;
  12981. IntVector2 maxSize;
  12982. int maxWidth;
  12983. int minHeight;
  12984. IntVector2 minSize;
  12985. int minWidth;
  12986. bool modal;
  12987. bool modalAutoDismiss;
  12988. Color modalFrameColor;
  12989. IntVector2 modalFrameSize;
  12990. Color modalShadeColor;
  12991. bool movable;
  12992. String name;
  12993. /* readonly */
  12994. uint numAllChildren;
  12995. /* readonly */
  12996. uint numAttributes;
  12997. /* readonly */
  12998. uint numChildren;
  12999. ObjectAnimation objectAnimation;
  13000. float opacity;
  13001. UIElement parent;
  13002. IntVector2 position;
  13003. int priority;
  13004. /* readonly */
  13005. int refs;
  13006. bool resizable;
  13007. IntRect resizeBorder;
  13008. /* readonly */
  13009. UIElement root;
  13010. /* readonly */
  13011. IntVector2 screenPosition;
  13012. bool selected;
  13013. IntVector2 size;
  13014. bool sortChildren;
  13015. String style;
  13016. /* readonly */
  13017. Array<String> tags;
  13018. bool temporary;
  13019. Texture texture;
  13020. bool tiled;
  13021. TraversalMode traversalMode;
  13022. /* readonly */
  13023. StringHash type;
  13024. /* readonly */
  13025. String typeName;
  13026. bool useDerivedOpacity;
  13027. /* readonly */
  13028. VariantMap vars;
  13029. VerticalAlignment verticalAlignment;
  13030. bool visible;
  13031. /* readonly */
  13032. bool visibleEffective;
  13033. /* readonly */
  13034. int weakRefs;
  13035. int width;
  13036. };
  13037. class XMLElement
  13038. {
  13039. // Methods:
  13040. XMLElement CreateChild(const String&);
  13041. String GetAttribute(const String& = String ( )) const;
  13042. String GetAttributeLower(const String&) const;
  13043. Array<String> GetAttributeNames() const;
  13044. String GetAttributeUpper(const String&) const;
  13045. bool GetBool(const String&) const;
  13046. BoundingBox GetBoundingBox() const;
  13047. XMLElement GetChild(const String& = String ( )) const;
  13048. Color GetColor(const String&) const;
  13049. double GetDouble(const String&) const;
  13050. float GetFloat(const String&) const;
  13051. int GetInt(const String&) const;
  13052. IntRect GetIntRect(const String&) const;
  13053. IntVector2 GetIntVector2(const String&) const;
  13054. Matrix3 GetMatrix3(const String&) const;
  13055. Matrix3x4 GetMatrix3x4(const String&) const;
  13056. Matrix4 GetMatrix4(const String&) const;
  13057. XMLElement GetNext(const String& = String ( )) const;
  13058. Quaternion GetQuaternion(const String&) const;
  13059. ResourceRef GetResourceRef() const;
  13060. ResourceRefList GetResourceRefList() const;
  13061. uint GetUInt(const String&) const;
  13062. String GetValue() const;
  13063. Variant GetVariant() const;
  13064. VariantMap GetVariantMap() const;
  13065. Array<Variant> GetVariantVector() const;
  13066. Vector2 GetVector2(const String&) const;
  13067. Vector3 GetVector3(const String&) const;
  13068. Vector4 GetVector4(const String&) const;
  13069. Variant GetVectorVariant(const String&) const;
  13070. bool HasAttribute(const String&) const;
  13071. bool HasChild(const String&) const;
  13072. bool RemoveAttribute(const String& = String ( ));
  13073. bool RemoveChild(const String&);
  13074. bool RemoveChild(const XMLElement&);
  13075. bool RemoveChildren(const String& = String ( ));
  13076. XPathResultSet Select(const String&);
  13077. XPathResultSet SelectPrepared(const XPathQuery&);
  13078. XMLElement SelectSingle(const String&);
  13079. XMLElement SelectSinglePrepared(const XPathQuery&);
  13080. bool SetAttribute(const String&);
  13081. bool SetAttribute(const String&, const String&);
  13082. bool SetBool(const String&, bool);
  13083. bool SetBoundingBox(const BoundingBox&);
  13084. bool SetColor(const String&, const Color&);
  13085. bool SetDouble(const String&, double);
  13086. bool SetFloat(const String&, float);
  13087. bool SetInt(const String&, int);
  13088. bool SetIntRect(const String&, const IntRect&);
  13089. bool SetIntVector2(const String&, const IntVector2&);
  13090. bool SetMatrix3(const String&, const Matrix3&);
  13091. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13092. bool SetMatrix4(const String&, const Matrix4&);
  13093. bool SetQuaternion(const String&, const Quaternion&);
  13094. bool SetResourceRef(const String&, const ResourceRef&);
  13095. bool SetResourceRefList(const String&, const ResourceRefList&);
  13096. bool SetUInt(const String&, uint);
  13097. bool SetValue(const String&);
  13098. bool SetVariant(const Variant&);
  13099. bool SetVariantMap(const VariantMap&);
  13100. bool SetVariantVector(Array<Variant>);
  13101. bool SetVector2(const String&, const Vector2&);
  13102. bool SetVector3(const String&, const Vector3&);
  13103. bool SetVector4(const String&, const Vector4&);
  13104. bool SetVectorVariant(const String&, const Variant&);
  13105. // Properties:
  13106. /* readonly */
  13107. XMLFile file;
  13108. /* readonly */
  13109. bool isNull;
  13110. /* readonly */
  13111. String name;
  13112. /* readonly */
  13113. XMLElement nextResult;
  13114. /* readonly */
  13115. bool notNull;
  13116. /* readonly */
  13117. uint numAttributes;
  13118. /* readonly */
  13119. XMLElement parent;
  13120. String value;
  13121. };
  13122. class XMLFile
  13123. {
  13124. // Methods:
  13125. XMLElement CreateRoot(const String&);
  13126. bool FromString(const String&);
  13127. XMLElement GetRoot(const String& = String ( ));
  13128. bool HasSubscribedToEvent(Object, const String&);
  13129. bool HasSubscribedToEvent(const String&);
  13130. bool Load(File);
  13131. bool Load(VectorBuffer&);
  13132. void Patch(XMLElement);
  13133. void Patch(XMLFile);
  13134. bool Save(File) const;
  13135. bool Save(File, const String&) const;
  13136. bool Save(VectorBuffer&) const;
  13137. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13138. String ToString(const String& = String ( "\t" )) const;
  13139. // Properties:
  13140. /* readonly */
  13141. String category;
  13142. /* readonly */
  13143. uint memoryUse;
  13144. String name;
  13145. /* readonly */
  13146. int refs;
  13147. /* readonly */
  13148. XMLElement root;
  13149. /* readonly */
  13150. StringHash type;
  13151. /* readonly */
  13152. String typeName;
  13153. /* readonly */
  13154. uint useTimer;
  13155. /* readonly */
  13156. int weakRefs;
  13157. };
  13158. class XPathQuery
  13159. {
  13160. // Methods:
  13161. void Bind();
  13162. void Clear();
  13163. XPathResultSet Evaluate(XMLElement);
  13164. bool EvaluateToBool(XMLElement);
  13165. float EvaluateToFloat(XMLElement);
  13166. String EvaluateToString(XMLElement);
  13167. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13168. bool SetVariable(const String&, bool);
  13169. bool SetVariable(const String&, const String&);
  13170. bool SetVariable(const String&, const XPathResultSet&);
  13171. bool SetVariable(const String&, float);
  13172. // Properties:
  13173. String query;
  13174. };
  13175. class XPathResultSet
  13176. {
  13177. // Properties:
  13178. /* readonly */
  13179. bool empty;
  13180. /* readonly */
  13181. XMLElement firstResult;
  13182. /* readonly */
  13183. uint size;
  13184. };
  13185. class Zone
  13186. {
  13187. // Methods:
  13188. void ApplyAttributes();
  13189. void DrawDebugGeometry(DebugRenderer, bool);
  13190. Variant GetAttribute(const String&) const;
  13191. ValueAnimation GetAttributeAnimation(const String&) const;
  13192. float GetAttributeAnimationSpeed(const String&) const;
  13193. float GetAttributeAnimationTime(const String&) const;
  13194. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13195. Variant GetAttributeDefault(const String&) const;
  13196. bool GetInterceptNetworkUpdate(const String&) const;
  13197. bool HasSubscribedToEvent(Object, const String&);
  13198. bool HasSubscribedToEvent(const String&);
  13199. bool IsInView(Camera) const;
  13200. bool Load(File, bool = false);
  13201. bool Load(VectorBuffer&, bool = false);
  13202. bool LoadJSON(const JSONValue&, bool = false);
  13203. bool LoadXML(const XMLElement&, bool = false);
  13204. void MarkNetworkUpdate() const;
  13205. void Remove();
  13206. void RemoveAttributeAnimation(const String&);
  13207. void RemoveInstanceDefault();
  13208. void RemoveObjectAnimation();
  13209. void ResetToDefault();
  13210. bool Save(File) const;
  13211. bool Save(VectorBuffer&) const;
  13212. bool SaveJSON(JSONValue&) const;
  13213. bool SaveXML(XMLElement&) const;
  13214. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13215. void SetAnimationTime(float);
  13216. bool SetAttribute(const String&, const Variant&);
  13217. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13218. void SetAttributeAnimationSpeed(const String&, float);
  13219. void SetAttributeAnimationTime(const String&, float);
  13220. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13221. void SetInterceptNetworkUpdate(const String&, bool);
  13222. // Properties:
  13223. Color ambientColor;
  13224. /* readonly */
  13225. Color ambientEndColor;
  13226. bool ambientGradient;
  13227. /* readonly */
  13228. Color ambientStartColor;
  13229. bool animationEnabled;
  13230. /* readonly */
  13231. Array<Variant> attributeDefaults;
  13232. /* readonly */
  13233. Array<AttributeInfo> attributeInfos;
  13234. Array<Variant> attributes;
  13235. BoundingBox boundingBox;
  13236. bool castShadows;
  13237. /* readonly */
  13238. String category;
  13239. float drawDistance;
  13240. bool enabled;
  13241. /* readonly */
  13242. bool enabledEffective;
  13243. Color fogColor;
  13244. float fogEnd;
  13245. float fogHeight;
  13246. float fogHeightScale;
  13247. float fogStart;
  13248. bool heightFog;
  13249. /* readonly */
  13250. uint id;
  13251. /* readonly */
  13252. bool inView;
  13253. /* readonly */
  13254. Matrix3x4 inverseWorldTransform;
  13255. uint lightMask;
  13256. float lodBias;
  13257. uint maxLights;
  13258. /* readonly */
  13259. Node node;
  13260. /* readonly */
  13261. uint numAttributes;
  13262. ObjectAnimation objectAnimation;
  13263. bool occludee;
  13264. bool occluder;
  13265. bool override;
  13266. int priority;
  13267. /* readonly */
  13268. int refs;
  13269. float shadowDistance;
  13270. uint shadowMask;
  13271. bool temporary;
  13272. /* readonly */
  13273. StringHash type;
  13274. /* readonly */
  13275. String typeName;
  13276. uint viewMask;
  13277. /* readonly */
  13278. int weakRefs;
  13279. /* readonly */
  13280. BoundingBox worldBoundingBox;
  13281. uint zoneMask;
  13282. Texture zoneTexture;
  13283. };
  13284. // Enumerations
  13285. enum AnimationBlendMode
  13286. {
  13287. ABM_LERP,
  13288. ABM_ADDITIVE,
  13289. };
  13290. enum BlendMode
  13291. {
  13292. BLEND_REPLACE,
  13293. BLEND_ADD,
  13294. BLEND_MULTIPLY,
  13295. BLEND_ALPHA,
  13296. BLEND_ADDALPHA,
  13297. BLEND_PREMULALPHA,
  13298. BLEND_INVDESTALPHA,
  13299. BLEND_SUBTRACT,
  13300. BLEND_SUBTRACTALPHA,
  13301. };
  13302. enum BodyType2D
  13303. {
  13304. BT_STATIC,
  13305. BT_KINEMATIC,
  13306. BT_DYNAMIC,
  13307. };
  13308. enum CollisionEventMode
  13309. {
  13310. COLLISION_NEVER,
  13311. COLLISION_ACTIVE,
  13312. COLLISION_ALWAYS,
  13313. };
  13314. enum CompareMode
  13315. {
  13316. CMP_ALWAYS,
  13317. CMP_EQUAL,
  13318. CMP_NOTEQUAL,
  13319. CMP_LESS,
  13320. CMP_LESSEQUAL,
  13321. CMP_GREATER,
  13322. CMP_GREATEREQUAL,
  13323. };
  13324. enum CompressedFormat
  13325. {
  13326. CF_NONE,
  13327. CF_RGBA,
  13328. CF_DXT1,
  13329. CF_DXT3,
  13330. CF_DXT5,
  13331. CF_ETC1,
  13332. CF_PVRTC_RGB_2BPP,
  13333. CF_PVRTC_RGBA_2BPP,
  13334. CF_PVRTC_RGB_4BPP,
  13335. CF_PVRTC_RGBA_4BPP,
  13336. };
  13337. enum ConstraintType
  13338. {
  13339. CONSTRAINT_POINT,
  13340. CONSTRAINT_HINGE,
  13341. CONSTRAINT_SLIDER,
  13342. CONSTRAINT_CONETWIST,
  13343. };
  13344. enum Corner
  13345. {
  13346. C_TOPLEFT,
  13347. C_TOPRIGHT,
  13348. C_BOTTOMLEFT,
  13349. C_BOTTOMRIGHT,
  13350. };
  13351. enum CreateMode
  13352. {
  13353. REPLICATED,
  13354. LOCAL,
  13355. };
  13356. enum CrowdAgentRequestedTarget
  13357. {
  13358. CA_REQUESTEDTARGET_NONE,
  13359. CA_REQUESTEDTARGET_POSITION,
  13360. CA_REQUESTEDTARGET_VELOCITY,
  13361. };
  13362. enum CrowdAgentState
  13363. {
  13364. CA_STATE_INVALID,
  13365. CA_STATE_WALKING,
  13366. CA_STATE_OFFMESH,
  13367. };
  13368. enum CrowdAgentTargetState
  13369. {
  13370. CA_TARGET_NONE,
  13371. CA_TARGET_FAILED,
  13372. CA_TARGET_VALID,
  13373. CA_TARGET_REQUESTING,
  13374. CA_TARGET_WAITINGFORQUEUE,
  13375. CA_TARGET_WAITINGFORPATH,
  13376. CA_TARGET_VELOCITY,
  13377. };
  13378. enum CubeMapFace
  13379. {
  13380. FACE_POSITIVE_X,
  13381. FACE_NEGATIVE_X,
  13382. FACE_POSITIVE_Y,
  13383. FACE_NEGATIVE_Y,
  13384. FACE_POSITIVE_Z,
  13385. FACE_NEGATIVE_Z,
  13386. };
  13387. enum CullMode
  13388. {
  13389. CULL_NONE,
  13390. CULL_CCW,
  13391. CULL_CW,
  13392. };
  13393. enum CursorShape
  13394. {
  13395. CS_NORMAL,
  13396. CS_IBEAM,
  13397. CS_CROSS,
  13398. CS_RESIZEVERTICAL,
  13399. CS_RESIZEDIAGONAL_TOPRIGHT,
  13400. CS_RESIZEHORIZONTAL,
  13401. CS_RESIZEDIAGONAL_TOPLEFT,
  13402. CS_RESIZE_ALL,
  13403. CS_ACCEPTDROP,
  13404. CS_REJECTDROP,
  13405. CS_BUSY,
  13406. CS_BUSY_ARROW,
  13407. };
  13408. enum DBAPI
  13409. {
  13410. DBAPI_SQLITE,
  13411. DBAPI_ODBC,
  13412. };
  13413. enum DumpMode
  13414. {
  13415. DOXYGEN,
  13416. C_HEADER,
  13417. };
  13418. enum EmitterType
  13419. {
  13420. EMITTER_SPHERE,
  13421. EMITTER_BOX,
  13422. };
  13423. enum EmitterType2D
  13424. {
  13425. EMITTER_TYPE_GRAVITY,
  13426. EMITTER_TYPE_RADIAL,
  13427. };
  13428. enum FaceCameraMode
  13429. {
  13430. FC_NONE,
  13431. FC_ROTATE_XYZ,
  13432. FC_ROTATE_Y,
  13433. FC_LOOKAT_XYZ,
  13434. FC_LOOKAT_Y,
  13435. FC_DIRECTION,
  13436. };
  13437. enum FileMode
  13438. {
  13439. FILE_READ,
  13440. FILE_WRITE,
  13441. FILE_READWRITE,
  13442. };
  13443. enum FillMode
  13444. {
  13445. FILL_SOLID,
  13446. FILL_WIREFRAME,
  13447. FILL_POINT,
  13448. };
  13449. enum FocusMode
  13450. {
  13451. FM_NOTFOCUSABLE,
  13452. FM_RESETFOCUS,
  13453. FM_FOCUSABLE,
  13454. FM_FOCUSABLE_DEFOCUSABLE,
  13455. };
  13456. enum HighlightMode
  13457. {
  13458. HM_NEVER,
  13459. HM_FOCUS,
  13460. HM_ALWAYS,
  13461. };
  13462. enum HorizontalAlignment
  13463. {
  13464. HA_LEFT,
  13465. HA_CENTER,
  13466. HA_RIGHT,
  13467. };
  13468. enum HttpRequestState
  13469. {
  13470. HTTP_INITIALIZING,
  13471. HTTP_ERROR,
  13472. HTTP_OPEN,
  13473. HTTP_CLOSED,
  13474. };
  13475. enum InterpMethod
  13476. {
  13477. IM_NONE,
  13478. IM_LINEAR,
  13479. IM_SPLINE,
  13480. };
  13481. enum InterpolationMode
  13482. {
  13483. BEZIER_CURVE,
  13484. CATMULL_ROM_CURVE,
  13485. LINEAR_CURVE,
  13486. CATMULL_ROM_FULL_CURVE,
  13487. };
  13488. enum Intersection
  13489. {
  13490. OUTSIDE,
  13491. INTERSECTS,
  13492. INSIDE,
  13493. };
  13494. enum JSONValueType
  13495. {
  13496. JSON_NULL,
  13497. JSON_BOOL,
  13498. JSON_NUMBER,
  13499. JSON_STRING,
  13500. JSON_ARRAY,
  13501. JSON_OBJECT,
  13502. };
  13503. enum LayoutMode
  13504. {
  13505. LM_FREE,
  13506. LM_HORIZONTAL,
  13507. LM_VERTICAL,
  13508. };
  13509. enum LightType
  13510. {
  13511. LIGHT_DIRECTIONAL,
  13512. LIGHT_SPOT,
  13513. LIGHT_POINT,
  13514. };
  13515. enum LoadMode
  13516. {
  13517. LOAD_RESOURCES_ONLY,
  13518. LOAD_SCENE,
  13519. LOAD_SCENE_AND_RESOURCES,
  13520. };
  13521. enum LoopMode2D
  13522. {
  13523. LM_DEFAULT,
  13524. LM_FORCE_LOOPED,
  13525. LM_FORCE_CLAMPED,
  13526. };
  13527. enum MouseMode
  13528. {
  13529. MM_ABSOLUTE,
  13530. MM_RELATIVE,
  13531. MM_WRAP,
  13532. MM_FREE,
  13533. };
  13534. enum NavigationPushiness
  13535. {
  13536. NAVIGATIONPUSHINESS_LOW,
  13537. NAVIGATIONPUSHINESS_MEDIUM,
  13538. NAVIGATIONPUSHINESS_HIGH,
  13539. };
  13540. enum NavigationQuality
  13541. {
  13542. NAVIGATIONQUALITY_LOW,
  13543. NAVIGATIONQUALITY_MEDIUM,
  13544. NAVIGATIONQUALITY_HIGH,
  13545. };
  13546. enum NavmeshPartitionType
  13547. {
  13548. NAVMESH_PARTITION_WATERSHED,
  13549. NAVMESH_PARTITION_MONOTONE,
  13550. };
  13551. enum Orientation
  13552. {
  13553. O_HORIZONTAL,
  13554. O_VERTICAL,
  13555. };
  13556. enum Orientation2D
  13557. {
  13558. O_ORTHOGONAL,
  13559. O_ISOMETRIC,
  13560. O_STAGGERED,
  13561. };
  13562. enum PassLightingMode
  13563. {
  13564. LIGHTING_UNLIT,
  13565. LIGHTING_PERVERTEX,
  13566. LIGHTING_PERPIXEL,
  13567. };
  13568. enum PrimitiveType
  13569. {
  13570. TRIANGLE_LIST,
  13571. LINE_LIST,
  13572. POINT_LIST,
  13573. TRIANGLE_STRIP,
  13574. LINE_STRIP,
  13575. TRIANGLE_FAN,
  13576. };
  13577. enum RayQueryLevel
  13578. {
  13579. RAY_AABB,
  13580. RAY_OBB,
  13581. RAY_TRIANGLE,
  13582. RAY_TRIANGLE_UV,
  13583. };
  13584. enum RenderCommandSortMode
  13585. {
  13586. SORT_FRONTTOBACK,
  13587. SORT_BACKTOFRONT,
  13588. };
  13589. enum RenderCommandType
  13590. {
  13591. CMD_NONE,
  13592. CMD_CLEAR,
  13593. CMD_SCENEPASS,
  13594. CMD_QUAD,
  13595. CMD_FORWARDLIGHTS,
  13596. CMD_LIGHTVOLUMES,
  13597. CMD_RENDERUI,
  13598. };
  13599. enum RenderSurfaceUpdateMode
  13600. {
  13601. SURFACE_MANUALUPDATE,
  13602. SURFACE_UPDATEVISIBLE,
  13603. SURFACE_UPDATEALWAYS,
  13604. };
  13605. enum RenderTargetSizeMode
  13606. {
  13607. SIZE_ABSOLUTE,
  13608. SIZE_VIEWPORTDIVISOR,
  13609. SIZE_VIEWPORTMULTIPLIER,
  13610. };
  13611. enum ShadowQuality
  13612. {
  13613. SHADOWQUALITY_SIMPLE_16BIT,
  13614. SHADOWQUALITY_SIMPLE_24BIT,
  13615. SHADOWQUALITY_PCF_16BIT,
  13616. SHADOWQUALITY_PCF_24BIT,
  13617. SHADOWQUALITY_VSM,
  13618. SHADOWQUALITY_BLUR_VSM,
  13619. };
  13620. enum ShapeType
  13621. {
  13622. SHAPE_BOX,
  13623. SHAPE_SPHERE,
  13624. SHAPE_STATICPLANE,
  13625. SHAPE_CYLINDER,
  13626. SHAPE_CAPSULE,
  13627. SHAPE_CONE,
  13628. SHAPE_TRIANGLEMESH,
  13629. SHAPE_CONVEXHULL,
  13630. SHAPE_TERRAIN,
  13631. };
  13632. enum TextEffect
  13633. {
  13634. TE_NONE,
  13635. TE_SHADOW,
  13636. TE_STROKE,
  13637. };
  13638. enum TextureAddressMode
  13639. {
  13640. ADDRESS_WRAP,
  13641. ADDRESS_MIRROR,
  13642. ADDRESS_CLAMP,
  13643. ADDRESS_BORDER,
  13644. };
  13645. enum TextureCoordinate
  13646. {
  13647. COORD_U,
  13648. COORD_V,
  13649. COORD_W,
  13650. };
  13651. enum TextureFilterMode
  13652. {
  13653. FILTER_NEAREST,
  13654. FILTER_BILINEAR,
  13655. FILTER_TRILINEAR,
  13656. FILTER_ANISOTROPIC,
  13657. FILTER_DEFAULT,
  13658. };
  13659. enum TextureUnit
  13660. {
  13661. TU_DIFFUSE,
  13662. TU_ALBEDOBUFFER,
  13663. TU_NORMAL,
  13664. TU_NORMALBUFFER,
  13665. TU_SPECULAR,
  13666. TU_EMISSIVE,
  13667. TU_ENVIRONMENT,
  13668. TU_LIGHTRAMP,
  13669. TU_LIGHTSHAPE,
  13670. TU_SHADOWMAP,
  13671. TU_CUSTOM1,
  13672. TU_CUSTOM2,
  13673. TU_VOLUMEMAP,
  13674. TU_FACESELECT,
  13675. TU_INDIRECTION,
  13676. TU_DEPTHBUFFER,
  13677. TU_LIGHTBUFFER,
  13678. TU_ZONE,
  13679. MAX_MATERIAL_TEXTURE_UNITS,
  13680. MAX_TEXTURE_UNITS,
  13681. };
  13682. enum TextureUsage
  13683. {
  13684. TEXTURE_STATIC,
  13685. TEXTURE_DYNAMIC,
  13686. TEXTURE_RENDERTARGET,
  13687. TEXTURE_DEPTHSTENCIL,
  13688. };
  13689. enum TileMapLayerType2D
  13690. {
  13691. LT_TILE_LAYER,
  13692. LT_OBJECT_GROUP,
  13693. LT_IMAGE_LAYER,
  13694. LT_INVALID,
  13695. };
  13696. enum TileObjectType2D
  13697. {
  13698. OT_RECTANGLE,
  13699. OT_ELLIPSE,
  13700. OT_POLYGON,
  13701. OT_POLYLINE,
  13702. OT_TILE,
  13703. OT_INVALID,
  13704. };
  13705. enum TransformSpace
  13706. {
  13707. TS_LOCAL,
  13708. TS_PARENT,
  13709. TS_WORLD,
  13710. };
  13711. enum TraversalMode
  13712. {
  13713. TM_BREADTH_FIRST,
  13714. TM_DEPTH_FIRST,
  13715. };
  13716. enum VariantType
  13717. {
  13718. VAR_NONE,
  13719. VAR_INT,
  13720. VAR_BOOL,
  13721. VAR_FLOAT,
  13722. VAR_VECTOR2,
  13723. VAR_VECTOR3,
  13724. VAR_VECTOR4,
  13725. VAR_QUATERNION,
  13726. VAR_COLOR,
  13727. VAR_STRING,
  13728. VAR_BUFFER,
  13729. VAR_VOIDPTR,
  13730. VAR_RESOURCEREF,
  13731. VAR_RESOURCEREFLIST,
  13732. VAR_VARIANTVECTOR,
  13733. VAR_VARIANTMAP,
  13734. VAR_INTRECT,
  13735. VAR_INTVECTOR2,
  13736. VAR_PTR,
  13737. VAR_MATRIX3,
  13738. VAR_MATRIX3X4,
  13739. VAR_MATRIX4,
  13740. VAR_DOUBLE,
  13741. VAR_STRINGVECTOR,
  13742. };
  13743. enum VertexElementSemantic
  13744. {
  13745. SEM_POSITION,
  13746. SEM_NORMAL,
  13747. SEM_BINORMAL,
  13748. SEM_TANGENT,
  13749. SEM_TEXCOORD,
  13750. SEM_COLOR,
  13751. SEM_BLENDWEIGHTS,
  13752. SEM_BLENDINDICES,
  13753. SEM_OBJECTINDEX,
  13754. MAX_VERTEX_ELEMENT_SEMANTICS,
  13755. };
  13756. enum VertexElementType
  13757. {
  13758. TYPE_INT,
  13759. TYPE_FLOAT,
  13760. TYPE_VECTOR2,
  13761. TYPE_VECTOR3,
  13762. TYPE_VECTOR4,
  13763. TYPE_UBYTE4,
  13764. TYPE_UBYTE4_NORM,
  13765. MAX_VERTEX_ELEMENT_TYPES,
  13766. };
  13767. enum VerticalAlignment
  13768. {
  13769. VA_TOP,
  13770. VA_CENTER,
  13771. VA_BOTTOM,
  13772. };
  13773. enum WrapMode
  13774. {
  13775. WM_LOOP,
  13776. WM_ONCE,
  13777. WM_CLAMP,
  13778. };
  13779. // Global functions
  13780. float Abs(float);
  13781. float Acos(float);
  13782. String AddTrailingSlash(const String&);
  13783. float Asin(float);
  13784. float Atan(float);
  13785. float Atan2(float, float);
  13786. float Ceil(float);
  13787. float Clamp(float, float, float);
  13788. int Clamp(int, int, int);
  13789. void ClearDelayedExecute(const String& = String ( ));
  13790. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13791. float Cos(float);
  13792. uint CountSetBits(uint);
  13793. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13794. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13795. bool Equals(float, float);
  13796. void ErrorDialog(const String&, const String&);
  13797. float Floor(float);
  13798. uint GetAlphaFormat();
  13799. Array<String> GetArguments();
  13800. String GetConsoleInput();
  13801. uint GetDepthStencilFormat();
  13802. Object GetEventSender();
  13803. String GetExtension(const String&, bool = true);
  13804. String GetFileName(const String&);
  13805. String GetFileNameAndExtension(const String&, bool = false);
  13806. String GetFileSizeString(uint64);
  13807. uint GetFloat16Format();
  13808. uint GetFloat32Format();
  13809. uint GetFormat(const String&);
  13810. Variant GetGlobalVar(const String&);
  13811. String GetInternalPath(const String&);
  13812. uint GetLinearDepthFormat();
  13813. uint GetLuminanceAlphaFormat();
  13814. uint GetLuminanceFormat();
  13815. uint GetMaxBones();
  13816. String GetMiniDumpDir();
  13817. uint GetNumLogicalCPUs();
  13818. uint GetNumPhysicalCPUs();
  13819. Array<String> GetObjectCategories();
  13820. Array<String> GetObjectsByCategory(const String&);
  13821. String GetParentPath(const String&);
  13822. String GetPath(const String&);
  13823. String GetPlatform();
  13824. uint GetRG16Format();
  13825. uint GetRGBA16Format();
  13826. uint GetRGBAFloat16Format();
  13827. uint GetRGBAFloat32Format();
  13828. uint GetRGBAFormat();
  13829. uint GetRGBFormat();
  13830. uint GetRGFloat16Format();
  13831. uint GetRGFloat32Format();
  13832. uint GetRandomSeed();
  13833. uint GetReadableDepthFormat();
  13834. String GetTextureUnitName(TextureUnit);
  13835. bool HasSubscribedToEvent(Object, const String&);
  13836. bool HasSubscribedToEvent(const String&);
  13837. bool IsAbsolutePath(const String&);
  13838. bool IsAlpha(uint);
  13839. bool IsDigit(uint);
  13840. bool IsNaN(float);
  13841. bool IsPowerOfTwo(uint);
  13842. String Join(Array<String>&, const String&);
  13843. float Lerp(float, float, float);
  13844. void MarkNetworkUpdate();
  13845. float Max(float, float);
  13846. int Max(int, int);
  13847. float Min(float, float);
  13848. int Min(int, int);
  13849. float Mod(float, float);
  13850. uint NextPowerOfTwo(uint);
  13851. void OpenConsoleWindow();
  13852. float Pow(float, float);
  13853. void Print(bool, bool = false);
  13854. void Print(const String&, bool = false);
  13855. void Print(const Variant&, bool = false);
  13856. void Print(float, bool = false);
  13857. void Print(int, bool = false);
  13858. void Print(uint, bool = false);
  13859. void PrintCallStack(bool = false);
  13860. float Random();
  13861. float Random(float);
  13862. float Random(float, float);
  13863. int RandomInt();
  13864. int RandomInt(int);
  13865. int RandomInt(int, int);
  13866. float RandomNormal(float, float);
  13867. void Remove();
  13868. String RemoveTrailingSlash(const String&);
  13869. String ReplaceExtension(const String&, const String&);
  13870. uint SDBMHash(uint, uint8);
  13871. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13872. void SetGlobalVar(const String&, Variant&);
  13873. void SetMiniDumpDir(const String&);
  13874. void SetRandomSeed(uint);
  13875. float Sign(float);
  13876. float Sin(float);
  13877. float SmoothStep(float, float, float);
  13878. float Sqrt(float);
  13879. const String& GetTypeName(StringHash);
  13880. void SubscribeToEvent(Object, const String&, const String&);
  13881. void SubscribeToEvent(const String&, const String&);
  13882. float Tan(float);
  13883. uint ToLower(uint);
  13884. String ToStringHex(int);
  13885. uint ToUpper(uint);
  13886. void UnsubscribeFromAllEvents();
  13887. void UnsubscribeFromAllEventsExcept(Array<String>);
  13888. void UnsubscribeFromEvent(Object, const String&);
  13889. void UnsubscribeFromEvent(const String&);
  13890. void UnsubscribeFromEvents(Object);
  13891. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13892. // Global properties
  13893. DBAPI DBAPI;
  13894. Audio audio;
  13895. ResourceCache cache;
  13896. Console console;
  13897. Database database;
  13898. DebugHud debugHud;
  13899. DebugRenderer debugRenderer;
  13900. Engine engine;
  13901. FileSystem fileSystem;
  13902. VariantMap globalVars;
  13903. Graphics graphics;
  13904. Input input;
  13905. Localization localization;
  13906. Log log;
  13907. Network network;
  13908. Node node;
  13909. Octree octree;
  13910. PhysicsWorld physicsWorld;
  13911. PhysicsWorld2D physicsWorld2D;
  13912. Renderer renderer;
  13913. ResourceCache resourceCache;
  13914. Scene scene;
  13915. Script script;
  13916. ScriptFile scriptFile;
  13917. ScriptInstance self;
  13918. Time time;
  13919. UI ui;
  13920. // Global constants
  13921. uint AM_COMPONENTID;
  13922. uint AM_DEFAULT;
  13923. uint AM_FILE;
  13924. uint AM_LATESTDATA;
  13925. uint AM_NET;
  13926. uint AM_NODEID;
  13927. uint AM_NODEIDVECTOR;
  13928. uint AM_NOEDIT;
  13929. Color BLACK;
  13930. Color BLUE;
  13931. uint8 CHANNEL_POSITION;
  13932. uint8 CHANNEL_ROTATION;
  13933. uint8 CHANNEL_SCALE;
  13934. uint CLEAR_COLOR;
  13935. uint CLEAR_DEPTH;
  13936. uint CLEAR_STENCIL;
  13937. int CONTROLLER_AXIS_LEFTX;
  13938. int CONTROLLER_AXIS_LEFTY;
  13939. int CONTROLLER_AXIS_RIGHTX;
  13940. int CONTROLLER_AXIS_RIGHTY;
  13941. int CONTROLLER_AXIS_TRIGGERLEFT;
  13942. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13943. int CONTROLLER_BUTTON_A;
  13944. int CONTROLLER_BUTTON_B;
  13945. int CONTROLLER_BUTTON_BACK;
  13946. int CONTROLLER_BUTTON_DPAD_DOWN;
  13947. int CONTROLLER_BUTTON_DPAD_LEFT;
  13948. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13949. int CONTROLLER_BUTTON_DPAD_UP;
  13950. int CONTROLLER_BUTTON_GUIDE;
  13951. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13952. int CONTROLLER_BUTTON_LEFTSTICK;
  13953. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13954. int CONTROLLER_BUTTON_RIGHTSTICK;
  13955. int CONTROLLER_BUTTON_START;
  13956. int CONTROLLER_BUTTON_X;
  13957. int CONTROLLER_BUTTON_Y;
  13958. Color CYAN;
  13959. uint DD_DISABLED;
  13960. uint DD_SOURCE;
  13961. uint DD_SOURCE_AND_TARGET;
  13962. uint DD_TARGET;
  13963. uint DEBUGHUD_SHOW_ALL;
  13964. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13965. uint DEBUGHUD_SHOW_MEMORY;
  13966. uint DEBUGHUD_SHOW_MODE;
  13967. uint DEBUGHUD_SHOW_NONE;
  13968. uint DEBUGHUD_SHOW_PROFILER;
  13969. uint DEBUGHUD_SHOW_STATS;
  13970. uint DEFAULT_LIGHTMASK;
  13971. uint DEFAULT_VIEWMASK;
  13972. uint DRAWABLE_ANY;
  13973. uint DRAWABLE_GEOMETRY;
  13974. uint DRAWABLE_GEOMETRY2D;
  13975. uint DRAWABLE_LIGHT;
  13976. uint DRAWABLE_ZONE;
  13977. uint FIRST_LOCAL_ID;
  13978. uint FIRST_REPLICATED_ID;
  13979. Color GRAY;
  13980. Color GREEN;
  13981. int HAT_CENTER;
  13982. int HAT_DOWN;
  13983. int HAT_LEFT;
  13984. int HAT_RIGHT;
  13985. int HAT_UP;
  13986. int KEY_0;
  13987. int KEY_1;
  13988. int KEY_2;
  13989. int KEY_3;
  13990. int KEY_4;
  13991. int KEY_5;
  13992. int KEY_6;
  13993. int KEY_7;
  13994. int KEY_8;
  13995. int KEY_9;
  13996. int KEY_A;
  13997. int KEY_ALT;
  13998. int KEY_APPLICATION;
  13999. int KEY_B;
  14000. int KEY_BACKSPACE;
  14001. int KEY_C;
  14002. int KEY_CAPSLOCK;
  14003. int KEY_CTRL;
  14004. int KEY_D;
  14005. int KEY_DELETE;
  14006. int KEY_DOWN;
  14007. int KEY_E;
  14008. int KEY_END;
  14009. int KEY_ESC;
  14010. int KEY_F;
  14011. int KEY_F1;
  14012. int KEY_F10;
  14013. int KEY_F11;
  14014. int KEY_F12;
  14015. int KEY_F13;
  14016. int KEY_F14;
  14017. int KEY_F15;
  14018. int KEY_F16;
  14019. int KEY_F17;
  14020. int KEY_F18;
  14021. int KEY_F19;
  14022. int KEY_F2;
  14023. int KEY_F20;
  14024. int KEY_F21;
  14025. int KEY_F22;
  14026. int KEY_F23;
  14027. int KEY_F24;
  14028. int KEY_F3;
  14029. int KEY_F4;
  14030. int KEY_F5;
  14031. int KEY_F6;
  14032. int KEY_F7;
  14033. int KEY_F8;
  14034. int KEY_F9;
  14035. int KEY_G;
  14036. int KEY_GUI;
  14037. int KEY_H;
  14038. int KEY_HOME;
  14039. int KEY_I;
  14040. int KEY_INSERT;
  14041. int KEY_J;
  14042. int KEY_K;
  14043. int KEY_KP_0;
  14044. int KEY_KP_1;
  14045. int KEY_KP_2;
  14046. int KEY_KP_3;
  14047. int KEY_KP_4;
  14048. int KEY_KP_5;
  14049. int KEY_KP_6;
  14050. int KEY_KP_7;
  14051. int KEY_KP_8;
  14052. int KEY_KP_9;
  14053. int KEY_KP_DIVIDE;
  14054. int KEY_KP_ENTER;
  14055. int KEY_KP_MINUS;
  14056. int KEY_KP_MULTIPLY;
  14057. int KEY_KP_PERIOD;
  14058. int KEY_KP_PLUS;
  14059. int KEY_L;
  14060. int KEY_LALT;
  14061. int KEY_LCTRL;
  14062. int KEY_LEFT;
  14063. int KEY_LGUI;
  14064. int KEY_LSHIFT;
  14065. int KEY_M;
  14066. int KEY_N;
  14067. int KEY_NUMLOCKCLEAR;
  14068. int KEY_O;
  14069. int KEY_P;
  14070. int KEY_PAGEDOWN;
  14071. int KEY_PAGEUP;
  14072. int KEY_PAUSE;
  14073. int KEY_PRINTSCREEN;
  14074. int KEY_Q;
  14075. int KEY_R;
  14076. int KEY_RALT;
  14077. int KEY_RCTRL;
  14078. int KEY_RETURN;
  14079. int KEY_RETURN2;
  14080. int KEY_RGUI;
  14081. int KEY_RIGHT;
  14082. int KEY_RSHIFT;
  14083. int KEY_S;
  14084. int KEY_SCROLLLOCK;
  14085. int KEY_SELECT;
  14086. int KEY_SHIFT;
  14087. int KEY_SPACE;
  14088. int KEY_T;
  14089. int KEY_TAB;
  14090. int KEY_U;
  14091. int KEY_UP;
  14092. int KEY_V;
  14093. int KEY_W;
  14094. int KEY_X;
  14095. int KEY_Y;
  14096. int KEY_Z;
  14097. uint LAST_LOCAL_ID;
  14098. uint LAST_REPLICATED_ID;
  14099. int LOG_DEBUG;
  14100. int LOG_ERROR;
  14101. int LOG_INFO;
  14102. int LOG_NONE;
  14103. int LOG_WARNING;
  14104. Color MAGENTA;
  14105. uint MASK_BLENDINDICES;
  14106. uint MASK_BLENDWEIGHTS;
  14107. uint MASK_COLOR;
  14108. uint MASK_CUBETEXCOORD1;
  14109. uint MASK_CUBETEXCOORD2;
  14110. uint MASK_INSTANCEMATRIX1;
  14111. uint MASK_INSTANCEMATRIX2;
  14112. uint MASK_INSTANCEMATRIX3;
  14113. uint MASK_NONE;
  14114. uint MASK_NORMAL;
  14115. uint MASK_OBJECTINDEX;
  14116. uint MASK_POSITION;
  14117. uint MASK_TANGENT;
  14118. uint MASK_TEXCOORD1;
  14119. uint MASK_TEXCOORD2;
  14120. int MOUSEB_LEFT;
  14121. int MOUSEB_MIDDLE;
  14122. int MOUSEB_RIGHT;
  14123. float M_DEGTORAD;
  14124. float M_DEGTORAD_2;
  14125. float M_EPSILON;
  14126. float M_HALF_PI;
  14127. float M_INFINITY;
  14128. float M_LARGE_EPSILON;
  14129. float M_LARGE_VALUE;
  14130. int M_MAX_INT;
  14131. uint M_MAX_UNSIGNED;
  14132. int M_MIN_INT;
  14133. uint M_MIN_UNSIGNED;
  14134. float M_PI;
  14135. float M_RADTODEG;
  14136. uint NPOS;
  14137. float PIXEL_SIZE;
  14138. int QUALITY_HIGH;
  14139. int QUALITY_LOW;
  14140. int QUALITY_MAX;
  14141. int QUALITY_MEDIUM;
  14142. int QUAL_ALT;
  14143. int QUAL_ANY;
  14144. int QUAL_CTRL;
  14145. int QUAL_SHIFT;
  14146. Color RED;
  14147. int SCANCODE_0;
  14148. int SCANCODE_1;
  14149. int SCANCODE_2;
  14150. int SCANCODE_3;
  14151. int SCANCODE_4;
  14152. int SCANCODE_5;
  14153. int SCANCODE_6;
  14154. int SCANCODE_7;
  14155. int SCANCODE_8;
  14156. int SCANCODE_9;
  14157. int SCANCODE_A;
  14158. int SCANCODE_AC_BACK;
  14159. int SCANCODE_AC_BOOKMARKS;
  14160. int SCANCODE_AC_FORWARD;
  14161. int SCANCODE_AC_HOME;
  14162. int SCANCODE_AC_REFRESH;
  14163. int SCANCODE_AC_SEARCH;
  14164. int SCANCODE_AC_STOP;
  14165. int SCANCODE_AGAIN;
  14166. int SCANCODE_ALT;
  14167. int SCANCODE_ALTERASE;
  14168. int SCANCODE_APOSTROPHE;
  14169. int SCANCODE_APP1;
  14170. int SCANCODE_APP2;
  14171. int SCANCODE_APPLICATION;
  14172. int SCANCODE_AUDIOMUTE;
  14173. int SCANCODE_AUDIONEXT;
  14174. int SCANCODE_AUDIOPLAY;
  14175. int SCANCODE_AUDIOPREV;
  14176. int SCANCODE_AUDIOSTOP;
  14177. int SCANCODE_B;
  14178. int SCANCODE_BACKSLASH;
  14179. int SCANCODE_BACKSPACE;
  14180. int SCANCODE_BRIGHTNESSDOWN;
  14181. int SCANCODE_BRIGHTNESSUP;
  14182. int SCANCODE_C;
  14183. int SCANCODE_CALCULATOR;
  14184. int SCANCODE_CANCEL;
  14185. int SCANCODE_CAPSLOCK;
  14186. int SCANCODE_CLEAR;
  14187. int SCANCODE_CLEARAGAIN;
  14188. int SCANCODE_COMMA;
  14189. int SCANCODE_COMPUTER;
  14190. int SCANCODE_COPY;
  14191. int SCANCODE_CRSEL;
  14192. int SCANCODE_CTRL;
  14193. int SCANCODE_CURRENCYSUBUNIT;
  14194. int SCANCODE_CURRENCYUNIT;
  14195. int SCANCODE_CUT;
  14196. int SCANCODE_D;
  14197. int SCANCODE_DECIMALSEPARATOR;
  14198. int SCANCODE_DELETE;
  14199. int SCANCODE_DISPLAYSWITCH;
  14200. int SCANCODE_DOWN;
  14201. int SCANCODE_E;
  14202. int SCANCODE_EJECT;
  14203. int SCANCODE_END;
  14204. int SCANCODE_EQUALS;
  14205. int SCANCODE_ESCAPE;
  14206. int SCANCODE_EXECUTE;
  14207. int SCANCODE_EXSEL;
  14208. int SCANCODE_F;
  14209. int SCANCODE_F1;
  14210. int SCANCODE_F10;
  14211. int SCANCODE_F11;
  14212. int SCANCODE_F12;
  14213. int SCANCODE_F13;
  14214. int SCANCODE_F14;
  14215. int SCANCODE_F15;
  14216. int SCANCODE_F16;
  14217. int SCANCODE_F17;
  14218. int SCANCODE_F18;
  14219. int SCANCODE_F19;
  14220. int SCANCODE_F2;
  14221. int SCANCODE_F20;
  14222. int SCANCODE_F21;
  14223. int SCANCODE_F22;
  14224. int SCANCODE_F23;
  14225. int SCANCODE_F24;
  14226. int SCANCODE_F3;
  14227. int SCANCODE_F4;
  14228. int SCANCODE_F5;
  14229. int SCANCODE_F6;
  14230. int SCANCODE_F7;
  14231. int SCANCODE_F8;
  14232. int SCANCODE_F9;
  14233. int SCANCODE_FIND;
  14234. int SCANCODE_G;
  14235. int SCANCODE_GRAVE;
  14236. int SCANCODE_GUI;
  14237. int SCANCODE_H;
  14238. int SCANCODE_HELP;
  14239. int SCANCODE_HOME;
  14240. int SCANCODE_I;
  14241. int SCANCODE_INSERT;
  14242. int SCANCODE_INTERNATIONAL1;
  14243. int SCANCODE_INTERNATIONAL2;
  14244. int SCANCODE_INTERNATIONAL3;
  14245. int SCANCODE_INTERNATIONAL4;
  14246. int SCANCODE_INTERNATIONAL5;
  14247. int SCANCODE_INTERNATIONAL6;
  14248. int SCANCODE_INTERNATIONAL7;
  14249. int SCANCODE_INTERNATIONAL8;
  14250. int SCANCODE_INTERNATIONAL9;
  14251. int SCANCODE_J;
  14252. int SCANCODE_K;
  14253. int SCANCODE_KBDILLUMDOWN;
  14254. int SCANCODE_KBDILLUMTOGGLE;
  14255. int SCANCODE_KBDILLUMUP;
  14256. int SCANCODE_KP_0;
  14257. int SCANCODE_KP_00;
  14258. int SCANCODE_KP_000;
  14259. int SCANCODE_KP_1;
  14260. int SCANCODE_KP_2;
  14261. int SCANCODE_KP_3;
  14262. int SCANCODE_KP_4;
  14263. int SCANCODE_KP_5;
  14264. int SCANCODE_KP_6;
  14265. int SCANCODE_KP_7;
  14266. int SCANCODE_KP_8;
  14267. int SCANCODE_KP_9;
  14268. int SCANCODE_KP_A;
  14269. int SCANCODE_KP_AMPERSAND;
  14270. int SCANCODE_KP_AT;
  14271. int SCANCODE_KP_B;
  14272. int SCANCODE_KP_BACKSPACE;
  14273. int SCANCODE_KP_BINARY;
  14274. int SCANCODE_KP_C;
  14275. int SCANCODE_KP_CLEAR;
  14276. int SCANCODE_KP_CLEARENTRY;
  14277. int SCANCODE_KP_COLON;
  14278. int SCANCODE_KP_COMMA;
  14279. int SCANCODE_KP_D;
  14280. int SCANCODE_KP_DBLAMPERSAND;
  14281. int SCANCODE_KP_DBLVERTICALBAR;
  14282. int SCANCODE_KP_DECIMAL;
  14283. int SCANCODE_KP_DIVIDE;
  14284. int SCANCODE_KP_E;
  14285. int SCANCODE_KP_ENTER;
  14286. int SCANCODE_KP_EQUALS;
  14287. int SCANCODE_KP_EQUALSAS400;
  14288. int SCANCODE_KP_EXCLAM;
  14289. int SCANCODE_KP_F;
  14290. int SCANCODE_KP_GREATER;
  14291. int SCANCODE_KP_HASH;
  14292. int SCANCODE_KP_HEXADECIMAL;
  14293. int SCANCODE_KP_LEFTBRACE;
  14294. int SCANCODE_KP_LEFTPAREN;
  14295. int SCANCODE_KP_LESS;
  14296. int SCANCODE_KP_MEMADD;
  14297. int SCANCODE_KP_MEMCLEAR;
  14298. int SCANCODE_KP_MEMDIVIDE;
  14299. int SCANCODE_KP_MEMMULTIPLY;
  14300. int SCANCODE_KP_MEMRECALL;
  14301. int SCANCODE_KP_MEMSTORE;
  14302. int SCANCODE_KP_MEMSUBTRACT;
  14303. int SCANCODE_KP_MINUS;
  14304. int SCANCODE_KP_MULTIPLY;
  14305. int SCANCODE_KP_OCTAL;
  14306. int SCANCODE_KP_PERCENT;
  14307. int SCANCODE_KP_PERIOD;
  14308. int SCANCODE_KP_PLUS;
  14309. int SCANCODE_KP_PLUSMINUS;
  14310. int SCANCODE_KP_POWER;
  14311. int SCANCODE_KP_RIGHTBRACE;
  14312. int SCANCODE_KP_RIGHTPAREN;
  14313. int SCANCODE_KP_SPACE;
  14314. int SCANCODE_KP_TAB;
  14315. int SCANCODE_KP_VERTICALBAR;
  14316. int SCANCODE_KP_XOR;
  14317. int SCANCODE_L;
  14318. int SCANCODE_LALT;
  14319. int SCANCODE_LANG1;
  14320. int SCANCODE_LANG2;
  14321. int SCANCODE_LANG3;
  14322. int SCANCODE_LANG4;
  14323. int SCANCODE_LANG5;
  14324. int SCANCODE_LANG6;
  14325. int SCANCODE_LANG7;
  14326. int SCANCODE_LANG8;
  14327. int SCANCODE_LANG9;
  14328. int SCANCODE_LCTRL;
  14329. int SCANCODE_LEFT;
  14330. int SCANCODE_LEFTBRACKET;
  14331. int SCANCODE_LGUI;
  14332. int SCANCODE_LSHIFT;
  14333. int SCANCODE_M;
  14334. int SCANCODE_MAIL;
  14335. int SCANCODE_MEDIASELECT;
  14336. int SCANCODE_MENU;
  14337. int SCANCODE_MINUS;
  14338. int SCANCODE_MODE;
  14339. int SCANCODE_MUTE;
  14340. int SCANCODE_N;
  14341. int SCANCODE_NONUSBACKSLASH;
  14342. int SCANCODE_NONUSHASH;
  14343. int SCANCODE_NUMLOCKCLEAR;
  14344. int SCANCODE_O;
  14345. int SCANCODE_OPER;
  14346. int SCANCODE_OUT;
  14347. int SCANCODE_P;
  14348. int SCANCODE_PAGEDOWN;
  14349. int SCANCODE_PAGEUP;
  14350. int SCANCODE_PASTE;
  14351. int SCANCODE_PAUSE;
  14352. int SCANCODE_PERIOD;
  14353. int SCANCODE_POWER;
  14354. int SCANCODE_PRINTSCREEN;
  14355. int SCANCODE_PRIOR;
  14356. int SCANCODE_Q;
  14357. int SCANCODE_R;
  14358. int SCANCODE_RALT;
  14359. int SCANCODE_RCTRL;
  14360. int SCANCODE_RETURN;
  14361. int SCANCODE_RETURN2;
  14362. int SCANCODE_RGUI;
  14363. int SCANCODE_RIGHT;
  14364. int SCANCODE_RIGHTBRACKET;
  14365. int SCANCODE_RSHIFT;
  14366. int SCANCODE_S;
  14367. int SCANCODE_SCROLLLOCK;
  14368. int SCANCODE_SELECT;
  14369. int SCANCODE_SEMICOLON;
  14370. int SCANCODE_SEPARATOR;
  14371. int SCANCODE_SHIFT;
  14372. int SCANCODE_SLASH;
  14373. int SCANCODE_SLEEP;
  14374. int SCANCODE_SPACE;
  14375. int SCANCODE_STOP;
  14376. int SCANCODE_SYSREQ;
  14377. int SCANCODE_T;
  14378. int SCANCODE_TAB;
  14379. int SCANCODE_THOUSANDSSEPARATOR;
  14380. int SCANCODE_U;
  14381. int SCANCODE_UNDO;
  14382. int SCANCODE_UNKNOWN;
  14383. int SCANCODE_UP;
  14384. int SCANCODE_V;
  14385. int SCANCODE_VOLUMEDOWN;
  14386. int SCANCODE_VOLUMEUP;
  14387. int SCANCODE_W;
  14388. int SCANCODE_WWW;
  14389. int SCANCODE_X;
  14390. int SCANCODE_Y;
  14391. int SCANCODE_Z;
  14392. uint SCAN_DIRS;
  14393. uint SCAN_FILES;
  14394. uint SCAN_HIDDEN;
  14395. String SOUND_AMBIENT;
  14396. String SOUND_EFFECT;
  14397. String SOUND_MASTER;
  14398. String SOUND_MUSIC;
  14399. String SOUND_VOICE;
  14400. Color TRANSPARENT;
  14401. uint VO_DISABLE_OCCLUSION;
  14402. uint VO_DISABLE_SHADOWS;
  14403. uint VO_LOW_MATERIAL_QUALITY;
  14404. uint VO_NONE;
  14405. Color WHITE;
  14406. Color YELLOW;