2
0

AngelScriptAPI.h 369 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893
  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 totalDataSize;
  7306. /* readonly */
  7307. uint totalSize;
  7308. /* readonly */
  7309. StringHash type;
  7310. /* readonly */
  7311. String typeName;
  7312. /* readonly */
  7313. int weakRefs;
  7314. };
  7315. class ParticleEffect
  7316. {
  7317. // Methods:
  7318. void AddColorFrame(ColorFrame);
  7319. void AddColorTime(Color&, float);
  7320. void AddTextureFrame(TextureFrame);
  7321. void AddTextureTime(Rect&, float);
  7322. ColorFrame GetColorFrame(uint) const;
  7323. TextureFrame GetTextureFrame(uint) const;
  7324. bool HasSubscribedToEvent(Object, const String&);
  7325. bool HasSubscribedToEvent(const String&);
  7326. bool Load(File);
  7327. bool Load(VectorBuffer&);
  7328. bool Load(const XMLElement&);
  7329. void RemoveColorFrame(uint);
  7330. void RemoveTextureFrame(uint);
  7331. bool Save(File) const;
  7332. bool Save(VectorBuffer&) const;
  7333. bool Save(XMLElement&) const;
  7334. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7335. void SetColorFrame(uint, ColorFrame);
  7336. void SetTextureFrame(uint, TextureFrame);
  7337. void SortColorFrames();
  7338. void SortTextureFrames();
  7339. // Properties:
  7340. float activeTime;
  7341. float animationLodBias;
  7342. /* readonly */
  7343. String category;
  7344. Vector3 constantForce;
  7345. float dampingForce;
  7346. Vector3 emitterSize;
  7347. EmitterType emitterType;
  7348. FaceCameraMode faceCameraMode;
  7349. float inactiveTime;
  7350. Material material;
  7351. Vector3 maxDirection;
  7352. float maxEmissionRate;
  7353. Vector2 maxParticleSize;
  7354. float maxRotation;
  7355. float maxRotationSpeed;
  7356. float maxTimeToLive;
  7357. float maxVelocity;
  7358. /* readonly */
  7359. uint memoryUse;
  7360. Vector3 minDirection;
  7361. float minEmissionRate;
  7362. Vector2 minParticleSize;
  7363. float minRotation;
  7364. float minRotationSpeed;
  7365. float minTimeToLive;
  7366. float minVelocity;
  7367. String name;
  7368. uint numColorFrames;
  7369. uint numParticles;
  7370. uint numTextureFrames;
  7371. /* readonly */
  7372. int refs;
  7373. bool relative;
  7374. bool scaled;
  7375. float sizeAdd;
  7376. float sizeMul;
  7377. bool sorted;
  7378. /* readonly */
  7379. StringHash type;
  7380. /* readonly */
  7381. String typeName;
  7382. bool updateInvisible;
  7383. /* readonly */
  7384. uint useTimer;
  7385. /* readonly */
  7386. int weakRefs;
  7387. };
  7388. class ParticleEffect2D
  7389. {
  7390. // Methods:
  7391. bool HasSubscribedToEvent(Object, const String&);
  7392. bool HasSubscribedToEvent(const String&);
  7393. bool Load(File);
  7394. bool Load(VectorBuffer&);
  7395. bool Save(File) const;
  7396. bool Save(VectorBuffer&) const;
  7397. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7398. // Properties:
  7399. /* readonly */
  7400. String category;
  7401. /* readonly */
  7402. uint memoryUse;
  7403. String name;
  7404. /* readonly */
  7405. int refs;
  7406. /* readonly */
  7407. StringHash type;
  7408. /* readonly */
  7409. String typeName;
  7410. /* readonly */
  7411. uint useTimer;
  7412. /* readonly */
  7413. int weakRefs;
  7414. };
  7415. class ParticleEmitter
  7416. {
  7417. // Methods:
  7418. void ApplyAttributes();
  7419. void ApplyEffect();
  7420. void Commit();
  7421. void DrawDebugGeometry(DebugRenderer, bool);
  7422. Variant GetAttribute(const String&) const;
  7423. ValueAnimation GetAttributeAnimation(const String&) const;
  7424. float GetAttributeAnimationSpeed(const String&) const;
  7425. float GetAttributeAnimationTime(const String&) const;
  7426. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7427. Variant GetAttributeDefault(const String&) const;
  7428. bool GetInterceptNetworkUpdate(const String&) const;
  7429. bool HasSubscribedToEvent(Object, const String&);
  7430. bool HasSubscribedToEvent(const String&);
  7431. bool IsInView(Camera) const;
  7432. bool Load(File, bool = false);
  7433. bool Load(VectorBuffer&, bool = false);
  7434. bool LoadJSON(const JSONValue&, bool = false);
  7435. bool LoadXML(const XMLElement&, bool = false);
  7436. void MarkNetworkUpdate() const;
  7437. void Remove();
  7438. void RemoveAllParticles();
  7439. void RemoveAttributeAnimation(const String&);
  7440. void RemoveInstanceDefault();
  7441. void RemoveObjectAnimation();
  7442. void Reset();
  7443. void ResetEmissionTimer();
  7444. void ResetToDefault();
  7445. bool Save(File) const;
  7446. bool Save(VectorBuffer&) const;
  7447. bool SaveJSON(JSONValue&) const;
  7448. bool SaveXML(XMLElement&) const;
  7449. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7450. void SetAnimationTime(float);
  7451. bool SetAttribute(const String&, const Variant&);
  7452. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7453. void SetAttributeAnimationSpeed(const String&, float);
  7454. void SetAttributeAnimationTime(const String&, float);
  7455. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7456. void SetInterceptNetworkUpdate(const String&, bool);
  7457. // Properties:
  7458. bool animationEnabled;
  7459. float animationLodBias;
  7460. /* readonly */
  7461. Array<Variant> attributeDefaults;
  7462. /* readonly */
  7463. Array<AttributeInfo> attributeInfos;
  7464. Array<Variant> attributes;
  7465. /* readonly */
  7466. Array<Billboard> billboards;
  7467. /* readonly */
  7468. BoundingBox boundingBox;
  7469. bool castShadows;
  7470. /* readonly */
  7471. String category;
  7472. float drawDistance;
  7473. ParticleEffect effect;
  7474. bool emitting;
  7475. bool enabled;
  7476. /* readonly */
  7477. bool enabledEffective;
  7478. FaceCameraMode faceCameraMode;
  7479. /* readonly */
  7480. uint id;
  7481. /* readonly */
  7482. bool inView;
  7483. uint lightMask;
  7484. float lodBias;
  7485. Material material;
  7486. uint maxLights;
  7487. /* readonly */
  7488. Node node;
  7489. /* readonly */
  7490. uint numAttributes;
  7491. uint numBillboards;
  7492. uint numParticles;
  7493. ObjectAnimation objectAnimation;
  7494. bool occludee;
  7495. bool occluder;
  7496. /* readonly */
  7497. int refs;
  7498. bool relative;
  7499. bool scaled;
  7500. bool serializeParticles;
  7501. float shadowDistance;
  7502. uint shadowMask;
  7503. bool sorted;
  7504. bool temporary;
  7505. /* readonly */
  7506. StringHash type;
  7507. /* readonly */
  7508. String typeName;
  7509. uint viewMask;
  7510. /* readonly */
  7511. int weakRefs;
  7512. /* readonly */
  7513. BoundingBox worldBoundingBox;
  7514. /* readonly */
  7515. Zone zone;
  7516. uint zoneMask;
  7517. };
  7518. class ParticleEmitter2D
  7519. {
  7520. // Methods:
  7521. void ApplyAttributes();
  7522. void DrawDebugGeometry(DebugRenderer, bool);
  7523. Variant GetAttribute(const String&) const;
  7524. ValueAnimation GetAttributeAnimation(const String&) const;
  7525. float GetAttributeAnimationSpeed(const String&) const;
  7526. float GetAttributeAnimationTime(const String&) const;
  7527. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7528. Variant GetAttributeDefault(const String&) const;
  7529. bool GetInterceptNetworkUpdate(const String&) const;
  7530. bool HasSubscribedToEvent(Object, const String&);
  7531. bool HasSubscribedToEvent(const String&);
  7532. bool IsInView(Camera) const;
  7533. bool Load(File, bool = false);
  7534. bool Load(VectorBuffer&, bool = false);
  7535. bool LoadJSON(const JSONValue&, bool = false);
  7536. bool LoadXML(const XMLElement&, bool = false);
  7537. void MarkNetworkUpdate() const;
  7538. void Remove();
  7539. void RemoveAttributeAnimation(const String&);
  7540. void RemoveInstanceDefault();
  7541. void RemoveObjectAnimation();
  7542. void ResetToDefault();
  7543. bool Save(File) const;
  7544. bool Save(VectorBuffer&) const;
  7545. bool SaveJSON(JSONValue&) const;
  7546. bool SaveXML(XMLElement&) const;
  7547. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7548. void SetAnimationTime(float);
  7549. bool SetAttribute(const String&, const Variant&);
  7550. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7551. void SetAttributeAnimationSpeed(const String&, float);
  7552. void SetAttributeAnimationTime(const String&, float);
  7553. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7554. void SetInterceptNetworkUpdate(const String&, bool);
  7555. // Properties:
  7556. bool animationEnabled;
  7557. /* readonly */
  7558. Array<Variant> attributeDefaults;
  7559. /* readonly */
  7560. Array<AttributeInfo> attributeInfos;
  7561. Array<Variant> attributes;
  7562. BlendMode blendMode;
  7563. /* readonly */
  7564. BoundingBox boundingBox;
  7565. bool castShadows;
  7566. /* readonly */
  7567. String category;
  7568. float drawDistance;
  7569. ParticleEffect2D effect;
  7570. bool enabled;
  7571. /* readonly */
  7572. bool enabledEffective;
  7573. /* readonly */
  7574. uint id;
  7575. /* readonly */
  7576. bool inView;
  7577. int layer;
  7578. uint lightMask;
  7579. float lodBias;
  7580. uint maxLights;
  7581. /* readonly */
  7582. Node node;
  7583. /* readonly */
  7584. uint numAttributes;
  7585. ObjectAnimation objectAnimation;
  7586. bool occludee;
  7587. bool occluder;
  7588. int orderInLayer;
  7589. /* readonly */
  7590. int refs;
  7591. float shadowDistance;
  7592. uint shadowMask;
  7593. Sprite2D sprite;
  7594. bool temporary;
  7595. /* readonly */
  7596. StringHash type;
  7597. /* readonly */
  7598. String typeName;
  7599. uint viewMask;
  7600. /* readonly */
  7601. int weakRefs;
  7602. /* readonly */
  7603. BoundingBox worldBoundingBox;
  7604. uint zoneMask;
  7605. };
  7606. class Pass
  7607. {
  7608. // Properties:
  7609. bool alphaMask;
  7610. BlendMode blendMode;
  7611. CullMode cullMode;
  7612. CompareMode depthTestMode;
  7613. bool depthWrite;
  7614. bool desktop;
  7615. PassLightingMode lightingMode;
  7616. String pixelShader;
  7617. String pixelShaderDefines;
  7618. /* readonly */
  7619. int refs;
  7620. String vertexShader;
  7621. String vertexShaderDefines;
  7622. /* readonly */
  7623. int weakRefs;
  7624. };
  7625. class PhysicsRaycastResult
  7626. {
  7627. // Properties:
  7628. /* readonly */
  7629. RigidBody body;
  7630. float distance;
  7631. float hitFraction;
  7632. Vector3 normal;
  7633. Vector3 position;
  7634. };
  7635. class PhysicsRaycastResult2D
  7636. {
  7637. // Properties:
  7638. /* readonly */
  7639. RigidBody2D body;
  7640. float distance;
  7641. Vector2 normal;
  7642. Vector2 position;
  7643. };
  7644. class PhysicsWorld
  7645. {
  7646. // Methods:
  7647. void ApplyAttributes();
  7648. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7649. void DrawDebugGeometry(DebugRenderer, bool);
  7650. void DrawDebugGeometry(bool);
  7651. Variant GetAttribute(const String&) const;
  7652. ValueAnimation GetAttributeAnimation(const String&) const;
  7653. float GetAttributeAnimationSpeed(const String&) const;
  7654. float GetAttributeAnimationTime(const String&) const;
  7655. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7656. Variant GetAttributeDefault(const String&) const;
  7657. Array<RigidBody> GetCollidingBodies(RigidBody);
  7658. bool GetInterceptNetworkUpdate(const String&) const;
  7659. Array<RigidBody> GetRigidBodies(RigidBody);
  7660. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7661. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7662. bool HasSubscribedToEvent(Object, const String&);
  7663. bool HasSubscribedToEvent(const String&);
  7664. bool Load(File, bool = false);
  7665. bool Load(VectorBuffer&, bool = false);
  7666. bool LoadJSON(const JSONValue&, bool = false);
  7667. bool LoadXML(const XMLElement&, bool = false);
  7668. void MarkNetworkUpdate() const;
  7669. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7670. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7671. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7672. void Remove();
  7673. void RemoveAttributeAnimation(const String&);
  7674. void RemoveCachedGeometry(Model);
  7675. void RemoveInstanceDefault();
  7676. void RemoveObjectAnimation();
  7677. void ResetToDefault();
  7678. bool Save(File) const;
  7679. bool Save(VectorBuffer&) const;
  7680. bool SaveJSON(JSONValue&) const;
  7681. bool SaveXML(XMLElement&) const;
  7682. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7683. void SetAnimationTime(float);
  7684. bool SetAttribute(const String&, const Variant&);
  7685. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7686. void SetAttributeAnimationSpeed(const String&, float);
  7687. void SetAttributeAnimationTime(const String&, float);
  7688. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7689. void SetInterceptNetworkUpdate(const String&, bool);
  7690. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7691. void Update(float);
  7692. void UpdateCollisions();
  7693. // Properties:
  7694. bool animationEnabled;
  7695. /* readonly */
  7696. Array<Variant> attributeDefaults;
  7697. /* readonly */
  7698. Array<AttributeInfo> attributeInfos;
  7699. Array<Variant> attributes;
  7700. /* readonly */
  7701. String category;
  7702. bool enabled;
  7703. /* readonly */
  7704. bool enabledEffective;
  7705. int fps;
  7706. Vector3 gravity;
  7707. /* readonly */
  7708. uint id;
  7709. bool internalEdge;
  7710. bool interpolation;
  7711. int maxSubSteps;
  7712. /* readonly */
  7713. Node node;
  7714. /* readonly */
  7715. uint numAttributes;
  7716. int numIterations;
  7717. ObjectAnimation objectAnimation;
  7718. /* readonly */
  7719. int refs;
  7720. bool splitImpulse;
  7721. bool temporary;
  7722. /* readonly */
  7723. StringHash type;
  7724. /* readonly */
  7725. String typeName;
  7726. bool updateEnabled;
  7727. /* readonly */
  7728. int weakRefs;
  7729. };
  7730. class PhysicsWorld2D
  7731. {
  7732. // Methods:
  7733. void ApplyAttributes();
  7734. void DrawDebugGeometry() const;
  7735. void DrawDebugGeometry(DebugRenderer, bool);
  7736. Variant GetAttribute(const String&) const;
  7737. ValueAnimation GetAttributeAnimation(const String&) const;
  7738. float GetAttributeAnimationSpeed(const String&) const;
  7739. float GetAttributeAnimationTime(const String&) const;
  7740. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7741. Variant GetAttributeDefault(const String&) const;
  7742. bool GetInterceptNetworkUpdate(const String&) const;
  7743. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7744. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7745. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7746. bool HasSubscribedToEvent(Object, const String&);
  7747. bool HasSubscribedToEvent(const String&);
  7748. bool Load(File, bool = false);
  7749. bool Load(VectorBuffer&, bool = false);
  7750. bool LoadJSON(const JSONValue&, bool = false);
  7751. bool LoadXML(const XMLElement&, bool = false);
  7752. void MarkNetworkUpdate() const;
  7753. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7754. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7755. void Remove();
  7756. void RemoveAttributeAnimation(const String&);
  7757. void RemoveInstanceDefault();
  7758. void RemoveObjectAnimation();
  7759. void ResetToDefault();
  7760. bool Save(File) const;
  7761. bool Save(VectorBuffer&) const;
  7762. bool SaveJSON(JSONValue&) const;
  7763. bool SaveXML(XMLElement&) const;
  7764. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7765. void SetAnimationTime(float);
  7766. bool SetAttribute(const String&, const Variant&);
  7767. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7768. void SetAttributeAnimationSpeed(const String&, float);
  7769. void SetAttributeAnimationTime(const String&, float);
  7770. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7771. void SetInterceptNetworkUpdate(const String&, bool);
  7772. // Properties:
  7773. bool allowSleeping;
  7774. bool animationEnabled;
  7775. /* readonly */
  7776. Array<Variant> attributeDefaults;
  7777. /* readonly */
  7778. Array<AttributeInfo> attributeInfos;
  7779. Array<Variant> attributes;
  7780. bool autoClearForces;
  7781. /* readonly */
  7782. String category;
  7783. bool continuousPhysics;
  7784. bool drawAabb;
  7785. bool drawCenterOfMass;
  7786. bool drawJoint;
  7787. bool drawPair;
  7788. bool drawShape;
  7789. bool enabled;
  7790. /* readonly */
  7791. bool enabledEffective;
  7792. Vector2 gravity;
  7793. /* readonly */
  7794. uint id;
  7795. /* readonly */
  7796. Node node;
  7797. /* readonly */
  7798. uint numAttributes;
  7799. ObjectAnimation objectAnimation;
  7800. uint positionIterations;
  7801. /* readonly */
  7802. int refs;
  7803. bool subStepping;
  7804. bool temporary;
  7805. /* readonly */
  7806. StringHash type;
  7807. /* readonly */
  7808. String typeName;
  7809. bool updateEnabled;
  7810. uint velocityIterations;
  7811. bool warmStarting;
  7812. /* readonly */
  7813. int weakRefs;
  7814. };
  7815. class Plane
  7816. {
  7817. // Methods:
  7818. void Define(const Vector3&, const Vector3&);
  7819. void Define(const Vector3&, const Vector3&, const Vector3&);
  7820. void Define(const Vector4&);
  7821. float Distance(const Vector3&) const;
  7822. Vector3 Project(const Vector3&) const;
  7823. Vector3 Reflect(const Vector3&) const;
  7824. Vector4 ToVector4() const;
  7825. void Transform(const Matrix3&);
  7826. void Transform(const Matrix3x4&);
  7827. void Transform(const Matrix4&);
  7828. Plane Transformed(const Matrix3&) const;
  7829. Plane Transformed(const Matrix3x4&) const;
  7830. Plane Transformed(const Matrix4&) const;
  7831. // Properties:
  7832. Vector3 absNormal;
  7833. float d;
  7834. Vector3 normal;
  7835. /* readonly */
  7836. Matrix3x4 reflectionMatrix;
  7837. };
  7838. class Polyhedron
  7839. {
  7840. // Methods:
  7841. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7842. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7843. void AddFace(const Array<Vector3>);
  7844. void Clear();
  7845. void Clip(const BoundingBox&);
  7846. void Clip(const Frustum&);
  7847. void Define(const BoundingBox&);
  7848. void Define(const Frustum&);
  7849. void Transform(const Matrix3&);
  7850. void Transform(const Matrix3x4&);
  7851. Polyhedron Transformed(const Matrix3&) const;
  7852. Polyhedron Transformed(const Matrix3x4&) const;
  7853. // Properties:
  7854. /* readonly */
  7855. Array<Array<Vector3>> face;
  7856. /* readonly */
  7857. uint numFaces;
  7858. };
  7859. class PropertySet2D
  7860. {
  7861. // Methods:
  7862. bool HasProperty(const String&) const;
  7863. const String& GetProperty(const String&) const;
  7864. // Properties:
  7865. /* readonly */
  7866. int refs;
  7867. /* readonly */
  7868. int weakRefs;
  7869. };
  7870. class Quaternion
  7871. {
  7872. // Methods:
  7873. Quaternion Conjugate() const;
  7874. float DotProduct(const Quaternion&) const;
  7875. bool Equals(const Quaternion&) const;
  7876. void FromAngleAxis(float, const Vector3&);
  7877. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7878. void FromEulerAngles(float, float, float);
  7879. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7880. void FromRotationMatrix(const Matrix3&);
  7881. void FromRotationTo(const Vector3&, const Vector3&);
  7882. Quaternion Inverse() const;
  7883. bool IsNaN() const;
  7884. float LengthSquared() const;
  7885. Quaternion Nlerp(Quaternion, float, bool) const;
  7886. void Normalize();
  7887. Quaternion Normalized() const;
  7888. Quaternion Slerp(Quaternion, float) const;
  7889. String ToString() const;
  7890. // Properties:
  7891. /* readonly */
  7892. Vector3 eulerAngles;
  7893. /* readonly */
  7894. float pitch;
  7895. /* readonly */
  7896. float roll;
  7897. /* readonly */
  7898. Matrix3 rotationMatrix;
  7899. float w;
  7900. float x;
  7901. float y;
  7902. /* readonly */
  7903. float yaw;
  7904. float z;
  7905. };
  7906. class Ray
  7907. {
  7908. // Methods:
  7909. Vector3 ClosestPoint(const Ray&) const;
  7910. void Define(const Vector3&, const Vector3&);
  7911. float Distance(const Vector3&) const;
  7912. float HitDistance(const BoundingBox&) const;
  7913. float HitDistance(const Frustum&, bool = true) const;
  7914. float HitDistance(const Plane&) const;
  7915. float HitDistance(const Sphere&) const;
  7916. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7917. Vector3 Project(const Vector3&) const;
  7918. Ray Transformed(const Matrix3x4&) const;
  7919. // Properties:
  7920. Vector3 direction;
  7921. Vector3 origin;
  7922. };
  7923. class RayQueryResult
  7924. {
  7925. // Properties:
  7926. float distance;
  7927. /* readonly */
  7928. Drawable drawable;
  7929. /* readonly */
  7930. Node node;
  7931. Vector3 normal;
  7932. Vector3 position;
  7933. uint subObject;
  7934. Vector2 textureUV;
  7935. };
  7936. class Rect
  7937. {
  7938. // Methods:
  7939. void Clear();
  7940. void Clip(const Rect&);
  7941. void Define(const Vector2&);
  7942. void Define(const Vector2&, const Vector2&);
  7943. bool Defined() const;
  7944. bool Equals(const Rect&) const;
  7945. Intersection IsInside(const Vector2&) const;
  7946. void Merge(const Rect&);
  7947. void Merge(const Vector2&);
  7948. Vector4 ToVector4() const;
  7949. // Properties:
  7950. float bottom;
  7951. /* readonly */
  7952. Vector2 center;
  7953. /* readonly */
  7954. Vector2 halfSize;
  7955. float left;
  7956. Vector2 max;
  7957. Vector2 min;
  7958. float right;
  7959. /* readonly */
  7960. Vector2 size;
  7961. float top;
  7962. };
  7963. class RefCounted
  7964. {
  7965. // Properties:
  7966. /* readonly */
  7967. int refs;
  7968. /* readonly */
  7969. int weakRefs;
  7970. };
  7971. class RenderPath
  7972. {
  7973. // Methods:
  7974. void AddCommand(const RenderPathCommand&);
  7975. void AddRenderTarget(const RenderTargetInfo&);
  7976. bool Append(XMLFile);
  7977. RenderPath Clone();
  7978. void InsertCommand(uint, const RenderPathCommand&);
  7979. bool Load(XMLFile);
  7980. void RemoveCommand(uint);
  7981. void RemoveCommands(const String&);
  7982. void RemoveRenderTarget(const String&);
  7983. void RemoveRenderTarget(uint);
  7984. void RemoveRenderTargts(const String&);
  7985. void SetEnabled(const String&, bool);
  7986. void ToggleEnabled(const String&);
  7987. // Properties:
  7988. Array<RenderPathCommand> commands;
  7989. /* readonly */
  7990. uint numCommands;
  7991. /* readonly */
  7992. uint numRenderTargets;
  7993. /* readonly */
  7994. int refs;
  7995. Array<RenderTargetInfo> renderTargets;
  7996. Array<Variant> shaderParameters;
  7997. /* readonly */
  7998. int weakRefs;
  7999. };
  8000. class RenderPathCommand
  8001. {
  8002. // Methods:
  8003. void RemoveShaderParameter(const String&);
  8004. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8005. // Properties:
  8006. BlendMode blendMode;
  8007. Color clearColor;
  8008. float clearDepth;
  8009. uint clearFlags;
  8010. uint clearStencil;
  8011. String depthStencilName;
  8012. bool enabled;
  8013. bool markToStencil;
  8014. String metadata;
  8015. uint numOutputs;
  8016. Array<CubeMapFace> outputFaces;
  8017. Array<String> outputNames;
  8018. String pass;
  8019. String pixelShaderDefines;
  8020. String pixelShaderName;
  8021. Array<Variant> shaderParameters;
  8022. RenderCommandSortMode sortMode;
  8023. String tag;
  8024. Array<String> textureNames;
  8025. RenderCommandType type;
  8026. bool useFogColor;
  8027. bool useLitBase;
  8028. bool vertexLights;
  8029. String vertexShaderDefines;
  8030. String vertexShaderName;
  8031. };
  8032. class RenderSurface
  8033. {
  8034. // Methods:
  8035. void QueueUpdate();
  8036. // Properties:
  8037. /* readonly */
  8038. int height;
  8039. RenderSurface linkedDepthStencil;
  8040. RenderSurface linkedRenderTarget;
  8041. uint numViewports;
  8042. /* readonly */
  8043. Texture parentTexture;
  8044. RenderSurfaceUpdateMode updateMode;
  8045. /* readonly */
  8046. TextureUsage usage;
  8047. Array<Viewport> viewports;
  8048. /* readonly */
  8049. int width;
  8050. };
  8051. class RenderTargetInfo
  8052. {
  8053. // Properties:
  8054. bool cubemap;
  8055. bool enabled;
  8056. bool filtered;
  8057. uint format;
  8058. String name;
  8059. bool persistent;
  8060. bool sRGB;
  8061. Vector2 size;
  8062. RenderTargetSizeMode sizeMode;
  8063. String tag;
  8064. };
  8065. class Renderer
  8066. {
  8067. // Methods:
  8068. void DrawDebugGeometry(bool) const;
  8069. bool HasSubscribedToEvent(Object, const String&);
  8070. bool HasSubscribedToEvent(const String&);
  8071. void ReloadShaders() const;
  8072. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8073. void SetDefaultRenderPath(XMLFile);
  8074. void SetVSMShadowParameters(float, float);
  8075. // Properties:
  8076. /* readonly */
  8077. String category;
  8078. /* readonly */
  8079. Material defaultLightRamp;
  8080. /* readonly */
  8081. Material defaultLightSpot;
  8082. /* readonly */
  8083. Material defaultMaterial;
  8084. RenderPath defaultRenderPath;
  8085. Technique defaultTechnique;
  8086. /* readonly */
  8087. Zone defaultZone;
  8088. bool drawShadows;
  8089. bool dynamicInstancing;
  8090. bool hdrRendering;
  8091. int materialQuality;
  8092. int maxOccluderTriangles;
  8093. int maxShadowMaps;
  8094. int maxSortedInstances;
  8095. int minInstances;
  8096. float mobileNormalOffsetMul;
  8097. float mobileShadowBiasAdd;
  8098. float mobileShadowBiasMul;
  8099. /* readonly */
  8100. uint numBatches;
  8101. /* readonly */
  8102. Array<uint> numGeometries;
  8103. /* readonly */
  8104. Array<uint> numLights;
  8105. /* readonly */
  8106. Array<uint> numOccluders;
  8107. /* readonly */
  8108. uint numPrimitives;
  8109. /* readonly */
  8110. Array<uint> numShadowMaps;
  8111. uint numViewports;
  8112. /* readonly */
  8113. uint numViews;
  8114. float occluderSizeThreshold;
  8115. int occlusionBufferSize;
  8116. /* readonly */
  8117. int refs;
  8118. bool reuseShadowMaps;
  8119. int shadowMapSize;
  8120. ShadowQuality shadowQuality;
  8121. float shadowSoftness;
  8122. bool specularLighting;
  8123. int textureAnisotropy;
  8124. TextureFilterMode textureFilterMode;
  8125. int textureQuality;
  8126. bool threadedOcclusion;
  8127. /* readonly */
  8128. StringHash type;
  8129. /* readonly */
  8130. String typeName;
  8131. Array<Viewport> viewports;
  8132. Vector2 vsmShadowParameters;
  8133. /* readonly */
  8134. int weakRefs;
  8135. };
  8136. class Resource
  8137. {
  8138. // Methods:
  8139. bool HasSubscribedToEvent(Object, const String&);
  8140. bool HasSubscribedToEvent(const String&);
  8141. bool Load(File);
  8142. bool Load(VectorBuffer&);
  8143. bool Save(File) const;
  8144. bool Save(VectorBuffer&) const;
  8145. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8146. // Properties:
  8147. /* readonly */
  8148. String category;
  8149. /* readonly */
  8150. uint memoryUse;
  8151. String name;
  8152. /* readonly */
  8153. int refs;
  8154. /* readonly */
  8155. StringHash type;
  8156. /* readonly */
  8157. String typeName;
  8158. /* readonly */
  8159. uint useTimer;
  8160. /* readonly */
  8161. int weakRefs;
  8162. };
  8163. class ResourceCache
  8164. {
  8165. // Methods:
  8166. bool AddManualResource(Resource);
  8167. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8168. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8169. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8170. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8171. bool Exists(const String&) const;
  8172. Resource GetExistingResource(StringHash, const String&);
  8173. Resource GetExistingResource(const String&, const String&);
  8174. File GetFile(const String&);
  8175. String GetPreferredResourceDir(const String&) const;
  8176. Resource GetResource(StringHash, const String&, bool = true);
  8177. Resource GetResource(const String&, const String&, bool = true);
  8178. String GetResourceFileName(const String&) const;
  8179. bool HasSubscribedToEvent(Object, const String&);
  8180. bool HasSubscribedToEvent(const String&);
  8181. void ReleaseAllResources(bool = false);
  8182. void ReleaseResource(const String&, const String&, bool = false);
  8183. void ReleaseResources(StringHash, bool = false);
  8184. void ReleaseResources(const String&, bool = false);
  8185. void ReleaseResources(const String&, const String&, bool = false);
  8186. bool ReloadResource(Resource);
  8187. void ReloadResourceWithDependencies(const String&);
  8188. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8189. void RemovePackageFile(const String&, bool = true, bool = false);
  8190. void RemoveResourceDir(const String&);
  8191. String SanitateResourceDirName(const String&) const;
  8192. String SanitateResourceName(const String&) const;
  8193. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8194. // Properties:
  8195. bool autoReloadResources;
  8196. /* readonly */
  8197. String category;
  8198. int finishBackgroundResourcesMs;
  8199. Array<uint64> memoryBudget;
  8200. /* readonly */
  8201. Array<uint64> memoryUse;
  8202. /* readonly */
  8203. uint numBackgroundLoadResources;
  8204. /* readonly */
  8205. Array<PackageFile> packageFiles;
  8206. /* readonly */
  8207. int refs;
  8208. /* readonly */
  8209. Array<String> resourceDirs;
  8210. bool returnFailedResources;
  8211. /* readonly */
  8212. bool seachPackagesFirst;
  8213. /* writeonly */
  8214. bool searchPackagesFirst;
  8215. /* readonly */
  8216. uint64 totalMemoryUse;
  8217. /* readonly */
  8218. StringHash type;
  8219. /* readonly */
  8220. String typeName;
  8221. /* readonly */
  8222. int weakRefs;
  8223. };
  8224. class ResourceRef
  8225. {
  8226. // Properties:
  8227. String name;
  8228. StringHash type;
  8229. };
  8230. class ResourceRefList
  8231. {
  8232. // Methods:
  8233. void Resize(uint);
  8234. // Properties:
  8235. /* readonly */
  8236. bool empty;
  8237. /* readonly */
  8238. uint length;
  8239. Array<String> names;
  8240. StringHash type;
  8241. };
  8242. class RigidBody
  8243. {
  8244. // Methods:
  8245. void Activate();
  8246. void ApplyAttributes();
  8247. void ApplyForce(const Vector3&);
  8248. void ApplyForce(const Vector3&, const Vector3&);
  8249. void ApplyImpulse(const Vector3&);
  8250. void ApplyImpulse(const Vector3&, const Vector3&);
  8251. void ApplyTorque(const Vector3&);
  8252. void ApplyTorqueImpulse(const Vector3&);
  8253. void DisableMassUpdate();
  8254. void DrawDebugGeometry(DebugRenderer, bool);
  8255. void EnableMassUpdate();
  8256. Variant GetAttribute(const String&) const;
  8257. ValueAnimation GetAttributeAnimation(const String&) const;
  8258. float GetAttributeAnimationSpeed(const String&) const;
  8259. float GetAttributeAnimationTime(const String&) const;
  8260. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8261. Variant GetAttributeDefault(const String&) const;
  8262. bool GetInterceptNetworkUpdate(const String&) const;
  8263. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8264. bool HasSubscribedToEvent(Object, const String&);
  8265. bool HasSubscribedToEvent(const String&);
  8266. bool Load(File, bool = false);
  8267. bool Load(VectorBuffer&, bool = false);
  8268. bool LoadJSON(const JSONValue&, bool = false);
  8269. bool LoadXML(const XMLElement&, bool = false);
  8270. void MarkNetworkUpdate() const;
  8271. void ReAddBodyToWorld();
  8272. void Remove();
  8273. void RemoveAttributeAnimation(const String&);
  8274. void RemoveInstanceDefault();
  8275. void RemoveObjectAnimation();
  8276. void ResetForces();
  8277. void ResetToDefault();
  8278. bool Save(File) const;
  8279. bool Save(VectorBuffer&) const;
  8280. bool SaveJSON(JSONValue&) const;
  8281. bool SaveXML(XMLElement&) const;
  8282. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8283. void SetAnimationTime(float);
  8284. bool SetAttribute(const String&, const Variant&);
  8285. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8286. void SetAttributeAnimationSpeed(const String&, float);
  8287. void SetAttributeAnimationTime(const String&, float);
  8288. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8289. void SetCollisionLayerAndMask(uint, uint);
  8290. void SetInterceptNetworkUpdate(const String&, bool);
  8291. void SetTransform(const Vector3&, const Quaternion&);
  8292. // Properties:
  8293. /* readonly */
  8294. bool active;
  8295. float angularDamping;
  8296. Vector3 angularFactor;
  8297. float angularRestThreshold;
  8298. Vector3 angularVelocity;
  8299. bool animationEnabled;
  8300. Vector3 anisotropicFriction;
  8301. /* readonly */
  8302. Array<Variant> attributeDefaults;
  8303. /* readonly */
  8304. Array<AttributeInfo> attributeInfos;
  8305. Array<Variant> attributes;
  8306. /* readonly */
  8307. String category;
  8308. float ccdMotionThreshold;
  8309. float ccdRadius;
  8310. /* readonly */
  8311. Vector3 centerOfMass;
  8312. /* readonly */
  8313. Array<RigidBody> collidingBodies;
  8314. CollisionEventMode collisionEventMode;
  8315. uint collisionLayer;
  8316. uint collisionMask;
  8317. float contactProcessingThreshold;
  8318. bool enabled;
  8319. /* readonly */
  8320. bool enabledEffective;
  8321. float friction;
  8322. Vector3 gravityOverride;
  8323. /* readonly */
  8324. uint id;
  8325. bool kinematic;
  8326. float linearDamping;
  8327. Vector3 linearFactor;
  8328. float linearRestThreshold;
  8329. Vector3 linearVelocity;
  8330. float mass;
  8331. /* readonly */
  8332. Node node;
  8333. /* readonly */
  8334. uint numAttributes;
  8335. ObjectAnimation objectAnimation;
  8336. Vector3 position;
  8337. /* readonly */
  8338. int refs;
  8339. float restitution;
  8340. float rollingFriction;
  8341. Quaternion rotation;
  8342. bool temporary;
  8343. bool trigger;
  8344. /* readonly */
  8345. StringHash type;
  8346. /* readonly */
  8347. String typeName;
  8348. bool useGravity;
  8349. /* readonly */
  8350. int weakRefs;
  8351. };
  8352. class RigidBody2D
  8353. {
  8354. // Methods:
  8355. void ApplyAngularImpulse(float, bool);
  8356. void ApplyAttributes();
  8357. void ApplyForce(const Vector2&, const Vector2&, bool);
  8358. void ApplyForceToCenter(const Vector2&, bool);
  8359. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8360. void ApplyTorque(float, bool);
  8361. void DrawDebugGeometry(DebugRenderer, bool);
  8362. Variant GetAttribute(const String&) const;
  8363. ValueAnimation GetAttributeAnimation(const String&) const;
  8364. float GetAttributeAnimationSpeed(const String&) const;
  8365. float GetAttributeAnimationTime(const String&) const;
  8366. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8367. Variant GetAttributeDefault(const String&) const;
  8368. bool GetInterceptNetworkUpdate(const String&) const;
  8369. bool HasSubscribedToEvent(Object, const String&);
  8370. bool HasSubscribedToEvent(const String&);
  8371. bool Load(File, bool = false);
  8372. bool Load(VectorBuffer&, bool = false);
  8373. bool LoadJSON(const JSONValue&, bool = false);
  8374. bool LoadXML(const XMLElement&, bool = false);
  8375. void MarkNetworkUpdate() const;
  8376. void Remove();
  8377. void RemoveAttributeAnimation(const String&);
  8378. void RemoveInstanceDefault();
  8379. void RemoveObjectAnimation();
  8380. void ResetToDefault();
  8381. bool Save(File) const;
  8382. bool Save(VectorBuffer&) const;
  8383. bool SaveJSON(JSONValue&) const;
  8384. bool SaveXML(XMLElement&) const;
  8385. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8386. void SetAnimationTime(float);
  8387. bool SetAttribute(const String&, const Variant&);
  8388. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8389. void SetAttributeAnimationSpeed(const String&, float);
  8390. void SetAttributeAnimationTime(const String&, float);
  8391. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8392. void SetInterceptNetworkUpdate(const String&, bool);
  8393. // Properties:
  8394. bool allowSleep;
  8395. float angularDamping;
  8396. bool animationEnabled;
  8397. /* readonly */
  8398. Array<Variant> attributeDefaults;
  8399. /* readonly */
  8400. Array<AttributeInfo> attributeInfos;
  8401. Array<Variant> attributes;
  8402. bool awake;
  8403. BodyType2D bodyType;
  8404. bool bullet;
  8405. /* readonly */
  8406. String category;
  8407. bool enabled;
  8408. /* readonly */
  8409. bool enabledEffective;
  8410. bool fixedRotation;
  8411. float gravityScale;
  8412. /* readonly */
  8413. uint id;
  8414. float inertia;
  8415. float linearDamping;
  8416. Vector2 linearVelocity;
  8417. float mass;
  8418. Vector2 massCenter;
  8419. /* readonly */
  8420. Node node;
  8421. /* readonly */
  8422. uint numAttributes;
  8423. ObjectAnimation objectAnimation;
  8424. /* readonly */
  8425. int refs;
  8426. bool temporary;
  8427. /* readonly */
  8428. StringHash type;
  8429. /* readonly */
  8430. String typeName;
  8431. bool useFixtureMass;
  8432. /* readonly */
  8433. int weakRefs;
  8434. };
  8435. class Scene
  8436. {
  8437. // Methods:
  8438. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8439. void AddRequiredPackageFile(PackageFile);
  8440. void AddTag(const String&);
  8441. void AddTags(const String&, int8 = ';');
  8442. void ApplyAttributes();
  8443. void Clear(bool = true, bool = true);
  8444. void ClearRequiredPackageFiles();
  8445. Component CloneComponent(Component, CreateMode, uint = 0);
  8446. Component CloneComponent(Component, uint = 0);
  8447. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8448. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8449. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8450. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8451. Variant GetAttribute(const String&) const;
  8452. ValueAnimation GetAttributeAnimation(const String&) const;
  8453. float GetAttributeAnimationSpeed(const String&) const;
  8454. float GetAttributeAnimationTime(const String&) const;
  8455. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8456. Variant GetAttributeDefault(const String&) const;
  8457. Node GetChild(const String&, bool = false) const;
  8458. Array<Node> GetChildren(bool = false) const;
  8459. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8460. Array<Node> GetChildrenWithScript(bool = false) const;
  8461. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8462. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8463. Component GetComponent(const String&, bool = false) const;
  8464. Component GetComponent(uint) const;
  8465. Array<Component> GetComponents() const;
  8466. Array<Component> GetComponents(const String&, bool = false) const;
  8467. bool GetInterceptNetworkUpdate(const String&) const;
  8468. Node GetNode(uint) const;
  8469. Array<Node> GetNodesWithTag(const String&) const;
  8470. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8471. Component GetParentComponent(const String&, bool = false) const;
  8472. ScriptObject GetScriptObject() const;
  8473. ScriptObject GetScriptObject(const String&) const;
  8474. bool HasComponent(const String&) const;
  8475. bool HasSubscribedToEvent(Object, const String&);
  8476. bool HasSubscribedToEvent(const String&);
  8477. bool HasTag(const String&);
  8478. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8479. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8480. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8481. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8482. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8483. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8484. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8485. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8486. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8487. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8488. bool Load(File, bool = false);
  8489. bool Load(VectorBuffer&, bool = false);
  8490. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8491. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8492. bool LoadJSON(File);
  8493. bool LoadJSON(VectorBuffer&);
  8494. bool LoadJSON(const JSONValue&, bool = false);
  8495. bool LoadXML(File);
  8496. bool LoadXML(VectorBuffer&);
  8497. bool LoadXML(const XMLElement&, bool = false);
  8498. Vector3 LocalToWorld(const Vector3&) const;
  8499. Vector3 LocalToWorld(const Vector4&) const;
  8500. Vector2 LocalToWorld2D(const Vector2&) const;
  8501. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8502. void MarkNetworkUpdate() const;
  8503. void Pitch(float, TransformSpace = TS_LOCAL);
  8504. void RegisterVar(const String&);
  8505. void Remove();
  8506. void RemoveAllChildren();
  8507. void RemoveAllComponents();
  8508. void RemoveAllTags();
  8509. void RemoveAttributeAnimation(const String&);
  8510. void RemoveChild(Node);
  8511. void RemoveChildren(bool, bool, bool);
  8512. void RemoveComponent(Component);
  8513. void RemoveComponent(const String&);
  8514. void RemoveComponents(bool, bool);
  8515. void RemoveComponents(const String&);
  8516. void RemoveInstanceDefault();
  8517. void RemoveObjectAnimation();
  8518. bool RemoveTag(const String&);
  8519. void ResetToDefault();
  8520. void Roll(float, TransformSpace = TS_LOCAL);
  8521. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8522. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8523. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8524. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8525. bool Save(File) const;
  8526. bool Save(VectorBuffer&) const;
  8527. bool SaveJSON(File, const String& = "\t");
  8528. bool SaveJSON(JSONValue&) const;
  8529. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8530. bool SaveXML(File, const String& = "\t");
  8531. bool SaveXML(VectorBuffer&, const String& = "\t");
  8532. bool SaveXML(XMLElement&) const;
  8533. void Scale(const Vector3&);
  8534. void Scale(float);
  8535. void Scale2D(const Vector2&);
  8536. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8537. void SetAnimationTime(float);
  8538. bool SetAttribute(const String&, const Variant&);
  8539. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8540. void SetAttributeAnimationSpeed(const String&, float);
  8541. void SetAttributeAnimationTime(const String&, float);
  8542. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8543. void SetInterceptNetworkUpdate(const String&, bool);
  8544. void SetPosition2D(float, float);
  8545. void SetScale(float);
  8546. void SetScale2D(float, float);
  8547. void SetTransform(const Vector3&, const Quaternion&);
  8548. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8549. void SetTransform(const Vector3&, const Quaternion&, float);
  8550. void SetTransform2D(const Vector2&, float);
  8551. void SetTransform2D(const Vector2&, float, const Vector2&);
  8552. void SetTransform2D(const Vector2&, float, float);
  8553. void SetWorldTransform(const Vector3&, const Quaternion&);
  8554. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8555. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8556. void SetWorldTransform2D(const Vector2&, float);
  8557. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8558. void SetWorldTransform2D(const Vector2&, float, float);
  8559. void StopAsyncLoading();
  8560. const String& GetVarName(StringHash) const;
  8561. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8562. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8563. void UnregisterAllVars(const String&);
  8564. void UnregisterVar(const String&);
  8565. void Update(float);
  8566. Vector3 WorldToLocal(const Vector3&) const;
  8567. Vector3 WorldToLocal(const Vector4&) const;
  8568. Vector2 WorldToLocal2D(const Vector2&) const;
  8569. void Yaw(float, TransformSpace = TS_LOCAL);
  8570. // Properties:
  8571. bool animationEnabled;
  8572. /* readonly */
  8573. LoadMode asyncLoadMode;
  8574. /* readonly */
  8575. bool asyncLoading;
  8576. int asyncLoadingMs;
  8577. /* readonly */
  8578. float asyncProgress;
  8579. /* readonly */
  8580. Array<Variant> attributeDefaults;
  8581. /* readonly */
  8582. Array<AttributeInfo> attributeInfos;
  8583. Array<Variant> attributes;
  8584. /* readonly */
  8585. String category;
  8586. /* readonly */
  8587. uint checksum;
  8588. /* readonly */
  8589. Array<Node> children;
  8590. /* readonly */
  8591. Array<Component> components;
  8592. /* readonly */
  8593. DebugRenderer debugRenderer;
  8594. Vector3 direction;
  8595. float elapsedTime;
  8596. /* readonly */
  8597. String fileName;
  8598. /* readonly */
  8599. uint id;
  8600. String name;
  8601. /* readonly */
  8602. uint numAllChildren;
  8603. /* readonly */
  8604. uint numAttributes;
  8605. /* readonly */
  8606. uint numChildren;
  8607. /* readonly */
  8608. uint numComponents;
  8609. ObjectAnimation objectAnimation;
  8610. /* readonly */
  8611. Octree octree;
  8612. Node parent;
  8613. /* readonly */
  8614. PhysicsWorld physicsWorld;
  8615. /* readonly */
  8616. PhysicsWorld2D physicsWorld2D;
  8617. Vector3 position;
  8618. Vector2 position2D;
  8619. /* readonly */
  8620. int refs;
  8621. /* readonly */
  8622. Array<PackageFile> requiredPackageFiles;
  8623. /* readonly */
  8624. Vector3 right;
  8625. Quaternion rotation;
  8626. float rotation2D;
  8627. Vector3 scale;
  8628. Vector2 scale2D;
  8629. /* readonly */
  8630. ScriptObject scriptObject;
  8631. float smoothingConstant;
  8632. float snapThreshold;
  8633. /* readonly */
  8634. Array<String> tags;
  8635. bool temporary;
  8636. float timeScale;
  8637. /* readonly */
  8638. Matrix3x4 transform;
  8639. /* readonly */
  8640. StringHash type;
  8641. /* readonly */
  8642. String typeName;
  8643. /* readonly */
  8644. Vector3 up;
  8645. bool updateEnabled;
  8646. /* readonly */
  8647. VariantMap vars;
  8648. /* readonly */
  8649. int weakRefs;
  8650. Vector3 worldDirection;
  8651. Vector3 worldPosition;
  8652. Vector2 worldPosition2D;
  8653. /* readonly */
  8654. Vector3 worldRight;
  8655. Quaternion worldRotation;
  8656. float worldRotation2D;
  8657. Vector3 worldScale;
  8658. Vector2 worldScale2D;
  8659. /* readonly */
  8660. Matrix3x4 worldTransform;
  8661. /* readonly */
  8662. Vector3 worldUp;
  8663. };
  8664. class Script
  8665. {
  8666. // Methods:
  8667. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8668. bool Execute(const String&);
  8669. bool HasSubscribedToEvent(Object, const String&);
  8670. bool HasSubscribedToEvent(const String&);
  8671. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8672. // Properties:
  8673. /* readonly */
  8674. String category;
  8675. Scene defaultScene;
  8676. ScriptFile defaultScriptFile;
  8677. bool executeConsoleCommands;
  8678. /* readonly */
  8679. int refs;
  8680. /* readonly */
  8681. StringHash type;
  8682. /* readonly */
  8683. String typeName;
  8684. /* readonly */
  8685. int weakRefs;
  8686. };
  8687. class ScriptFile
  8688. {
  8689. // Methods:
  8690. void ClearDelayedExecute(const String& = String ( ));
  8691. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8692. bool Execute(const String&, const Array<Variant> = null);
  8693. bool HasSubscribedToEvent(Object, const String&);
  8694. bool HasSubscribedToEvent(const String&);
  8695. bool Load(File);
  8696. bool Load(VectorBuffer&);
  8697. bool Save(File) const;
  8698. bool Save(VectorBuffer&) const;
  8699. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8700. // Properties:
  8701. /* readonly */
  8702. String category;
  8703. /* readonly */
  8704. bool compiled;
  8705. /* readonly */
  8706. uint memoryUse;
  8707. String name;
  8708. /* readonly */
  8709. int refs;
  8710. /* readonly */
  8711. StringHash type;
  8712. /* readonly */
  8713. String typeName;
  8714. /* readonly */
  8715. uint useTimer;
  8716. /* readonly */
  8717. int weakRefs;
  8718. };
  8719. class ScriptInstance
  8720. {
  8721. // Methods:
  8722. void ApplyAttributes();
  8723. void ClearDelayedExecute(const String& = String ( ));
  8724. bool CreateObject(ScriptFile, const String&);
  8725. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8726. void DrawDebugGeometry(DebugRenderer, bool);
  8727. bool Execute(const String&, const Array<Variant> = null);
  8728. Variant GetAttribute(const String&) const;
  8729. ValueAnimation GetAttributeAnimation(const String&) const;
  8730. float GetAttributeAnimationSpeed(const String&) const;
  8731. float GetAttributeAnimationTime(const String&) const;
  8732. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8733. Variant GetAttributeDefault(const String&) const;
  8734. bool GetInterceptNetworkUpdate(const String&) const;
  8735. bool HasMethod(const String&) const;
  8736. bool HasSubscribedToEvent(Object, const String&);
  8737. bool HasSubscribedToEvent(const String&);
  8738. bool IsA(const String&) const;
  8739. bool Load(File, bool = false);
  8740. bool Load(VectorBuffer&, bool = false);
  8741. bool LoadJSON(const JSONValue&, bool = false);
  8742. bool LoadXML(const XMLElement&, bool = false);
  8743. void MarkNetworkUpdate() const;
  8744. void Remove();
  8745. void RemoveAttributeAnimation(const String&);
  8746. void RemoveInstanceDefault();
  8747. void RemoveObjectAnimation();
  8748. void ResetToDefault();
  8749. bool Save(File) const;
  8750. bool Save(VectorBuffer&) const;
  8751. bool SaveJSON(JSONValue&) const;
  8752. bool SaveXML(XMLElement&) const;
  8753. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8754. void SetAnimationTime(float);
  8755. bool SetAttribute(const String&, const Variant&);
  8756. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8757. void SetAttributeAnimationSpeed(const String&, float);
  8758. void SetAttributeAnimationTime(const String&, float);
  8759. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8760. void SetInterceptNetworkUpdate(const String&, bool);
  8761. // Properties:
  8762. bool animationEnabled;
  8763. /* readonly */
  8764. Array<Variant> attributeDefaults;
  8765. /* readonly */
  8766. Array<AttributeInfo> attributeInfos;
  8767. Array<Variant> attributes;
  8768. /* readonly */
  8769. String category;
  8770. String className;
  8771. bool enabled;
  8772. /* readonly */
  8773. bool enabledEffective;
  8774. /* readonly */
  8775. uint id;
  8776. /* readonly */
  8777. Node node;
  8778. /* readonly */
  8779. uint numAttributes;
  8780. ObjectAnimation objectAnimation;
  8781. /* readonly */
  8782. int refs;
  8783. ScriptFile scriptFile;
  8784. /* readonly */
  8785. ScriptObject scriptObject;
  8786. bool temporary;
  8787. /* readonly */
  8788. StringHash type;
  8789. /* readonly */
  8790. String typeName;
  8791. /* readonly */
  8792. int weakRefs;
  8793. };
  8794. class ScriptObject
  8795. {
  8796. };
  8797. class ScrollBar
  8798. {
  8799. // Methods:
  8800. void AddChild(UIElement);
  8801. void AddTag(const String&);
  8802. void AddTags(const String&, int8 = ';');
  8803. void ApplyAttributes();
  8804. void BringToFront();
  8805. void ChangeValue(float);
  8806. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8807. void DisableLayoutUpdate();
  8808. IntVector2 ElementToScreen(const IntVector2&);
  8809. void EnableLayoutUpdate();
  8810. uint FindChild(UIElement) const;
  8811. Variant GetAttribute(const String&) const;
  8812. ValueAnimation GetAttributeAnimation(const String&) const;
  8813. float GetAttributeAnimationSpeed(const String&) const;
  8814. float GetAttributeAnimationTime(const String&) const;
  8815. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8816. Variant GetAttributeDefault(const String&) const;
  8817. UIElement GetChild(const String&, bool = false) const;
  8818. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8819. Array<UIElement> GetChildren(bool = false) const;
  8820. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8821. UIElement GetElementEventSender() const;
  8822. bool GetInterceptNetworkUpdate(const String&) const;
  8823. uint GetNumChildren(bool) const;
  8824. bool HasSubscribedToEvent(Object, const String&);
  8825. bool HasSubscribedToEvent(const String&);
  8826. bool HasTag(const String&) const;
  8827. void InsertChild(uint, UIElement);
  8828. bool IsInside(IntVector2, bool);
  8829. bool IsInsideCombined(IntVector2, bool);
  8830. bool Load(File, bool = false);
  8831. bool Load(VectorBuffer&, bool = false);
  8832. bool LoadChildXML(XMLFile, XMLFile = null);
  8833. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8834. bool LoadJSON(const JSONValue&, bool = false);
  8835. bool LoadXML(File);
  8836. bool LoadXML(VectorBuffer&);
  8837. bool LoadXML(XMLFile, XMLFile);
  8838. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8839. bool LoadXML(const XMLElement&, bool = false);
  8840. void MarkNetworkUpdate() const;
  8841. void Remove();
  8842. void RemoveAllChildren();
  8843. void RemoveAllTags();
  8844. void RemoveAttributeAnimation(const String&);
  8845. void RemoveChild(UIElement, uint = 0);
  8846. void RemoveChild(uint);
  8847. void RemoveInstanceDefault();
  8848. void RemoveObjectAnimation();
  8849. bool RemoveTag(const String&);
  8850. void ResetDeepEnabled();
  8851. void ResetToDefault();
  8852. bool Save(File) const;
  8853. bool Save(VectorBuffer&) const;
  8854. bool SaveJSON(JSONValue&) const;
  8855. bool SaveXML(File, const String& = "\t");
  8856. bool SaveXML(VectorBuffer&, const String& = "\t");
  8857. bool SaveXML(XMLElement&) const;
  8858. IntVector2 ScreenToElement(const IntVector2&);
  8859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8860. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8861. void SetAnimationTime(float);
  8862. bool SetAttribute(const String&, const Variant&);
  8863. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8864. void SetAttributeAnimationSpeed(const String&, float);
  8865. void SetAttributeAnimationTime(const String&, float);
  8866. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8867. void SetDeepEnabled(bool);
  8868. void SetEnabledRecursive(bool);
  8869. void SetFixedHeight(int);
  8870. void SetFixedSize(int, int);
  8871. void SetFixedWidth(int);
  8872. void SetInterceptNetworkUpdate(const String&, bool);
  8873. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8874. void SetMaxSize(int, int);
  8875. void SetMinSize(int, int);
  8876. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8877. void SetPosition(int, int);
  8878. void SetSize(int, int);
  8879. bool SetStyle(const String&, XMLFile = null);
  8880. bool SetStyle(const XMLElement&);
  8881. bool SetStyleAuto(XMLFile = null);
  8882. void StepBack();
  8883. void StepForward();
  8884. void UpdateLayout();
  8885. const Variant& GetVar(const StringHash&);
  8886. // Properties:
  8887. bool animationEnabled;
  8888. /* readonly */
  8889. Array<Variant> attributeDefaults;
  8890. /* readonly */
  8891. Array<AttributeInfo> attributeInfos;
  8892. Array<Variant> attributes;
  8893. /* readonly */
  8894. Button backButton;
  8895. bool bringToBack;
  8896. bool bringToFront;
  8897. /* readonly */
  8898. String category;
  8899. /* readonly */
  8900. IntVector2 childOffset;
  8901. /* readonly */
  8902. Array<UIElement> children;
  8903. IntRect clipBorder;
  8904. bool clipChildren;
  8905. /* writeonly */
  8906. Color color;
  8907. /* readonly */
  8908. bool colorGradient;
  8909. Array<Color> colors;
  8910. /* readonly */
  8911. IntRect combinedScreenRect;
  8912. XMLFile defaultStyle;
  8913. /* readonly */
  8914. float derivedOpacity;
  8915. /* readonly */
  8916. uint dragButtonCombo;
  8917. /* readonly */
  8918. int dragButtonCount;
  8919. uint dragDropMode;
  8920. bool editable;
  8921. /* readonly */
  8922. float effectiveScrollStep;
  8923. bool elementEventSender;
  8924. bool enabled;
  8925. /* readonly */
  8926. bool enabledSelf;
  8927. /* readonly */
  8928. bool fixedHeight;
  8929. /* readonly */
  8930. bool fixedSize;
  8931. /* readonly */
  8932. bool fixedWidth;
  8933. bool focus;
  8934. FocusMode focusMode;
  8935. /* readonly */
  8936. Button forwardButton;
  8937. int height;
  8938. HorizontalAlignment horizontalAlignment;
  8939. /* readonly */
  8940. bool hovering;
  8941. int indent;
  8942. int indentSpacing;
  8943. /* readonly */
  8944. int indentWidth;
  8945. bool internal;
  8946. IntRect layoutBorder;
  8947. Vector2 layoutFlexScale;
  8948. LayoutMode layoutMode;
  8949. int layoutSpacing;
  8950. int maxHeight;
  8951. IntVector2 maxSize;
  8952. int maxWidth;
  8953. int minHeight;
  8954. IntVector2 minSize;
  8955. int minWidth;
  8956. String name;
  8957. /* readonly */
  8958. uint numAllChildren;
  8959. /* readonly */
  8960. uint numAttributes;
  8961. /* readonly */
  8962. uint numChildren;
  8963. ObjectAnimation objectAnimation;
  8964. float opacity;
  8965. Orientation orientation;
  8966. UIElement parent;
  8967. IntVector2 position;
  8968. int priority;
  8969. float range;
  8970. /* readonly */
  8971. int refs;
  8972. /* readonly */
  8973. UIElement root;
  8974. /* readonly */
  8975. IntVector2 screenPosition;
  8976. float scrollStep;
  8977. bool selected;
  8978. IntVector2 size;
  8979. /* readonly */
  8980. Slider slider;
  8981. bool sortChildren;
  8982. float stepFactor;
  8983. String style;
  8984. /* readonly */
  8985. Array<String> tags;
  8986. bool temporary;
  8987. TraversalMode traversalMode;
  8988. /* readonly */
  8989. StringHash type;
  8990. /* readonly */
  8991. String typeName;
  8992. bool useDerivedOpacity;
  8993. float value;
  8994. /* readonly */
  8995. VariantMap vars;
  8996. VerticalAlignment verticalAlignment;
  8997. bool visible;
  8998. /* readonly */
  8999. bool visibleEffective;
  9000. /* readonly */
  9001. int weakRefs;
  9002. int width;
  9003. };
  9004. class ScrollView
  9005. {
  9006. // Methods:
  9007. void AddChild(UIElement);
  9008. void AddTag(const String&);
  9009. void AddTags(const String&, int8 = ';');
  9010. void ApplyAttributes();
  9011. void BringToFront();
  9012. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9013. void DisableLayoutUpdate();
  9014. IntVector2 ElementToScreen(const IntVector2&);
  9015. void EnableLayoutUpdate();
  9016. uint FindChild(UIElement) const;
  9017. Variant GetAttribute(const String&) const;
  9018. ValueAnimation GetAttributeAnimation(const String&) const;
  9019. float GetAttributeAnimationSpeed(const String&) const;
  9020. float GetAttributeAnimationTime(const String&) const;
  9021. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9022. Variant GetAttributeDefault(const String&) const;
  9023. UIElement GetChild(const String&, bool = false) const;
  9024. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9025. Array<UIElement> GetChildren(bool = false) const;
  9026. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9027. UIElement GetElementEventSender() const;
  9028. bool GetInterceptNetworkUpdate(const String&) const;
  9029. uint GetNumChildren(bool) const;
  9030. bool HasSubscribedToEvent(Object, const String&);
  9031. bool HasSubscribedToEvent(const String&);
  9032. bool HasTag(const String&) const;
  9033. void InsertChild(uint, UIElement);
  9034. bool IsInside(IntVector2, bool);
  9035. bool IsInsideCombined(IntVector2, bool);
  9036. bool Load(File, bool = false);
  9037. bool Load(VectorBuffer&, bool = false);
  9038. bool LoadChildXML(XMLFile, XMLFile = null);
  9039. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9040. bool LoadJSON(const JSONValue&, bool = false);
  9041. bool LoadXML(File);
  9042. bool LoadXML(VectorBuffer&);
  9043. bool LoadXML(XMLFile, XMLFile);
  9044. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9045. bool LoadXML(const XMLElement&, bool = false);
  9046. void MarkNetworkUpdate() const;
  9047. void Remove();
  9048. void RemoveAllChildren();
  9049. void RemoveAllTags();
  9050. void RemoveAttributeAnimation(const String&);
  9051. void RemoveChild(UIElement, uint = 0);
  9052. void RemoveChild(uint);
  9053. void RemoveInstanceDefault();
  9054. void RemoveObjectAnimation();
  9055. bool RemoveTag(const String&);
  9056. void ResetDeepEnabled();
  9057. void ResetToDefault();
  9058. bool Save(File) const;
  9059. bool Save(VectorBuffer&) const;
  9060. bool SaveJSON(JSONValue&) const;
  9061. bool SaveXML(File, const String& = "\t");
  9062. bool SaveXML(VectorBuffer&, const String& = "\t");
  9063. bool SaveXML(XMLElement&) const;
  9064. IntVector2 ScreenToElement(const IntVector2&);
  9065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9066. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9067. void SetAnimationTime(float);
  9068. bool SetAttribute(const String&, const Variant&);
  9069. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9070. void SetAttributeAnimationSpeed(const String&, float);
  9071. void SetAttributeAnimationTime(const String&, float);
  9072. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9073. void SetDeepEnabled(bool);
  9074. void SetEnabledRecursive(bool);
  9075. void SetFixedHeight(int);
  9076. void SetFixedSize(int, int);
  9077. void SetFixedWidth(int);
  9078. void SetInterceptNetworkUpdate(const String&, bool);
  9079. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9080. void SetMaxSize(int, int);
  9081. void SetMinSize(int, int);
  9082. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9083. void SetPosition(int, int);
  9084. void SetScrollBarsVisible(bool, bool);
  9085. void SetSize(int, int);
  9086. bool SetStyle(const String&, XMLFile = null);
  9087. bool SetStyle(const XMLElement&);
  9088. bool SetStyleAuto(XMLFile = null);
  9089. void SetViewPosition(int, int);
  9090. void UpdateLayout();
  9091. const Variant& GetVar(const StringHash&);
  9092. // Properties:
  9093. bool animationEnabled;
  9094. /* readonly */
  9095. Array<Variant> attributeDefaults;
  9096. /* readonly */
  9097. Array<AttributeInfo> attributeInfos;
  9098. Array<Variant> attributes;
  9099. bool autoDisableChildren;
  9100. float autoDisableThreshold;
  9101. bool bringToBack;
  9102. bool bringToFront;
  9103. /* readonly */
  9104. String category;
  9105. /* readonly */
  9106. IntVector2 childOffset;
  9107. /* readonly */
  9108. Array<UIElement> children;
  9109. IntRect clipBorder;
  9110. bool clipChildren;
  9111. /* writeonly */
  9112. Color color;
  9113. /* readonly */
  9114. bool colorGradient;
  9115. Array<Color> colors;
  9116. /* readonly */
  9117. IntRect combinedScreenRect;
  9118. UIElement contentElement;
  9119. XMLFile defaultStyle;
  9120. /* readonly */
  9121. float derivedOpacity;
  9122. /* readonly */
  9123. uint dragButtonCombo;
  9124. /* readonly */
  9125. int dragButtonCount;
  9126. uint dragDropMode;
  9127. bool editable;
  9128. bool elementEventSender;
  9129. bool enabled;
  9130. /* readonly */
  9131. bool enabledSelf;
  9132. /* readonly */
  9133. bool fixedHeight;
  9134. /* readonly */
  9135. bool fixedSize;
  9136. /* readonly */
  9137. bool fixedWidth;
  9138. bool focus;
  9139. FocusMode focusMode;
  9140. int height;
  9141. HorizontalAlignment horizontalAlignment;
  9142. /* readonly */
  9143. ScrollBar horizontalScrollBar;
  9144. /* readonly */
  9145. bool hovering;
  9146. int indent;
  9147. int indentSpacing;
  9148. /* readonly */
  9149. int indentWidth;
  9150. bool internal;
  9151. IntRect layoutBorder;
  9152. Vector2 layoutFlexScale;
  9153. LayoutMode layoutMode;
  9154. int layoutSpacing;
  9155. int maxHeight;
  9156. IntVector2 maxSize;
  9157. int maxWidth;
  9158. int minHeight;
  9159. IntVector2 minSize;
  9160. int minWidth;
  9161. String name;
  9162. /* readonly */
  9163. uint numAllChildren;
  9164. /* readonly */
  9165. uint numAttributes;
  9166. /* readonly */
  9167. uint numChildren;
  9168. ObjectAnimation objectAnimation;
  9169. float opacity;
  9170. float pageStep;
  9171. UIElement parent;
  9172. IntVector2 position;
  9173. int priority;
  9174. /* readonly */
  9175. int refs;
  9176. /* readonly */
  9177. UIElement root;
  9178. /* readonly */
  9179. IntVector2 screenPosition;
  9180. bool scrollBarsAutoVisible;
  9181. float scrollDeceleration;
  9182. /* readonly */
  9183. BorderImage scrollPanel;
  9184. float scrollSnapEpsilon;
  9185. float scrollStep;
  9186. bool selected;
  9187. IntVector2 size;
  9188. bool sortChildren;
  9189. String style;
  9190. /* readonly */
  9191. Array<String> tags;
  9192. bool temporary;
  9193. TraversalMode traversalMode;
  9194. /* readonly */
  9195. StringHash type;
  9196. /* readonly */
  9197. String typeName;
  9198. bool useDerivedOpacity;
  9199. /* readonly */
  9200. VariantMap vars;
  9201. VerticalAlignment verticalAlignment;
  9202. /* readonly */
  9203. ScrollBar verticalScrollBar;
  9204. IntVector2 viewPosition;
  9205. bool visible;
  9206. /* readonly */
  9207. bool visibleEffective;
  9208. /* readonly */
  9209. int weakRefs;
  9210. int width;
  9211. };
  9212. class Serializable
  9213. {
  9214. // Methods:
  9215. void ApplyAttributes();
  9216. Variant GetAttribute(const String&) const;
  9217. Variant GetAttributeDefault(const String&) const;
  9218. bool GetInterceptNetworkUpdate(const String&) const;
  9219. bool HasSubscribedToEvent(Object, const String&);
  9220. bool HasSubscribedToEvent(const String&);
  9221. bool Load(File, bool = false);
  9222. bool Load(VectorBuffer&, bool = false);
  9223. bool LoadJSON(const JSONValue&, bool = false);
  9224. bool LoadXML(const XMLElement&, bool = false);
  9225. void MarkNetworkUpdate() const;
  9226. void RemoveInstanceDefault();
  9227. void ResetToDefault();
  9228. bool Save(File) const;
  9229. bool Save(VectorBuffer&) const;
  9230. bool SaveJSON(JSONValue&) const;
  9231. bool SaveXML(XMLElement&) const;
  9232. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9233. bool SetAttribute(const String&, const Variant&);
  9234. void SetInterceptNetworkUpdate(const String&, bool);
  9235. // Properties:
  9236. /* readonly */
  9237. Array<Variant> attributeDefaults;
  9238. /* readonly */
  9239. Array<AttributeInfo> attributeInfos;
  9240. Array<Variant> attributes;
  9241. /* readonly */
  9242. String category;
  9243. /* readonly */
  9244. uint numAttributes;
  9245. /* readonly */
  9246. int refs;
  9247. bool temporary;
  9248. /* readonly */
  9249. StringHash type;
  9250. /* readonly */
  9251. String typeName;
  9252. /* readonly */
  9253. int weakRefs;
  9254. };
  9255. class Serializer
  9256. {
  9257. // Methods:
  9258. uint Write(Array<uint8>);
  9259. bool WriteBool(bool);
  9260. bool WriteBoundingBox(const BoundingBox&);
  9261. bool WriteByte(int8);
  9262. bool WriteColor(const Color&);
  9263. bool WriteDouble(double);
  9264. bool WriteFileID(const String&);
  9265. bool WriteFloat(float);
  9266. bool WriteInt(int);
  9267. bool WriteIntRect(const IntRect&);
  9268. bool WriteIntVector2(const IntVector2&);
  9269. bool WriteLine(const String&);
  9270. bool WriteMatrix3(const Matrix3&);
  9271. bool WriteMatrix3x4(const Matrix3x4&);
  9272. bool WriteMatrix4(const Matrix4&);
  9273. bool WriteNetID(uint);
  9274. bool WritePackedQuaternion(const Quaternion&);
  9275. bool WritePackedVector3(const Vector3&, float);
  9276. bool WriteQuaternion(const Quaternion&);
  9277. bool WriteShort(int16);
  9278. bool WriteString(const String&);
  9279. bool WriteStringHash(const StringHash&);
  9280. bool WriteUByte(uint8);
  9281. bool WriteUInt(uint);
  9282. bool WriteUShort(uint16);
  9283. bool WriteVLE(uint);
  9284. bool WriteVariant(const Variant&);
  9285. bool WriteVariantMap(const VariantMap&);
  9286. bool WriteVector2(const Vector2&);
  9287. bool WriteVector3(const Vector3&);
  9288. bool WriteVector4(const Vector4&);
  9289. bool WriteVectorBuffer(const VectorBuffer&);
  9290. };
  9291. class Skeleton
  9292. {
  9293. // Methods:
  9294. Bone GetBone(const String&) const;
  9295. void Reset();
  9296. // Properties:
  9297. /* readonly */
  9298. Array<Bone> bones;
  9299. /* readonly */
  9300. uint numBones;
  9301. /* readonly */
  9302. Bone rootBone;
  9303. };
  9304. class Skybox
  9305. {
  9306. // Methods:
  9307. void ApplyAttributes();
  9308. void ApplyMaterialList(const String& = String ( ));
  9309. void DrawDebugGeometry(DebugRenderer, bool);
  9310. Variant GetAttribute(const String&) const;
  9311. ValueAnimation GetAttributeAnimation(const String&) const;
  9312. float GetAttributeAnimationSpeed(const String&) const;
  9313. float GetAttributeAnimationTime(const String&) const;
  9314. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9315. Variant GetAttributeDefault(const String&) const;
  9316. bool GetInterceptNetworkUpdate(const String&) const;
  9317. bool HasSubscribedToEvent(Object, const String&);
  9318. bool HasSubscribedToEvent(const String&);
  9319. bool IsInView(Camera) const;
  9320. bool Load(File, bool = false);
  9321. bool Load(VectorBuffer&, bool = false);
  9322. bool LoadJSON(const JSONValue&, bool = false);
  9323. bool LoadXML(const XMLElement&, bool = false);
  9324. void MarkNetworkUpdate() const;
  9325. void Remove();
  9326. void RemoveAttributeAnimation(const String&);
  9327. void RemoveInstanceDefault();
  9328. void RemoveObjectAnimation();
  9329. void ResetToDefault();
  9330. bool Save(File) const;
  9331. bool Save(VectorBuffer&) const;
  9332. bool SaveJSON(JSONValue&) const;
  9333. bool SaveXML(XMLElement&) const;
  9334. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9335. void SetAnimationTime(float);
  9336. bool SetAttribute(const String&, const Variant&);
  9337. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9338. void SetAttributeAnimationSpeed(const String&, float);
  9339. void SetAttributeAnimationTime(const String&, float);
  9340. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9341. void SetInterceptNetworkUpdate(const String&, bool);
  9342. // Properties:
  9343. bool animationEnabled;
  9344. /* readonly */
  9345. Array<Variant> attributeDefaults;
  9346. /* readonly */
  9347. Array<AttributeInfo> attributeInfos;
  9348. Array<Variant> attributes;
  9349. /* readonly */
  9350. BoundingBox boundingBox;
  9351. bool castShadows;
  9352. /* readonly */
  9353. String category;
  9354. float drawDistance;
  9355. bool enabled;
  9356. /* readonly */
  9357. bool enabledEffective;
  9358. /* readonly */
  9359. uint id;
  9360. /* readonly */
  9361. bool inView;
  9362. uint lightMask;
  9363. float lodBias;
  9364. /* writeonly */
  9365. Material material;
  9366. Array<Material> materials;
  9367. uint maxLights;
  9368. Model model;
  9369. /* readonly */
  9370. Node node;
  9371. /* readonly */
  9372. uint numAttributes;
  9373. /* readonly */
  9374. uint numGeometries;
  9375. ObjectAnimation objectAnimation;
  9376. bool occludee;
  9377. bool occluder;
  9378. /* readonly */
  9379. int refs;
  9380. float shadowDistance;
  9381. uint shadowMask;
  9382. bool temporary;
  9383. /* readonly */
  9384. StringHash type;
  9385. /* readonly */
  9386. String typeName;
  9387. uint viewMask;
  9388. /* readonly */
  9389. int weakRefs;
  9390. /* readonly */
  9391. BoundingBox worldBoundingBox;
  9392. /* readonly */
  9393. Zone zone;
  9394. uint zoneMask;
  9395. };
  9396. class Slider
  9397. {
  9398. // Methods:
  9399. void AddChild(UIElement);
  9400. void AddTag(const String&);
  9401. void AddTags(const String&, int8 = ';');
  9402. void ApplyAttributes();
  9403. void BringToFront();
  9404. void ChangeValue(float);
  9405. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9406. void DisableLayoutUpdate();
  9407. IntVector2 ElementToScreen(const IntVector2&);
  9408. void EnableLayoutUpdate();
  9409. uint FindChild(UIElement) const;
  9410. Variant GetAttribute(const String&) const;
  9411. ValueAnimation GetAttributeAnimation(const String&) const;
  9412. float GetAttributeAnimationSpeed(const String&) const;
  9413. float GetAttributeAnimationTime(const String&) const;
  9414. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9415. Variant GetAttributeDefault(const String&) const;
  9416. UIElement GetChild(const String&, bool = false) const;
  9417. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9418. Array<UIElement> GetChildren(bool = false) const;
  9419. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9420. UIElement GetElementEventSender() const;
  9421. bool GetInterceptNetworkUpdate(const String&) const;
  9422. uint GetNumChildren(bool) const;
  9423. bool HasSubscribedToEvent(Object, const String&);
  9424. bool HasSubscribedToEvent(const String&);
  9425. bool HasTag(const String&) const;
  9426. void InsertChild(uint, UIElement);
  9427. bool IsInside(IntVector2, bool);
  9428. bool IsInsideCombined(IntVector2, bool);
  9429. bool Load(File, bool = false);
  9430. bool Load(VectorBuffer&, bool = false);
  9431. bool LoadChildXML(XMLFile, XMLFile = null);
  9432. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9433. bool LoadJSON(const JSONValue&, bool = false);
  9434. bool LoadXML(File);
  9435. bool LoadXML(VectorBuffer&);
  9436. bool LoadXML(XMLFile, XMLFile);
  9437. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9438. bool LoadXML(const XMLElement&, bool = false);
  9439. void MarkNetworkUpdate() const;
  9440. void Remove();
  9441. void RemoveAllChildren();
  9442. void RemoveAllTags();
  9443. void RemoveAttributeAnimation(const String&);
  9444. void RemoveChild(UIElement, uint = 0);
  9445. void RemoveChild(uint);
  9446. void RemoveInstanceDefault();
  9447. void RemoveObjectAnimation();
  9448. bool RemoveTag(const String&);
  9449. void ResetDeepEnabled();
  9450. void ResetToDefault();
  9451. bool Save(File) const;
  9452. bool Save(VectorBuffer&) const;
  9453. bool SaveJSON(JSONValue&) const;
  9454. bool SaveXML(File, const String& = "\t");
  9455. bool SaveXML(VectorBuffer&, const String& = "\t");
  9456. bool SaveXML(XMLElement&) const;
  9457. IntVector2 ScreenToElement(const IntVector2&);
  9458. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9459. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9460. void SetAnimationTime(float);
  9461. bool SetAttribute(const String&, const Variant&);
  9462. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9463. void SetAttributeAnimationSpeed(const String&, float);
  9464. void SetAttributeAnimationTime(const String&, float);
  9465. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9466. void SetDeepEnabled(bool);
  9467. void SetEnabledRecursive(bool);
  9468. void SetFixedHeight(int);
  9469. void SetFixedSize(int, int);
  9470. void SetFixedWidth(int);
  9471. void SetFullImageRect();
  9472. void SetHoverOffset(int, int);
  9473. void SetInterceptNetworkUpdate(const String&, bool);
  9474. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9475. void SetMaxSize(int, int);
  9476. void SetMinSize(int, int);
  9477. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9478. void SetPosition(int, int);
  9479. void SetSize(int, int);
  9480. bool SetStyle(const String&, XMLFile = null);
  9481. bool SetStyle(const XMLElement&);
  9482. bool SetStyleAuto(XMLFile = null);
  9483. void UpdateLayout();
  9484. const Variant& GetVar(const StringHash&);
  9485. // Properties:
  9486. bool animationEnabled;
  9487. /* readonly */
  9488. Array<Variant> attributeDefaults;
  9489. /* readonly */
  9490. Array<AttributeInfo> attributeInfos;
  9491. Array<Variant> attributes;
  9492. BlendMode blendMode;
  9493. IntRect border;
  9494. bool bringToBack;
  9495. bool bringToFront;
  9496. /* readonly */
  9497. String category;
  9498. /* readonly */
  9499. IntVector2 childOffset;
  9500. /* readonly */
  9501. Array<UIElement> children;
  9502. IntRect clipBorder;
  9503. bool clipChildren;
  9504. /* writeonly */
  9505. Color color;
  9506. /* readonly */
  9507. bool colorGradient;
  9508. Array<Color> colors;
  9509. /* readonly */
  9510. IntRect combinedScreenRect;
  9511. XMLFile defaultStyle;
  9512. /* readonly */
  9513. float derivedOpacity;
  9514. /* readonly */
  9515. uint dragButtonCombo;
  9516. /* readonly */
  9517. int dragButtonCount;
  9518. uint dragDropMode;
  9519. bool editable;
  9520. bool elementEventSender;
  9521. bool enabled;
  9522. /* readonly */
  9523. bool enabledSelf;
  9524. /* readonly */
  9525. bool fixedHeight;
  9526. /* readonly */
  9527. bool fixedSize;
  9528. /* readonly */
  9529. bool fixedWidth;
  9530. bool focus;
  9531. FocusMode focusMode;
  9532. int height;
  9533. HorizontalAlignment horizontalAlignment;
  9534. IntVector2 hoverOffset;
  9535. /* readonly */
  9536. bool hovering;
  9537. IntRect imageBorder;
  9538. IntRect imageRect;
  9539. int indent;
  9540. int indentSpacing;
  9541. /* readonly */
  9542. int indentWidth;
  9543. bool internal;
  9544. /* readonly */
  9545. BorderImage knob;
  9546. IntRect layoutBorder;
  9547. Vector2 layoutFlexScale;
  9548. LayoutMode layoutMode;
  9549. int layoutSpacing;
  9550. int maxHeight;
  9551. IntVector2 maxSize;
  9552. int maxWidth;
  9553. int minHeight;
  9554. IntVector2 minSize;
  9555. int minWidth;
  9556. String name;
  9557. /* readonly */
  9558. uint numAllChildren;
  9559. /* readonly */
  9560. uint numAttributes;
  9561. /* readonly */
  9562. uint numChildren;
  9563. ObjectAnimation objectAnimation;
  9564. float opacity;
  9565. Orientation orientation;
  9566. UIElement parent;
  9567. IntVector2 position;
  9568. int priority;
  9569. float range;
  9570. /* readonly */
  9571. int refs;
  9572. float repeatRate;
  9573. /* readonly */
  9574. UIElement root;
  9575. /* readonly */
  9576. IntVector2 screenPosition;
  9577. bool selected;
  9578. IntVector2 size;
  9579. bool sortChildren;
  9580. String style;
  9581. /* readonly */
  9582. Array<String> tags;
  9583. bool temporary;
  9584. Texture texture;
  9585. bool tiled;
  9586. TraversalMode traversalMode;
  9587. /* readonly */
  9588. StringHash type;
  9589. /* readonly */
  9590. String typeName;
  9591. bool useDerivedOpacity;
  9592. float value;
  9593. /* readonly */
  9594. VariantMap vars;
  9595. VerticalAlignment verticalAlignment;
  9596. bool visible;
  9597. /* readonly */
  9598. bool visibleEffective;
  9599. /* readonly */
  9600. int weakRefs;
  9601. int width;
  9602. };
  9603. class SmoothedTransform
  9604. {
  9605. // Methods:
  9606. void ApplyAttributes();
  9607. void DrawDebugGeometry(DebugRenderer, bool);
  9608. Variant GetAttribute(const String&) const;
  9609. ValueAnimation GetAttributeAnimation(const String&) const;
  9610. float GetAttributeAnimationSpeed(const String&) const;
  9611. float GetAttributeAnimationTime(const String&) const;
  9612. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9613. Variant GetAttributeDefault(const String&) const;
  9614. bool GetInterceptNetworkUpdate(const String&) const;
  9615. bool HasSubscribedToEvent(Object, const String&);
  9616. bool HasSubscribedToEvent(const String&);
  9617. bool Load(File, bool = false);
  9618. bool Load(VectorBuffer&, bool = false);
  9619. bool LoadJSON(const JSONValue&, bool = false);
  9620. bool LoadXML(const XMLElement&, bool = false);
  9621. void MarkNetworkUpdate() const;
  9622. void Remove();
  9623. void RemoveAttributeAnimation(const String&);
  9624. void RemoveInstanceDefault();
  9625. void RemoveObjectAnimation();
  9626. void ResetToDefault();
  9627. bool Save(File) const;
  9628. bool Save(VectorBuffer&) const;
  9629. bool SaveJSON(JSONValue&) const;
  9630. bool SaveXML(XMLElement&) const;
  9631. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9632. void SetAnimationTime(float);
  9633. bool SetAttribute(const String&, const Variant&);
  9634. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9635. void SetAttributeAnimationSpeed(const String&, float);
  9636. void SetAttributeAnimationTime(const String&, float);
  9637. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9638. void SetInterceptNetworkUpdate(const String&, bool);
  9639. void Update(float, float);
  9640. // Properties:
  9641. bool animationEnabled;
  9642. /* readonly */
  9643. Array<Variant> attributeDefaults;
  9644. /* readonly */
  9645. Array<AttributeInfo> attributeInfos;
  9646. Array<Variant> attributes;
  9647. /* readonly */
  9648. String category;
  9649. bool enabled;
  9650. /* readonly */
  9651. bool enabledEffective;
  9652. /* readonly */
  9653. uint id;
  9654. /* readonly */
  9655. bool inProgress;
  9656. /* readonly */
  9657. Node node;
  9658. /* readonly */
  9659. uint numAttributes;
  9660. ObjectAnimation objectAnimation;
  9661. /* readonly */
  9662. int refs;
  9663. Vector3 targetPosition;
  9664. Quaternion targetRotation;
  9665. Vector3 targetWorldPosition;
  9666. Quaternion targetWorldRotation;
  9667. bool temporary;
  9668. /* readonly */
  9669. StringHash type;
  9670. /* readonly */
  9671. String typeName;
  9672. /* readonly */
  9673. int weakRefs;
  9674. };
  9675. class Sound
  9676. {
  9677. // Methods:
  9678. bool HasSubscribedToEvent(Object, const String&);
  9679. bool HasSubscribedToEvent(const String&);
  9680. bool Load(File);
  9681. bool Load(VectorBuffer&);
  9682. bool Save(File) const;
  9683. bool Save(VectorBuffer&) const;
  9684. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9685. // Properties:
  9686. /* readonly */
  9687. String category;
  9688. /* readonly */
  9689. bool compressed;
  9690. /* readonly */
  9691. float frequency;
  9692. /* readonly */
  9693. float length;
  9694. bool looped;
  9695. /* readonly */
  9696. uint memoryUse;
  9697. String name;
  9698. /* readonly */
  9699. int refs;
  9700. /* readonly */
  9701. uint sampleSize;
  9702. /* readonly */
  9703. bool sixteenBit;
  9704. /* readonly */
  9705. bool stereo;
  9706. /* readonly */
  9707. StringHash type;
  9708. /* readonly */
  9709. String typeName;
  9710. /* readonly */
  9711. uint useTimer;
  9712. /* readonly */
  9713. int weakRefs;
  9714. };
  9715. class SoundListener
  9716. {
  9717. // Methods:
  9718. void ApplyAttributes();
  9719. void DrawDebugGeometry(DebugRenderer, bool);
  9720. Variant GetAttribute(const String&) const;
  9721. ValueAnimation GetAttributeAnimation(const String&) const;
  9722. float GetAttributeAnimationSpeed(const String&) const;
  9723. float GetAttributeAnimationTime(const String&) const;
  9724. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9725. Variant GetAttributeDefault(const String&) const;
  9726. bool GetInterceptNetworkUpdate(const String&) const;
  9727. bool HasSubscribedToEvent(Object, const String&);
  9728. bool HasSubscribedToEvent(const String&);
  9729. bool Load(File, bool = false);
  9730. bool Load(VectorBuffer&, bool = false);
  9731. bool LoadJSON(const JSONValue&, bool = false);
  9732. bool LoadXML(const XMLElement&, bool = false);
  9733. void MarkNetworkUpdate() const;
  9734. void Remove();
  9735. void RemoveAttributeAnimation(const String&);
  9736. void RemoveInstanceDefault();
  9737. void RemoveObjectAnimation();
  9738. void ResetToDefault();
  9739. bool Save(File) const;
  9740. bool Save(VectorBuffer&) const;
  9741. bool SaveJSON(JSONValue&) const;
  9742. bool SaveXML(XMLElement&) const;
  9743. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9744. void SetAnimationTime(float);
  9745. bool SetAttribute(const String&, const Variant&);
  9746. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9747. void SetAttributeAnimationSpeed(const String&, float);
  9748. void SetAttributeAnimationTime(const String&, float);
  9749. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9750. void SetInterceptNetworkUpdate(const String&, bool);
  9751. // Properties:
  9752. bool animationEnabled;
  9753. /* readonly */
  9754. Array<Variant> attributeDefaults;
  9755. /* readonly */
  9756. Array<AttributeInfo> attributeInfos;
  9757. Array<Variant> attributes;
  9758. /* readonly */
  9759. String category;
  9760. bool enabled;
  9761. /* readonly */
  9762. bool enabledEffective;
  9763. /* readonly */
  9764. uint id;
  9765. /* readonly */
  9766. Node node;
  9767. /* readonly */
  9768. uint numAttributes;
  9769. ObjectAnimation objectAnimation;
  9770. /* readonly */
  9771. int refs;
  9772. bool temporary;
  9773. /* readonly */
  9774. StringHash type;
  9775. /* readonly */
  9776. String typeName;
  9777. /* readonly */
  9778. int weakRefs;
  9779. };
  9780. class SoundSource
  9781. {
  9782. // Methods:
  9783. void ApplyAttributes();
  9784. void DrawDebugGeometry(DebugRenderer, bool);
  9785. Variant GetAttribute(const String&) const;
  9786. ValueAnimation GetAttributeAnimation(const String&) const;
  9787. float GetAttributeAnimationSpeed(const String&) const;
  9788. float GetAttributeAnimationTime(const String&) const;
  9789. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9790. Variant GetAttributeDefault(const String&) const;
  9791. bool GetInterceptNetworkUpdate(const String&) const;
  9792. bool HasSubscribedToEvent(Object, const String&);
  9793. bool HasSubscribedToEvent(const String&);
  9794. bool Load(File, bool = false);
  9795. bool Load(VectorBuffer&, bool = false);
  9796. bool LoadJSON(const JSONValue&, bool = false);
  9797. bool LoadXML(const XMLElement&, bool = false);
  9798. void MarkNetworkUpdate() const;
  9799. void Play(Sound);
  9800. void Play(Sound, float);
  9801. void Play(Sound, float, float);
  9802. void Play(Sound, float, float, float);
  9803. void Remove();
  9804. void RemoveAttributeAnimation(const String&);
  9805. void RemoveInstanceDefault();
  9806. void RemoveObjectAnimation();
  9807. void ResetToDefault();
  9808. bool Save(File) const;
  9809. bool Save(VectorBuffer&) const;
  9810. bool SaveJSON(JSONValue&) const;
  9811. bool SaveXML(XMLElement&) const;
  9812. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9813. void SetAnimationTime(float);
  9814. bool SetAttribute(const String&, const Variant&);
  9815. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9816. void SetAttributeAnimationSpeed(const String&, float);
  9817. void SetAttributeAnimationTime(const String&, float);
  9818. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9819. void SetInterceptNetworkUpdate(const String&, bool);
  9820. void Stop();
  9821. // Properties:
  9822. bool animationEnabled;
  9823. /* readonly */
  9824. float attenuation;
  9825. /* readonly */
  9826. Array<Variant> attributeDefaults;
  9827. /* readonly */
  9828. Array<AttributeInfo> attributeInfos;
  9829. Array<Variant> attributes;
  9830. bool autoRemove;
  9831. /* readonly */
  9832. String category;
  9833. bool enabled;
  9834. /* readonly */
  9835. bool enabledEffective;
  9836. float frequency;
  9837. float gain;
  9838. /* readonly */
  9839. uint id;
  9840. /* readonly */
  9841. Node node;
  9842. /* readonly */
  9843. uint numAttributes;
  9844. ObjectAnimation objectAnimation;
  9845. float panning;
  9846. /* readonly */
  9847. bool playing;
  9848. /* readonly */
  9849. int refs;
  9850. /* readonly */
  9851. Sound sound;
  9852. String soundType;
  9853. bool temporary;
  9854. /* readonly */
  9855. float timePosition;
  9856. /* readonly */
  9857. StringHash type;
  9858. /* readonly */
  9859. String typeName;
  9860. /* readonly */
  9861. int weakRefs;
  9862. };
  9863. class SoundSource3D
  9864. {
  9865. // Methods:
  9866. void ApplyAttributes();
  9867. void DrawDebugGeometry(DebugRenderer, bool);
  9868. Variant GetAttribute(const String&) const;
  9869. ValueAnimation GetAttributeAnimation(const String&) const;
  9870. float GetAttributeAnimationSpeed(const String&) const;
  9871. float GetAttributeAnimationTime(const String&) const;
  9872. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9873. Variant GetAttributeDefault(const String&) const;
  9874. bool GetInterceptNetworkUpdate(const String&) const;
  9875. bool HasSubscribedToEvent(Object, const String&);
  9876. bool HasSubscribedToEvent(const String&);
  9877. bool Load(File, bool = false);
  9878. bool Load(VectorBuffer&, bool = false);
  9879. bool LoadJSON(const JSONValue&, bool = false);
  9880. bool LoadXML(const XMLElement&, bool = false);
  9881. void MarkNetworkUpdate() const;
  9882. void Play(Sound);
  9883. void Play(Sound, float);
  9884. void Play(Sound, float, float);
  9885. void Play(Sound, float, float, float);
  9886. void Remove();
  9887. void RemoveAttributeAnimation(const String&);
  9888. void RemoveInstanceDefault();
  9889. void RemoveObjectAnimation();
  9890. void ResetToDefault();
  9891. bool Save(File) const;
  9892. bool Save(VectorBuffer&) const;
  9893. bool SaveJSON(JSONValue&) const;
  9894. bool SaveXML(XMLElement&) const;
  9895. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9896. void SetAngleAttenuation(float, float);
  9897. void SetAnimationTime(float);
  9898. bool SetAttribute(const String&, const Variant&);
  9899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9900. void SetAttributeAnimationSpeed(const String&, float);
  9901. void SetAttributeAnimationTime(const String&, float);
  9902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9903. void SetDistanceAttenuation(float, float, float);
  9904. void SetInterceptNetworkUpdate(const String&, bool);
  9905. void Stop();
  9906. // Properties:
  9907. bool animationEnabled;
  9908. /* readonly */
  9909. float attenuation;
  9910. /* readonly */
  9911. Array<Variant> attributeDefaults;
  9912. /* readonly */
  9913. Array<AttributeInfo> attributeInfos;
  9914. Array<Variant> attributes;
  9915. bool autoRemove;
  9916. /* readonly */
  9917. String category;
  9918. bool enabled;
  9919. /* readonly */
  9920. bool enabledEffective;
  9921. float farDistance;
  9922. float frequency;
  9923. float gain;
  9924. /* readonly */
  9925. uint id;
  9926. float innerAngle;
  9927. float nearDistance;
  9928. /* readonly */
  9929. Node node;
  9930. /* readonly */
  9931. uint numAttributes;
  9932. ObjectAnimation objectAnimation;
  9933. float outerAngle;
  9934. float panning;
  9935. /* readonly */
  9936. bool playing;
  9937. /* readonly */
  9938. int refs;
  9939. float rolloffFactor;
  9940. /* readonly */
  9941. Sound sound;
  9942. String soundType;
  9943. bool temporary;
  9944. /* readonly */
  9945. float timePosition;
  9946. /* readonly */
  9947. StringHash type;
  9948. /* readonly */
  9949. String typeName;
  9950. /* readonly */
  9951. int weakRefs;
  9952. };
  9953. class Sphere
  9954. {
  9955. // Methods:
  9956. void Clear();
  9957. void Define(const BoundingBox&);
  9958. void Define(const Frustum&);
  9959. void Define(const Polyhedron&);
  9960. void Define(const Sphere&);
  9961. void Define(const Vector3&, float);
  9962. bool Defined() const;
  9963. float Distance(const Vector3&) const;
  9964. Intersection IsInside(const BoundingBox&) const;
  9965. Intersection IsInside(const Sphere&) const;
  9966. Intersection IsInside(const Vector3&) const;
  9967. Intersection IsInsideFast(const BoundingBox&) const;
  9968. Intersection IsInsideFast(const Sphere&) const;
  9969. void Merge(const BoundingBox&);
  9970. void Merge(const Frustum&);
  9971. void Merge(const Sphere&);
  9972. void Merge(const Vector3&);
  9973. // Properties:
  9974. Vector3 center;
  9975. float radius;
  9976. };
  9977. class Spline
  9978. {
  9979. // Methods:
  9980. void AddKnot(const Variant&);
  9981. void AddKnot(const Variant&, uint);
  9982. void Clear();
  9983. Variant GetPoint(float);
  9984. void RemoveKnot();
  9985. void RemoveKnot(uint);
  9986. // Properties:
  9987. InterpolationMode interpolationMode;
  9988. Array<Variant> knot;
  9989. Array<Variant> knots;
  9990. };
  9991. class SplinePath
  9992. {
  9993. // Methods:
  9994. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9995. void ApplyAttributes();
  9996. void ClearControlPoints();
  9997. void DrawDebugGeometry(DebugRenderer, bool);
  9998. Variant GetAttribute(const String&) const;
  9999. ValueAnimation GetAttributeAnimation(const String&) const;
  10000. float GetAttributeAnimationSpeed(const String&) const;
  10001. float GetAttributeAnimationTime(const String&) const;
  10002. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10003. Variant GetAttributeDefault(const String&) const;
  10004. bool GetInterceptNetworkUpdate(const String&) const;
  10005. Vector3 GetPoint(float) const;
  10006. Vector3 GetPosition() const;
  10007. bool HasSubscribedToEvent(Object, const String&);
  10008. bool HasSubscribedToEvent(const String&);
  10009. bool Load(File, bool = false);
  10010. bool Load(VectorBuffer&, bool = false);
  10011. bool LoadJSON(const JSONValue&, bool = false);
  10012. bool LoadXML(const XMLElement&, bool = false);
  10013. void MarkNetworkUpdate() const;
  10014. void Move(float);
  10015. void Remove();
  10016. void RemoveAttributeAnimation(const String&);
  10017. void RemoveControlPoint(Node);
  10018. void RemoveInstanceDefault();
  10019. void RemoveObjectAnimation();
  10020. void Reset();
  10021. void ResetToDefault();
  10022. bool Save(File) const;
  10023. bool Save(VectorBuffer&) const;
  10024. bool SaveJSON(JSONValue&) const;
  10025. bool SaveXML(XMLElement&) const;
  10026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10027. void SetAnimationTime(float);
  10028. bool SetAttribute(const String&, const Variant&);
  10029. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10030. void SetAttributeAnimationSpeed(const String&, float);
  10031. void SetAttributeAnimationTime(const String&, float);
  10032. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10033. void SetInterceptNetworkUpdate(const String&, bool);
  10034. void SetPosition(float);
  10035. // Properties:
  10036. bool animationEnabled;
  10037. /* readonly */
  10038. Array<Variant> attributeDefaults;
  10039. /* readonly */
  10040. Array<AttributeInfo> attributeInfos;
  10041. Array<Variant> attributes;
  10042. /* readonly */
  10043. String category;
  10044. Node controlledNode;
  10045. bool enabled;
  10046. /* readonly */
  10047. bool enabledEffective;
  10048. /* readonly */
  10049. uint id;
  10050. InterpolationMode interpolationMode;
  10051. /* readonly */
  10052. bool isFinished;
  10053. /* readonly */
  10054. float length;
  10055. /* readonly */
  10056. Node node;
  10057. /* readonly */
  10058. uint numAttributes;
  10059. ObjectAnimation objectAnimation;
  10060. /* readonly */
  10061. int refs;
  10062. float speed;
  10063. bool temporary;
  10064. /* readonly */
  10065. StringHash type;
  10066. /* readonly */
  10067. String typeName;
  10068. /* readonly */
  10069. int weakRefs;
  10070. };
  10071. class Sprite
  10072. {
  10073. // Methods:
  10074. void AddChild(UIElement);
  10075. void AddTag(const String&);
  10076. void AddTags(const String&, int8 = ';');
  10077. void ApplyAttributes();
  10078. void BringToFront();
  10079. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10080. void DisableLayoutUpdate();
  10081. IntVector2 ElementToScreen(const IntVector2&);
  10082. void EnableLayoutUpdate();
  10083. uint FindChild(UIElement) const;
  10084. Variant GetAttribute(const String&) const;
  10085. ValueAnimation GetAttributeAnimation(const String&) const;
  10086. float GetAttributeAnimationSpeed(const String&) const;
  10087. float GetAttributeAnimationTime(const String&) const;
  10088. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10089. Variant GetAttributeDefault(const String&) const;
  10090. UIElement GetChild(const String&, bool = false) const;
  10091. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10092. Array<UIElement> GetChildren(bool = false) const;
  10093. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10094. UIElement GetElementEventSender() const;
  10095. bool GetInterceptNetworkUpdate(const String&) const;
  10096. uint GetNumChildren(bool) const;
  10097. bool HasSubscribedToEvent(Object, const String&);
  10098. bool HasSubscribedToEvent(const String&);
  10099. bool HasTag(const String&) const;
  10100. void InsertChild(uint, UIElement);
  10101. bool IsInside(IntVector2, bool);
  10102. bool IsInsideCombined(IntVector2, bool);
  10103. bool Load(File, bool = false);
  10104. bool Load(VectorBuffer&, bool = false);
  10105. bool LoadChildXML(XMLFile, XMLFile = null);
  10106. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10107. bool LoadJSON(const JSONValue&, bool = false);
  10108. bool LoadXML(File);
  10109. bool LoadXML(VectorBuffer&);
  10110. bool LoadXML(XMLFile, XMLFile);
  10111. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10112. bool LoadXML(const XMLElement&, bool = false);
  10113. void MarkNetworkUpdate() const;
  10114. void Remove();
  10115. void RemoveAllChildren();
  10116. void RemoveAllTags();
  10117. void RemoveAttributeAnimation(const String&);
  10118. void RemoveChild(UIElement, uint = 0);
  10119. void RemoveChild(uint);
  10120. void RemoveInstanceDefault();
  10121. void RemoveObjectAnimation();
  10122. bool RemoveTag(const String&);
  10123. void ResetDeepEnabled();
  10124. void ResetToDefault();
  10125. bool Save(File) const;
  10126. bool Save(VectorBuffer&) const;
  10127. bool SaveJSON(JSONValue&) const;
  10128. bool SaveXML(File, const String& = "\t");
  10129. bool SaveXML(VectorBuffer&, const String& = "\t");
  10130. bool SaveXML(XMLElement&) const;
  10131. IntVector2 ScreenToElement(const IntVector2&);
  10132. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10133. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10134. void SetAnimationTime(float);
  10135. bool SetAttribute(const String&, const Variant&);
  10136. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10137. void SetAttributeAnimationSpeed(const String&, float);
  10138. void SetAttributeAnimationTime(const String&, float);
  10139. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10140. void SetDeepEnabled(bool);
  10141. void SetEnabledRecursive(bool);
  10142. void SetFixedHeight(int);
  10143. void SetFixedSize(int, int);
  10144. void SetFixedWidth(int);
  10145. void SetFullImageRect();
  10146. void SetHotSpot(int, int);
  10147. void SetInterceptNetworkUpdate(const String&, bool);
  10148. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10149. void SetMaxSize(int, int);
  10150. void SetMinSize(int, int);
  10151. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10152. void SetPosition(float, float);
  10153. void SetScale(float);
  10154. void SetScale(float, float);
  10155. void SetSize(int, int);
  10156. bool SetStyle(const String&, XMLFile = null);
  10157. bool SetStyle(const XMLElement&);
  10158. bool SetStyleAuto(XMLFile = null);
  10159. void UpdateLayout();
  10160. const Variant& GetVar(const StringHash&);
  10161. // Properties:
  10162. bool animationEnabled;
  10163. /* readonly */
  10164. Array<Variant> attributeDefaults;
  10165. /* readonly */
  10166. Array<AttributeInfo> attributeInfos;
  10167. Array<Variant> attributes;
  10168. BlendMode blendMode;
  10169. bool bringToBack;
  10170. bool bringToFront;
  10171. /* readonly */
  10172. String category;
  10173. /* readonly */
  10174. IntVector2 childOffset;
  10175. /* readonly */
  10176. Array<UIElement> children;
  10177. IntRect clipBorder;
  10178. bool clipChildren;
  10179. /* writeonly */
  10180. Color color;
  10181. /* readonly */
  10182. bool colorGradient;
  10183. Array<Color> colors;
  10184. /* readonly */
  10185. IntRect combinedScreenRect;
  10186. XMLFile defaultStyle;
  10187. /* readonly */
  10188. float derivedOpacity;
  10189. /* readonly */
  10190. uint dragButtonCombo;
  10191. /* readonly */
  10192. int dragButtonCount;
  10193. uint dragDropMode;
  10194. bool editable;
  10195. bool elementEventSender;
  10196. bool enabled;
  10197. /* readonly */
  10198. bool enabledSelf;
  10199. /* readonly */
  10200. bool fixedHeight;
  10201. /* readonly */
  10202. bool fixedSize;
  10203. /* readonly */
  10204. bool fixedWidth;
  10205. bool focus;
  10206. FocusMode focusMode;
  10207. int height;
  10208. HorizontalAlignment horizontalAlignment;
  10209. IntVector2 hotSpot;
  10210. /* readonly */
  10211. bool hovering;
  10212. IntRect imageRect;
  10213. int indent;
  10214. int indentSpacing;
  10215. /* readonly */
  10216. int indentWidth;
  10217. bool internal;
  10218. IntRect layoutBorder;
  10219. Vector2 layoutFlexScale;
  10220. LayoutMode layoutMode;
  10221. int layoutSpacing;
  10222. int maxHeight;
  10223. IntVector2 maxSize;
  10224. int maxWidth;
  10225. int minHeight;
  10226. IntVector2 minSize;
  10227. int minWidth;
  10228. String name;
  10229. /* readonly */
  10230. uint numAllChildren;
  10231. /* readonly */
  10232. uint numAttributes;
  10233. /* readonly */
  10234. uint numChildren;
  10235. ObjectAnimation objectAnimation;
  10236. float opacity;
  10237. UIElement parent;
  10238. Vector2 position;
  10239. int priority;
  10240. /* readonly */
  10241. int refs;
  10242. /* readonly */
  10243. UIElement root;
  10244. float rotation;
  10245. Vector2 scale;
  10246. /* readonly */
  10247. IntVector2 screenPosition;
  10248. bool selected;
  10249. IntVector2 size;
  10250. bool sortChildren;
  10251. String style;
  10252. /* readonly */
  10253. Array<String> tags;
  10254. bool temporary;
  10255. Texture texture;
  10256. TraversalMode traversalMode;
  10257. /* readonly */
  10258. StringHash type;
  10259. /* readonly */
  10260. String typeName;
  10261. bool useDerivedOpacity;
  10262. /* readonly */
  10263. VariantMap vars;
  10264. VerticalAlignment verticalAlignment;
  10265. bool visible;
  10266. /* readonly */
  10267. bool visibleEffective;
  10268. /* readonly */
  10269. int weakRefs;
  10270. int width;
  10271. };
  10272. class Sprite2D
  10273. {
  10274. // Methods:
  10275. bool HasSubscribedToEvent(Object, const String&);
  10276. bool HasSubscribedToEvent(const String&);
  10277. bool Load(File);
  10278. bool Load(VectorBuffer&);
  10279. bool Save(File) const;
  10280. bool Save(VectorBuffer&) const;
  10281. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10282. // Properties:
  10283. /* readonly */
  10284. String category;
  10285. Vector2 hotSpot;
  10286. /* readonly */
  10287. uint memoryUse;
  10288. String name;
  10289. IntVector2 offset;
  10290. IntRect rectangle;
  10291. /* readonly */
  10292. int refs;
  10293. Texture2D texture;
  10294. float textureEdgeOffset;
  10295. /* readonly */
  10296. StringHash type;
  10297. /* readonly */
  10298. String typeName;
  10299. /* readonly */
  10300. uint useTimer;
  10301. /* readonly */
  10302. int weakRefs;
  10303. };
  10304. class SpriteSheet2D
  10305. {
  10306. // Methods:
  10307. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10308. Sprite2D GetSprite(const String&);
  10309. bool HasSubscribedToEvent(Object, const String&);
  10310. bool HasSubscribedToEvent(const String&);
  10311. bool Load(File);
  10312. bool Load(VectorBuffer&);
  10313. bool Save(File) const;
  10314. bool Save(VectorBuffer&) const;
  10315. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10316. // Properties:
  10317. /* readonly */
  10318. String category;
  10319. /* readonly */
  10320. uint memoryUse;
  10321. String name;
  10322. /* readonly */
  10323. int refs;
  10324. Texture2D texture;
  10325. /* readonly */
  10326. StringHash type;
  10327. /* readonly */
  10328. String typeName;
  10329. /* readonly */
  10330. uint useTimer;
  10331. /* readonly */
  10332. int weakRefs;
  10333. };
  10334. class StaticModel
  10335. {
  10336. // Methods:
  10337. void ApplyAttributes();
  10338. void ApplyMaterialList(const String& = String ( ));
  10339. void DrawDebugGeometry(DebugRenderer, bool);
  10340. Variant GetAttribute(const String&) const;
  10341. ValueAnimation GetAttributeAnimation(const String&) const;
  10342. float GetAttributeAnimationSpeed(const String&) const;
  10343. float GetAttributeAnimationTime(const String&) const;
  10344. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10345. Variant GetAttributeDefault(const String&) const;
  10346. bool GetInterceptNetworkUpdate(const String&) const;
  10347. bool HasSubscribedToEvent(Object, const String&);
  10348. bool HasSubscribedToEvent(const String&);
  10349. bool IsInView(Camera) const;
  10350. bool IsInside(const Vector3&) const;
  10351. bool IsInsideLocal(const Vector3&) const;
  10352. bool Load(File, bool = false);
  10353. bool Load(VectorBuffer&, bool = false);
  10354. bool LoadJSON(const JSONValue&, bool = false);
  10355. bool LoadXML(const XMLElement&, bool = false);
  10356. void MarkNetworkUpdate() const;
  10357. void Remove();
  10358. void RemoveAttributeAnimation(const String&);
  10359. void RemoveInstanceDefault();
  10360. void RemoveObjectAnimation();
  10361. void ResetToDefault();
  10362. bool Save(File) const;
  10363. bool Save(VectorBuffer&) const;
  10364. bool SaveJSON(JSONValue&) const;
  10365. bool SaveXML(XMLElement&) const;
  10366. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10367. void SetAnimationTime(float);
  10368. bool SetAttribute(const String&, const Variant&);
  10369. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10370. void SetAttributeAnimationSpeed(const String&, float);
  10371. void SetAttributeAnimationTime(const String&, float);
  10372. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10373. void SetInterceptNetworkUpdate(const String&, bool);
  10374. // Properties:
  10375. bool animationEnabled;
  10376. /* readonly */
  10377. Array<Variant> attributeDefaults;
  10378. /* readonly */
  10379. Array<AttributeInfo> attributeInfos;
  10380. Array<Variant> attributes;
  10381. /* readonly */
  10382. BoundingBox boundingBox;
  10383. bool castShadows;
  10384. /* readonly */
  10385. String category;
  10386. float drawDistance;
  10387. bool enabled;
  10388. /* readonly */
  10389. bool enabledEffective;
  10390. /* readonly */
  10391. uint id;
  10392. /* readonly */
  10393. bool inView;
  10394. uint lightMask;
  10395. float lodBias;
  10396. /* writeonly */
  10397. Material material;
  10398. Array<Material> materials;
  10399. uint maxLights;
  10400. Model model;
  10401. /* readonly */
  10402. Node node;
  10403. /* readonly */
  10404. uint numAttributes;
  10405. /* readonly */
  10406. uint numGeometries;
  10407. ObjectAnimation objectAnimation;
  10408. bool occludee;
  10409. bool occluder;
  10410. uint occlusionLodLevel;
  10411. /* readonly */
  10412. int refs;
  10413. float shadowDistance;
  10414. uint shadowMask;
  10415. bool temporary;
  10416. /* readonly */
  10417. StringHash type;
  10418. /* readonly */
  10419. String typeName;
  10420. uint viewMask;
  10421. /* readonly */
  10422. int weakRefs;
  10423. /* readonly */
  10424. BoundingBox worldBoundingBox;
  10425. uint zoneMask;
  10426. };
  10427. class StaticModelGroup
  10428. {
  10429. // Methods:
  10430. void AddInstanceNode(Node);
  10431. void ApplyAttributes();
  10432. void ApplyMaterialList(const String& = String ( ));
  10433. void DrawDebugGeometry(DebugRenderer, bool);
  10434. Variant GetAttribute(const String&) const;
  10435. ValueAnimation GetAttributeAnimation(const String&) const;
  10436. float GetAttributeAnimationSpeed(const String&) const;
  10437. float GetAttributeAnimationTime(const String&) const;
  10438. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10439. Variant GetAttributeDefault(const String&) const;
  10440. bool GetInterceptNetworkUpdate(const String&) const;
  10441. bool HasSubscribedToEvent(Object, const String&);
  10442. bool HasSubscribedToEvent(const String&);
  10443. bool IsInView(Camera) const;
  10444. bool Load(File, bool = false);
  10445. bool Load(VectorBuffer&, bool = false);
  10446. bool LoadJSON(const JSONValue&, bool = false);
  10447. bool LoadXML(const XMLElement&, bool = false);
  10448. void MarkNetworkUpdate() const;
  10449. void Remove();
  10450. void RemoveAllInstanceNodes();
  10451. void RemoveAttributeAnimation(const String&);
  10452. void RemoveInstanceDefault();
  10453. void RemoveInstanceNode(Node);
  10454. void RemoveObjectAnimation();
  10455. void ResetToDefault();
  10456. bool Save(File) const;
  10457. bool Save(VectorBuffer&) const;
  10458. bool SaveJSON(JSONValue&) const;
  10459. bool SaveXML(XMLElement&) const;
  10460. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10461. void SetAnimationTime(float);
  10462. bool SetAttribute(const String&, const Variant&);
  10463. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10464. void SetAttributeAnimationSpeed(const String&, float);
  10465. void SetAttributeAnimationTime(const String&, float);
  10466. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10467. void SetInterceptNetworkUpdate(const String&, bool);
  10468. // Properties:
  10469. bool animationEnabled;
  10470. /* readonly */
  10471. Array<Variant> attributeDefaults;
  10472. /* readonly */
  10473. Array<AttributeInfo> attributeInfos;
  10474. Array<Variant> attributes;
  10475. /* readonly */
  10476. BoundingBox boundingBox;
  10477. bool castShadows;
  10478. /* readonly */
  10479. String category;
  10480. float drawDistance;
  10481. bool enabled;
  10482. /* readonly */
  10483. bool enabledEffective;
  10484. /* readonly */
  10485. uint id;
  10486. /* readonly */
  10487. bool inView;
  10488. /* readonly */
  10489. Array<Node> instanceNodes;
  10490. uint lightMask;
  10491. float lodBias;
  10492. /* writeonly */
  10493. Material material;
  10494. Array<Material> materials;
  10495. uint maxLights;
  10496. Model model;
  10497. /* readonly */
  10498. Node node;
  10499. /* readonly */
  10500. uint numAttributes;
  10501. /* readonly */
  10502. uint numGeometries;
  10503. /* readonly */
  10504. uint numInstanceNodes;
  10505. ObjectAnimation objectAnimation;
  10506. bool occludee;
  10507. bool occluder;
  10508. uint occlusionLodLevel;
  10509. /* readonly */
  10510. int refs;
  10511. float shadowDistance;
  10512. uint shadowMask;
  10513. bool temporary;
  10514. /* readonly */
  10515. StringHash type;
  10516. /* readonly */
  10517. String typeName;
  10518. uint viewMask;
  10519. /* readonly */
  10520. int weakRefs;
  10521. /* readonly */
  10522. BoundingBox worldBoundingBox;
  10523. /* readonly */
  10524. Zone zone;
  10525. uint zoneMask;
  10526. };
  10527. class StaticSprite2D
  10528. {
  10529. // Methods:
  10530. void ApplyAttributes();
  10531. void DrawDebugGeometry(DebugRenderer, bool);
  10532. Variant GetAttribute(const String&) const;
  10533. ValueAnimation GetAttributeAnimation(const String&) const;
  10534. float GetAttributeAnimationSpeed(const String&) const;
  10535. float GetAttributeAnimationTime(const String&) const;
  10536. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10537. Variant GetAttributeDefault(const String&) const;
  10538. bool GetInterceptNetworkUpdate(const String&) const;
  10539. bool HasSubscribedToEvent(Object, const String&);
  10540. bool HasSubscribedToEvent(const String&);
  10541. bool IsInView(Camera) const;
  10542. bool Load(File, bool = false);
  10543. bool Load(VectorBuffer&, bool = false);
  10544. bool LoadJSON(const JSONValue&, bool = false);
  10545. bool LoadXML(const XMLElement&, bool = false);
  10546. void MarkNetworkUpdate() const;
  10547. void Remove();
  10548. void RemoveAttributeAnimation(const String&);
  10549. void RemoveInstanceDefault();
  10550. void RemoveObjectAnimation();
  10551. void ResetToDefault();
  10552. bool Save(File) const;
  10553. bool Save(VectorBuffer&) const;
  10554. bool SaveJSON(JSONValue&) const;
  10555. bool SaveXML(XMLElement&) const;
  10556. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10557. void SetAnimationTime(float);
  10558. bool SetAttribute(const String&, const Variant&);
  10559. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10560. void SetAttributeAnimationSpeed(const String&, float);
  10561. void SetAttributeAnimationTime(const String&, float);
  10562. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10563. void SetFlip(bool, bool);
  10564. void SetInterceptNetworkUpdate(const String&, bool);
  10565. // Properties:
  10566. float alpha;
  10567. bool animationEnabled;
  10568. /* readonly */
  10569. Array<Variant> attributeDefaults;
  10570. /* readonly */
  10571. Array<AttributeInfo> attributeInfos;
  10572. Array<Variant> attributes;
  10573. BlendMode blendMode;
  10574. /* readonly */
  10575. BoundingBox boundingBox;
  10576. bool castShadows;
  10577. /* readonly */
  10578. String category;
  10579. Color color;
  10580. Material customMaterial;
  10581. float drawDistance;
  10582. bool enabled;
  10583. /* readonly */
  10584. bool enabledEffective;
  10585. bool flipX;
  10586. bool flipY;
  10587. Vector2 hotSpot;
  10588. /* readonly */
  10589. uint id;
  10590. /* readonly */
  10591. bool inView;
  10592. int layer;
  10593. uint lightMask;
  10594. float lodBias;
  10595. uint maxLights;
  10596. /* readonly */
  10597. Node node;
  10598. /* readonly */
  10599. uint numAttributes;
  10600. ObjectAnimation objectAnimation;
  10601. bool occludee;
  10602. bool occluder;
  10603. int orderInLayer;
  10604. /* readonly */
  10605. int refs;
  10606. float shadowDistance;
  10607. uint shadowMask;
  10608. Sprite2D sprite;
  10609. bool temporary;
  10610. /* readonly */
  10611. StringHash type;
  10612. /* readonly */
  10613. String typeName;
  10614. bool useHotSpot;
  10615. uint viewMask;
  10616. /* readonly */
  10617. int weakRefs;
  10618. /* readonly */
  10619. BoundingBox worldBoundingBox;
  10620. uint zoneMask;
  10621. };
  10622. class String
  10623. {
  10624. // Methods:
  10625. void AppendUTF8(uint);
  10626. uint AtUTF8(uint) const;
  10627. uint ByteOffsetUTF8(uint) const;
  10628. void Clear();
  10629. int Compare(const String&, bool = true) const;
  10630. bool Contains(const String&, bool = true) const;
  10631. bool Contains(uint8, bool = true) const;
  10632. bool EndsWith(const String&, bool = true) const;
  10633. uint Find(const String&, uint = 0, bool = true) const;
  10634. uint Find(uint8, uint = 0, bool = true) const;
  10635. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10636. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10637. void Join(Array<String>&, const String&);
  10638. uint NextUTF8Char(uint&) const;
  10639. void Replace(const String&, const String&, bool = true);
  10640. void Replace(uint8, uint8, bool = true);
  10641. void ReplaceUTF8(uint, uint);
  10642. String Replaced(const String&, const String&, bool = true) const;
  10643. String Replaced(uint8, uint8, bool = true) const;
  10644. void Resize(uint);
  10645. void SetUTF8FromLatin1(const String&);
  10646. Array<String> Split(uint8, bool = false) const;
  10647. bool StartsWith(const String&, bool = true) const;
  10648. String Substring(uint) const;
  10649. String Substring(uint, uint) const;
  10650. String SubstringUTF8(uint) const;
  10651. String SubstringUTF8(uint, uint) const;
  10652. bool ToBool() const;
  10653. Color ToColor() const;
  10654. double ToDouble() const;
  10655. float ToFloat() const;
  10656. int ToInt() const;
  10657. IntRect ToIntRect() const;
  10658. IntVector2 ToIntVector2() const;
  10659. String ToLower() const;
  10660. Matrix3 ToMatrix3() const;
  10661. Matrix3x4 ToMatrix3x4() const;
  10662. Matrix4 ToMatrix4() const;
  10663. Quaternion ToQuaternion() const;
  10664. uint ToUInt() const;
  10665. String ToUpper() const;
  10666. Vector2 ToVector2() const;
  10667. Vector3 ToVector3() const;
  10668. Vector4 ToVector4(bool = false) const;
  10669. Variant ToVectorVariant() const;
  10670. String Trimmed() const;
  10671. // Properties:
  10672. /* readonly */
  10673. bool empty;
  10674. /* readonly */
  10675. uint length;
  10676. /* readonly */
  10677. uint utf8Length;
  10678. };
  10679. class StringHash
  10680. {
  10681. // Methods:
  10682. String ToString() const;
  10683. // Properties:
  10684. /* readonly */
  10685. uint value;
  10686. };
  10687. class Technique
  10688. {
  10689. // Methods:
  10690. Technique Clone(const String& = String ( )) const;
  10691. Pass CreatePass(const String&);
  10692. Pass GetPass(const String&);
  10693. Pass GetSupportedPass(const String&);
  10694. bool HasPass(const String&) const;
  10695. bool HasSubscribedToEvent(Object, const String&);
  10696. bool HasSubscribedToEvent(const String&);
  10697. bool Load(File);
  10698. bool Load(VectorBuffer&);
  10699. void RemovePass(const String&);
  10700. bool Save(File) const;
  10701. bool Save(VectorBuffer&) const;
  10702. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10703. // Properties:
  10704. /* readonly */
  10705. String category;
  10706. bool desktop;
  10707. /* readonly */
  10708. uint memoryUse;
  10709. String name;
  10710. /* readonly */
  10711. uint numPasses;
  10712. /* readonly */
  10713. Array<String> passNames;
  10714. /* readonly */
  10715. Array<Pass> passes;
  10716. /* readonly */
  10717. int refs;
  10718. /* readonly */
  10719. bool supported;
  10720. /* readonly */
  10721. StringHash type;
  10722. /* readonly */
  10723. String typeName;
  10724. /* readonly */
  10725. uint useTimer;
  10726. /* readonly */
  10727. int weakRefs;
  10728. };
  10729. class TechniqueEntry
  10730. {
  10731. // Properties:
  10732. float lodDistance;
  10733. int qualityLevel;
  10734. Technique technique;
  10735. };
  10736. class Terrain
  10737. {
  10738. // Methods:
  10739. void ApplyAttributes();
  10740. void ApplyHeightMap();
  10741. void DrawDebugGeometry(DebugRenderer, bool);
  10742. Variant GetAttribute(const String&) const;
  10743. ValueAnimation GetAttributeAnimation(const String&) const;
  10744. float GetAttributeAnimationSpeed(const String&) const;
  10745. float GetAttributeAnimationTime(const String&) const;
  10746. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10747. Variant GetAttributeDefault(const String&) const;
  10748. float GetHeight(const Vector3&) const;
  10749. bool GetInterceptNetworkUpdate(const String&) const;
  10750. Vector3 GetNormal(const Vector3&) const;
  10751. TerrainPatch GetPatch(int, int) const;
  10752. bool HasSubscribedToEvent(Object, const String&);
  10753. bool HasSubscribedToEvent(const String&);
  10754. bool Load(File, bool = false);
  10755. bool Load(VectorBuffer&, bool = false);
  10756. bool LoadJSON(const JSONValue&, bool = false);
  10757. bool LoadXML(const XMLElement&, bool = false);
  10758. void MarkNetworkUpdate() const;
  10759. void Remove();
  10760. void RemoveAttributeAnimation(const String&);
  10761. void RemoveInstanceDefault();
  10762. void RemoveObjectAnimation();
  10763. void ResetToDefault();
  10764. bool Save(File) const;
  10765. bool Save(VectorBuffer&) const;
  10766. bool SaveJSON(JSONValue&) const;
  10767. bool SaveXML(XMLElement&) const;
  10768. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10769. void SetAnimationTime(float);
  10770. bool SetAttribute(const String&, const Variant&);
  10771. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10772. void SetAttributeAnimationSpeed(const String&, float);
  10773. void SetAttributeAnimationTime(const String&, float);
  10774. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10775. void SetInterceptNetworkUpdate(const String&, bool);
  10776. IntVector2 WorldToHeightMap(const Vector3&) const;
  10777. // Properties:
  10778. bool animationEnabled;
  10779. /* readonly */
  10780. Array<Variant> attributeDefaults;
  10781. /* readonly */
  10782. Array<AttributeInfo> attributeInfos;
  10783. Array<Variant> attributes;
  10784. bool castShadows;
  10785. /* readonly */
  10786. String category;
  10787. float drawDistance;
  10788. bool enabled;
  10789. /* readonly */
  10790. bool enabledEffective;
  10791. Image heightMap;
  10792. /* readonly */
  10793. uint id;
  10794. uint lightMask;
  10795. float lodBias;
  10796. Material material;
  10797. uint maxLights;
  10798. uint maxLodLevels;
  10799. /* readonly */
  10800. Node node;
  10801. /* readonly */
  10802. uint numAttributes;
  10803. /* readonly */
  10804. IntVector2 numPatches;
  10805. /* readonly */
  10806. IntVector2 numVertices;
  10807. ObjectAnimation objectAnimation;
  10808. bool occludee;
  10809. bool occluder;
  10810. uint occlusionLodLevel;
  10811. int patchSize;
  10812. /* readonly */
  10813. Array<TerrainPatch> patches;
  10814. /* readonly */
  10815. int refs;
  10816. float shadowDistance;
  10817. uint shadowMask;
  10818. bool smoothing;
  10819. Vector3 spacing;
  10820. bool temporary;
  10821. /* readonly */
  10822. StringHash type;
  10823. /* readonly */
  10824. String typeName;
  10825. uint viewMask;
  10826. /* readonly */
  10827. int weakRefs;
  10828. uint zoneMask;
  10829. };
  10830. class TerrainPatch
  10831. {
  10832. // Methods:
  10833. void ApplyAttributes();
  10834. void DrawDebugGeometry(DebugRenderer, bool);
  10835. Variant GetAttribute(const String&) const;
  10836. ValueAnimation GetAttributeAnimation(const String&) const;
  10837. float GetAttributeAnimationSpeed(const String&) const;
  10838. float GetAttributeAnimationTime(const String&) const;
  10839. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10840. Variant GetAttributeDefault(const String&) const;
  10841. bool GetInterceptNetworkUpdate(const String&) const;
  10842. bool HasSubscribedToEvent(Object, const String&);
  10843. bool HasSubscribedToEvent(const String&);
  10844. bool IsInView(Camera) const;
  10845. bool Load(File, bool = false);
  10846. bool Load(VectorBuffer&, bool = false);
  10847. bool LoadJSON(const JSONValue&, bool = false);
  10848. bool LoadXML(const XMLElement&, bool = false);
  10849. void MarkNetworkUpdate() const;
  10850. void Remove();
  10851. void RemoveAttributeAnimation(const String&);
  10852. void RemoveInstanceDefault();
  10853. void RemoveObjectAnimation();
  10854. void ResetToDefault();
  10855. bool Save(File) const;
  10856. bool Save(VectorBuffer&) const;
  10857. bool SaveJSON(JSONValue&) const;
  10858. bool SaveXML(XMLElement&) const;
  10859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10860. void SetAnimationTime(float);
  10861. bool SetAttribute(const String&, const Variant&);
  10862. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10863. void SetAttributeAnimationSpeed(const String&, float);
  10864. void SetAttributeAnimationTime(const String&, float);
  10865. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10866. void SetInterceptNetworkUpdate(const String&, bool);
  10867. // Properties:
  10868. bool animationEnabled;
  10869. /* readonly */
  10870. Array<Variant> attributeDefaults;
  10871. /* readonly */
  10872. Array<AttributeInfo> attributeInfos;
  10873. Array<Variant> attributes;
  10874. /* readonly */
  10875. BoundingBox boundingBox;
  10876. bool castShadows;
  10877. /* readonly */
  10878. String category;
  10879. float drawDistance;
  10880. bool enabled;
  10881. /* readonly */
  10882. bool enabledEffective;
  10883. /* readonly */
  10884. uint id;
  10885. /* readonly */
  10886. bool inView;
  10887. uint lightMask;
  10888. float lodBias;
  10889. uint maxLights;
  10890. /* readonly */
  10891. Node node;
  10892. /* readonly */
  10893. uint numAttributes;
  10894. ObjectAnimation objectAnimation;
  10895. bool occludee;
  10896. bool occluder;
  10897. /* readonly */
  10898. int refs;
  10899. float shadowDistance;
  10900. uint shadowMask;
  10901. bool temporary;
  10902. /* readonly */
  10903. StringHash type;
  10904. /* readonly */
  10905. String typeName;
  10906. uint viewMask;
  10907. /* readonly */
  10908. int weakRefs;
  10909. /* readonly */
  10910. BoundingBox worldBoundingBox;
  10911. uint zoneMask;
  10912. };
  10913. class Text
  10914. {
  10915. // Methods:
  10916. void AddChild(UIElement);
  10917. void AddTag(const String&);
  10918. void AddTags(const String&, int8 = ';');
  10919. void ApplyAttributes();
  10920. void BringToFront();
  10921. void ClearSelection();
  10922. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10923. void DisableLayoutUpdate();
  10924. IntVector2 ElementToScreen(const IntVector2&);
  10925. void EnableLayoutUpdate();
  10926. uint FindChild(UIElement) const;
  10927. Variant GetAttribute(const String&) const;
  10928. ValueAnimation GetAttributeAnimation(const String&) const;
  10929. float GetAttributeAnimationSpeed(const String&) const;
  10930. float GetAttributeAnimationTime(const String&) const;
  10931. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10932. Variant GetAttributeDefault(const String&) const;
  10933. UIElement GetChild(const String&, bool = false) const;
  10934. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10935. Array<UIElement> GetChildren(bool = false) const;
  10936. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10937. UIElement GetElementEventSender() const;
  10938. bool GetInterceptNetworkUpdate(const String&) const;
  10939. uint GetNumChildren(bool) const;
  10940. bool HasSubscribedToEvent(Object, const String&);
  10941. bool HasSubscribedToEvent(const String&);
  10942. bool HasTag(const String&) const;
  10943. void InsertChild(uint, UIElement);
  10944. bool IsInside(IntVector2, bool);
  10945. bool IsInsideCombined(IntVector2, bool);
  10946. bool Load(File, bool = false);
  10947. bool Load(VectorBuffer&, bool = false);
  10948. bool LoadChildXML(XMLFile, XMLFile = null);
  10949. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10950. bool LoadJSON(const JSONValue&, bool = false);
  10951. bool LoadXML(File);
  10952. bool LoadXML(VectorBuffer&);
  10953. bool LoadXML(XMLFile, XMLFile);
  10954. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10955. bool LoadXML(const XMLElement&, bool = false);
  10956. void MarkNetworkUpdate() const;
  10957. void Remove();
  10958. void RemoveAllChildren();
  10959. void RemoveAllTags();
  10960. void RemoveAttributeAnimation(const String&);
  10961. void RemoveChild(UIElement, uint = 0);
  10962. void RemoveChild(uint);
  10963. void RemoveInstanceDefault();
  10964. void RemoveObjectAnimation();
  10965. bool RemoveTag(const String&);
  10966. void ResetDeepEnabled();
  10967. void ResetToDefault();
  10968. bool Save(File) const;
  10969. bool Save(VectorBuffer&) const;
  10970. bool SaveJSON(JSONValue&) const;
  10971. bool SaveXML(File, const String& = "\t");
  10972. bool SaveXML(VectorBuffer&, const String& = "\t");
  10973. bool SaveXML(XMLElement&) const;
  10974. IntVector2 ScreenToElement(const IntVector2&);
  10975. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10976. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10977. void SetAnimationTime(float);
  10978. bool SetAttribute(const String&, const Variant&);
  10979. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10980. void SetAttributeAnimationSpeed(const String&, float);
  10981. void SetAttributeAnimationTime(const String&, float);
  10982. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10983. void SetDeepEnabled(bool);
  10984. void SetEnabledRecursive(bool);
  10985. void SetFixedHeight(int);
  10986. void SetFixedSize(int, int);
  10987. void SetFixedWidth(int);
  10988. bool SetFont(Font, int);
  10989. bool SetFont(const String&, int);
  10990. void SetInterceptNetworkUpdate(const String&, bool);
  10991. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10992. void SetMaxSize(int, int);
  10993. void SetMinSize(int, int);
  10994. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10995. void SetPosition(int, int);
  10996. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10997. void SetSize(int, int);
  10998. bool SetStyle(const String&, XMLFile = null);
  10999. bool SetStyle(const XMLElement&);
  11000. bool SetStyleAuto(XMLFile = null);
  11001. void UpdateLayout();
  11002. const Variant& GetVar(const StringHash&);
  11003. // Properties:
  11004. bool animationEnabled;
  11005. /* readonly */
  11006. Array<Variant> attributeDefaults;
  11007. /* readonly */
  11008. Array<AttributeInfo> attributeInfos;
  11009. Array<Variant> attributes;
  11010. bool autoLocalizable;
  11011. bool bringToBack;
  11012. bool bringToFront;
  11013. /* readonly */
  11014. String category;
  11015. /* readonly */
  11016. Array<IntVector2> charPositions;
  11017. /* readonly */
  11018. Array<IntVector2> charSizes;
  11019. /* readonly */
  11020. IntVector2 childOffset;
  11021. /* readonly */
  11022. Array<UIElement> children;
  11023. IntRect clipBorder;
  11024. bool clipChildren;
  11025. /* writeonly */
  11026. Color color;
  11027. /* readonly */
  11028. bool colorGradient;
  11029. Array<Color> colors;
  11030. /* readonly */
  11031. IntRect combinedScreenRect;
  11032. XMLFile defaultStyle;
  11033. /* readonly */
  11034. float derivedOpacity;
  11035. /* readonly */
  11036. uint dragButtonCombo;
  11037. /* readonly */
  11038. int dragButtonCount;
  11039. uint dragDropMode;
  11040. bool editable;
  11041. Color effectColor;
  11042. bool elementEventSender;
  11043. bool enabled;
  11044. /* readonly */
  11045. bool enabledSelf;
  11046. /* readonly */
  11047. bool fixedHeight;
  11048. /* readonly */
  11049. bool fixedSize;
  11050. /* readonly */
  11051. bool fixedWidth;
  11052. bool focus;
  11053. FocusMode focusMode;
  11054. /* readonly */
  11055. Font font;
  11056. /* readonly */
  11057. int fontSize;
  11058. int height;
  11059. HorizontalAlignment horizontalAlignment;
  11060. Color hoverColor;
  11061. /* readonly */
  11062. bool hovering;
  11063. int indent;
  11064. int indentSpacing;
  11065. /* readonly */
  11066. int indentWidth;
  11067. bool internal;
  11068. IntRect layoutBorder;
  11069. Vector2 layoutFlexScale;
  11070. LayoutMode layoutMode;
  11071. int layoutSpacing;
  11072. int maxHeight;
  11073. IntVector2 maxSize;
  11074. int maxWidth;
  11075. int minHeight;
  11076. IntVector2 minSize;
  11077. int minWidth;
  11078. String name;
  11079. /* readonly */
  11080. uint numAllChildren;
  11081. /* readonly */
  11082. uint numAttributes;
  11083. /* readonly */
  11084. uint numChars;
  11085. /* readonly */
  11086. uint numChildren;
  11087. /* readonly */
  11088. uint numRows;
  11089. ObjectAnimation objectAnimation;
  11090. float opacity;
  11091. UIElement parent;
  11092. IntVector2 position;
  11093. int priority;
  11094. /* readonly */
  11095. int refs;
  11096. /* readonly */
  11097. UIElement root;
  11098. /* readonly */
  11099. int rowHeight;
  11100. float rowSpacing;
  11101. /* readonly */
  11102. Array<int> rowWidths;
  11103. /* readonly */
  11104. IntVector2 screenPosition;
  11105. bool selected;
  11106. Color selectionColor;
  11107. /* readonly */
  11108. uint selectionLength;
  11109. /* readonly */
  11110. uint selectionStart;
  11111. IntVector2 size;
  11112. bool sortChildren;
  11113. String style;
  11114. /* readonly */
  11115. Array<String> tags;
  11116. bool temporary;
  11117. String text;
  11118. HorizontalAlignment textAlignment;
  11119. TextEffect textEffect;
  11120. TraversalMode traversalMode;
  11121. /* readonly */
  11122. StringHash type;
  11123. /* readonly */
  11124. String typeName;
  11125. bool useDerivedOpacity;
  11126. /* readonly */
  11127. VariantMap vars;
  11128. VerticalAlignment verticalAlignment;
  11129. bool visible;
  11130. /* readonly */
  11131. bool visibleEffective;
  11132. /* readonly */
  11133. int weakRefs;
  11134. int width;
  11135. bool wordwrap;
  11136. };
  11137. class Text3D
  11138. {
  11139. // Methods:
  11140. void ApplyAttributes();
  11141. void DrawDebugGeometry(DebugRenderer, bool);
  11142. Variant GetAttribute(const String&) const;
  11143. ValueAnimation GetAttributeAnimation(const String&) const;
  11144. float GetAttributeAnimationSpeed(const String&) const;
  11145. float GetAttributeAnimationTime(const String&) const;
  11146. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11147. Variant GetAttributeDefault(const String&) const;
  11148. bool GetInterceptNetworkUpdate(const String&) const;
  11149. bool HasSubscribedToEvent(Object, const String&);
  11150. bool HasSubscribedToEvent(const String&);
  11151. bool IsInView(Camera) const;
  11152. bool Load(File, bool = false);
  11153. bool Load(VectorBuffer&, bool = false);
  11154. bool LoadJSON(const JSONValue&, bool = false);
  11155. bool LoadXML(const XMLElement&, bool = false);
  11156. void MarkNetworkUpdate() const;
  11157. void Remove();
  11158. void RemoveAttributeAnimation(const String&);
  11159. void RemoveInstanceDefault();
  11160. void RemoveObjectAnimation();
  11161. void ResetToDefault();
  11162. bool Save(File) const;
  11163. bool Save(VectorBuffer&) const;
  11164. bool SaveJSON(JSONValue&) const;
  11165. bool SaveXML(XMLElement&) const;
  11166. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11167. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11168. void SetAnimationTime(float);
  11169. bool SetAttribute(const String&, const Variant&);
  11170. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11171. void SetAttributeAnimationSpeed(const String&, float);
  11172. void SetAttributeAnimationTime(const String&, float);
  11173. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11174. bool SetFont(Font, int);
  11175. bool SetFont(const String&, int);
  11176. void SetInterceptNetworkUpdate(const String&, bool);
  11177. // Properties:
  11178. bool animationEnabled;
  11179. /* readonly */
  11180. Array<Variant> attributeDefaults;
  11181. /* readonly */
  11182. Array<AttributeInfo> attributeInfos;
  11183. Array<Variant> attributes;
  11184. /* readonly */
  11185. BoundingBox boundingBox;
  11186. bool castShadows;
  11187. /* readonly */
  11188. String category;
  11189. /* readonly */
  11190. Array<IntVector2> charPositions;
  11191. /* readonly */
  11192. Array<IntVector2> charSizes;
  11193. /* writeonly */
  11194. Color color;
  11195. Array<Color> colors;
  11196. float drawDistance;
  11197. Color effectColor;
  11198. float effectDepthBias;
  11199. bool enabled;
  11200. /* readonly */
  11201. bool enabledEffective;
  11202. FaceCameraMode faceCameraMode;
  11203. /* readonly */
  11204. Font font;
  11205. /* readonly */
  11206. int fontSize;
  11207. HorizontalAlignment horizontalAlignment;
  11208. /* readonly */
  11209. uint id;
  11210. /* readonly */
  11211. bool inView;
  11212. uint lightMask;
  11213. float lodBias;
  11214. Material material;
  11215. uint maxLights;
  11216. /* readonly */
  11217. Node node;
  11218. /* readonly */
  11219. uint numAttributes;
  11220. /* readonly */
  11221. uint numChars;
  11222. /* readonly */
  11223. uint numRows;
  11224. ObjectAnimation objectAnimation;
  11225. bool occludee;
  11226. bool occluder;
  11227. float opacity;
  11228. /* readonly */
  11229. int refs;
  11230. /* readonly */
  11231. int rowHeight;
  11232. float rowSpacing;
  11233. /* readonly */
  11234. Array<int> rowWidths;
  11235. float shadowDistance;
  11236. uint shadowMask;
  11237. bool temporary;
  11238. String text;
  11239. HorizontalAlignment textAlignment;
  11240. TextEffect textEffect;
  11241. /* readonly */
  11242. StringHash type;
  11243. /* readonly */
  11244. String typeName;
  11245. VerticalAlignment verticalAlignment;
  11246. uint viewMask;
  11247. /* readonly */
  11248. int weakRefs;
  11249. int width;
  11250. bool wordwrap;
  11251. /* readonly */
  11252. BoundingBox worldBoundingBox;
  11253. uint zoneMask;
  11254. };
  11255. class Texture
  11256. {
  11257. // Methods:
  11258. void ClearDataLost();
  11259. bool HasSubscribedToEvent(Object, const String&);
  11260. bool HasSubscribedToEvent(const String&);
  11261. bool Load(File);
  11262. bool Load(VectorBuffer&);
  11263. bool Save(File) const;
  11264. bool Save(VectorBuffer&) const;
  11265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11266. void SetNumLevels(uint);
  11267. // Properties:
  11268. Array<TextureAddressMode> addressMode;
  11269. Texture backupTexture;
  11270. Color borderColor;
  11271. /* readonly */
  11272. String category;
  11273. /* readonly */
  11274. uint components;
  11275. /* readonly */
  11276. bool compressed;
  11277. /* readonly */
  11278. bool dataLost;
  11279. TextureFilterMode filterMode;
  11280. /* readonly */
  11281. uint format;
  11282. /* readonly */
  11283. int height;
  11284. /* readonly */
  11285. Array<int> levelHeight;
  11286. /* readonly */
  11287. Array<int> levelWidth;
  11288. /* readonly */
  11289. uint levels;
  11290. /* readonly */
  11291. uint memoryUse;
  11292. Array<int> mipsToSkip;
  11293. String name;
  11294. /* readonly */
  11295. int refs;
  11296. bool sRGB;
  11297. /* readonly */
  11298. StringHash type;
  11299. /* readonly */
  11300. String typeName;
  11301. /* readonly */
  11302. TextureUsage usage;
  11303. /* readonly */
  11304. uint useTimer;
  11305. /* readonly */
  11306. int weakRefs;
  11307. /* readonly */
  11308. int width;
  11309. };
  11310. class Texture2D
  11311. {
  11312. // Methods:
  11313. void ClearDataLost();
  11314. Image GetImage() const;
  11315. bool HasSubscribedToEvent(Object, const String&);
  11316. bool HasSubscribedToEvent(const String&);
  11317. bool Load(File);
  11318. bool Load(VectorBuffer&);
  11319. bool Save(File) const;
  11320. bool Save(VectorBuffer&) const;
  11321. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11322. bool SetData(Image, bool = false);
  11323. void SetNumLevels(uint);
  11324. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11325. // Properties:
  11326. Array<TextureAddressMode> addressMode;
  11327. Texture backupTexture;
  11328. Color borderColor;
  11329. /* readonly */
  11330. String category;
  11331. /* readonly */
  11332. uint components;
  11333. /* readonly */
  11334. bool compressed;
  11335. /* readonly */
  11336. bool dataLost;
  11337. TextureFilterMode filterMode;
  11338. /* readonly */
  11339. uint format;
  11340. /* readonly */
  11341. int height;
  11342. /* readonly */
  11343. Array<int> levelHeight;
  11344. /* readonly */
  11345. Array<int> levelWidth;
  11346. /* readonly */
  11347. uint levels;
  11348. /* readonly */
  11349. uint memoryUse;
  11350. Array<int> mipsToSkip;
  11351. String name;
  11352. /* readonly */
  11353. int refs;
  11354. /* readonly */
  11355. RenderSurface renderSurface;
  11356. bool sRGB;
  11357. /* readonly */
  11358. StringHash type;
  11359. /* readonly */
  11360. String typeName;
  11361. /* readonly */
  11362. TextureUsage usage;
  11363. /* readonly */
  11364. uint useTimer;
  11365. /* readonly */
  11366. int weakRefs;
  11367. /* readonly */
  11368. int width;
  11369. };
  11370. class Texture2DArray
  11371. {
  11372. // Methods:
  11373. void ClearDataLost();
  11374. bool HasSubscribedToEvent(Object, const String&);
  11375. bool HasSubscribedToEvent(const String&);
  11376. bool Load(File);
  11377. bool Load(VectorBuffer&);
  11378. bool Save(File) const;
  11379. bool Save(VectorBuffer&) const;
  11380. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11381. bool SetData(uint, Image, bool = false);
  11382. void SetNumLevels(uint);
  11383. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11384. // Properties:
  11385. Array<TextureAddressMode> addressMode;
  11386. Texture backupTexture;
  11387. Color borderColor;
  11388. /* readonly */
  11389. String category;
  11390. /* readonly */
  11391. uint components;
  11392. /* readonly */
  11393. bool compressed;
  11394. /* readonly */
  11395. bool dataLost;
  11396. TextureFilterMode filterMode;
  11397. /* readonly */
  11398. uint format;
  11399. /* readonly */
  11400. int height;
  11401. uint layers;
  11402. /* readonly */
  11403. Array<int> levelHeight;
  11404. /* readonly */
  11405. Array<int> levelWidth;
  11406. /* readonly */
  11407. uint levels;
  11408. /* readonly */
  11409. uint memoryUse;
  11410. Array<int> mipsToSkip;
  11411. String name;
  11412. /* readonly */
  11413. int refs;
  11414. /* readonly */
  11415. RenderSurface renderSurface;
  11416. bool sRGB;
  11417. /* readonly */
  11418. StringHash type;
  11419. /* readonly */
  11420. String typeName;
  11421. /* readonly */
  11422. TextureUsage usage;
  11423. /* readonly */
  11424. uint useTimer;
  11425. /* readonly */
  11426. int weakRefs;
  11427. /* readonly */
  11428. int width;
  11429. };
  11430. class Texture3D
  11431. {
  11432. // Methods:
  11433. void ClearDataLost();
  11434. bool HasSubscribedToEvent(Object, const String&);
  11435. bool HasSubscribedToEvent(const String&);
  11436. bool Load(File);
  11437. bool Load(VectorBuffer&);
  11438. bool Save(File) const;
  11439. bool Save(VectorBuffer&) const;
  11440. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11441. bool SetData(Image, bool = false);
  11442. void SetNumLevels(uint);
  11443. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11444. // Properties:
  11445. Array<TextureAddressMode> addressMode;
  11446. Texture backupTexture;
  11447. Color borderColor;
  11448. /* readonly */
  11449. String category;
  11450. /* readonly */
  11451. uint components;
  11452. /* readonly */
  11453. bool compressed;
  11454. /* readonly */
  11455. bool dataLost;
  11456. TextureFilterMode filterMode;
  11457. /* readonly */
  11458. uint format;
  11459. /* readonly */
  11460. int height;
  11461. /* readonly */
  11462. Array<int> levelHeight;
  11463. /* readonly */
  11464. Array<int> levelWidth;
  11465. /* readonly */
  11466. uint levels;
  11467. /* readonly */
  11468. uint memoryUse;
  11469. Array<int> mipsToSkip;
  11470. String name;
  11471. /* readonly */
  11472. int refs;
  11473. bool sRGB;
  11474. /* readonly */
  11475. StringHash type;
  11476. /* readonly */
  11477. String typeName;
  11478. /* readonly */
  11479. TextureUsage usage;
  11480. /* readonly */
  11481. uint useTimer;
  11482. /* readonly */
  11483. int weakRefs;
  11484. /* readonly */
  11485. int width;
  11486. };
  11487. class TextureCube
  11488. {
  11489. // Methods:
  11490. void ClearDataLost();
  11491. Image GetImage(CubeMapFace) const;
  11492. bool HasSubscribedToEvent(Object, const String&);
  11493. bool HasSubscribedToEvent(const String&);
  11494. bool Load(File);
  11495. bool Load(VectorBuffer&);
  11496. bool Save(File) const;
  11497. bool Save(VectorBuffer&) const;
  11498. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11499. bool SetData(CubeMapFace, Image, bool = false);
  11500. void SetNumLevels(uint);
  11501. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11502. // Properties:
  11503. Array<TextureAddressMode> addressMode;
  11504. Texture backupTexture;
  11505. Color borderColor;
  11506. /* readonly */
  11507. String category;
  11508. /* readonly */
  11509. uint components;
  11510. /* readonly */
  11511. bool compressed;
  11512. /* readonly */
  11513. bool dataLost;
  11514. TextureFilterMode filterMode;
  11515. /* readonly */
  11516. uint format;
  11517. /* readonly */
  11518. int height;
  11519. /* readonly */
  11520. Array<int> levelHeight;
  11521. /* readonly */
  11522. Array<int> levelWidth;
  11523. /* readonly */
  11524. uint levels;
  11525. /* readonly */
  11526. uint memoryUse;
  11527. Array<int> mipsToSkip;
  11528. String name;
  11529. /* readonly */
  11530. int refs;
  11531. /* readonly */
  11532. Array<RenderSurface> renderSurfaces;
  11533. bool sRGB;
  11534. /* readonly */
  11535. StringHash type;
  11536. /* readonly */
  11537. String typeName;
  11538. /* readonly */
  11539. TextureUsage usage;
  11540. /* readonly */
  11541. uint useTimer;
  11542. /* readonly */
  11543. int weakRefs;
  11544. /* readonly */
  11545. int width;
  11546. };
  11547. class TextureFrame
  11548. {
  11549. // Properties:
  11550. float time;
  11551. Rect uv;
  11552. };
  11553. class Tile2D
  11554. {
  11555. // Methods:
  11556. bool HasProperty(const String&) const;
  11557. const String& GetProperty(const String&) const;
  11558. // Properties:
  11559. /* readonly */
  11560. int gid;
  11561. /* readonly */
  11562. int refs;
  11563. /* readonly */
  11564. Sprite2D sprite;
  11565. /* readonly */
  11566. int weakRefs;
  11567. };
  11568. class TileMap2D
  11569. {
  11570. // Methods:
  11571. void ApplyAttributes();
  11572. void DrawDebugGeometry(DebugRenderer, bool);
  11573. Variant GetAttribute(const String&) const;
  11574. ValueAnimation GetAttributeAnimation(const String&) const;
  11575. float GetAttributeAnimationSpeed(const String&) const;
  11576. float GetAttributeAnimationTime(const String&) const;
  11577. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11578. Variant GetAttributeDefault(const String&) const;
  11579. bool GetInterceptNetworkUpdate(const String&) const;
  11580. TileMapLayer2D GetLayer(uint) const;
  11581. bool HasSubscribedToEvent(Object, const String&);
  11582. bool HasSubscribedToEvent(const String&);
  11583. bool Load(File, bool = false);
  11584. bool Load(VectorBuffer&, bool = false);
  11585. bool LoadJSON(const JSONValue&, bool = false);
  11586. bool LoadXML(const XMLElement&, bool = false);
  11587. void MarkNetworkUpdate() const;
  11588. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11589. void Remove();
  11590. void RemoveAttributeAnimation(const String&);
  11591. void RemoveInstanceDefault();
  11592. void RemoveObjectAnimation();
  11593. void ResetToDefault();
  11594. bool Save(File) const;
  11595. bool Save(VectorBuffer&) const;
  11596. bool SaveJSON(JSONValue&) const;
  11597. bool SaveXML(XMLElement&) const;
  11598. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11599. void SetAnimationTime(float);
  11600. bool SetAttribute(const String&, const Variant&);
  11601. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11602. void SetAttributeAnimationSpeed(const String&, float);
  11603. void SetAttributeAnimationTime(const String&, float);
  11604. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11605. void SetInterceptNetworkUpdate(const String&, bool);
  11606. Vector2 TileIndexToPosition(int, int) const;
  11607. // Properties:
  11608. bool animationEnabled;
  11609. /* readonly */
  11610. Array<Variant> attributeDefaults;
  11611. /* readonly */
  11612. Array<AttributeInfo> attributeInfos;
  11613. Array<Variant> attributes;
  11614. /* readonly */
  11615. String category;
  11616. bool enabled;
  11617. /* readonly */
  11618. bool enabledEffective;
  11619. /* readonly */
  11620. uint id;
  11621. /* readonly */
  11622. TileMapInfo2D info;
  11623. /* readonly */
  11624. Node node;
  11625. /* readonly */
  11626. uint numAttributes;
  11627. /* readonly */
  11628. uint numLayers;
  11629. ObjectAnimation objectAnimation;
  11630. /* readonly */
  11631. int refs;
  11632. bool temporary;
  11633. TmxFile2D tmxFile;
  11634. /* readonly */
  11635. StringHash type;
  11636. /* readonly */
  11637. String typeName;
  11638. /* readonly */
  11639. int weakRefs;
  11640. };
  11641. class TileMapInfo2D
  11642. {
  11643. // Properties:
  11644. int height;
  11645. /* readonly */
  11646. float mapHeight;
  11647. /* readonly */
  11648. float mapWidth;
  11649. Orientation2D orientation;
  11650. float tileHeight;
  11651. float tileWidth;
  11652. int width;
  11653. };
  11654. class TileMapLayer2D
  11655. {
  11656. // Methods:
  11657. void ApplyAttributes();
  11658. void DrawDebugGeometry(DebugRenderer, bool);
  11659. Variant GetAttribute(const String&) const;
  11660. ValueAnimation GetAttributeAnimation(const String&) const;
  11661. float GetAttributeAnimationSpeed(const String&) const;
  11662. float GetAttributeAnimationTime(const String&) const;
  11663. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11664. Variant GetAttributeDefault(const String&) const;
  11665. bool GetInterceptNetworkUpdate(const String&) const;
  11666. TileMapObject2D GetObject(uint) const;
  11667. Node GetObjectNode(uint) const;
  11668. Tile2D GetTile(int, int) const;
  11669. Node GetTileNode(int, int) const;
  11670. bool HasProperty(const String&) const;
  11671. bool HasSubscribedToEvent(Object, const String&);
  11672. bool HasSubscribedToEvent(const String&);
  11673. bool Load(File, bool = false);
  11674. bool Load(VectorBuffer&, bool = false);
  11675. bool LoadJSON(const JSONValue&, bool = false);
  11676. bool LoadXML(const XMLElement&, bool = false);
  11677. void MarkNetworkUpdate() const;
  11678. void Remove();
  11679. void RemoveAttributeAnimation(const String&);
  11680. void RemoveInstanceDefault();
  11681. void RemoveObjectAnimation();
  11682. void ResetToDefault();
  11683. bool Save(File) const;
  11684. bool Save(VectorBuffer&) const;
  11685. bool SaveJSON(JSONValue&) const;
  11686. bool SaveXML(XMLElement&) const;
  11687. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11688. void SetAnimationTime(float);
  11689. bool SetAttribute(const String&, const Variant&);
  11690. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11691. void SetAttributeAnimationSpeed(const String&, float);
  11692. void SetAttributeAnimationTime(const String&, float);
  11693. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11694. void SetInterceptNetworkUpdate(const String&, bool);
  11695. const String& GetProperty(const String&) const;
  11696. // Properties:
  11697. bool animationEnabled;
  11698. /* readonly */
  11699. Array<Variant> attributeDefaults;
  11700. /* readonly */
  11701. Array<AttributeInfo> attributeInfos;
  11702. Array<Variant> attributes;
  11703. /* readonly */
  11704. String category;
  11705. int drawOrder;
  11706. bool enabled;
  11707. /* readonly */
  11708. bool enabledEffective;
  11709. /* readonly */
  11710. int height;
  11711. /* readonly */
  11712. uint id;
  11713. /* readonly */
  11714. Node imageNode;
  11715. /* readonly */
  11716. TileMapLayerType2D layerType;
  11717. /* readonly */
  11718. Node node;
  11719. /* readonly */
  11720. uint numAttributes;
  11721. /* readonly */
  11722. uint numObjects;
  11723. ObjectAnimation objectAnimation;
  11724. /* readonly */
  11725. int refs;
  11726. bool temporary;
  11727. /* readonly */
  11728. StringHash type;
  11729. /* readonly */
  11730. String typeName;
  11731. bool visible;
  11732. /* readonly */
  11733. int weakRefs;
  11734. /* readonly */
  11735. int width;
  11736. };
  11737. class TileMapObject2D
  11738. {
  11739. // Methods:
  11740. bool HasProperty(const String&) const;
  11741. const String& GetProperty(const String&) const;
  11742. const Vector2& GetPoint(uint) const;
  11743. // Properties:
  11744. /* readonly */
  11745. String name;
  11746. /* readonly */
  11747. uint numPoints;
  11748. /* readonly */
  11749. TileObjectType2D objectType;
  11750. /* readonly */
  11751. Vector2 position;
  11752. /* readonly */
  11753. int refs;
  11754. /* readonly */
  11755. Vector2 size;
  11756. /* readonly */
  11757. int tileGid;
  11758. /* readonly */
  11759. Sprite2D tileSprite;
  11760. /* readonly */
  11761. String type;
  11762. /* readonly */
  11763. int weakRefs;
  11764. };
  11765. class Time
  11766. {
  11767. // Methods:
  11768. bool HasSubscribedToEvent(Object, const String&);
  11769. bool HasSubscribedToEvent(const String&);
  11770. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11771. // Properties:
  11772. /* readonly */
  11773. String category;
  11774. /* readonly */
  11775. float elapsedTime;
  11776. /* readonly */
  11777. uint frameNumber;
  11778. /* readonly */
  11779. int refs;
  11780. /* readonly */
  11781. uint systemTime;
  11782. /* readonly */
  11783. uint timeSinceEpoch;
  11784. /* readonly */
  11785. String timeStamp;
  11786. /* readonly */
  11787. float timeStep;
  11788. /* readonly */
  11789. StringHash type;
  11790. /* readonly */
  11791. String typeName;
  11792. /* readonly */
  11793. int weakRefs;
  11794. };
  11795. class Timer
  11796. {
  11797. // Methods:
  11798. uint GetMSec(bool);
  11799. void Reset();
  11800. };
  11801. class TmxFile2D
  11802. {
  11803. // Methods:
  11804. bool HasSubscribedToEvent(Object, const String&);
  11805. bool HasSubscribedToEvent(const String&);
  11806. bool Load(File);
  11807. bool Load(VectorBuffer&);
  11808. bool Save(File) const;
  11809. bool Save(VectorBuffer&) const;
  11810. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11811. // Properties:
  11812. /* readonly */
  11813. String category;
  11814. /* readonly */
  11815. uint memoryUse;
  11816. String name;
  11817. /* readonly */
  11818. int refs;
  11819. /* readonly */
  11820. StringHash type;
  11821. /* readonly */
  11822. String typeName;
  11823. /* readonly */
  11824. uint useTimer;
  11825. /* readonly */
  11826. int weakRefs;
  11827. };
  11828. class ToolTip
  11829. {
  11830. // Methods:
  11831. void AddChild(UIElement);
  11832. void AddTag(const String&);
  11833. void AddTags(const String&, int8 = ';');
  11834. void ApplyAttributes();
  11835. void BringToFront();
  11836. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11837. void DisableLayoutUpdate();
  11838. IntVector2 ElementToScreen(const IntVector2&);
  11839. void EnableLayoutUpdate();
  11840. uint FindChild(UIElement) const;
  11841. Variant GetAttribute(const String&) const;
  11842. ValueAnimation GetAttributeAnimation(const String&) const;
  11843. float GetAttributeAnimationSpeed(const String&) const;
  11844. float GetAttributeAnimationTime(const String&) const;
  11845. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11846. Variant GetAttributeDefault(const String&) const;
  11847. UIElement GetChild(const String&, bool = false) const;
  11848. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11849. Array<UIElement> GetChildren(bool = false) const;
  11850. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11851. UIElement GetElementEventSender() const;
  11852. bool GetInterceptNetworkUpdate(const String&) const;
  11853. uint GetNumChildren(bool) const;
  11854. bool HasSubscribedToEvent(Object, const String&);
  11855. bool HasSubscribedToEvent(const String&);
  11856. bool HasTag(const String&) const;
  11857. void InsertChild(uint, UIElement);
  11858. bool IsInside(IntVector2, bool);
  11859. bool IsInsideCombined(IntVector2, bool);
  11860. bool Load(File, bool = false);
  11861. bool Load(VectorBuffer&, bool = false);
  11862. bool LoadChildXML(XMLFile, XMLFile = null);
  11863. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11864. bool LoadJSON(const JSONValue&, bool = false);
  11865. bool LoadXML(File);
  11866. bool LoadXML(VectorBuffer&);
  11867. bool LoadXML(XMLFile, XMLFile);
  11868. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11869. bool LoadXML(const XMLElement&, bool = false);
  11870. void MarkNetworkUpdate() const;
  11871. void Remove();
  11872. void RemoveAllChildren();
  11873. void RemoveAllTags();
  11874. void RemoveAttributeAnimation(const String&);
  11875. void RemoveChild(UIElement, uint = 0);
  11876. void RemoveChild(uint);
  11877. void RemoveInstanceDefault();
  11878. void RemoveObjectAnimation();
  11879. bool RemoveTag(const String&);
  11880. void ResetDeepEnabled();
  11881. void ResetToDefault();
  11882. bool Save(File) const;
  11883. bool Save(VectorBuffer&) const;
  11884. bool SaveJSON(JSONValue&) const;
  11885. bool SaveXML(File, const String& = "\t");
  11886. bool SaveXML(VectorBuffer&, const String& = "\t");
  11887. bool SaveXML(XMLElement&) const;
  11888. IntVector2 ScreenToElement(const IntVector2&);
  11889. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11890. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11891. void SetAnimationTime(float);
  11892. bool SetAttribute(const String&, const Variant&);
  11893. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11894. void SetAttributeAnimationSpeed(const String&, float);
  11895. void SetAttributeAnimationTime(const String&, float);
  11896. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11897. void SetDeepEnabled(bool);
  11898. void SetEnabledRecursive(bool);
  11899. void SetFixedHeight(int);
  11900. void SetFixedSize(int, int);
  11901. void SetFixedWidth(int);
  11902. void SetInterceptNetworkUpdate(const String&, bool);
  11903. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11904. void SetMaxSize(int, int);
  11905. void SetMinSize(int, int);
  11906. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11907. void SetPosition(int, int);
  11908. void SetSize(int, int);
  11909. bool SetStyle(const String&, XMLFile = null);
  11910. bool SetStyle(const XMLElement&);
  11911. bool SetStyleAuto(XMLFile = null);
  11912. void UpdateLayout();
  11913. const Variant& GetVar(const StringHash&);
  11914. // Properties:
  11915. bool animationEnabled;
  11916. /* readonly */
  11917. Array<Variant> attributeDefaults;
  11918. /* readonly */
  11919. Array<AttributeInfo> attributeInfos;
  11920. Array<Variant> attributes;
  11921. bool bringToBack;
  11922. bool bringToFront;
  11923. /* readonly */
  11924. String category;
  11925. /* readonly */
  11926. IntVector2 childOffset;
  11927. /* readonly */
  11928. Array<UIElement> children;
  11929. IntRect clipBorder;
  11930. bool clipChildren;
  11931. /* writeonly */
  11932. Color color;
  11933. /* readonly */
  11934. bool colorGradient;
  11935. Array<Color> colors;
  11936. /* readonly */
  11937. IntRect combinedScreenRect;
  11938. XMLFile defaultStyle;
  11939. float delay;
  11940. /* readonly */
  11941. float derivedOpacity;
  11942. /* readonly */
  11943. uint dragButtonCombo;
  11944. /* readonly */
  11945. int dragButtonCount;
  11946. uint dragDropMode;
  11947. bool editable;
  11948. bool elementEventSender;
  11949. bool enabled;
  11950. /* readonly */
  11951. bool enabledSelf;
  11952. /* readonly */
  11953. bool fixedHeight;
  11954. /* readonly */
  11955. bool fixedSize;
  11956. /* readonly */
  11957. bool fixedWidth;
  11958. bool focus;
  11959. FocusMode focusMode;
  11960. int height;
  11961. HorizontalAlignment horizontalAlignment;
  11962. /* readonly */
  11963. bool hovering;
  11964. int indent;
  11965. int indentSpacing;
  11966. /* readonly */
  11967. int indentWidth;
  11968. bool internal;
  11969. IntRect layoutBorder;
  11970. Vector2 layoutFlexScale;
  11971. LayoutMode layoutMode;
  11972. int layoutSpacing;
  11973. int maxHeight;
  11974. IntVector2 maxSize;
  11975. int maxWidth;
  11976. int minHeight;
  11977. IntVector2 minSize;
  11978. int minWidth;
  11979. String name;
  11980. /* readonly */
  11981. uint numAllChildren;
  11982. /* readonly */
  11983. uint numAttributes;
  11984. /* readonly */
  11985. uint numChildren;
  11986. ObjectAnimation objectAnimation;
  11987. float opacity;
  11988. UIElement parent;
  11989. IntVector2 position;
  11990. int priority;
  11991. /* readonly */
  11992. int refs;
  11993. /* readonly */
  11994. UIElement root;
  11995. /* readonly */
  11996. IntVector2 screenPosition;
  11997. bool selected;
  11998. IntVector2 size;
  11999. bool sortChildren;
  12000. String style;
  12001. /* readonly */
  12002. Array<String> tags;
  12003. bool temporary;
  12004. TraversalMode traversalMode;
  12005. /* readonly */
  12006. StringHash type;
  12007. /* readonly */
  12008. String typeName;
  12009. bool useDerivedOpacity;
  12010. /* readonly */
  12011. VariantMap vars;
  12012. VerticalAlignment verticalAlignment;
  12013. bool visible;
  12014. /* readonly */
  12015. bool visibleEffective;
  12016. /* readonly */
  12017. int weakRefs;
  12018. int width;
  12019. };
  12020. class TouchState
  12021. {
  12022. // Properties:
  12023. IntVector2 delta;
  12024. IntVector2 lastPosition;
  12025. IntVector2 position;
  12026. float pressure;
  12027. int touchID;
  12028. /* readonly */
  12029. UIElement touchedElement;
  12030. };
  12031. class UI
  12032. {
  12033. // Methods:
  12034. void Clear();
  12035. void DebugDraw(UIElement);
  12036. UIElement GetElementAt(const IntVector2&, bool = true);
  12037. UIElement GetElementAt(int, int, bool = true);
  12038. bool HasModalElement() const;
  12039. bool HasSubscribedToEvent(Object, const String&);
  12040. bool HasSubscribedToEvent(const String&);
  12041. bool IsDragging() const;
  12042. UIElement LoadLayout(File);
  12043. UIElement LoadLayout(File, XMLFile);
  12044. UIElement LoadLayout(VectorBuffer&);
  12045. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12046. UIElement LoadLayout(XMLFile);
  12047. UIElement LoadLayout(XMLFile, XMLFile);
  12048. bool SaveLayout(File, UIElement);
  12049. bool SaveLayout(VectorBuffer&, UIElement);
  12050. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12051. void SetFocusElement(UIElement, bool = false);
  12052. void SetHeight(float);
  12053. void SetWidth(float);
  12054. const Array<UIElement> GetDragElements();
  12055. // Properties:
  12056. /* readonly */
  12057. String category;
  12058. String clipBoardText;
  12059. Cursor cursor;
  12060. /* readonly */
  12061. IntVector2 cursorPosition;
  12062. float defaultToolTipDelay;
  12063. float doubleClickInterval;
  12064. int dragBeginDistance;
  12065. float dragBeginInterval;
  12066. UIElement focusElement;
  12067. bool forceAutoHint;
  12068. /* readonly */
  12069. UIElement frontElement;
  12070. int maxFontTextureSize;
  12071. /* readonly */
  12072. UIElement modalRoot;
  12073. bool nonFocusedMouseWheel;
  12074. /* readonly */
  12075. int refs;
  12076. /* readonly */
  12077. UIElement root;
  12078. float scale;
  12079. /* readonly */
  12080. StringHash type;
  12081. /* readonly */
  12082. String typeName;
  12083. bool useMutableGlyphs;
  12084. bool useScreenKeyboard;
  12085. bool useSystemClipboard;
  12086. /* readonly */
  12087. int weakRefs;
  12088. };
  12089. class UIElement
  12090. {
  12091. // Methods:
  12092. void AddChild(UIElement);
  12093. void AddTag(const String&);
  12094. void AddTags(const String&, int8 = ';');
  12095. void ApplyAttributes();
  12096. void BringToFront();
  12097. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12098. void DisableLayoutUpdate();
  12099. IntVector2 ElementToScreen(const IntVector2&);
  12100. void EnableLayoutUpdate();
  12101. uint FindChild(UIElement) const;
  12102. Variant GetAttribute(const String&) const;
  12103. ValueAnimation GetAttributeAnimation(const String&) const;
  12104. float GetAttributeAnimationSpeed(const String&) const;
  12105. float GetAttributeAnimationTime(const String&) const;
  12106. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12107. Variant GetAttributeDefault(const String&) const;
  12108. UIElement GetChild(const String&, bool = false) const;
  12109. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12110. Array<UIElement> GetChildren(bool = false) const;
  12111. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12112. UIElement GetElementEventSender() const;
  12113. bool GetInterceptNetworkUpdate(const String&) const;
  12114. uint GetNumChildren(bool) const;
  12115. bool HasSubscribedToEvent(Object, const String&);
  12116. bool HasSubscribedToEvent(const String&);
  12117. bool HasTag(const String&) const;
  12118. void InsertChild(uint, UIElement);
  12119. bool IsInside(IntVector2, bool);
  12120. bool IsInsideCombined(IntVector2, bool);
  12121. bool Load(File, bool = false);
  12122. bool Load(VectorBuffer&, bool = false);
  12123. bool LoadChildXML(XMLFile, XMLFile = null);
  12124. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12125. bool LoadJSON(const JSONValue&, bool = false);
  12126. bool LoadXML(File);
  12127. bool LoadXML(VectorBuffer&);
  12128. bool LoadXML(XMLFile, XMLFile);
  12129. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12130. bool LoadXML(const XMLElement&, bool = false);
  12131. void MarkNetworkUpdate() const;
  12132. void Remove();
  12133. void RemoveAllChildren();
  12134. void RemoveAllTags();
  12135. void RemoveAttributeAnimation(const String&);
  12136. void RemoveChild(UIElement, uint = 0);
  12137. void RemoveChild(uint);
  12138. void RemoveInstanceDefault();
  12139. void RemoveObjectAnimation();
  12140. bool RemoveTag(const String&);
  12141. void ResetDeepEnabled();
  12142. void ResetToDefault();
  12143. bool Save(File) const;
  12144. bool Save(VectorBuffer&) const;
  12145. bool SaveJSON(JSONValue&) const;
  12146. bool SaveXML(File, const String& = "\t");
  12147. bool SaveXML(VectorBuffer&, const String& = "\t");
  12148. bool SaveXML(XMLElement&) const;
  12149. IntVector2 ScreenToElement(const IntVector2&);
  12150. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12151. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12152. void SetAnimationTime(float);
  12153. bool SetAttribute(const String&, const Variant&);
  12154. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12155. void SetAttributeAnimationSpeed(const String&, float);
  12156. void SetAttributeAnimationTime(const String&, float);
  12157. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12158. void SetDeepEnabled(bool);
  12159. void SetEnabledRecursive(bool);
  12160. void SetFixedHeight(int);
  12161. void SetFixedSize(int, int);
  12162. void SetFixedWidth(int);
  12163. void SetInterceptNetworkUpdate(const String&, bool);
  12164. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12165. void SetMaxSize(int, int);
  12166. void SetMinSize(int, int);
  12167. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12168. void SetPosition(int, int);
  12169. void SetSize(int, int);
  12170. bool SetStyle(const String&, XMLFile = null);
  12171. bool SetStyle(const XMLElement&);
  12172. bool SetStyleAuto(XMLFile = null);
  12173. void UpdateLayout();
  12174. const Variant& GetVar(const StringHash&);
  12175. // Properties:
  12176. bool animationEnabled;
  12177. /* readonly */
  12178. Array<Variant> attributeDefaults;
  12179. /* readonly */
  12180. Array<AttributeInfo> attributeInfos;
  12181. Array<Variant> attributes;
  12182. bool bringToBack;
  12183. bool bringToFront;
  12184. /* readonly */
  12185. String category;
  12186. /* readonly */
  12187. IntVector2 childOffset;
  12188. /* readonly */
  12189. Array<UIElement> children;
  12190. IntRect clipBorder;
  12191. bool clipChildren;
  12192. /* writeonly */
  12193. Color color;
  12194. /* readonly */
  12195. bool colorGradient;
  12196. Array<Color> colors;
  12197. /* readonly */
  12198. IntRect combinedScreenRect;
  12199. XMLFile defaultStyle;
  12200. /* readonly */
  12201. float derivedOpacity;
  12202. /* readonly */
  12203. uint dragButtonCombo;
  12204. /* readonly */
  12205. int dragButtonCount;
  12206. uint dragDropMode;
  12207. bool editable;
  12208. bool elementEventSender;
  12209. bool enabled;
  12210. /* readonly */
  12211. bool enabledSelf;
  12212. /* readonly */
  12213. bool fixedHeight;
  12214. /* readonly */
  12215. bool fixedSize;
  12216. /* readonly */
  12217. bool fixedWidth;
  12218. bool focus;
  12219. FocusMode focusMode;
  12220. int height;
  12221. HorizontalAlignment horizontalAlignment;
  12222. /* readonly */
  12223. bool hovering;
  12224. int indent;
  12225. int indentSpacing;
  12226. /* readonly */
  12227. int indentWidth;
  12228. bool internal;
  12229. IntRect layoutBorder;
  12230. Vector2 layoutFlexScale;
  12231. LayoutMode layoutMode;
  12232. int layoutSpacing;
  12233. int maxHeight;
  12234. IntVector2 maxSize;
  12235. int maxWidth;
  12236. int minHeight;
  12237. IntVector2 minSize;
  12238. int minWidth;
  12239. String name;
  12240. /* readonly */
  12241. uint numAllChildren;
  12242. /* readonly */
  12243. uint numAttributes;
  12244. /* readonly */
  12245. uint numChildren;
  12246. ObjectAnimation objectAnimation;
  12247. float opacity;
  12248. UIElement parent;
  12249. IntVector2 position;
  12250. int priority;
  12251. /* readonly */
  12252. int refs;
  12253. /* readonly */
  12254. UIElement root;
  12255. /* readonly */
  12256. IntVector2 screenPosition;
  12257. bool selected;
  12258. IntVector2 size;
  12259. bool sortChildren;
  12260. String style;
  12261. /* readonly */
  12262. Array<String> tags;
  12263. bool temporary;
  12264. TraversalMode traversalMode;
  12265. /* readonly */
  12266. StringHash type;
  12267. /* readonly */
  12268. String typeName;
  12269. bool useDerivedOpacity;
  12270. /* readonly */
  12271. VariantMap vars;
  12272. VerticalAlignment verticalAlignment;
  12273. bool visible;
  12274. /* readonly */
  12275. bool visibleEffective;
  12276. /* readonly */
  12277. int weakRefs;
  12278. int width;
  12279. };
  12280. class ValueAnimation
  12281. {
  12282. // Methods:
  12283. bool HasSubscribedToEvent(Object, const String&);
  12284. bool HasSubscribedToEvent(const String&);
  12285. bool Load(File);
  12286. bool Load(VectorBuffer&);
  12287. bool Save(File) const;
  12288. bool Save(VectorBuffer&) const;
  12289. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12290. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12291. void SetKeyFrame(float, const Variant&);
  12292. // Properties:
  12293. /* readonly */
  12294. String category;
  12295. InterpMethod interpolationMethod;
  12296. /* readonly */
  12297. uint memoryUse;
  12298. String name;
  12299. /* readonly */
  12300. int refs;
  12301. float splineTension;
  12302. /* readonly */
  12303. StringHash type;
  12304. /* readonly */
  12305. String typeName;
  12306. /* readonly */
  12307. uint useTimer;
  12308. VariantType valueType;
  12309. /* readonly */
  12310. int weakRefs;
  12311. };
  12312. class Variant
  12313. {
  12314. // Methods:
  12315. void Clear();
  12316. const Color& GetColor() const;
  12317. void FromString(VariantType, const String&);
  12318. void FromString(const String&, const String&);
  12319. bool GetBool() const;
  12320. VectorBuffer GetBuffer() const;
  12321. double GetDouble() const;
  12322. float GetFloat() const;
  12323. int GetInt() const;
  12324. RefCounted GetPtr() const;
  12325. ScriptObject GetScriptObject() const;
  12326. StringHash GetStringHash() const;
  12327. Array<String> GetStringVector() const;
  12328. uint GetUInt() const;
  12329. Array<Variant> GetVariantVector() const;
  12330. const IntRect& GetIntRect() const;
  12331. const IntVector2& GetIntVector2() const;
  12332. const Matrix3& GetMatrix3() const;
  12333. const Matrix3x4& GetMatrix3x4() const;
  12334. const Matrix4& GetMatrix4() const;
  12335. const Quaternion& GetQuaternion() const;
  12336. const ResourceRef& GetResourceRef() const;
  12337. const ResourceRefList& GetResourceRefList() const;
  12338. const String& GetString() const;
  12339. String ToString() const;
  12340. const VariantMap& GetVariantMap() const;
  12341. const Vector2& GetVector2() const;
  12342. const Vector3& GetVector3() const;
  12343. const Vector4& GetVector4() const;
  12344. // Properties:
  12345. /* readonly */
  12346. bool empty;
  12347. /* readonly */
  12348. VariantType type;
  12349. /* readonly */
  12350. String typeName;
  12351. /* readonly */
  12352. bool zero;
  12353. };
  12354. class VariantMap
  12355. {
  12356. // Methods:
  12357. void Clear();
  12358. bool Contains(StringHash) const;
  12359. bool Contains(const String&) const;
  12360. bool Erase(StringHash);
  12361. bool Erase(const String&);
  12362. // Properties:
  12363. /* readonly */
  12364. Array<StringHash> keys;
  12365. /* readonly */
  12366. uint length;
  12367. /* readonly */
  12368. Array<Variant> values;
  12369. };
  12370. class Vector2
  12371. {
  12372. // Methods:
  12373. Vector2 Abs() const;
  12374. float AbsDotProduct(const Vector2&) const;
  12375. float Angle(const Vector2&) const;
  12376. float DotProduct(const Vector2&) const;
  12377. bool Equals(const Vector2&) const;
  12378. bool IsNaN() const;
  12379. Vector2 Lerp(const Vector2&, float) const;
  12380. void Normalize();
  12381. Vector2 Normalized() const;
  12382. String ToString() const;
  12383. // Properties:
  12384. /* readonly */
  12385. Array<float> data;
  12386. /* readonly */
  12387. float length;
  12388. /* readonly */
  12389. float lengthSquared;
  12390. float x;
  12391. float y;
  12392. };
  12393. class Vector3
  12394. {
  12395. // Methods:
  12396. Vector3 Abs() const;
  12397. float AbsDotProduct(const Vector3&) const;
  12398. float Angle(const Vector3&) const;
  12399. Vector3 CrossProduct(const Vector3&) const;
  12400. float DotProduct(const Vector3&) const;
  12401. bool Equals(const Vector3&) const;
  12402. bool IsNaN() const;
  12403. Vector3 Lerp(const Vector3&, float) const;
  12404. void Normalize();
  12405. Vector3 Normalized() const;
  12406. String ToString() const;
  12407. // Properties:
  12408. /* readonly */
  12409. Array<float> data;
  12410. /* readonly */
  12411. float length;
  12412. /* readonly */
  12413. float lengthSquared;
  12414. float x;
  12415. float y;
  12416. float z;
  12417. };
  12418. class Vector4
  12419. {
  12420. // Methods:
  12421. Vector4 Abs() const;
  12422. float AbsDotProduct(const Vector4&) const;
  12423. float DotProduct(const Vector4&) const;
  12424. bool Equals(const Vector4&) const;
  12425. bool IsNaN() const;
  12426. Vector4 Lerp(const Vector4&, float) const;
  12427. String ToString() const;
  12428. // Properties:
  12429. /* readonly */
  12430. Array<float> data;
  12431. float w;
  12432. float x;
  12433. float y;
  12434. float z;
  12435. };
  12436. class VectorBuffer
  12437. {
  12438. // Methods:
  12439. void Clear();
  12440. Array<uint8> Read(uint);
  12441. bool ReadBool();
  12442. BoundingBox ReadBoundingBox();
  12443. int8 ReadByte();
  12444. Color ReadColor();
  12445. double ReadDouble();
  12446. String ReadFileID();
  12447. float ReadFloat();
  12448. int ReadInt();
  12449. IntRect ReadIntRect();
  12450. IntVector2 ReadIntVector2();
  12451. String ReadLine();
  12452. Matrix3 ReadMatrix3();
  12453. Matrix3x4 ReadMatrix3x4();
  12454. Matrix4 ReadMatrix4();
  12455. uint ReadNetID();
  12456. Quaternion ReadPackedQuaternion();
  12457. Vector3 ReadPackedVector3(float);
  12458. Quaternion ReadQuaternion();
  12459. int16 ReadShort();
  12460. String ReadString();
  12461. StringHash ReadStringHash();
  12462. uint8 ReadUByte();
  12463. uint ReadUInt();
  12464. uint16 ReadUShort();
  12465. uint ReadVLE();
  12466. Variant ReadVariant();
  12467. VariantMap ReadVariantMap();
  12468. Vector2 ReadVector2();
  12469. Vector3 ReadVector3();
  12470. Vector4 ReadVector4();
  12471. VectorBuffer ReadVectorBuffer(uint);
  12472. void Resize(uint);
  12473. uint Seek(uint);
  12474. void SetData(Deserializer, uint);
  12475. uint Write(Array<uint8>);
  12476. bool WriteBool(bool);
  12477. bool WriteBoundingBox(const BoundingBox&);
  12478. bool WriteByte(int8);
  12479. bool WriteColor(const Color&);
  12480. bool WriteDouble(double);
  12481. bool WriteFileID(const String&);
  12482. bool WriteFloat(float);
  12483. bool WriteInt(int);
  12484. bool WriteIntRect(const IntRect&);
  12485. bool WriteIntVector2(const IntVector2&);
  12486. bool WriteLine(const String&);
  12487. bool WriteMatrix3(const Matrix3&);
  12488. bool WriteMatrix3x4(const Matrix3x4&);
  12489. bool WriteMatrix4(const Matrix4&);
  12490. bool WriteNetID(uint);
  12491. bool WritePackedQuaternion(const Quaternion&);
  12492. bool WritePackedVector3(const Vector3&, float);
  12493. bool WriteQuaternion(const Quaternion&);
  12494. bool WriteShort(int16);
  12495. bool WriteString(const String&);
  12496. bool WriteStringHash(const StringHash&);
  12497. bool WriteUByte(uint8);
  12498. bool WriteUInt(uint);
  12499. bool WriteUShort(uint16);
  12500. bool WriteVLE(uint);
  12501. bool WriteVariant(const Variant&);
  12502. bool WriteVariantMap(const VariantMap&);
  12503. bool WriteVector2(const Vector2&);
  12504. bool WriteVector3(const Vector3&);
  12505. bool WriteVector4(const Vector4&);
  12506. bool WriteVectorBuffer(const VectorBuffer&);
  12507. // Properties:
  12508. /* readonly */
  12509. uint checksum;
  12510. /* readonly */
  12511. bool eof;
  12512. /* readonly */
  12513. String name;
  12514. /* readonly */
  12515. uint position;
  12516. /* readonly */
  12517. uint size;
  12518. };
  12519. class VertexBuffer
  12520. {
  12521. // Methods:
  12522. VectorBuffer GetData() const;
  12523. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  12524. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12525. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  12526. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12527. bool HasSubscribedToEvent(Object, const String&);
  12528. bool HasSubscribedToEvent(const String&);
  12529. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12530. bool SetData(VectorBuffer&);
  12531. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12532. void SetSize(uint, Array<VertexElement>, bool = false);
  12533. void SetSize(uint, uint, bool = false);
  12534. // Properties:
  12535. /* readonly */
  12536. String category;
  12537. /* readonly */
  12538. bool dynamic;
  12539. /* readonly */
  12540. uint elementMask;
  12541. /* readonly */
  12542. Array<VertexElement> elements;
  12543. /* readonly */
  12544. int refs;
  12545. bool shadowed;
  12546. /* readonly */
  12547. StringHash type;
  12548. /* readonly */
  12549. String typeName;
  12550. /* readonly */
  12551. uint vertexCount;
  12552. /* readonly */
  12553. uint vertexSize;
  12554. /* readonly */
  12555. int weakRefs;
  12556. };
  12557. class VertexElement
  12558. {
  12559. // Properties:
  12560. uint8 index;
  12561. uint offset;
  12562. bool perInstance;
  12563. VertexElementSemantic semantic;
  12564. VertexElementType type;
  12565. };
  12566. class View3D
  12567. {
  12568. // Methods:
  12569. void AddChild(UIElement);
  12570. void AddTag(const String&);
  12571. void AddTags(const String&, int8 = ';');
  12572. void ApplyAttributes();
  12573. void BringToFront();
  12574. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12575. void DisableLayoutUpdate();
  12576. IntVector2 ElementToScreen(const IntVector2&);
  12577. void EnableLayoutUpdate();
  12578. uint FindChild(UIElement) const;
  12579. Variant GetAttribute(const String&) const;
  12580. ValueAnimation GetAttributeAnimation(const String&) const;
  12581. float GetAttributeAnimationSpeed(const String&) const;
  12582. float GetAttributeAnimationTime(const String&) const;
  12583. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12584. Variant GetAttributeDefault(const String&) const;
  12585. UIElement GetChild(const String&, bool = false) const;
  12586. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12587. Array<UIElement> GetChildren(bool = false) const;
  12588. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12589. UIElement GetElementEventSender() const;
  12590. bool GetInterceptNetworkUpdate(const String&) const;
  12591. uint GetNumChildren(bool) const;
  12592. bool HasSubscribedToEvent(Object, const String&);
  12593. bool HasSubscribedToEvent(const String&);
  12594. bool HasTag(const String&) const;
  12595. void InsertChild(uint, UIElement);
  12596. bool IsInside(IntVector2, bool);
  12597. bool IsInsideCombined(IntVector2, bool);
  12598. bool Load(File, bool = false);
  12599. bool Load(VectorBuffer&, bool = false);
  12600. bool LoadChildXML(XMLFile, XMLFile = null);
  12601. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12602. bool LoadJSON(const JSONValue&, bool = false);
  12603. bool LoadXML(File);
  12604. bool LoadXML(VectorBuffer&);
  12605. bool LoadXML(XMLFile, XMLFile);
  12606. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12607. bool LoadXML(const XMLElement&, bool = false);
  12608. void MarkNetworkUpdate() const;
  12609. void QueueUpdate();
  12610. void Remove();
  12611. void RemoveAllChildren();
  12612. void RemoveAllTags();
  12613. void RemoveAttributeAnimation(const String&);
  12614. void RemoveChild(UIElement, uint = 0);
  12615. void RemoveChild(uint);
  12616. void RemoveInstanceDefault();
  12617. void RemoveObjectAnimation();
  12618. bool RemoveTag(const String&);
  12619. void ResetDeepEnabled();
  12620. void ResetToDefault();
  12621. bool Save(File) const;
  12622. bool Save(VectorBuffer&) const;
  12623. bool SaveJSON(JSONValue&) const;
  12624. bool SaveXML(File, const String& = "\t");
  12625. bool SaveXML(VectorBuffer&, const String& = "\t");
  12626. bool SaveXML(XMLElement&) const;
  12627. IntVector2 ScreenToElement(const IntVector2&);
  12628. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12629. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12630. void SetAnimationTime(float);
  12631. bool SetAttribute(const String&, const Variant&);
  12632. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12633. void SetAttributeAnimationSpeed(const String&, float);
  12634. void SetAttributeAnimationTime(const String&, float);
  12635. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12636. void SetDeepEnabled(bool);
  12637. void SetEnabledRecursive(bool);
  12638. void SetFixedHeight(int);
  12639. void SetFixedSize(int, int);
  12640. void SetFixedWidth(int);
  12641. void SetFullImageRect();
  12642. void SetHoverOffset(int, int);
  12643. void SetInterceptNetworkUpdate(const String&, bool);
  12644. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12645. void SetMaxSize(int, int);
  12646. void SetMinSize(int, int);
  12647. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12648. void SetPosition(int, int);
  12649. void SetSize(int, int);
  12650. bool SetStyle(const String&, XMLFile = null);
  12651. bool SetStyle(const XMLElement&);
  12652. bool SetStyleAuto(XMLFile = null);
  12653. void SetView(Scene, Camera, bool = true);
  12654. void UpdateLayout();
  12655. const Variant& GetVar(const StringHash&);
  12656. // Properties:
  12657. bool animationEnabled;
  12658. /* readonly */
  12659. Array<Variant> attributeDefaults;
  12660. /* readonly */
  12661. Array<AttributeInfo> attributeInfos;
  12662. Array<Variant> attributes;
  12663. bool autoUpdate;
  12664. BlendMode blendMode;
  12665. IntRect border;
  12666. bool bringToBack;
  12667. bool bringToFront;
  12668. /* readonly */
  12669. Node cameraNode;
  12670. /* readonly */
  12671. String category;
  12672. /* readonly */
  12673. IntVector2 childOffset;
  12674. /* readonly */
  12675. Array<UIElement> children;
  12676. IntRect clipBorder;
  12677. bool clipChildren;
  12678. /* writeonly */
  12679. Color color;
  12680. /* readonly */
  12681. bool colorGradient;
  12682. Array<Color> colors;
  12683. /* readonly */
  12684. IntRect combinedScreenRect;
  12685. XMLFile defaultStyle;
  12686. /* readonly */
  12687. Texture2D depthTexture;
  12688. /* readonly */
  12689. float derivedOpacity;
  12690. /* readonly */
  12691. uint dragButtonCombo;
  12692. /* readonly */
  12693. int dragButtonCount;
  12694. uint dragDropMode;
  12695. bool editable;
  12696. bool elementEventSender;
  12697. bool enabled;
  12698. /* readonly */
  12699. bool enabledSelf;
  12700. /* readonly */
  12701. bool fixedHeight;
  12702. bool fixedHeightResizing;
  12703. /* readonly */
  12704. bool fixedSize;
  12705. /* readonly */
  12706. bool fixedWidth;
  12707. bool fixedWidthResizing;
  12708. bool focus;
  12709. FocusMode focusMode;
  12710. uint format;
  12711. int height;
  12712. HorizontalAlignment horizontalAlignment;
  12713. IntVector2 hoverOffset;
  12714. /* readonly */
  12715. bool hovering;
  12716. IntRect imageBorder;
  12717. IntRect imageRect;
  12718. int indent;
  12719. int indentSpacing;
  12720. /* readonly */
  12721. int indentWidth;
  12722. bool internal;
  12723. IntRect layoutBorder;
  12724. Vector2 layoutFlexScale;
  12725. LayoutMode layoutMode;
  12726. int layoutSpacing;
  12727. int maxHeight;
  12728. IntVector2 maxSize;
  12729. int maxWidth;
  12730. int minHeight;
  12731. IntVector2 minSize;
  12732. int minWidth;
  12733. bool modal;
  12734. bool modalAutoDismiss;
  12735. Color modalFrameColor;
  12736. IntVector2 modalFrameSize;
  12737. Color modalShadeColor;
  12738. bool movable;
  12739. String name;
  12740. /* readonly */
  12741. uint numAllChildren;
  12742. /* readonly */
  12743. uint numAttributes;
  12744. /* readonly */
  12745. uint numChildren;
  12746. ObjectAnimation objectAnimation;
  12747. float opacity;
  12748. UIElement parent;
  12749. IntVector2 position;
  12750. int priority;
  12751. /* readonly */
  12752. int refs;
  12753. /* readonly */
  12754. Texture2D renderTexture;
  12755. bool resizable;
  12756. IntRect resizeBorder;
  12757. /* readonly */
  12758. UIElement root;
  12759. /* readonly */
  12760. Scene scene;
  12761. /* readonly */
  12762. IntVector2 screenPosition;
  12763. bool selected;
  12764. IntVector2 size;
  12765. bool sortChildren;
  12766. String style;
  12767. /* readonly */
  12768. Array<String> tags;
  12769. bool temporary;
  12770. Texture texture;
  12771. bool tiled;
  12772. TraversalMode traversalMode;
  12773. /* readonly */
  12774. StringHash type;
  12775. /* readonly */
  12776. String typeName;
  12777. bool useDerivedOpacity;
  12778. /* readonly */
  12779. VariantMap vars;
  12780. VerticalAlignment verticalAlignment;
  12781. /* readonly */
  12782. Viewport viewport;
  12783. bool visible;
  12784. /* readonly */
  12785. bool visibleEffective;
  12786. /* readonly */
  12787. int weakRefs;
  12788. int width;
  12789. };
  12790. class Viewport
  12791. {
  12792. // Methods:
  12793. Ray GetScreenRay(int, int) const;
  12794. bool HasSubscribedToEvent(Object, const String&);
  12795. bool HasSubscribedToEvent(const String&);
  12796. Vector3 ScreenToWorldPoint(int, int, float) const;
  12797. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12798. void SetRenderPath(XMLFile);
  12799. Vector2 WorldToScreenPoint(const Vector3&) const;
  12800. // Properties:
  12801. Camera camera;
  12802. /* readonly */
  12803. String category;
  12804. Camera cullCamera;
  12805. bool drawDebug;
  12806. IntRect rect;
  12807. /* readonly */
  12808. int refs;
  12809. RenderPath renderPath;
  12810. Scene scene;
  12811. /* readonly */
  12812. StringHash type;
  12813. /* readonly */
  12814. String typeName;
  12815. /* readonly */
  12816. int weakRefs;
  12817. };
  12818. class WeakHandle
  12819. {
  12820. // Methods:
  12821. RefCounted Get() const;
  12822. // Properties:
  12823. /* readonly */
  12824. bool expired;
  12825. /* readonly */
  12826. int refs;
  12827. /* readonly */
  12828. int weakRefs;
  12829. };
  12830. class Window
  12831. {
  12832. // Methods:
  12833. void AddChild(UIElement);
  12834. void AddTag(const String&);
  12835. void AddTags(const String&, int8 = ';');
  12836. void ApplyAttributes();
  12837. void BringToFront();
  12838. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12839. void DisableLayoutUpdate();
  12840. IntVector2 ElementToScreen(const IntVector2&);
  12841. void EnableLayoutUpdate();
  12842. uint FindChild(UIElement) const;
  12843. Variant GetAttribute(const String&) const;
  12844. ValueAnimation GetAttributeAnimation(const String&) const;
  12845. float GetAttributeAnimationSpeed(const String&) const;
  12846. float GetAttributeAnimationTime(const String&) const;
  12847. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12848. Variant GetAttributeDefault(const String&) const;
  12849. UIElement GetChild(const String&, bool = false) const;
  12850. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12851. Array<UIElement> GetChildren(bool = false) const;
  12852. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12853. UIElement GetElementEventSender() const;
  12854. bool GetInterceptNetworkUpdate(const String&) const;
  12855. uint GetNumChildren(bool) const;
  12856. bool HasSubscribedToEvent(Object, const String&);
  12857. bool HasSubscribedToEvent(const String&);
  12858. bool HasTag(const String&) const;
  12859. void InsertChild(uint, UIElement);
  12860. bool IsInside(IntVector2, bool);
  12861. bool IsInsideCombined(IntVector2, bool);
  12862. bool Load(File, bool = false);
  12863. bool Load(VectorBuffer&, bool = false);
  12864. bool LoadChildXML(XMLFile, XMLFile = null);
  12865. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12866. bool LoadJSON(const JSONValue&, bool = false);
  12867. bool LoadXML(File);
  12868. bool LoadXML(VectorBuffer&);
  12869. bool LoadXML(XMLFile, XMLFile);
  12870. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12871. bool LoadXML(const XMLElement&, bool = false);
  12872. void MarkNetworkUpdate() const;
  12873. void Remove();
  12874. void RemoveAllChildren();
  12875. void RemoveAllTags();
  12876. void RemoveAttributeAnimation(const String&);
  12877. void RemoveChild(UIElement, uint = 0);
  12878. void RemoveChild(uint);
  12879. void RemoveInstanceDefault();
  12880. void RemoveObjectAnimation();
  12881. bool RemoveTag(const String&);
  12882. void ResetDeepEnabled();
  12883. void ResetToDefault();
  12884. bool Save(File) const;
  12885. bool Save(VectorBuffer&) const;
  12886. bool SaveJSON(JSONValue&) const;
  12887. bool SaveXML(File, const String& = "\t");
  12888. bool SaveXML(VectorBuffer&, const String& = "\t");
  12889. bool SaveXML(XMLElement&) const;
  12890. IntVector2 ScreenToElement(const IntVector2&);
  12891. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12892. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12893. void SetAnimationTime(float);
  12894. bool SetAttribute(const String&, const Variant&);
  12895. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12896. void SetAttributeAnimationSpeed(const String&, float);
  12897. void SetAttributeAnimationTime(const String&, float);
  12898. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12899. void SetDeepEnabled(bool);
  12900. void SetEnabledRecursive(bool);
  12901. void SetFixedHeight(int);
  12902. void SetFixedSize(int, int);
  12903. void SetFixedWidth(int);
  12904. void SetFullImageRect();
  12905. void SetHoverOffset(int, int);
  12906. void SetInterceptNetworkUpdate(const String&, bool);
  12907. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12908. void SetMaxSize(int, int);
  12909. void SetMinSize(int, int);
  12910. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12911. void SetPosition(int, int);
  12912. void SetSize(int, int);
  12913. bool SetStyle(const String&, XMLFile = null);
  12914. bool SetStyle(const XMLElement&);
  12915. bool SetStyleAuto(XMLFile = null);
  12916. void UpdateLayout();
  12917. const Variant& GetVar(const StringHash&);
  12918. // Properties:
  12919. bool animationEnabled;
  12920. /* readonly */
  12921. Array<Variant> attributeDefaults;
  12922. /* readonly */
  12923. Array<AttributeInfo> attributeInfos;
  12924. Array<Variant> attributes;
  12925. BlendMode blendMode;
  12926. IntRect border;
  12927. bool bringToBack;
  12928. bool bringToFront;
  12929. /* readonly */
  12930. String category;
  12931. /* readonly */
  12932. IntVector2 childOffset;
  12933. /* readonly */
  12934. Array<UIElement> children;
  12935. IntRect clipBorder;
  12936. bool clipChildren;
  12937. /* writeonly */
  12938. Color color;
  12939. /* readonly */
  12940. bool colorGradient;
  12941. Array<Color> colors;
  12942. /* readonly */
  12943. IntRect combinedScreenRect;
  12944. XMLFile defaultStyle;
  12945. /* readonly */
  12946. float derivedOpacity;
  12947. /* readonly */
  12948. uint dragButtonCombo;
  12949. /* readonly */
  12950. int dragButtonCount;
  12951. uint dragDropMode;
  12952. bool editable;
  12953. bool elementEventSender;
  12954. bool enabled;
  12955. /* readonly */
  12956. bool enabledSelf;
  12957. /* readonly */
  12958. bool fixedHeight;
  12959. bool fixedHeightResizing;
  12960. /* readonly */
  12961. bool fixedSize;
  12962. /* readonly */
  12963. bool fixedWidth;
  12964. bool fixedWidthResizing;
  12965. bool focus;
  12966. FocusMode focusMode;
  12967. int height;
  12968. HorizontalAlignment horizontalAlignment;
  12969. IntVector2 hoverOffset;
  12970. /* readonly */
  12971. bool hovering;
  12972. IntRect imageBorder;
  12973. IntRect imageRect;
  12974. int indent;
  12975. int indentSpacing;
  12976. /* readonly */
  12977. int indentWidth;
  12978. bool internal;
  12979. IntRect layoutBorder;
  12980. Vector2 layoutFlexScale;
  12981. LayoutMode layoutMode;
  12982. int layoutSpacing;
  12983. int maxHeight;
  12984. IntVector2 maxSize;
  12985. int maxWidth;
  12986. int minHeight;
  12987. IntVector2 minSize;
  12988. int minWidth;
  12989. bool modal;
  12990. bool modalAutoDismiss;
  12991. Color modalFrameColor;
  12992. IntVector2 modalFrameSize;
  12993. Color modalShadeColor;
  12994. bool movable;
  12995. String name;
  12996. /* readonly */
  12997. uint numAllChildren;
  12998. /* readonly */
  12999. uint numAttributes;
  13000. /* readonly */
  13001. uint numChildren;
  13002. ObjectAnimation objectAnimation;
  13003. float opacity;
  13004. UIElement parent;
  13005. IntVector2 position;
  13006. int priority;
  13007. /* readonly */
  13008. int refs;
  13009. bool resizable;
  13010. IntRect resizeBorder;
  13011. /* readonly */
  13012. UIElement root;
  13013. /* readonly */
  13014. IntVector2 screenPosition;
  13015. bool selected;
  13016. IntVector2 size;
  13017. bool sortChildren;
  13018. String style;
  13019. /* readonly */
  13020. Array<String> tags;
  13021. bool temporary;
  13022. Texture texture;
  13023. bool tiled;
  13024. TraversalMode traversalMode;
  13025. /* readonly */
  13026. StringHash type;
  13027. /* readonly */
  13028. String typeName;
  13029. bool useDerivedOpacity;
  13030. /* readonly */
  13031. VariantMap vars;
  13032. VerticalAlignment verticalAlignment;
  13033. bool visible;
  13034. /* readonly */
  13035. bool visibleEffective;
  13036. /* readonly */
  13037. int weakRefs;
  13038. int width;
  13039. };
  13040. class XMLElement
  13041. {
  13042. // Methods:
  13043. XMLElement CreateChild(const String&);
  13044. String GetAttribute(const String& = String ( )) const;
  13045. String GetAttributeLower(const String&) const;
  13046. Array<String> GetAttributeNames() const;
  13047. String GetAttributeUpper(const String&) const;
  13048. bool GetBool(const String&) const;
  13049. BoundingBox GetBoundingBox() const;
  13050. XMLElement GetChild(const String& = String ( )) const;
  13051. Color GetColor(const String&) const;
  13052. double GetDouble(const String&) const;
  13053. float GetFloat(const String&) const;
  13054. int GetInt(const String&) const;
  13055. IntRect GetIntRect(const String&) const;
  13056. IntVector2 GetIntVector2(const String&) const;
  13057. Matrix3 GetMatrix3(const String&) const;
  13058. Matrix3x4 GetMatrix3x4(const String&) const;
  13059. Matrix4 GetMatrix4(const String&) const;
  13060. XMLElement GetNext(const String& = String ( )) const;
  13061. Quaternion GetQuaternion(const String&) const;
  13062. ResourceRef GetResourceRef() const;
  13063. ResourceRefList GetResourceRefList() const;
  13064. uint GetUInt(const String&) const;
  13065. String GetValue() const;
  13066. Variant GetVariant() const;
  13067. VariantMap GetVariantMap() const;
  13068. Array<Variant> GetVariantVector() const;
  13069. Vector2 GetVector2(const String&) const;
  13070. Vector3 GetVector3(const String&) const;
  13071. Vector4 GetVector4(const String&) const;
  13072. Variant GetVectorVariant(const String&) const;
  13073. bool HasAttribute(const String&) const;
  13074. bool HasChild(const String&) const;
  13075. bool RemoveAttribute(const String& = String ( ));
  13076. bool RemoveChild(const String&);
  13077. bool RemoveChild(const XMLElement&);
  13078. bool RemoveChildren(const String& = String ( ));
  13079. XPathResultSet Select(const String&);
  13080. XPathResultSet SelectPrepared(const XPathQuery&);
  13081. XMLElement SelectSingle(const String&);
  13082. XMLElement SelectSinglePrepared(const XPathQuery&);
  13083. bool SetAttribute(const String&);
  13084. bool SetAttribute(const String&, const String&);
  13085. bool SetBool(const String&, bool);
  13086. bool SetBoundingBox(const BoundingBox&);
  13087. bool SetColor(const String&, const Color&);
  13088. bool SetDouble(const String&, double);
  13089. bool SetFloat(const String&, float);
  13090. bool SetInt(const String&, int);
  13091. bool SetIntRect(const String&, const IntRect&);
  13092. bool SetIntVector2(const String&, const IntVector2&);
  13093. bool SetMatrix3(const String&, const Matrix3&);
  13094. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13095. bool SetMatrix4(const String&, const Matrix4&);
  13096. bool SetQuaternion(const String&, const Quaternion&);
  13097. bool SetResourceRef(const String&, const ResourceRef&);
  13098. bool SetResourceRefList(const String&, const ResourceRefList&);
  13099. bool SetUInt(const String&, uint);
  13100. bool SetValue(const String&);
  13101. bool SetVariant(const Variant&);
  13102. bool SetVariantMap(const VariantMap&);
  13103. bool SetVariantVector(Array<Variant>);
  13104. bool SetVector2(const String&, const Vector2&);
  13105. bool SetVector3(const String&, const Vector3&);
  13106. bool SetVector4(const String&, const Vector4&);
  13107. bool SetVectorVariant(const String&, const Variant&);
  13108. // Properties:
  13109. /* readonly */
  13110. XMLFile file;
  13111. /* readonly */
  13112. bool isNull;
  13113. /* readonly */
  13114. String name;
  13115. /* readonly */
  13116. XMLElement nextResult;
  13117. /* readonly */
  13118. bool notNull;
  13119. /* readonly */
  13120. uint numAttributes;
  13121. /* readonly */
  13122. XMLElement parent;
  13123. String value;
  13124. };
  13125. class XMLFile
  13126. {
  13127. // Methods:
  13128. XMLElement CreateRoot(const String&);
  13129. bool FromString(const String&);
  13130. XMLElement GetRoot(const String& = String ( ));
  13131. bool HasSubscribedToEvent(Object, const String&);
  13132. bool HasSubscribedToEvent(const String&);
  13133. bool Load(File);
  13134. bool Load(VectorBuffer&);
  13135. void Patch(XMLElement);
  13136. void Patch(XMLFile);
  13137. bool Save(File) const;
  13138. bool Save(File, const String&) const;
  13139. bool Save(VectorBuffer&) const;
  13140. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13141. String ToString(const String& = String ( "\t" )) const;
  13142. // Properties:
  13143. /* readonly */
  13144. String category;
  13145. /* readonly */
  13146. uint memoryUse;
  13147. String name;
  13148. /* readonly */
  13149. int refs;
  13150. /* readonly */
  13151. XMLElement root;
  13152. /* readonly */
  13153. StringHash type;
  13154. /* readonly */
  13155. String typeName;
  13156. /* readonly */
  13157. uint useTimer;
  13158. /* readonly */
  13159. int weakRefs;
  13160. };
  13161. class XPathQuery
  13162. {
  13163. // Methods:
  13164. void Bind();
  13165. void Clear();
  13166. XPathResultSet Evaluate(XMLElement);
  13167. bool EvaluateToBool(XMLElement);
  13168. float EvaluateToFloat(XMLElement);
  13169. String EvaluateToString(XMLElement);
  13170. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13171. bool SetVariable(const String&, bool);
  13172. bool SetVariable(const String&, const String&);
  13173. bool SetVariable(const String&, const XPathResultSet&);
  13174. bool SetVariable(const String&, float);
  13175. // Properties:
  13176. String query;
  13177. };
  13178. class XPathResultSet
  13179. {
  13180. // Properties:
  13181. /* readonly */
  13182. bool empty;
  13183. /* readonly */
  13184. XMLElement firstResult;
  13185. /* readonly */
  13186. uint size;
  13187. };
  13188. class Zone
  13189. {
  13190. // Methods:
  13191. void ApplyAttributes();
  13192. void DrawDebugGeometry(DebugRenderer, bool);
  13193. Variant GetAttribute(const String&) const;
  13194. ValueAnimation GetAttributeAnimation(const String&) const;
  13195. float GetAttributeAnimationSpeed(const String&) const;
  13196. float GetAttributeAnimationTime(const String&) const;
  13197. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13198. Variant GetAttributeDefault(const String&) const;
  13199. bool GetInterceptNetworkUpdate(const String&) const;
  13200. bool HasSubscribedToEvent(Object, const String&);
  13201. bool HasSubscribedToEvent(const String&);
  13202. bool IsInView(Camera) const;
  13203. bool Load(File, bool = false);
  13204. bool Load(VectorBuffer&, bool = false);
  13205. bool LoadJSON(const JSONValue&, bool = false);
  13206. bool LoadXML(const XMLElement&, bool = false);
  13207. void MarkNetworkUpdate() const;
  13208. void Remove();
  13209. void RemoveAttributeAnimation(const String&);
  13210. void RemoveInstanceDefault();
  13211. void RemoveObjectAnimation();
  13212. void ResetToDefault();
  13213. bool Save(File) const;
  13214. bool Save(VectorBuffer&) const;
  13215. bool SaveJSON(JSONValue&) const;
  13216. bool SaveXML(XMLElement&) const;
  13217. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13218. void SetAnimationTime(float);
  13219. bool SetAttribute(const String&, const Variant&);
  13220. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13221. void SetAttributeAnimationSpeed(const String&, float);
  13222. void SetAttributeAnimationTime(const String&, float);
  13223. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13224. void SetInterceptNetworkUpdate(const String&, bool);
  13225. // Properties:
  13226. Color ambientColor;
  13227. /* readonly */
  13228. Color ambientEndColor;
  13229. bool ambientGradient;
  13230. /* readonly */
  13231. Color ambientStartColor;
  13232. bool animationEnabled;
  13233. /* readonly */
  13234. Array<Variant> attributeDefaults;
  13235. /* readonly */
  13236. Array<AttributeInfo> attributeInfos;
  13237. Array<Variant> attributes;
  13238. BoundingBox boundingBox;
  13239. bool castShadows;
  13240. /* readonly */
  13241. String category;
  13242. float drawDistance;
  13243. bool enabled;
  13244. /* readonly */
  13245. bool enabledEffective;
  13246. Color fogColor;
  13247. float fogEnd;
  13248. float fogHeight;
  13249. float fogHeightScale;
  13250. float fogStart;
  13251. bool heightFog;
  13252. /* readonly */
  13253. uint id;
  13254. /* readonly */
  13255. bool inView;
  13256. /* readonly */
  13257. Matrix3x4 inverseWorldTransform;
  13258. uint lightMask;
  13259. float lodBias;
  13260. uint maxLights;
  13261. /* readonly */
  13262. Node node;
  13263. /* readonly */
  13264. uint numAttributes;
  13265. ObjectAnimation objectAnimation;
  13266. bool occludee;
  13267. bool occluder;
  13268. bool override;
  13269. int priority;
  13270. /* readonly */
  13271. int refs;
  13272. float shadowDistance;
  13273. uint shadowMask;
  13274. bool temporary;
  13275. /* readonly */
  13276. StringHash type;
  13277. /* readonly */
  13278. String typeName;
  13279. uint viewMask;
  13280. /* readonly */
  13281. int weakRefs;
  13282. /* readonly */
  13283. BoundingBox worldBoundingBox;
  13284. uint zoneMask;
  13285. Texture zoneTexture;
  13286. };
  13287. // Enumerations
  13288. enum AnimationBlendMode
  13289. {
  13290. ABM_LERP,
  13291. ABM_ADDITIVE,
  13292. };
  13293. enum BlendMode
  13294. {
  13295. BLEND_REPLACE,
  13296. BLEND_ADD,
  13297. BLEND_MULTIPLY,
  13298. BLEND_ALPHA,
  13299. BLEND_ADDALPHA,
  13300. BLEND_PREMULALPHA,
  13301. BLEND_INVDESTALPHA,
  13302. BLEND_SUBTRACT,
  13303. BLEND_SUBTRACTALPHA,
  13304. };
  13305. enum BodyType2D
  13306. {
  13307. BT_STATIC,
  13308. BT_KINEMATIC,
  13309. BT_DYNAMIC,
  13310. };
  13311. enum CollisionEventMode
  13312. {
  13313. COLLISION_NEVER,
  13314. COLLISION_ACTIVE,
  13315. COLLISION_ALWAYS,
  13316. };
  13317. enum CompareMode
  13318. {
  13319. CMP_ALWAYS,
  13320. CMP_EQUAL,
  13321. CMP_NOTEQUAL,
  13322. CMP_LESS,
  13323. CMP_LESSEQUAL,
  13324. CMP_GREATER,
  13325. CMP_GREATEREQUAL,
  13326. };
  13327. enum CompressedFormat
  13328. {
  13329. CF_NONE,
  13330. CF_RGBA,
  13331. CF_DXT1,
  13332. CF_DXT3,
  13333. CF_DXT5,
  13334. CF_ETC1,
  13335. CF_PVRTC_RGB_2BPP,
  13336. CF_PVRTC_RGBA_2BPP,
  13337. CF_PVRTC_RGB_4BPP,
  13338. CF_PVRTC_RGBA_4BPP,
  13339. };
  13340. enum ConstraintType
  13341. {
  13342. CONSTRAINT_POINT,
  13343. CONSTRAINT_HINGE,
  13344. CONSTRAINT_SLIDER,
  13345. CONSTRAINT_CONETWIST,
  13346. };
  13347. enum Corner
  13348. {
  13349. C_TOPLEFT,
  13350. C_TOPRIGHT,
  13351. C_BOTTOMLEFT,
  13352. C_BOTTOMRIGHT,
  13353. };
  13354. enum CreateMode
  13355. {
  13356. REPLICATED,
  13357. LOCAL,
  13358. };
  13359. enum CrowdAgentRequestedTarget
  13360. {
  13361. CA_REQUESTEDTARGET_NONE,
  13362. CA_REQUESTEDTARGET_POSITION,
  13363. CA_REQUESTEDTARGET_VELOCITY,
  13364. };
  13365. enum CrowdAgentState
  13366. {
  13367. CA_STATE_INVALID,
  13368. CA_STATE_WALKING,
  13369. CA_STATE_OFFMESH,
  13370. };
  13371. enum CrowdAgentTargetState
  13372. {
  13373. CA_TARGET_NONE,
  13374. CA_TARGET_FAILED,
  13375. CA_TARGET_VALID,
  13376. CA_TARGET_REQUESTING,
  13377. CA_TARGET_WAITINGFORQUEUE,
  13378. CA_TARGET_WAITINGFORPATH,
  13379. CA_TARGET_VELOCITY,
  13380. };
  13381. enum CubeMapFace
  13382. {
  13383. FACE_POSITIVE_X,
  13384. FACE_NEGATIVE_X,
  13385. FACE_POSITIVE_Y,
  13386. FACE_NEGATIVE_Y,
  13387. FACE_POSITIVE_Z,
  13388. FACE_NEGATIVE_Z,
  13389. };
  13390. enum CullMode
  13391. {
  13392. CULL_NONE,
  13393. CULL_CCW,
  13394. CULL_CW,
  13395. };
  13396. enum CursorShape
  13397. {
  13398. CS_NORMAL,
  13399. CS_IBEAM,
  13400. CS_CROSS,
  13401. CS_RESIZEVERTICAL,
  13402. CS_RESIZEDIAGONAL_TOPRIGHT,
  13403. CS_RESIZEHORIZONTAL,
  13404. CS_RESIZEDIAGONAL_TOPLEFT,
  13405. CS_RESIZE_ALL,
  13406. CS_ACCEPTDROP,
  13407. CS_REJECTDROP,
  13408. CS_BUSY,
  13409. CS_BUSY_ARROW,
  13410. };
  13411. enum DBAPI
  13412. {
  13413. DBAPI_SQLITE,
  13414. DBAPI_ODBC,
  13415. };
  13416. enum DumpMode
  13417. {
  13418. DOXYGEN,
  13419. C_HEADER,
  13420. };
  13421. enum EmitterType
  13422. {
  13423. EMITTER_SPHERE,
  13424. EMITTER_BOX,
  13425. };
  13426. enum EmitterType2D
  13427. {
  13428. EMITTER_TYPE_GRAVITY,
  13429. EMITTER_TYPE_RADIAL,
  13430. };
  13431. enum FaceCameraMode
  13432. {
  13433. FC_NONE,
  13434. FC_ROTATE_XYZ,
  13435. FC_ROTATE_Y,
  13436. FC_LOOKAT_XYZ,
  13437. FC_LOOKAT_Y,
  13438. FC_DIRECTION,
  13439. };
  13440. enum FileMode
  13441. {
  13442. FILE_READ,
  13443. FILE_WRITE,
  13444. FILE_READWRITE,
  13445. };
  13446. enum FillMode
  13447. {
  13448. FILL_SOLID,
  13449. FILL_WIREFRAME,
  13450. FILL_POINT,
  13451. };
  13452. enum FocusMode
  13453. {
  13454. FM_NOTFOCUSABLE,
  13455. FM_RESETFOCUS,
  13456. FM_FOCUSABLE,
  13457. FM_FOCUSABLE_DEFOCUSABLE,
  13458. };
  13459. enum HighlightMode
  13460. {
  13461. HM_NEVER,
  13462. HM_FOCUS,
  13463. HM_ALWAYS,
  13464. };
  13465. enum HorizontalAlignment
  13466. {
  13467. HA_LEFT,
  13468. HA_CENTER,
  13469. HA_RIGHT,
  13470. };
  13471. enum HttpRequestState
  13472. {
  13473. HTTP_INITIALIZING,
  13474. HTTP_ERROR,
  13475. HTTP_OPEN,
  13476. HTTP_CLOSED,
  13477. };
  13478. enum InterpMethod
  13479. {
  13480. IM_NONE,
  13481. IM_LINEAR,
  13482. IM_SPLINE,
  13483. };
  13484. enum InterpolationMode
  13485. {
  13486. BEZIER_CURVE,
  13487. CATMULL_ROM_CURVE,
  13488. LINEAR_CURVE,
  13489. CATMULL_ROM_FULL_CURVE,
  13490. };
  13491. enum Intersection
  13492. {
  13493. OUTSIDE,
  13494. INTERSECTS,
  13495. INSIDE,
  13496. };
  13497. enum JSONValueType
  13498. {
  13499. JSON_NULL,
  13500. JSON_BOOL,
  13501. JSON_NUMBER,
  13502. JSON_STRING,
  13503. JSON_ARRAY,
  13504. JSON_OBJECT,
  13505. };
  13506. enum LayoutMode
  13507. {
  13508. LM_FREE,
  13509. LM_HORIZONTAL,
  13510. LM_VERTICAL,
  13511. };
  13512. enum LightType
  13513. {
  13514. LIGHT_DIRECTIONAL,
  13515. LIGHT_SPOT,
  13516. LIGHT_POINT,
  13517. };
  13518. enum LoadMode
  13519. {
  13520. LOAD_RESOURCES_ONLY,
  13521. LOAD_SCENE,
  13522. LOAD_SCENE_AND_RESOURCES,
  13523. };
  13524. enum LoopMode2D
  13525. {
  13526. LM_DEFAULT,
  13527. LM_FORCE_LOOPED,
  13528. LM_FORCE_CLAMPED,
  13529. };
  13530. enum MouseMode
  13531. {
  13532. MM_ABSOLUTE,
  13533. MM_RELATIVE,
  13534. MM_WRAP,
  13535. MM_FREE,
  13536. };
  13537. enum NavigationPushiness
  13538. {
  13539. NAVIGATIONPUSHINESS_LOW,
  13540. NAVIGATIONPUSHINESS_MEDIUM,
  13541. NAVIGATIONPUSHINESS_HIGH,
  13542. };
  13543. enum NavigationQuality
  13544. {
  13545. NAVIGATIONQUALITY_LOW,
  13546. NAVIGATIONQUALITY_MEDIUM,
  13547. NAVIGATIONQUALITY_HIGH,
  13548. };
  13549. enum NavmeshPartitionType
  13550. {
  13551. NAVMESH_PARTITION_WATERSHED,
  13552. NAVMESH_PARTITION_MONOTONE,
  13553. };
  13554. enum Orientation
  13555. {
  13556. O_HORIZONTAL,
  13557. O_VERTICAL,
  13558. };
  13559. enum Orientation2D
  13560. {
  13561. O_ORTHOGONAL,
  13562. O_ISOMETRIC,
  13563. O_STAGGERED,
  13564. };
  13565. enum PassLightingMode
  13566. {
  13567. LIGHTING_UNLIT,
  13568. LIGHTING_PERVERTEX,
  13569. LIGHTING_PERPIXEL,
  13570. };
  13571. enum PrimitiveType
  13572. {
  13573. TRIANGLE_LIST,
  13574. LINE_LIST,
  13575. POINT_LIST,
  13576. TRIANGLE_STRIP,
  13577. LINE_STRIP,
  13578. TRIANGLE_FAN,
  13579. };
  13580. enum RayQueryLevel
  13581. {
  13582. RAY_AABB,
  13583. RAY_OBB,
  13584. RAY_TRIANGLE,
  13585. RAY_TRIANGLE_UV,
  13586. };
  13587. enum RenderCommandSortMode
  13588. {
  13589. SORT_FRONTTOBACK,
  13590. SORT_BACKTOFRONT,
  13591. };
  13592. enum RenderCommandType
  13593. {
  13594. CMD_NONE,
  13595. CMD_CLEAR,
  13596. CMD_SCENEPASS,
  13597. CMD_QUAD,
  13598. CMD_FORWARDLIGHTS,
  13599. CMD_LIGHTVOLUMES,
  13600. CMD_RENDERUI,
  13601. };
  13602. enum RenderSurfaceUpdateMode
  13603. {
  13604. SURFACE_MANUALUPDATE,
  13605. SURFACE_UPDATEVISIBLE,
  13606. SURFACE_UPDATEALWAYS,
  13607. };
  13608. enum RenderTargetSizeMode
  13609. {
  13610. SIZE_ABSOLUTE,
  13611. SIZE_VIEWPORTDIVISOR,
  13612. SIZE_VIEWPORTMULTIPLIER,
  13613. };
  13614. enum ShadowQuality
  13615. {
  13616. SHADOWQUALITY_SIMPLE_16BIT,
  13617. SHADOWQUALITY_SIMPLE_24BIT,
  13618. SHADOWQUALITY_PCF_16BIT,
  13619. SHADOWQUALITY_PCF_24BIT,
  13620. SHADOWQUALITY_VSM,
  13621. SHADOWQUALITY_BLUR_VSM,
  13622. };
  13623. enum ShapeType
  13624. {
  13625. SHAPE_BOX,
  13626. SHAPE_SPHERE,
  13627. SHAPE_STATICPLANE,
  13628. SHAPE_CYLINDER,
  13629. SHAPE_CAPSULE,
  13630. SHAPE_CONE,
  13631. SHAPE_TRIANGLEMESH,
  13632. SHAPE_CONVEXHULL,
  13633. SHAPE_TERRAIN,
  13634. };
  13635. enum TextEffect
  13636. {
  13637. TE_NONE,
  13638. TE_SHADOW,
  13639. TE_STROKE,
  13640. };
  13641. enum TextureAddressMode
  13642. {
  13643. ADDRESS_WRAP,
  13644. ADDRESS_MIRROR,
  13645. ADDRESS_CLAMP,
  13646. ADDRESS_BORDER,
  13647. };
  13648. enum TextureCoordinate
  13649. {
  13650. COORD_U,
  13651. COORD_V,
  13652. COORD_W,
  13653. };
  13654. enum TextureFilterMode
  13655. {
  13656. FILTER_NEAREST,
  13657. FILTER_BILINEAR,
  13658. FILTER_TRILINEAR,
  13659. FILTER_ANISOTROPIC,
  13660. FILTER_DEFAULT,
  13661. };
  13662. enum TextureUnit
  13663. {
  13664. TU_DIFFUSE,
  13665. TU_ALBEDOBUFFER,
  13666. TU_NORMAL,
  13667. TU_NORMALBUFFER,
  13668. TU_SPECULAR,
  13669. TU_EMISSIVE,
  13670. TU_ENVIRONMENT,
  13671. TU_LIGHTRAMP,
  13672. TU_LIGHTSHAPE,
  13673. TU_SHADOWMAP,
  13674. TU_CUSTOM1,
  13675. TU_CUSTOM2,
  13676. TU_VOLUMEMAP,
  13677. TU_FACESELECT,
  13678. TU_INDIRECTION,
  13679. TU_DEPTHBUFFER,
  13680. TU_LIGHTBUFFER,
  13681. TU_ZONE,
  13682. MAX_MATERIAL_TEXTURE_UNITS,
  13683. MAX_TEXTURE_UNITS,
  13684. };
  13685. enum TextureUsage
  13686. {
  13687. TEXTURE_STATIC,
  13688. TEXTURE_DYNAMIC,
  13689. TEXTURE_RENDERTARGET,
  13690. TEXTURE_DEPTHSTENCIL,
  13691. };
  13692. enum TileMapLayerType2D
  13693. {
  13694. LT_TILE_LAYER,
  13695. LT_OBJECT_GROUP,
  13696. LT_IMAGE_LAYER,
  13697. LT_INVALID,
  13698. };
  13699. enum TileObjectType2D
  13700. {
  13701. OT_RECTANGLE,
  13702. OT_ELLIPSE,
  13703. OT_POLYGON,
  13704. OT_POLYLINE,
  13705. OT_TILE,
  13706. OT_INVALID,
  13707. };
  13708. enum TransformSpace
  13709. {
  13710. TS_LOCAL,
  13711. TS_PARENT,
  13712. TS_WORLD,
  13713. };
  13714. enum TraversalMode
  13715. {
  13716. TM_BREADTH_FIRST,
  13717. TM_DEPTH_FIRST,
  13718. };
  13719. enum VariantType
  13720. {
  13721. VAR_NONE,
  13722. VAR_INT,
  13723. VAR_BOOL,
  13724. VAR_FLOAT,
  13725. VAR_VECTOR2,
  13726. VAR_VECTOR3,
  13727. VAR_VECTOR4,
  13728. VAR_QUATERNION,
  13729. VAR_COLOR,
  13730. VAR_STRING,
  13731. VAR_BUFFER,
  13732. VAR_VOIDPTR,
  13733. VAR_RESOURCEREF,
  13734. VAR_RESOURCEREFLIST,
  13735. VAR_VARIANTVECTOR,
  13736. VAR_VARIANTMAP,
  13737. VAR_INTRECT,
  13738. VAR_INTVECTOR2,
  13739. VAR_PTR,
  13740. VAR_MATRIX3,
  13741. VAR_MATRIX3X4,
  13742. VAR_MATRIX4,
  13743. VAR_DOUBLE,
  13744. VAR_STRINGVECTOR,
  13745. };
  13746. enum VertexElementSemantic
  13747. {
  13748. SEM_POSITION,
  13749. SEM_NORMAL,
  13750. SEM_BINORMAL,
  13751. SEM_TANGENT,
  13752. SEM_TEXCOORD,
  13753. SEM_COLOR,
  13754. SEM_BLENDWEIGHTS,
  13755. SEM_BLENDINDICES,
  13756. SEM_OBJECTINDEX,
  13757. MAX_VERTEX_ELEMENT_SEMANTICS,
  13758. };
  13759. enum VertexElementType
  13760. {
  13761. TYPE_INT,
  13762. TYPE_FLOAT,
  13763. TYPE_VECTOR2,
  13764. TYPE_VECTOR3,
  13765. TYPE_VECTOR4,
  13766. TYPE_UBYTE4,
  13767. TYPE_UBYTE4_NORM,
  13768. MAX_VERTEX_ELEMENT_TYPES,
  13769. };
  13770. enum VerticalAlignment
  13771. {
  13772. VA_TOP,
  13773. VA_CENTER,
  13774. VA_BOTTOM,
  13775. };
  13776. enum WrapMode
  13777. {
  13778. WM_LOOP,
  13779. WM_ONCE,
  13780. WM_CLAMP,
  13781. };
  13782. // Global functions
  13783. float Abs(float);
  13784. float Acos(float);
  13785. String AddTrailingSlash(const String&);
  13786. float Asin(float);
  13787. float Atan(float);
  13788. float Atan2(float, float);
  13789. float Ceil(float);
  13790. float Clamp(float, float, float);
  13791. int Clamp(int, int, int);
  13792. void ClearDelayedExecute(const String& = String ( ));
  13793. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13794. float Cos(float);
  13795. uint CountSetBits(uint);
  13796. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13797. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13798. bool Equals(float, float);
  13799. void ErrorDialog(const String&, const String&);
  13800. float Floor(float);
  13801. uint GetAlphaFormat();
  13802. Array<String> GetArguments();
  13803. String GetConsoleInput();
  13804. uint GetDepthStencilFormat();
  13805. Object GetEventSender();
  13806. String GetExtension(const String&, bool = true);
  13807. String GetFileName(const String&);
  13808. String GetFileNameAndExtension(const String&, bool = false);
  13809. String GetFileSizeString(uint64);
  13810. uint GetFloat16Format();
  13811. uint GetFloat32Format();
  13812. uint GetFormat(const String&);
  13813. Variant GetGlobalVar(const String&);
  13814. String GetInternalPath(const String&);
  13815. uint GetLinearDepthFormat();
  13816. uint GetLuminanceAlphaFormat();
  13817. uint GetLuminanceFormat();
  13818. uint GetMaxBones();
  13819. String GetMiniDumpDir();
  13820. uint GetNumLogicalCPUs();
  13821. uint GetNumPhysicalCPUs();
  13822. Array<String> GetObjectCategories();
  13823. Array<String> GetObjectsByCategory(const String&);
  13824. String GetParentPath(const String&);
  13825. String GetPath(const String&);
  13826. String GetPlatform();
  13827. uint GetRG16Format();
  13828. uint GetRGBA16Format();
  13829. uint GetRGBAFloat16Format();
  13830. uint GetRGBAFloat32Format();
  13831. uint GetRGBAFormat();
  13832. uint GetRGBFormat();
  13833. uint GetRGFloat16Format();
  13834. uint GetRGFloat32Format();
  13835. uint GetRandomSeed();
  13836. uint GetReadableDepthFormat();
  13837. String GetTextureUnitName(TextureUnit);
  13838. bool HasSubscribedToEvent(Object, const String&);
  13839. bool HasSubscribedToEvent(const String&);
  13840. bool IsAbsolutePath(const String&);
  13841. bool IsAlpha(uint);
  13842. bool IsDigit(uint);
  13843. bool IsNaN(float);
  13844. bool IsPowerOfTwo(uint);
  13845. String Join(Array<String>&, const String&);
  13846. float Lerp(float, float, float);
  13847. void MarkNetworkUpdate();
  13848. float Max(float, float);
  13849. int Max(int, int);
  13850. float Min(float, float);
  13851. int Min(int, int);
  13852. float Mod(float, float);
  13853. uint NextPowerOfTwo(uint);
  13854. void OpenConsoleWindow();
  13855. float Pow(float, float);
  13856. void Print(bool, bool = false);
  13857. void Print(const String&, bool = false);
  13858. void Print(const Variant&, bool = false);
  13859. void Print(float, bool = false);
  13860. void Print(int, bool = false);
  13861. void Print(uint, bool = false);
  13862. void PrintCallStack(bool = false);
  13863. float Random();
  13864. float Random(float);
  13865. float Random(float, float);
  13866. int RandomInt();
  13867. int RandomInt(int);
  13868. int RandomInt(int, int);
  13869. float RandomNormal(float, float);
  13870. void Remove();
  13871. String RemoveTrailingSlash(const String&);
  13872. String ReplaceExtension(const String&, const String&);
  13873. uint SDBMHash(uint, uint8);
  13874. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13875. void SetGlobalVar(const String&, Variant&);
  13876. void SetMiniDumpDir(const String&);
  13877. void SetRandomSeed(uint);
  13878. float Sign(float);
  13879. float Sin(float);
  13880. float SmoothStep(float, float, float);
  13881. float Sqrt(float);
  13882. const String& GetTypeName(StringHash);
  13883. void SubscribeToEvent(Object, const String&, const String&);
  13884. void SubscribeToEvent(const String&, const String&);
  13885. float Tan(float);
  13886. uint ToLower(uint);
  13887. String ToStringHex(int);
  13888. uint ToUpper(uint);
  13889. void UnsubscribeFromAllEvents();
  13890. void UnsubscribeFromAllEventsExcept(Array<String>);
  13891. void UnsubscribeFromEvent(Object, const String&);
  13892. void UnsubscribeFromEvent(const String&);
  13893. void UnsubscribeFromEvents(Object);
  13894. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13895. // Global properties
  13896. DBAPI DBAPI;
  13897. Audio audio;
  13898. ResourceCache cache;
  13899. Console console;
  13900. Database database;
  13901. DebugHud debugHud;
  13902. DebugRenderer debugRenderer;
  13903. Engine engine;
  13904. FileSystem fileSystem;
  13905. VariantMap globalVars;
  13906. Graphics graphics;
  13907. Input input;
  13908. Localization localization;
  13909. Log log;
  13910. Network network;
  13911. Node node;
  13912. Octree octree;
  13913. PhysicsWorld physicsWorld;
  13914. PhysicsWorld2D physicsWorld2D;
  13915. Renderer renderer;
  13916. ResourceCache resourceCache;
  13917. Scene scene;
  13918. Script script;
  13919. ScriptFile scriptFile;
  13920. ScriptInstance self;
  13921. Time time;
  13922. UI ui;
  13923. // Global constants
  13924. uint AM_COMPONENTID;
  13925. uint AM_DEFAULT;
  13926. uint AM_FILE;
  13927. uint AM_LATESTDATA;
  13928. uint AM_NET;
  13929. uint AM_NODEID;
  13930. uint AM_NODEIDVECTOR;
  13931. uint AM_NOEDIT;
  13932. Color BLACK;
  13933. Color BLUE;
  13934. uint8 CHANNEL_POSITION;
  13935. uint8 CHANNEL_ROTATION;
  13936. uint8 CHANNEL_SCALE;
  13937. uint CLEAR_COLOR;
  13938. uint CLEAR_DEPTH;
  13939. uint CLEAR_STENCIL;
  13940. int CONTROLLER_AXIS_LEFTX;
  13941. int CONTROLLER_AXIS_LEFTY;
  13942. int CONTROLLER_AXIS_RIGHTX;
  13943. int CONTROLLER_AXIS_RIGHTY;
  13944. int CONTROLLER_AXIS_TRIGGERLEFT;
  13945. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13946. int CONTROLLER_BUTTON_A;
  13947. int CONTROLLER_BUTTON_B;
  13948. int CONTROLLER_BUTTON_BACK;
  13949. int CONTROLLER_BUTTON_DPAD_DOWN;
  13950. int CONTROLLER_BUTTON_DPAD_LEFT;
  13951. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13952. int CONTROLLER_BUTTON_DPAD_UP;
  13953. int CONTROLLER_BUTTON_GUIDE;
  13954. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13955. int CONTROLLER_BUTTON_LEFTSTICK;
  13956. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13957. int CONTROLLER_BUTTON_RIGHTSTICK;
  13958. int CONTROLLER_BUTTON_START;
  13959. int CONTROLLER_BUTTON_X;
  13960. int CONTROLLER_BUTTON_Y;
  13961. Color CYAN;
  13962. uint DD_DISABLED;
  13963. uint DD_SOURCE;
  13964. uint DD_SOURCE_AND_TARGET;
  13965. uint DD_TARGET;
  13966. uint DEBUGHUD_SHOW_ALL;
  13967. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13968. uint DEBUGHUD_SHOW_MEMORY;
  13969. uint DEBUGHUD_SHOW_MODE;
  13970. uint DEBUGHUD_SHOW_NONE;
  13971. uint DEBUGHUD_SHOW_PROFILER;
  13972. uint DEBUGHUD_SHOW_STATS;
  13973. uint DEFAULT_LIGHTMASK;
  13974. uint DEFAULT_VIEWMASK;
  13975. uint DRAWABLE_ANY;
  13976. uint DRAWABLE_GEOMETRY;
  13977. uint DRAWABLE_GEOMETRY2D;
  13978. uint DRAWABLE_LIGHT;
  13979. uint DRAWABLE_ZONE;
  13980. uint FIRST_LOCAL_ID;
  13981. uint FIRST_REPLICATED_ID;
  13982. Color GRAY;
  13983. Color GREEN;
  13984. int HAT_CENTER;
  13985. int HAT_DOWN;
  13986. int HAT_LEFT;
  13987. int HAT_RIGHT;
  13988. int HAT_UP;
  13989. int KEY_0;
  13990. int KEY_1;
  13991. int KEY_2;
  13992. int KEY_3;
  13993. int KEY_4;
  13994. int KEY_5;
  13995. int KEY_6;
  13996. int KEY_7;
  13997. int KEY_8;
  13998. int KEY_9;
  13999. int KEY_A;
  14000. int KEY_ALT;
  14001. int KEY_APPLICATION;
  14002. int KEY_B;
  14003. int KEY_BACKSPACE;
  14004. int KEY_C;
  14005. int KEY_CAPSLOCK;
  14006. int KEY_CTRL;
  14007. int KEY_D;
  14008. int KEY_DELETE;
  14009. int KEY_DOWN;
  14010. int KEY_E;
  14011. int KEY_END;
  14012. int KEY_ESC;
  14013. int KEY_F;
  14014. int KEY_F1;
  14015. int KEY_F10;
  14016. int KEY_F11;
  14017. int KEY_F12;
  14018. int KEY_F13;
  14019. int KEY_F14;
  14020. int KEY_F15;
  14021. int KEY_F16;
  14022. int KEY_F17;
  14023. int KEY_F18;
  14024. int KEY_F19;
  14025. int KEY_F2;
  14026. int KEY_F20;
  14027. int KEY_F21;
  14028. int KEY_F22;
  14029. int KEY_F23;
  14030. int KEY_F24;
  14031. int KEY_F3;
  14032. int KEY_F4;
  14033. int KEY_F5;
  14034. int KEY_F6;
  14035. int KEY_F7;
  14036. int KEY_F8;
  14037. int KEY_F9;
  14038. int KEY_G;
  14039. int KEY_GUI;
  14040. int KEY_H;
  14041. int KEY_HOME;
  14042. int KEY_I;
  14043. int KEY_INSERT;
  14044. int KEY_J;
  14045. int KEY_K;
  14046. int KEY_KP_0;
  14047. int KEY_KP_1;
  14048. int KEY_KP_2;
  14049. int KEY_KP_3;
  14050. int KEY_KP_4;
  14051. int KEY_KP_5;
  14052. int KEY_KP_6;
  14053. int KEY_KP_7;
  14054. int KEY_KP_8;
  14055. int KEY_KP_9;
  14056. int KEY_KP_DIVIDE;
  14057. int KEY_KP_ENTER;
  14058. int KEY_KP_MINUS;
  14059. int KEY_KP_MULTIPLY;
  14060. int KEY_KP_PERIOD;
  14061. int KEY_KP_PLUS;
  14062. int KEY_L;
  14063. int KEY_LALT;
  14064. int KEY_LCTRL;
  14065. int KEY_LEFT;
  14066. int KEY_LGUI;
  14067. int KEY_LSHIFT;
  14068. int KEY_M;
  14069. int KEY_N;
  14070. int KEY_NUMLOCKCLEAR;
  14071. int KEY_O;
  14072. int KEY_P;
  14073. int KEY_PAGEDOWN;
  14074. int KEY_PAGEUP;
  14075. int KEY_PAUSE;
  14076. int KEY_PRINTSCREEN;
  14077. int KEY_Q;
  14078. int KEY_R;
  14079. int KEY_RALT;
  14080. int KEY_RCTRL;
  14081. int KEY_RETURN;
  14082. int KEY_RETURN2;
  14083. int KEY_RGUI;
  14084. int KEY_RIGHT;
  14085. int KEY_RSHIFT;
  14086. int KEY_S;
  14087. int KEY_SCROLLLOCK;
  14088. int KEY_SELECT;
  14089. int KEY_SHIFT;
  14090. int KEY_SPACE;
  14091. int KEY_T;
  14092. int KEY_TAB;
  14093. int KEY_U;
  14094. int KEY_UP;
  14095. int KEY_V;
  14096. int KEY_W;
  14097. int KEY_X;
  14098. int KEY_Y;
  14099. int KEY_Z;
  14100. uint LAST_LOCAL_ID;
  14101. uint LAST_REPLICATED_ID;
  14102. int LOG_DEBUG;
  14103. int LOG_ERROR;
  14104. int LOG_INFO;
  14105. int LOG_NONE;
  14106. int LOG_WARNING;
  14107. Color MAGENTA;
  14108. uint MASK_BLENDINDICES;
  14109. uint MASK_BLENDWEIGHTS;
  14110. uint MASK_COLOR;
  14111. uint MASK_CUBETEXCOORD1;
  14112. uint MASK_CUBETEXCOORD2;
  14113. uint MASK_INSTANCEMATRIX1;
  14114. uint MASK_INSTANCEMATRIX2;
  14115. uint MASK_INSTANCEMATRIX3;
  14116. uint MASK_NONE;
  14117. uint MASK_NORMAL;
  14118. uint MASK_OBJECTINDEX;
  14119. uint MASK_POSITION;
  14120. uint MASK_TANGENT;
  14121. uint MASK_TEXCOORD1;
  14122. uint MASK_TEXCOORD2;
  14123. int MOUSEB_LEFT;
  14124. int MOUSEB_MIDDLE;
  14125. int MOUSEB_RIGHT;
  14126. float M_DEGTORAD;
  14127. float M_DEGTORAD_2;
  14128. float M_EPSILON;
  14129. float M_HALF_PI;
  14130. float M_INFINITY;
  14131. float M_LARGE_EPSILON;
  14132. float M_LARGE_VALUE;
  14133. int M_MAX_INT;
  14134. uint M_MAX_UNSIGNED;
  14135. int M_MIN_INT;
  14136. uint M_MIN_UNSIGNED;
  14137. float M_PI;
  14138. float M_RADTODEG;
  14139. uint NPOS;
  14140. float PIXEL_SIZE;
  14141. int QUALITY_HIGH;
  14142. int QUALITY_LOW;
  14143. int QUALITY_MAX;
  14144. int QUALITY_MEDIUM;
  14145. int QUAL_ALT;
  14146. int QUAL_ANY;
  14147. int QUAL_CTRL;
  14148. int QUAL_SHIFT;
  14149. Color RED;
  14150. int SCANCODE_0;
  14151. int SCANCODE_1;
  14152. int SCANCODE_2;
  14153. int SCANCODE_3;
  14154. int SCANCODE_4;
  14155. int SCANCODE_5;
  14156. int SCANCODE_6;
  14157. int SCANCODE_7;
  14158. int SCANCODE_8;
  14159. int SCANCODE_9;
  14160. int SCANCODE_A;
  14161. int SCANCODE_AC_BACK;
  14162. int SCANCODE_AC_BOOKMARKS;
  14163. int SCANCODE_AC_FORWARD;
  14164. int SCANCODE_AC_HOME;
  14165. int SCANCODE_AC_REFRESH;
  14166. int SCANCODE_AC_SEARCH;
  14167. int SCANCODE_AC_STOP;
  14168. int SCANCODE_AGAIN;
  14169. int SCANCODE_ALT;
  14170. int SCANCODE_ALTERASE;
  14171. int SCANCODE_APOSTROPHE;
  14172. int SCANCODE_APP1;
  14173. int SCANCODE_APP2;
  14174. int SCANCODE_APPLICATION;
  14175. int SCANCODE_AUDIOMUTE;
  14176. int SCANCODE_AUDIONEXT;
  14177. int SCANCODE_AUDIOPLAY;
  14178. int SCANCODE_AUDIOPREV;
  14179. int SCANCODE_AUDIOSTOP;
  14180. int SCANCODE_B;
  14181. int SCANCODE_BACKSLASH;
  14182. int SCANCODE_BACKSPACE;
  14183. int SCANCODE_BRIGHTNESSDOWN;
  14184. int SCANCODE_BRIGHTNESSUP;
  14185. int SCANCODE_C;
  14186. int SCANCODE_CALCULATOR;
  14187. int SCANCODE_CANCEL;
  14188. int SCANCODE_CAPSLOCK;
  14189. int SCANCODE_CLEAR;
  14190. int SCANCODE_CLEARAGAIN;
  14191. int SCANCODE_COMMA;
  14192. int SCANCODE_COMPUTER;
  14193. int SCANCODE_COPY;
  14194. int SCANCODE_CRSEL;
  14195. int SCANCODE_CTRL;
  14196. int SCANCODE_CURRENCYSUBUNIT;
  14197. int SCANCODE_CURRENCYUNIT;
  14198. int SCANCODE_CUT;
  14199. int SCANCODE_D;
  14200. int SCANCODE_DECIMALSEPARATOR;
  14201. int SCANCODE_DELETE;
  14202. int SCANCODE_DISPLAYSWITCH;
  14203. int SCANCODE_DOWN;
  14204. int SCANCODE_E;
  14205. int SCANCODE_EJECT;
  14206. int SCANCODE_END;
  14207. int SCANCODE_EQUALS;
  14208. int SCANCODE_ESCAPE;
  14209. int SCANCODE_EXECUTE;
  14210. int SCANCODE_EXSEL;
  14211. int SCANCODE_F;
  14212. int SCANCODE_F1;
  14213. int SCANCODE_F10;
  14214. int SCANCODE_F11;
  14215. int SCANCODE_F12;
  14216. int SCANCODE_F13;
  14217. int SCANCODE_F14;
  14218. int SCANCODE_F15;
  14219. int SCANCODE_F16;
  14220. int SCANCODE_F17;
  14221. int SCANCODE_F18;
  14222. int SCANCODE_F19;
  14223. int SCANCODE_F2;
  14224. int SCANCODE_F20;
  14225. int SCANCODE_F21;
  14226. int SCANCODE_F22;
  14227. int SCANCODE_F23;
  14228. int SCANCODE_F24;
  14229. int SCANCODE_F3;
  14230. int SCANCODE_F4;
  14231. int SCANCODE_F5;
  14232. int SCANCODE_F6;
  14233. int SCANCODE_F7;
  14234. int SCANCODE_F8;
  14235. int SCANCODE_F9;
  14236. int SCANCODE_FIND;
  14237. int SCANCODE_G;
  14238. int SCANCODE_GRAVE;
  14239. int SCANCODE_GUI;
  14240. int SCANCODE_H;
  14241. int SCANCODE_HELP;
  14242. int SCANCODE_HOME;
  14243. int SCANCODE_I;
  14244. int SCANCODE_INSERT;
  14245. int SCANCODE_INTERNATIONAL1;
  14246. int SCANCODE_INTERNATIONAL2;
  14247. int SCANCODE_INTERNATIONAL3;
  14248. int SCANCODE_INTERNATIONAL4;
  14249. int SCANCODE_INTERNATIONAL5;
  14250. int SCANCODE_INTERNATIONAL6;
  14251. int SCANCODE_INTERNATIONAL7;
  14252. int SCANCODE_INTERNATIONAL8;
  14253. int SCANCODE_INTERNATIONAL9;
  14254. int SCANCODE_J;
  14255. int SCANCODE_K;
  14256. int SCANCODE_KBDILLUMDOWN;
  14257. int SCANCODE_KBDILLUMTOGGLE;
  14258. int SCANCODE_KBDILLUMUP;
  14259. int SCANCODE_KP_0;
  14260. int SCANCODE_KP_00;
  14261. int SCANCODE_KP_000;
  14262. int SCANCODE_KP_1;
  14263. int SCANCODE_KP_2;
  14264. int SCANCODE_KP_3;
  14265. int SCANCODE_KP_4;
  14266. int SCANCODE_KP_5;
  14267. int SCANCODE_KP_6;
  14268. int SCANCODE_KP_7;
  14269. int SCANCODE_KP_8;
  14270. int SCANCODE_KP_9;
  14271. int SCANCODE_KP_A;
  14272. int SCANCODE_KP_AMPERSAND;
  14273. int SCANCODE_KP_AT;
  14274. int SCANCODE_KP_B;
  14275. int SCANCODE_KP_BACKSPACE;
  14276. int SCANCODE_KP_BINARY;
  14277. int SCANCODE_KP_C;
  14278. int SCANCODE_KP_CLEAR;
  14279. int SCANCODE_KP_CLEARENTRY;
  14280. int SCANCODE_KP_COLON;
  14281. int SCANCODE_KP_COMMA;
  14282. int SCANCODE_KP_D;
  14283. int SCANCODE_KP_DBLAMPERSAND;
  14284. int SCANCODE_KP_DBLVERTICALBAR;
  14285. int SCANCODE_KP_DECIMAL;
  14286. int SCANCODE_KP_DIVIDE;
  14287. int SCANCODE_KP_E;
  14288. int SCANCODE_KP_ENTER;
  14289. int SCANCODE_KP_EQUALS;
  14290. int SCANCODE_KP_EQUALSAS400;
  14291. int SCANCODE_KP_EXCLAM;
  14292. int SCANCODE_KP_F;
  14293. int SCANCODE_KP_GREATER;
  14294. int SCANCODE_KP_HASH;
  14295. int SCANCODE_KP_HEXADECIMAL;
  14296. int SCANCODE_KP_LEFTBRACE;
  14297. int SCANCODE_KP_LEFTPAREN;
  14298. int SCANCODE_KP_LESS;
  14299. int SCANCODE_KP_MEMADD;
  14300. int SCANCODE_KP_MEMCLEAR;
  14301. int SCANCODE_KP_MEMDIVIDE;
  14302. int SCANCODE_KP_MEMMULTIPLY;
  14303. int SCANCODE_KP_MEMRECALL;
  14304. int SCANCODE_KP_MEMSTORE;
  14305. int SCANCODE_KP_MEMSUBTRACT;
  14306. int SCANCODE_KP_MINUS;
  14307. int SCANCODE_KP_MULTIPLY;
  14308. int SCANCODE_KP_OCTAL;
  14309. int SCANCODE_KP_PERCENT;
  14310. int SCANCODE_KP_PERIOD;
  14311. int SCANCODE_KP_PLUS;
  14312. int SCANCODE_KP_PLUSMINUS;
  14313. int SCANCODE_KP_POWER;
  14314. int SCANCODE_KP_RIGHTBRACE;
  14315. int SCANCODE_KP_RIGHTPAREN;
  14316. int SCANCODE_KP_SPACE;
  14317. int SCANCODE_KP_TAB;
  14318. int SCANCODE_KP_VERTICALBAR;
  14319. int SCANCODE_KP_XOR;
  14320. int SCANCODE_L;
  14321. int SCANCODE_LALT;
  14322. int SCANCODE_LANG1;
  14323. int SCANCODE_LANG2;
  14324. int SCANCODE_LANG3;
  14325. int SCANCODE_LANG4;
  14326. int SCANCODE_LANG5;
  14327. int SCANCODE_LANG6;
  14328. int SCANCODE_LANG7;
  14329. int SCANCODE_LANG8;
  14330. int SCANCODE_LANG9;
  14331. int SCANCODE_LCTRL;
  14332. int SCANCODE_LEFT;
  14333. int SCANCODE_LEFTBRACKET;
  14334. int SCANCODE_LGUI;
  14335. int SCANCODE_LSHIFT;
  14336. int SCANCODE_M;
  14337. int SCANCODE_MAIL;
  14338. int SCANCODE_MEDIASELECT;
  14339. int SCANCODE_MENU;
  14340. int SCANCODE_MINUS;
  14341. int SCANCODE_MODE;
  14342. int SCANCODE_MUTE;
  14343. int SCANCODE_N;
  14344. int SCANCODE_NONUSBACKSLASH;
  14345. int SCANCODE_NONUSHASH;
  14346. int SCANCODE_NUMLOCKCLEAR;
  14347. int SCANCODE_O;
  14348. int SCANCODE_OPER;
  14349. int SCANCODE_OUT;
  14350. int SCANCODE_P;
  14351. int SCANCODE_PAGEDOWN;
  14352. int SCANCODE_PAGEUP;
  14353. int SCANCODE_PASTE;
  14354. int SCANCODE_PAUSE;
  14355. int SCANCODE_PERIOD;
  14356. int SCANCODE_POWER;
  14357. int SCANCODE_PRINTSCREEN;
  14358. int SCANCODE_PRIOR;
  14359. int SCANCODE_Q;
  14360. int SCANCODE_R;
  14361. int SCANCODE_RALT;
  14362. int SCANCODE_RCTRL;
  14363. int SCANCODE_RETURN;
  14364. int SCANCODE_RETURN2;
  14365. int SCANCODE_RGUI;
  14366. int SCANCODE_RIGHT;
  14367. int SCANCODE_RIGHTBRACKET;
  14368. int SCANCODE_RSHIFT;
  14369. int SCANCODE_S;
  14370. int SCANCODE_SCROLLLOCK;
  14371. int SCANCODE_SELECT;
  14372. int SCANCODE_SEMICOLON;
  14373. int SCANCODE_SEPARATOR;
  14374. int SCANCODE_SHIFT;
  14375. int SCANCODE_SLASH;
  14376. int SCANCODE_SLEEP;
  14377. int SCANCODE_SPACE;
  14378. int SCANCODE_STOP;
  14379. int SCANCODE_SYSREQ;
  14380. int SCANCODE_T;
  14381. int SCANCODE_TAB;
  14382. int SCANCODE_THOUSANDSSEPARATOR;
  14383. int SCANCODE_U;
  14384. int SCANCODE_UNDO;
  14385. int SCANCODE_UNKNOWN;
  14386. int SCANCODE_UP;
  14387. int SCANCODE_V;
  14388. int SCANCODE_VOLUMEDOWN;
  14389. int SCANCODE_VOLUMEUP;
  14390. int SCANCODE_W;
  14391. int SCANCODE_WWW;
  14392. int SCANCODE_X;
  14393. int SCANCODE_Y;
  14394. int SCANCODE_Z;
  14395. uint SCAN_DIRS;
  14396. uint SCAN_FILES;
  14397. uint SCAN_HIDDEN;
  14398. String SOUND_AMBIENT;
  14399. String SOUND_EFFECT;
  14400. String SOUND_MASTER;
  14401. String SOUND_MUSIC;
  14402. String SOUND_VOICE;
  14403. Color TRANSPARENT;
  14404. uint VO_DISABLE_OCCLUSION;
  14405. uint VO_DISABLE_SHADOWS;
  14406. uint VO_LOW_MATERIAL_QUALITY;
  14407. uint VO_NONE;
  14408. Color WHITE;
  14409. Color YELLOW;