2
0

AngelScriptAPI.h 365 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680
  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. AnimationTrack CreateTrack(const String&);
  290. bool HasSubscribedToEvent(Object, const String&);
  291. bool HasSubscribedToEvent(const String&);
  292. bool Load(File);
  293. bool Load(VectorBuffer&);
  294. bool RemoveAllTracks();
  295. void RemoveAllTriggers();
  296. bool RemoveTrack(const String&);
  297. void RemoveTrigger(uint);
  298. bool Save(File) const;
  299. bool Save(VectorBuffer&) const;
  300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  301. // Properties:
  302. String animationName;
  303. /* readonly */
  304. String category;
  305. float length;
  306. /* readonly */
  307. uint memoryUse;
  308. String name;
  309. /* readonly */
  310. uint numTracks;
  311. uint numTriggers;
  312. /* readonly */
  313. int refs;
  314. /* readonly */
  315. Array<AnimationTrack> tracks;
  316. Array<AnimationTriggerPoint> triggers;
  317. /* readonly */
  318. StringHash type;
  319. /* readonly */
  320. String typeName;
  321. /* readonly */
  322. uint useTimer;
  323. /* readonly */
  324. int weakRefs;
  325. };
  326. class AnimationController
  327. {
  328. // Methods:
  329. void ApplyAttributes();
  330. void DrawDebugGeometry(DebugRenderer, bool);
  331. bool Fade(const String&, float, float);
  332. bool FadeOthers(const String&, float, float);
  333. AnimationState GetAnimationState(StringHash) const;
  334. AnimationState GetAnimationState(const String&) const;
  335. Variant GetAttribute(const String&) const;
  336. ValueAnimation GetAttributeAnimation(const String&) const;
  337. float GetAttributeAnimationSpeed(const String&) const;
  338. float GetAttributeAnimationTime(const String&) const;
  339. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  340. Variant GetAttributeDefault(const String&) const;
  341. float GetAutoFade(const String&) const;
  342. float GetFadeTarget(const String&) const;
  343. float GetFadeTime(const String&) const;
  344. bool GetInterceptNetworkUpdate(const String&) const;
  345. uint8 GetLayer(const String&) const;
  346. float GetLength(const String&) const;
  347. bool GetLooped(const String&) const;
  348. bool GetRemoveOnCompletion(const String&);
  349. float GetSpeed(const String&) const;
  350. float GetTime(const String&) const;
  351. float GetWeight(const String&) const;
  352. bool HasSubscribedToEvent(Object, const String&);
  353. bool HasSubscribedToEvent(const String&);
  354. bool IsAtEnd(const String&) const;
  355. bool IsFadingIn(const String&) const;
  356. bool IsFadingOut(const String&) const;
  357. bool IsPlaying(const String&) const;
  358. bool Load(File, bool = false);
  359. bool Load(VectorBuffer&, bool = false);
  360. bool LoadJSON(const JSONValue&, bool = false);
  361. bool LoadXML(const XMLElement&, bool = false);
  362. void MarkNetworkUpdate() const;
  363. bool Play(const String&, uint8, bool, float = 0.0f);
  364. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  365. void Remove();
  366. void RemoveAttributeAnimation(const String&);
  367. void RemoveInstanceDefault();
  368. void RemoveObjectAnimation();
  369. void ResetToDefault();
  370. bool Save(File) const;
  371. bool Save(VectorBuffer&) const;
  372. bool SaveJSON(JSONValue&) const;
  373. bool SaveXML(XMLElement&) const;
  374. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  375. void SetAnimationTime(float);
  376. bool SetAttribute(const String&, const Variant&);
  377. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  378. void SetAttributeAnimationSpeed(const String&, float);
  379. void SetAttributeAnimationTime(const String&, float);
  380. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  381. bool SetAutoFade(const String&, float);
  382. void SetInterceptNetworkUpdate(const String&, bool);
  383. bool SetLayer(const String&, uint8);
  384. bool SetLooped(const String&, bool);
  385. bool SetRemoveOnCompletion(const String&, bool);
  386. bool SetSpeed(const String&, float);
  387. bool SetStartBone(const String&, const String&);
  388. bool SetTime(const String&, float);
  389. bool SetWeight(const String&, float);
  390. void Stop(const String&, float = 0.0f);
  391. void StopAll(float = 0.0f);
  392. void StopLayer(uint8, float = 0.0f);
  393. const String& GetStartBone(const String&) const;
  394. // Properties:
  395. bool animationEnabled;
  396. /* readonly */
  397. Array<Variant> attributeDefaults;
  398. /* readonly */
  399. Array<AttributeInfo> attributeInfos;
  400. Array<Variant> attributes;
  401. /* readonly */
  402. String category;
  403. bool enabled;
  404. /* readonly */
  405. bool enabledEffective;
  406. /* readonly */
  407. uint id;
  408. /* readonly */
  409. Node node;
  410. /* readonly */
  411. uint numAttributes;
  412. ObjectAnimation objectAnimation;
  413. /* readonly */
  414. int refs;
  415. bool temporary;
  416. /* readonly */
  417. StringHash type;
  418. /* readonly */
  419. String typeName;
  420. /* readonly */
  421. int weakRefs;
  422. };
  423. class AnimationKeyFrame
  424. {
  425. // Properties:
  426. Vector3 position;
  427. Quaternion rotation;
  428. Vector3 scale;
  429. float time;
  430. };
  431. class AnimationSet2D
  432. {
  433. // Methods:
  434. String GetAnimation(uint) const;
  435. bool HasSubscribedToEvent(Object, const String&);
  436. bool HasSubscribedToEvent(const String&);
  437. bool Load(File);
  438. bool Load(VectorBuffer&);
  439. bool Save(File) const;
  440. bool Save(VectorBuffer&) const;
  441. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  442. // Properties:
  443. /* readonly */
  444. String category;
  445. /* readonly */
  446. uint memoryUse;
  447. String name;
  448. /* readonly */
  449. uint numAnimations;
  450. /* readonly */
  451. int refs;
  452. /* readonly */
  453. StringHash type;
  454. /* readonly */
  455. String typeName;
  456. /* readonly */
  457. uint useTimer;
  458. /* readonly */
  459. int weakRefs;
  460. };
  461. class AnimationState
  462. {
  463. // Methods:
  464. void AddTime(float);
  465. void AddWeight(float);
  466. void Apply();
  467. float GetBoneWeight(StringHash) const;
  468. float GetBoneWeight(uint) const;
  469. uint GetTrackIndex(StringHash) const;
  470. uint GetTrackIndex(const String&) const;
  471. void SetBoneWeight(StringHash, float, bool = false);
  472. void SetBoneWeight(const String&, float, bool = false);
  473. void SetBoneWeight(uint, float, bool = false);
  474. // Properties:
  475. /* readonly */
  476. Animation animation;
  477. Array<float> boneWeights;
  478. /* readonly */
  479. bool enabled;
  480. uint8 layer;
  481. /* readonly */
  482. float length;
  483. bool looped;
  484. /* readonly */
  485. AnimatedModel model;
  486. /* readonly */
  487. Node node;
  488. /* readonly */
  489. int refs;
  490. Bone startBone;
  491. float time;
  492. /* readonly */
  493. int weakRefs;
  494. float weight;
  495. };
  496. class AnimationTrack
  497. {
  498. // Methods:
  499. void AddKeyFrame(const AnimationKeyFrame&);
  500. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  501. void RemoveAllKeyFrames();
  502. void RemoveKeyFrame(uint);
  503. // Properties:
  504. uint8 channelMask;
  505. Array<AnimationKeyFrame> keyFrames;
  506. String name;
  507. StringHash nameHash;
  508. /* readonly */
  509. uint numKeyFrames;
  510. };
  511. class AnimationTriggerPoint
  512. {
  513. // Properties:
  514. Variant data;
  515. float time;
  516. };
  517. template <class T> class Array
  518. {
  519. // Methods:
  520. void Clear();
  521. void Erase(uint);
  522. int Find(const T&) const;
  523. int Find(uint, const T&) const;
  524. int FindByRef(const T&) const;
  525. int FindByRef(uint, const T&) const;
  526. void Insert(uint, const T&);
  527. void Pop();
  528. void Push(const T&);
  529. void Reserve(uint);
  530. void Resize(uint);
  531. void Reverse();
  532. void Sort();
  533. void Sort(uint, uint);
  534. void SortReverse();
  535. void SortReverse(uint, uint);
  536. // Properties:
  537. /* readonly */
  538. bool empty;
  539. uint length;
  540. };
  541. class AttributeInfo
  542. {
  543. // Properties:
  544. Variant defaultValue;
  545. /* readonly */
  546. Array<String> enumNames;
  547. uint mode;
  548. String name;
  549. VariantType type;
  550. };
  551. class Audio
  552. {
  553. // Methods:
  554. bool HasMasterGain(const String&) const;
  555. bool HasSubscribedToEvent(Object, const String&);
  556. bool HasSubscribedToEvent(const String&);
  557. bool Play();
  558. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  559. void SetMode(int, int, bool, bool = true);
  560. void Stop();
  561. // Properties:
  562. /* readonly */
  563. String category;
  564. /* readonly */
  565. bool initialized;
  566. /* readonly */
  567. bool interpolation;
  568. SoundListener listener;
  569. Array<float> masterGain;
  570. /* readonly */
  571. int mixRate;
  572. /* readonly */
  573. bool playing;
  574. /* readonly */
  575. int refs;
  576. /* readonly */
  577. uint sampleSize;
  578. /* readonly */
  579. bool stereo;
  580. /* readonly */
  581. StringHash type;
  582. /* readonly */
  583. String typeName;
  584. /* readonly */
  585. int weakRefs;
  586. };
  587. class BiasParameters
  588. {
  589. // Properties:
  590. float constantBias;
  591. float slopeScaledBias;
  592. };
  593. class Billboard
  594. {
  595. // Properties:
  596. Color color;
  597. Vector3 direction;
  598. bool enabled;
  599. Vector3 position;
  600. float rotation;
  601. Vector2 size;
  602. Rect uv;
  603. };
  604. class BillboardSet
  605. {
  606. // Methods:
  607. void ApplyAttributes();
  608. void Commit();
  609. void DrawDebugGeometry(DebugRenderer, bool);
  610. Variant GetAttribute(const String&) const;
  611. ValueAnimation GetAttributeAnimation(const String&) const;
  612. float GetAttributeAnimationSpeed(const String&) const;
  613. float GetAttributeAnimationTime(const String&) const;
  614. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  615. Variant GetAttributeDefault(const String&) const;
  616. bool GetInterceptNetworkUpdate(const String&) const;
  617. bool HasSubscribedToEvent(Object, const String&);
  618. bool HasSubscribedToEvent(const String&);
  619. bool IsInView(Camera) const;
  620. bool Load(File, bool = false);
  621. bool Load(VectorBuffer&, bool = false);
  622. bool LoadJSON(const JSONValue&, bool = false);
  623. bool LoadXML(const XMLElement&, bool = false);
  624. void MarkNetworkUpdate() const;
  625. void Remove();
  626. void RemoveAttributeAnimation(const String&);
  627. void RemoveInstanceDefault();
  628. void RemoveObjectAnimation();
  629. void ResetToDefault();
  630. bool Save(File) const;
  631. bool Save(VectorBuffer&) const;
  632. bool SaveJSON(JSONValue&) const;
  633. bool SaveXML(XMLElement&) const;
  634. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  635. void SetAnimationTime(float);
  636. bool SetAttribute(const String&, const Variant&);
  637. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  638. void SetAttributeAnimationSpeed(const String&, float);
  639. void SetAttributeAnimationTime(const String&, float);
  640. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  641. void SetInterceptNetworkUpdate(const String&, bool);
  642. // Properties:
  643. bool animationEnabled;
  644. float animationLodBias;
  645. /* readonly */
  646. Array<Variant> attributeDefaults;
  647. /* readonly */
  648. Array<AttributeInfo> attributeInfos;
  649. Array<Variant> attributes;
  650. /* readonly */
  651. Array<Billboard> billboards;
  652. /* readonly */
  653. BoundingBox boundingBox;
  654. bool castShadows;
  655. /* readonly */
  656. String category;
  657. float drawDistance;
  658. bool enabled;
  659. /* readonly */
  660. bool enabledEffective;
  661. FaceCameraMode faceCameraMode;
  662. /* readonly */
  663. uint id;
  664. /* readonly */
  665. bool inView;
  666. uint lightMask;
  667. float lodBias;
  668. Material material;
  669. uint maxLights;
  670. /* readonly */
  671. Node node;
  672. /* readonly */
  673. uint numAttributes;
  674. uint numBillboards;
  675. ObjectAnimation objectAnimation;
  676. bool occludee;
  677. bool occluder;
  678. /* readonly */
  679. int refs;
  680. bool relative;
  681. bool scaled;
  682. float shadowDistance;
  683. uint shadowMask;
  684. bool sorted;
  685. bool temporary;
  686. /* readonly */
  687. StringHash type;
  688. /* readonly */
  689. String typeName;
  690. uint viewMask;
  691. /* readonly */
  692. int weakRefs;
  693. /* readonly */
  694. BoundingBox worldBoundingBox;
  695. /* readonly */
  696. Zone zone;
  697. uint zoneMask;
  698. };
  699. class Bone
  700. {
  701. // Properties:
  702. bool animated;
  703. BoundingBox boundingBox;
  704. Vector3 initialPosition;
  705. Quaternion initialRotation;
  706. Vector3 initialScale;
  707. String name;
  708. Node node;
  709. float radius;
  710. };
  711. class BorderImage
  712. {
  713. // Methods:
  714. void AddChild(UIElement);
  715. void AddTag(const String&);
  716. void AddTags(const String&, int8 = ';');
  717. void ApplyAttributes();
  718. void BringToFront();
  719. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  720. void DisableLayoutUpdate();
  721. IntVector2 ElementToScreen(const IntVector2&);
  722. void EnableLayoutUpdate();
  723. uint FindChild(UIElement) const;
  724. Variant GetAttribute(const String&) const;
  725. ValueAnimation GetAttributeAnimation(const String&) const;
  726. float GetAttributeAnimationSpeed(const String&) const;
  727. float GetAttributeAnimationTime(const String&) const;
  728. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  729. Variant GetAttributeDefault(const String&) const;
  730. UIElement GetChild(const String&, bool = false) const;
  731. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  732. Array<UIElement> GetChildren(bool = false) const;
  733. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  734. UIElement GetElementEventSender() const;
  735. bool GetInterceptNetworkUpdate(const String&) const;
  736. uint GetNumChildren(bool) const;
  737. bool HasSubscribedToEvent(Object, const String&);
  738. bool HasSubscribedToEvent(const String&);
  739. bool HasTag(const String&) const;
  740. void InsertChild(uint, UIElement);
  741. bool IsInside(IntVector2, bool);
  742. bool IsInsideCombined(IntVector2, bool);
  743. bool Load(File, bool = false);
  744. bool Load(VectorBuffer&, bool = false);
  745. bool LoadChildXML(XMLFile, XMLFile = null);
  746. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  747. bool LoadJSON(const JSONValue&, bool = false);
  748. bool LoadXML(File);
  749. bool LoadXML(VectorBuffer&);
  750. bool LoadXML(XMLFile, XMLFile);
  751. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  752. bool LoadXML(const XMLElement&, bool = false);
  753. void MarkNetworkUpdate() const;
  754. void Remove();
  755. void RemoveAllChildren();
  756. void RemoveAllTags();
  757. void RemoveAttributeAnimation(const String&);
  758. void RemoveChild(UIElement, uint = 0);
  759. void RemoveChild(uint);
  760. void RemoveInstanceDefault();
  761. void RemoveObjectAnimation();
  762. bool RemoveTag(const String&);
  763. void ResetDeepEnabled();
  764. void ResetToDefault();
  765. bool Save(File) const;
  766. bool Save(VectorBuffer&) const;
  767. bool SaveJSON(JSONValue&) const;
  768. bool SaveXML(File, const String& = "\t");
  769. bool SaveXML(VectorBuffer&, const String& = "\t");
  770. bool SaveXML(XMLElement&) const;
  771. IntVector2 ScreenToElement(const IntVector2&);
  772. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  773. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  774. void SetAnimationTime(float);
  775. bool SetAttribute(const String&, const Variant&);
  776. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  777. void SetAttributeAnimationSpeed(const String&, float);
  778. void SetAttributeAnimationTime(const String&, float);
  779. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  780. void SetDeepEnabled(bool);
  781. void SetEnabledRecursive(bool);
  782. void SetFixedHeight(int);
  783. void SetFixedSize(int, int);
  784. void SetFixedWidth(int);
  785. void SetFullImageRect();
  786. void SetHoverOffset(int, int);
  787. void SetInterceptNetworkUpdate(const String&, bool);
  788. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  789. void SetMaxSize(int, int);
  790. void SetMinSize(int, int);
  791. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  792. void SetPosition(int, int);
  793. void SetSize(int, int);
  794. bool SetStyle(const String&, XMLFile = null);
  795. bool SetStyle(const XMLElement&);
  796. bool SetStyleAuto(XMLFile = null);
  797. void UpdateLayout();
  798. const Variant& GetVar(const StringHash&);
  799. // Properties:
  800. bool animationEnabled;
  801. /* readonly */
  802. Array<Variant> attributeDefaults;
  803. /* readonly */
  804. Array<AttributeInfo> attributeInfos;
  805. Array<Variant> attributes;
  806. BlendMode blendMode;
  807. IntRect border;
  808. bool bringToBack;
  809. bool bringToFront;
  810. /* readonly */
  811. String category;
  812. /* readonly */
  813. IntVector2 childOffset;
  814. /* readonly */
  815. Array<UIElement> children;
  816. IntRect clipBorder;
  817. bool clipChildren;
  818. /* writeonly */
  819. Color color;
  820. /* readonly */
  821. bool colorGradient;
  822. Array<Color> colors;
  823. /* readonly */
  824. IntRect combinedScreenRect;
  825. XMLFile defaultStyle;
  826. /* readonly */
  827. float derivedOpacity;
  828. /* readonly */
  829. uint dragButtonCombo;
  830. /* readonly */
  831. int dragButtonCount;
  832. uint dragDropMode;
  833. bool editable;
  834. bool elementEventSender;
  835. bool enabled;
  836. /* readonly */
  837. bool enabledSelf;
  838. /* readonly */
  839. bool fixedHeight;
  840. /* readonly */
  841. bool fixedSize;
  842. /* readonly */
  843. bool fixedWidth;
  844. bool focus;
  845. FocusMode focusMode;
  846. int height;
  847. HorizontalAlignment horizontalAlignment;
  848. IntVector2 hoverOffset;
  849. /* readonly */
  850. bool hovering;
  851. IntRect imageBorder;
  852. IntRect imageRect;
  853. int indent;
  854. int indentSpacing;
  855. /* readonly */
  856. int indentWidth;
  857. bool internal;
  858. IntRect layoutBorder;
  859. Vector2 layoutFlexScale;
  860. LayoutMode layoutMode;
  861. int layoutSpacing;
  862. int maxHeight;
  863. IntVector2 maxSize;
  864. int maxWidth;
  865. int minHeight;
  866. IntVector2 minSize;
  867. int minWidth;
  868. String name;
  869. /* readonly */
  870. uint numAllChildren;
  871. /* readonly */
  872. uint numAttributes;
  873. /* readonly */
  874. uint numChildren;
  875. ObjectAnimation objectAnimation;
  876. float opacity;
  877. UIElement parent;
  878. IntVector2 position;
  879. int priority;
  880. /* readonly */
  881. int refs;
  882. /* readonly */
  883. UIElement root;
  884. /* readonly */
  885. IntVector2 screenPosition;
  886. bool selected;
  887. IntVector2 size;
  888. bool sortChildren;
  889. String style;
  890. /* readonly */
  891. Array<String> tags;
  892. bool temporary;
  893. Texture texture;
  894. bool tiled;
  895. TraversalMode traversalMode;
  896. /* readonly */
  897. StringHash type;
  898. /* readonly */
  899. String typeName;
  900. bool useDerivedOpacity;
  901. /* readonly */
  902. VariantMap vars;
  903. VerticalAlignment verticalAlignment;
  904. bool visible;
  905. /* readonly */
  906. bool visibleEffective;
  907. /* readonly */
  908. int weakRefs;
  909. int width;
  910. };
  911. class BoundingBox
  912. {
  913. // Methods:
  914. void Clear();
  915. void Clip(const BoundingBox&);
  916. void Define(const BoundingBox&);
  917. void Define(const Frustum&);
  918. void Define(const Polyhedron&);
  919. void Define(const Sphere&);
  920. void Define(const Vector3&);
  921. void Define(const Vector3&, const Vector3&);
  922. void Define(float, float);
  923. bool Defined() const;
  924. Intersection IsInside(const BoundingBox&) const;
  925. Intersection IsInside(const Sphere&) const;
  926. Intersection IsInside(const Vector3&) const;
  927. Intersection IsInsideFast(const BoundingBox&) const;
  928. Intersection IsInsideFast(const Sphere&) const;
  929. void Merge(const BoundingBox&);
  930. void Merge(const Frustum&);
  931. void Merge(const Polyhedron&);
  932. void Merge(const Sphere&);
  933. void Merge(const Vector3&);
  934. Rect Projected(const Matrix4&) const;
  935. String ToString() const;
  936. void Transform(const Matrix3&);
  937. void Transform(const Matrix3x4&);
  938. BoundingBox Transformed(const Matrix3&) const;
  939. BoundingBox Transformed(const Matrix3x4&) const;
  940. // Properties:
  941. /* readonly */
  942. Vector3 center;
  943. /* readonly */
  944. Vector3 halfSize;
  945. Vector3 max;
  946. Vector3 min;
  947. /* readonly */
  948. Vector3 size;
  949. };
  950. class Button
  951. {
  952. // Methods:
  953. void AddChild(UIElement);
  954. void AddTag(const String&);
  955. void AddTags(const String&, int8 = ';');
  956. void ApplyAttributes();
  957. void BringToFront();
  958. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  959. void DisableLayoutUpdate();
  960. IntVector2 ElementToScreen(const IntVector2&);
  961. void EnableLayoutUpdate();
  962. uint FindChild(UIElement) const;
  963. Variant GetAttribute(const String&) const;
  964. ValueAnimation GetAttributeAnimation(const String&) const;
  965. float GetAttributeAnimationSpeed(const String&) const;
  966. float GetAttributeAnimationTime(const String&) const;
  967. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  968. Variant GetAttributeDefault(const String&) const;
  969. UIElement GetChild(const String&, bool = false) const;
  970. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  971. Array<UIElement> GetChildren(bool = false) const;
  972. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  973. UIElement GetElementEventSender() const;
  974. bool GetInterceptNetworkUpdate(const String&) const;
  975. uint GetNumChildren(bool) const;
  976. bool HasSubscribedToEvent(Object, const String&);
  977. bool HasSubscribedToEvent(const String&);
  978. bool HasTag(const String&) const;
  979. void InsertChild(uint, UIElement);
  980. bool IsInside(IntVector2, bool);
  981. bool IsInsideCombined(IntVector2, bool);
  982. bool Load(File, bool = false);
  983. bool Load(VectorBuffer&, bool = false);
  984. bool LoadChildXML(XMLFile, XMLFile = null);
  985. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  986. bool LoadJSON(const JSONValue&, bool = false);
  987. bool LoadXML(File);
  988. bool LoadXML(VectorBuffer&);
  989. bool LoadXML(XMLFile, XMLFile);
  990. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  991. bool LoadXML(const XMLElement&, bool = false);
  992. void MarkNetworkUpdate() const;
  993. void Remove();
  994. void RemoveAllChildren();
  995. void RemoveAllTags();
  996. void RemoveAttributeAnimation(const String&);
  997. void RemoveChild(UIElement, uint = 0);
  998. void RemoveChild(uint);
  999. void RemoveInstanceDefault();
  1000. void RemoveObjectAnimation();
  1001. bool RemoveTag(const String&);
  1002. void ResetDeepEnabled();
  1003. void ResetToDefault();
  1004. bool Save(File) const;
  1005. bool Save(VectorBuffer&) const;
  1006. bool SaveJSON(JSONValue&) const;
  1007. bool SaveXML(File, const String& = "\t");
  1008. bool SaveXML(VectorBuffer&, const String& = "\t");
  1009. bool SaveXML(XMLElement&) const;
  1010. IntVector2 ScreenToElement(const IntVector2&);
  1011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1012. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1013. void SetAnimationTime(float);
  1014. bool SetAttribute(const String&, const Variant&);
  1015. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1016. void SetAttributeAnimationSpeed(const String&, float);
  1017. void SetAttributeAnimationTime(const String&, float);
  1018. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1019. void SetDeepEnabled(bool);
  1020. void SetEnabledRecursive(bool);
  1021. void SetFixedHeight(int);
  1022. void SetFixedSize(int, int);
  1023. void SetFixedWidth(int);
  1024. void SetFullImageRect();
  1025. void SetHoverOffset(int, int);
  1026. void SetInterceptNetworkUpdate(const String&, bool);
  1027. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1028. void SetMaxSize(int, int);
  1029. void SetMinSize(int, int);
  1030. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1031. void SetPosition(int, int);
  1032. void SetPressedChildOffset(int, int);
  1033. void SetPressedOffset(int, int);
  1034. void SetRepeat(float, float);
  1035. void SetSize(int, int);
  1036. bool SetStyle(const String&, XMLFile = null);
  1037. bool SetStyle(const XMLElement&);
  1038. bool SetStyleAuto(XMLFile = null);
  1039. void UpdateLayout();
  1040. const Variant& GetVar(const StringHash&);
  1041. // Properties:
  1042. bool animationEnabled;
  1043. /* readonly */
  1044. Array<Variant> attributeDefaults;
  1045. /* readonly */
  1046. Array<AttributeInfo> attributeInfos;
  1047. Array<Variant> attributes;
  1048. BlendMode blendMode;
  1049. IntRect border;
  1050. bool bringToBack;
  1051. bool bringToFront;
  1052. /* readonly */
  1053. String category;
  1054. /* readonly */
  1055. IntVector2 childOffset;
  1056. /* readonly */
  1057. Array<UIElement> children;
  1058. IntRect clipBorder;
  1059. bool clipChildren;
  1060. /* writeonly */
  1061. Color color;
  1062. /* readonly */
  1063. bool colorGradient;
  1064. Array<Color> colors;
  1065. /* readonly */
  1066. IntRect combinedScreenRect;
  1067. XMLFile defaultStyle;
  1068. /* readonly */
  1069. float derivedOpacity;
  1070. /* readonly */
  1071. uint dragButtonCombo;
  1072. /* readonly */
  1073. int dragButtonCount;
  1074. uint dragDropMode;
  1075. bool editable;
  1076. bool elementEventSender;
  1077. bool enabled;
  1078. /* readonly */
  1079. bool enabledSelf;
  1080. /* readonly */
  1081. bool fixedHeight;
  1082. /* readonly */
  1083. bool fixedSize;
  1084. /* readonly */
  1085. bool fixedWidth;
  1086. bool focus;
  1087. FocusMode focusMode;
  1088. int height;
  1089. HorizontalAlignment horizontalAlignment;
  1090. IntVector2 hoverOffset;
  1091. /* readonly */
  1092. bool hovering;
  1093. IntRect imageBorder;
  1094. IntRect imageRect;
  1095. int indent;
  1096. int indentSpacing;
  1097. /* readonly */
  1098. int indentWidth;
  1099. bool internal;
  1100. IntRect layoutBorder;
  1101. Vector2 layoutFlexScale;
  1102. LayoutMode layoutMode;
  1103. int layoutSpacing;
  1104. int maxHeight;
  1105. IntVector2 maxSize;
  1106. int maxWidth;
  1107. int minHeight;
  1108. IntVector2 minSize;
  1109. int minWidth;
  1110. String name;
  1111. /* readonly */
  1112. uint numAllChildren;
  1113. /* readonly */
  1114. uint numAttributes;
  1115. /* readonly */
  1116. uint numChildren;
  1117. ObjectAnimation objectAnimation;
  1118. float opacity;
  1119. UIElement parent;
  1120. IntVector2 position;
  1121. /* readonly */
  1122. bool pressed;
  1123. IntVector2 pressedChildOffset;
  1124. IntVector2 pressedOffset;
  1125. int priority;
  1126. /* readonly */
  1127. int refs;
  1128. float repeatDelay;
  1129. float repeatRate;
  1130. /* readonly */
  1131. UIElement root;
  1132. /* readonly */
  1133. IntVector2 screenPosition;
  1134. bool selected;
  1135. IntVector2 size;
  1136. bool sortChildren;
  1137. String style;
  1138. /* readonly */
  1139. Array<String> tags;
  1140. bool temporary;
  1141. Texture texture;
  1142. bool tiled;
  1143. TraversalMode traversalMode;
  1144. /* readonly */
  1145. StringHash type;
  1146. /* readonly */
  1147. String typeName;
  1148. bool useDerivedOpacity;
  1149. /* readonly */
  1150. VariantMap vars;
  1151. VerticalAlignment verticalAlignment;
  1152. bool visible;
  1153. /* readonly */
  1154. bool visibleEffective;
  1155. /* readonly */
  1156. int weakRefs;
  1157. int width;
  1158. };
  1159. class Camera
  1160. {
  1161. // Methods:
  1162. void ApplyAttributes();
  1163. void DrawDebugGeometry(DebugRenderer, bool);
  1164. Variant GetAttribute(const String&) const;
  1165. ValueAnimation GetAttributeAnimation(const String&) const;
  1166. float GetAttributeAnimationSpeed(const String&) const;
  1167. float GetAttributeAnimationTime(const String&) const;
  1168. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1169. Variant GetAttributeDefault(const String&) const;
  1170. float GetDistance(const Vector3&) const;
  1171. float GetDistanceSquared(const Vector3&) const;
  1172. bool GetInterceptNetworkUpdate(const String&) const;
  1173. Ray GetScreenRay(float, float) const;
  1174. Frustum GetSplitFrustum(float, float) const;
  1175. bool HasSubscribedToEvent(Object, const String&);
  1176. bool HasSubscribedToEvent(const String&);
  1177. bool Load(File, bool = false);
  1178. bool Load(VectorBuffer&, bool = false);
  1179. bool LoadJSON(const JSONValue&, bool = false);
  1180. bool LoadXML(const XMLElement&, bool = false);
  1181. void MarkNetworkUpdate() const;
  1182. void Remove();
  1183. void RemoveAttributeAnimation(const String&);
  1184. void RemoveInstanceDefault();
  1185. void RemoveObjectAnimation();
  1186. void ResetToDefault();
  1187. bool Save(File) const;
  1188. bool Save(VectorBuffer&) const;
  1189. bool SaveJSON(JSONValue&) const;
  1190. bool SaveXML(XMLElement&) const;
  1191. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1192. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1193. void SetAnimationTime(float);
  1194. bool SetAttribute(const String&, const Variant&);
  1195. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1196. void SetAttributeAnimationSpeed(const String&, float);
  1197. void SetAttributeAnimationTime(const String&, float);
  1198. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1199. void SetInterceptNetworkUpdate(const String&, bool);
  1200. void SetOrthoSize(const Vector2&);
  1201. Vector2 WorldToScreenPoint(const Vector3&) const;
  1202. // Properties:
  1203. bool animationEnabled;
  1204. float aspectRatio;
  1205. /* readonly */
  1206. Array<Variant> attributeDefaults;
  1207. /* readonly */
  1208. Array<AttributeInfo> attributeInfos;
  1209. Array<Variant> attributes;
  1210. bool autoAspectRatio;
  1211. /* readonly */
  1212. String category;
  1213. Plane clipPlane;
  1214. /* readonly */
  1215. Matrix3x4 effectiveWorldTransform;
  1216. bool enabled;
  1217. /* readonly */
  1218. bool enabledEffective;
  1219. float farClip;
  1220. FillMode fillMode;
  1221. float fov;
  1222. /* readonly */
  1223. Frustum frustum;
  1224. /* readonly */
  1225. float halfViewSize;
  1226. /* readonly */
  1227. uint id;
  1228. float lodBias;
  1229. float nearClip;
  1230. /* readonly */
  1231. Node node;
  1232. /* readonly */
  1233. uint numAttributes;
  1234. ObjectAnimation objectAnimation;
  1235. float orthoSize;
  1236. bool orthographic;
  1237. /* readonly */
  1238. Matrix4 projection;
  1239. Vector2 projectionOffset;
  1240. Plane reflectionPlane;
  1241. /* readonly */
  1242. int refs;
  1243. bool temporary;
  1244. /* readonly */
  1245. StringHash type;
  1246. /* readonly */
  1247. String typeName;
  1248. bool useClipping;
  1249. bool useReflection;
  1250. /* readonly */
  1251. Matrix3x4 view;
  1252. uint viewMask;
  1253. uint viewOverrideFlags;
  1254. /* readonly */
  1255. Frustum viewSpaceFrustum;
  1256. /* readonly */
  1257. int weakRefs;
  1258. float zoom;
  1259. };
  1260. class CascadeParameters
  1261. {
  1262. // Properties:
  1263. float biasAutoAdjust;
  1264. float fadeStart;
  1265. float split1;
  1266. float split2;
  1267. float split3;
  1268. float split4;
  1269. };
  1270. class CheckBox
  1271. {
  1272. // Methods:
  1273. void AddChild(UIElement);
  1274. void AddTag(const String&);
  1275. void AddTags(const String&, int8 = ';');
  1276. void ApplyAttributes();
  1277. void BringToFront();
  1278. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1279. void DisableLayoutUpdate();
  1280. IntVector2 ElementToScreen(const IntVector2&);
  1281. void EnableLayoutUpdate();
  1282. uint FindChild(UIElement) const;
  1283. Variant GetAttribute(const String&) const;
  1284. ValueAnimation GetAttributeAnimation(const String&) const;
  1285. float GetAttributeAnimationSpeed(const String&) const;
  1286. float GetAttributeAnimationTime(const String&) const;
  1287. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1288. Variant GetAttributeDefault(const String&) const;
  1289. UIElement GetChild(const String&, bool = false) const;
  1290. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1291. Array<UIElement> GetChildren(bool = false) const;
  1292. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1293. UIElement GetElementEventSender() const;
  1294. bool GetInterceptNetworkUpdate(const String&) const;
  1295. uint GetNumChildren(bool) const;
  1296. bool HasSubscribedToEvent(Object, const String&);
  1297. bool HasSubscribedToEvent(const String&);
  1298. bool HasTag(const String&) const;
  1299. void InsertChild(uint, UIElement);
  1300. bool IsInside(IntVector2, bool);
  1301. bool IsInsideCombined(IntVector2, bool);
  1302. bool Load(File, bool = false);
  1303. bool Load(VectorBuffer&, bool = false);
  1304. bool LoadChildXML(XMLFile, XMLFile = null);
  1305. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1306. bool LoadJSON(const JSONValue&, bool = false);
  1307. bool LoadXML(File);
  1308. bool LoadXML(VectorBuffer&);
  1309. bool LoadXML(XMLFile, XMLFile);
  1310. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1311. bool LoadXML(const XMLElement&, bool = false);
  1312. void MarkNetworkUpdate() const;
  1313. void Remove();
  1314. void RemoveAllChildren();
  1315. void RemoveAllTags();
  1316. void RemoveAttributeAnimation(const String&);
  1317. void RemoveChild(UIElement, uint = 0);
  1318. void RemoveChild(uint);
  1319. void RemoveInstanceDefault();
  1320. void RemoveObjectAnimation();
  1321. bool RemoveTag(const String&);
  1322. void ResetDeepEnabled();
  1323. void ResetToDefault();
  1324. bool Save(File) const;
  1325. bool Save(VectorBuffer&) const;
  1326. bool SaveJSON(JSONValue&) const;
  1327. bool SaveXML(File, const String& = "\t");
  1328. bool SaveXML(VectorBuffer&, const String& = "\t");
  1329. bool SaveXML(XMLElement&) const;
  1330. IntVector2 ScreenToElement(const IntVector2&);
  1331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1332. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1333. void SetAnimationTime(float);
  1334. bool SetAttribute(const String&, const Variant&);
  1335. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1336. void SetAttributeAnimationSpeed(const String&, float);
  1337. void SetAttributeAnimationTime(const String&, float);
  1338. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1339. void SetCheckedOffset(int, int);
  1340. void SetDeepEnabled(bool);
  1341. void SetEnabledRecursive(bool);
  1342. void SetFixedHeight(int);
  1343. void SetFixedSize(int, int);
  1344. void SetFixedWidth(int);
  1345. void SetFullImageRect();
  1346. void SetHoverOffset(int, int);
  1347. void SetInterceptNetworkUpdate(const String&, bool);
  1348. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1349. void SetMaxSize(int, int);
  1350. void SetMinSize(int, int);
  1351. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1352. void SetPosition(int, int);
  1353. void SetSize(int, int);
  1354. bool SetStyle(const String&, XMLFile = null);
  1355. bool SetStyle(const XMLElement&);
  1356. bool SetStyleAuto(XMLFile = null);
  1357. void UpdateLayout();
  1358. const Variant& GetVar(const StringHash&);
  1359. // Properties:
  1360. bool animationEnabled;
  1361. /* readonly */
  1362. Array<Variant> attributeDefaults;
  1363. /* readonly */
  1364. Array<AttributeInfo> attributeInfos;
  1365. Array<Variant> attributes;
  1366. BlendMode blendMode;
  1367. IntRect border;
  1368. bool bringToBack;
  1369. bool bringToFront;
  1370. /* readonly */
  1371. String category;
  1372. bool checked;
  1373. IntVector2 checkedOffset;
  1374. /* readonly */
  1375. IntVector2 childOffset;
  1376. /* readonly */
  1377. Array<UIElement> children;
  1378. IntRect clipBorder;
  1379. bool clipChildren;
  1380. /* writeonly */
  1381. Color color;
  1382. /* readonly */
  1383. bool colorGradient;
  1384. Array<Color> colors;
  1385. /* readonly */
  1386. IntRect combinedScreenRect;
  1387. XMLFile defaultStyle;
  1388. /* readonly */
  1389. float derivedOpacity;
  1390. /* readonly */
  1391. uint dragButtonCombo;
  1392. /* readonly */
  1393. int dragButtonCount;
  1394. uint dragDropMode;
  1395. bool editable;
  1396. bool elementEventSender;
  1397. bool enabled;
  1398. /* readonly */
  1399. bool enabledSelf;
  1400. /* readonly */
  1401. bool fixedHeight;
  1402. /* readonly */
  1403. bool fixedSize;
  1404. /* readonly */
  1405. bool fixedWidth;
  1406. bool focus;
  1407. FocusMode focusMode;
  1408. int height;
  1409. HorizontalAlignment horizontalAlignment;
  1410. IntVector2 hoverOffset;
  1411. /* readonly */
  1412. bool hovering;
  1413. IntRect imageBorder;
  1414. IntRect imageRect;
  1415. int indent;
  1416. int indentSpacing;
  1417. /* readonly */
  1418. int indentWidth;
  1419. bool internal;
  1420. IntRect layoutBorder;
  1421. Vector2 layoutFlexScale;
  1422. LayoutMode layoutMode;
  1423. int layoutSpacing;
  1424. int maxHeight;
  1425. IntVector2 maxSize;
  1426. int maxWidth;
  1427. int minHeight;
  1428. IntVector2 minSize;
  1429. int minWidth;
  1430. String name;
  1431. /* readonly */
  1432. uint numAllChildren;
  1433. /* readonly */
  1434. uint numAttributes;
  1435. /* readonly */
  1436. uint numChildren;
  1437. ObjectAnimation objectAnimation;
  1438. float opacity;
  1439. UIElement parent;
  1440. IntVector2 position;
  1441. int priority;
  1442. /* readonly */
  1443. int refs;
  1444. /* readonly */
  1445. UIElement root;
  1446. /* readonly */
  1447. IntVector2 screenPosition;
  1448. bool selected;
  1449. IntVector2 size;
  1450. bool sortChildren;
  1451. String style;
  1452. /* readonly */
  1453. Array<String> tags;
  1454. bool temporary;
  1455. Texture texture;
  1456. bool tiled;
  1457. TraversalMode traversalMode;
  1458. /* readonly */
  1459. StringHash type;
  1460. /* readonly */
  1461. String typeName;
  1462. bool useDerivedOpacity;
  1463. /* readonly */
  1464. VariantMap vars;
  1465. VerticalAlignment verticalAlignment;
  1466. bool visible;
  1467. /* readonly */
  1468. bool visibleEffective;
  1469. /* readonly */
  1470. int weakRefs;
  1471. int width;
  1472. };
  1473. class CollisionBox2D
  1474. {
  1475. // Methods:
  1476. void ApplyAttributes();
  1477. void DrawDebugGeometry(DebugRenderer, bool);
  1478. Variant GetAttribute(const String&) const;
  1479. ValueAnimation GetAttributeAnimation(const String&) const;
  1480. float GetAttributeAnimationSpeed(const String&) const;
  1481. float GetAttributeAnimationTime(const String&) const;
  1482. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1483. Variant GetAttributeDefault(const String&) const;
  1484. bool GetInterceptNetworkUpdate(const String&) const;
  1485. bool HasSubscribedToEvent(Object, const String&);
  1486. bool HasSubscribedToEvent(const String&);
  1487. bool Load(File, bool = false);
  1488. bool Load(VectorBuffer&, bool = false);
  1489. bool LoadJSON(const JSONValue&, bool = false);
  1490. bool LoadXML(const XMLElement&, bool = false);
  1491. void MarkNetworkUpdate() const;
  1492. void Remove();
  1493. void RemoveAttributeAnimation(const String&);
  1494. void RemoveInstanceDefault();
  1495. void RemoveObjectAnimation();
  1496. void ResetToDefault();
  1497. bool Save(File) const;
  1498. bool Save(VectorBuffer&) const;
  1499. bool SaveJSON(JSONValue&) const;
  1500. bool SaveXML(XMLElement&) const;
  1501. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1502. void SetAnimationTime(float);
  1503. bool SetAttribute(const String&, const Variant&);
  1504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1505. void SetAttributeAnimationSpeed(const String&, float);
  1506. void SetAttributeAnimationTime(const String&, float);
  1507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1508. void SetCenter(float, float);
  1509. void SetInterceptNetworkUpdate(const String&, bool);
  1510. void SetSize(float, float);
  1511. // Properties:
  1512. float angle;
  1513. bool animationEnabled;
  1514. /* readonly */
  1515. Array<Variant> attributeDefaults;
  1516. /* readonly */
  1517. Array<AttributeInfo> attributeInfos;
  1518. Array<Variant> attributes;
  1519. /* readonly */
  1520. String category;
  1521. int categoryBits;
  1522. Vector2 center;
  1523. float density;
  1524. bool enabled;
  1525. /* readonly */
  1526. bool enabledEffective;
  1527. float friction;
  1528. int groupIndex;
  1529. /* readonly */
  1530. uint id;
  1531. /* readonly */
  1532. float inertia;
  1533. int maskBits;
  1534. /* readonly */
  1535. float mass;
  1536. /* readonly */
  1537. Vector2 massCenter;
  1538. /* readonly */
  1539. Node node;
  1540. /* readonly */
  1541. uint numAttributes;
  1542. ObjectAnimation objectAnimation;
  1543. /* readonly */
  1544. int refs;
  1545. float restitution;
  1546. Vector2 size;
  1547. bool temporary;
  1548. bool trigger;
  1549. /* readonly */
  1550. StringHash type;
  1551. /* readonly */
  1552. String typeName;
  1553. /* readonly */
  1554. int weakRefs;
  1555. };
  1556. class CollisionChain2D
  1557. {
  1558. // Methods:
  1559. void ApplyAttributes();
  1560. void DrawDebugGeometry(DebugRenderer, bool);
  1561. Variant GetAttribute(const String&) const;
  1562. ValueAnimation GetAttributeAnimation(const String&) const;
  1563. float GetAttributeAnimationSpeed(const String&) const;
  1564. float GetAttributeAnimationTime(const String&) const;
  1565. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1566. Variant GetAttributeDefault(const String&) const;
  1567. bool GetInterceptNetworkUpdate(const String&) const;
  1568. Array<Vector2> GetVertices() const;
  1569. bool HasSubscribedToEvent(Object, const String&);
  1570. bool HasSubscribedToEvent(const String&);
  1571. bool Load(File, bool = false);
  1572. bool Load(VectorBuffer&, bool = false);
  1573. bool LoadJSON(const JSONValue&, bool = false);
  1574. bool LoadXML(const XMLElement&, bool = false);
  1575. void MarkNetworkUpdate() const;
  1576. void Remove();
  1577. void RemoveAttributeAnimation(const String&);
  1578. void RemoveInstanceDefault();
  1579. void RemoveObjectAnimation();
  1580. void ResetToDefault();
  1581. bool Save(File) const;
  1582. bool Save(VectorBuffer&) const;
  1583. bool SaveJSON(JSONValue&) const;
  1584. bool SaveXML(XMLElement&) const;
  1585. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1586. void SetAnimationTime(float);
  1587. bool SetAttribute(const String&, const Variant&);
  1588. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1589. void SetAttributeAnimationSpeed(const String&, float);
  1590. void SetAttributeAnimationTime(const String&, float);
  1591. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1592. void SetInterceptNetworkUpdate(const String&, bool);
  1593. void SetVertex(uint, const Vector2&);
  1594. void SetVertices(Array<Vector2>);
  1595. const Vector2& GetVertex(uint) const;
  1596. // Properties:
  1597. bool animationEnabled;
  1598. /* readonly */
  1599. Array<Variant> attributeDefaults;
  1600. /* readonly */
  1601. Array<AttributeInfo> attributeInfos;
  1602. Array<Variant> attributes;
  1603. /* readonly */
  1604. String category;
  1605. int categoryBits;
  1606. float density;
  1607. bool enabled;
  1608. /* readonly */
  1609. bool enabledEffective;
  1610. float friction;
  1611. int groupIndex;
  1612. /* readonly */
  1613. uint id;
  1614. /* readonly */
  1615. float inertia;
  1616. bool loop;
  1617. int maskBits;
  1618. /* readonly */
  1619. float mass;
  1620. /* readonly */
  1621. Vector2 massCenter;
  1622. /* readonly */
  1623. Node node;
  1624. /* readonly */
  1625. uint numAttributes;
  1626. ObjectAnimation objectAnimation;
  1627. /* readonly */
  1628. int refs;
  1629. float restitution;
  1630. bool temporary;
  1631. bool trigger;
  1632. /* readonly */
  1633. StringHash type;
  1634. /* readonly */
  1635. String typeName;
  1636. uint vertexCount;
  1637. /* readonly */
  1638. int weakRefs;
  1639. };
  1640. class CollisionCircle2D
  1641. {
  1642. // Methods:
  1643. void ApplyAttributes();
  1644. void DrawDebugGeometry(DebugRenderer, bool);
  1645. Variant GetAttribute(const String&) const;
  1646. ValueAnimation GetAttributeAnimation(const String&) const;
  1647. float GetAttributeAnimationSpeed(const String&) const;
  1648. float GetAttributeAnimationTime(const String&) const;
  1649. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1650. Variant GetAttributeDefault(const String&) const;
  1651. bool GetInterceptNetworkUpdate(const String&) const;
  1652. bool HasSubscribedToEvent(Object, const String&);
  1653. bool HasSubscribedToEvent(const String&);
  1654. bool Load(File, bool = false);
  1655. bool Load(VectorBuffer&, bool = false);
  1656. bool LoadJSON(const JSONValue&, bool = false);
  1657. bool LoadXML(const XMLElement&, bool = false);
  1658. void MarkNetworkUpdate() const;
  1659. void Remove();
  1660. void RemoveAttributeAnimation(const String&);
  1661. void RemoveInstanceDefault();
  1662. void RemoveObjectAnimation();
  1663. void ResetToDefault();
  1664. bool Save(File) const;
  1665. bool Save(VectorBuffer&) const;
  1666. bool SaveJSON(JSONValue&) const;
  1667. bool SaveXML(XMLElement&) const;
  1668. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1669. void SetAnimationTime(float);
  1670. bool SetAttribute(const String&, const Variant&);
  1671. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1672. void SetAttributeAnimationSpeed(const String&, float);
  1673. void SetAttributeAnimationTime(const String&, float);
  1674. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1675. void SetCenter(float, float);
  1676. void SetInterceptNetworkUpdate(const String&, bool);
  1677. // Properties:
  1678. bool animationEnabled;
  1679. /* readonly */
  1680. Array<Variant> attributeDefaults;
  1681. /* readonly */
  1682. Array<AttributeInfo> attributeInfos;
  1683. Array<Variant> attributes;
  1684. /* readonly */
  1685. String category;
  1686. int categoryBits;
  1687. Vector2 center;
  1688. float density;
  1689. bool enabled;
  1690. /* readonly */
  1691. bool enabledEffective;
  1692. float friction;
  1693. int groupIndex;
  1694. /* readonly */
  1695. uint id;
  1696. /* readonly */
  1697. float inertia;
  1698. int maskBits;
  1699. /* readonly */
  1700. float mass;
  1701. /* readonly */
  1702. Vector2 massCenter;
  1703. /* readonly */
  1704. Node node;
  1705. /* readonly */
  1706. uint numAttributes;
  1707. ObjectAnimation objectAnimation;
  1708. float radius;
  1709. /* readonly */
  1710. int refs;
  1711. float restitution;
  1712. bool temporary;
  1713. bool trigger;
  1714. /* readonly */
  1715. StringHash type;
  1716. /* readonly */
  1717. String typeName;
  1718. /* readonly */
  1719. int weakRefs;
  1720. };
  1721. class CollisionEdge2D
  1722. {
  1723. // Methods:
  1724. void ApplyAttributes();
  1725. void DrawDebugGeometry(DebugRenderer, bool);
  1726. Variant GetAttribute(const String&) const;
  1727. ValueAnimation GetAttributeAnimation(const String&) const;
  1728. float GetAttributeAnimationSpeed(const String&) const;
  1729. float GetAttributeAnimationTime(const String&) const;
  1730. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1731. Variant GetAttributeDefault(const String&) const;
  1732. bool GetInterceptNetworkUpdate(const String&) const;
  1733. bool HasSubscribedToEvent(Object, const String&);
  1734. bool HasSubscribedToEvent(const String&);
  1735. bool Load(File, bool = false);
  1736. bool Load(VectorBuffer&, bool = false);
  1737. bool LoadJSON(const JSONValue&, bool = false);
  1738. bool LoadXML(const XMLElement&, bool = false);
  1739. void MarkNetworkUpdate() const;
  1740. void Remove();
  1741. void RemoveAttributeAnimation(const String&);
  1742. void RemoveInstanceDefault();
  1743. void RemoveObjectAnimation();
  1744. void ResetToDefault();
  1745. bool Save(File) const;
  1746. bool Save(VectorBuffer&) const;
  1747. bool SaveJSON(JSONValue&) const;
  1748. bool SaveXML(XMLElement&) const;
  1749. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1750. void SetAnimationTime(float);
  1751. bool SetAttribute(const String&, const Variant&);
  1752. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1753. void SetAttributeAnimationSpeed(const String&, float);
  1754. void SetAttributeAnimationTime(const String&, float);
  1755. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1756. void SetInterceptNetworkUpdate(const String&, bool);
  1757. void SetVertices(const Vector2&, const Vector2&);
  1758. // Properties:
  1759. bool animationEnabled;
  1760. /* readonly */
  1761. Array<Variant> attributeDefaults;
  1762. /* readonly */
  1763. Array<AttributeInfo> attributeInfos;
  1764. Array<Variant> attributes;
  1765. /* readonly */
  1766. String category;
  1767. int categoryBits;
  1768. float density;
  1769. bool enabled;
  1770. /* readonly */
  1771. bool enabledEffective;
  1772. float friction;
  1773. int groupIndex;
  1774. /* readonly */
  1775. uint id;
  1776. /* readonly */
  1777. float inertia;
  1778. int maskBits;
  1779. /* readonly */
  1780. float mass;
  1781. /* readonly */
  1782. Vector2 massCenter;
  1783. /* readonly */
  1784. Node node;
  1785. /* readonly */
  1786. uint numAttributes;
  1787. ObjectAnimation objectAnimation;
  1788. /* readonly */
  1789. int refs;
  1790. float restitution;
  1791. bool temporary;
  1792. bool trigger;
  1793. /* readonly */
  1794. StringHash type;
  1795. /* readonly */
  1796. String typeName;
  1797. Vector2 vertex1;
  1798. Vector2 vertex2;
  1799. /* readonly */
  1800. int weakRefs;
  1801. };
  1802. class CollisionPolygon2D
  1803. {
  1804. // Methods:
  1805. void ApplyAttributes();
  1806. void DrawDebugGeometry(DebugRenderer, bool);
  1807. Variant GetAttribute(const String&) const;
  1808. ValueAnimation GetAttributeAnimation(const String&) const;
  1809. float GetAttributeAnimationSpeed(const String&) const;
  1810. float GetAttributeAnimationTime(const String&) const;
  1811. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1812. Variant GetAttributeDefault(const String&) const;
  1813. bool GetInterceptNetworkUpdate(const String&) const;
  1814. Array<Vector2> GetVertices() const;
  1815. bool HasSubscribedToEvent(Object, const String&);
  1816. bool HasSubscribedToEvent(const String&);
  1817. bool Load(File, bool = false);
  1818. bool Load(VectorBuffer&, bool = false);
  1819. bool LoadJSON(const JSONValue&, bool = false);
  1820. bool LoadXML(const XMLElement&, bool = false);
  1821. void MarkNetworkUpdate() const;
  1822. void Remove();
  1823. void RemoveAttributeAnimation(const String&);
  1824. void RemoveInstanceDefault();
  1825. void RemoveObjectAnimation();
  1826. void ResetToDefault();
  1827. bool Save(File) const;
  1828. bool Save(VectorBuffer&) const;
  1829. bool SaveJSON(JSONValue&) const;
  1830. bool SaveXML(XMLElement&) const;
  1831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1832. void SetAnimationTime(float);
  1833. bool SetAttribute(const String&, const Variant&);
  1834. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1835. void SetAttributeAnimationSpeed(const String&, float);
  1836. void SetAttributeAnimationTime(const String&, float);
  1837. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1838. void SetInterceptNetworkUpdate(const String&, bool);
  1839. void SetVertex(uint, const Vector2&);
  1840. void SetVertices(Array<Vector2>);
  1841. const Vector2& GetVertex(uint) const;
  1842. // Properties:
  1843. bool animationEnabled;
  1844. /* readonly */
  1845. Array<Variant> attributeDefaults;
  1846. /* readonly */
  1847. Array<AttributeInfo> attributeInfos;
  1848. Array<Variant> attributes;
  1849. /* readonly */
  1850. String category;
  1851. int categoryBits;
  1852. float density;
  1853. bool enabled;
  1854. /* readonly */
  1855. bool enabledEffective;
  1856. float friction;
  1857. int groupIndex;
  1858. /* readonly */
  1859. uint id;
  1860. /* readonly */
  1861. float inertia;
  1862. int maskBits;
  1863. /* readonly */
  1864. float mass;
  1865. /* readonly */
  1866. Vector2 massCenter;
  1867. /* readonly */
  1868. Node node;
  1869. /* readonly */
  1870. uint numAttributes;
  1871. ObjectAnimation objectAnimation;
  1872. /* readonly */
  1873. int refs;
  1874. float restitution;
  1875. bool temporary;
  1876. bool trigger;
  1877. /* readonly */
  1878. StringHash type;
  1879. /* readonly */
  1880. String typeName;
  1881. uint vertexCount;
  1882. /* readonly */
  1883. int weakRefs;
  1884. };
  1885. class CollisionShape
  1886. {
  1887. // Methods:
  1888. void ApplyAttributes();
  1889. void DrawDebugGeometry(DebugRenderer, bool);
  1890. Variant GetAttribute(const String&) const;
  1891. ValueAnimation GetAttributeAnimation(const String&) const;
  1892. float GetAttributeAnimationSpeed(const String&) const;
  1893. float GetAttributeAnimationTime(const String&) const;
  1894. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1895. Variant GetAttributeDefault(const String&) const;
  1896. bool GetInterceptNetworkUpdate(const String&) const;
  1897. bool HasSubscribedToEvent(Object, const String&);
  1898. bool HasSubscribedToEvent(const String&);
  1899. bool Load(File, bool = false);
  1900. bool Load(VectorBuffer&, bool = false);
  1901. bool LoadJSON(const JSONValue&, bool = false);
  1902. bool LoadXML(const XMLElement&, bool = false);
  1903. void MarkNetworkUpdate() const;
  1904. void Remove();
  1905. void RemoveAttributeAnimation(const String&);
  1906. void RemoveInstanceDefault();
  1907. void RemoveObjectAnimation();
  1908. void ResetToDefault();
  1909. bool Save(File) const;
  1910. bool Save(VectorBuffer&) const;
  1911. bool SaveJSON(JSONValue&) const;
  1912. bool SaveXML(XMLElement&) const;
  1913. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1914. void SetAnimationTime(float);
  1915. bool SetAttribute(const String&, const Variant&);
  1916. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1917. void SetAttributeAnimationSpeed(const String&, float);
  1918. void SetAttributeAnimationTime(const String&, float);
  1919. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1920. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1921. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1922. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1923. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1924. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1925. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1926. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1927. void SetInterceptNetworkUpdate(const String&, bool);
  1928. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1929. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1930. void SetTerrain(uint = 0);
  1931. void SetTransform(const Vector3&, const Quaternion&);
  1932. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. // Properties:
  1934. bool animationEnabled;
  1935. /* readonly */
  1936. Array<Variant> attributeDefaults;
  1937. /* readonly */
  1938. Array<AttributeInfo> attributeInfos;
  1939. Array<Variant> attributes;
  1940. /* readonly */
  1941. String category;
  1942. bool enabled;
  1943. /* readonly */
  1944. bool enabledEffective;
  1945. /* readonly */
  1946. uint id;
  1947. uint lodLevel;
  1948. float margin;
  1949. Model model;
  1950. /* readonly */
  1951. Node node;
  1952. /* readonly */
  1953. uint numAttributes;
  1954. ObjectAnimation objectAnimation;
  1955. Vector3 position;
  1956. /* readonly */
  1957. int refs;
  1958. Quaternion rotation;
  1959. ShapeType shapeType;
  1960. Vector3 size;
  1961. bool temporary;
  1962. /* readonly */
  1963. StringHash type;
  1964. /* readonly */
  1965. String typeName;
  1966. /* readonly */
  1967. int weakRefs;
  1968. /* readonly */
  1969. BoundingBox worldBoundingBox;
  1970. };
  1971. class CollisionShape2D
  1972. {
  1973. // Methods:
  1974. void ApplyAttributes();
  1975. void DrawDebugGeometry(DebugRenderer, bool);
  1976. Variant GetAttribute(const String&) const;
  1977. ValueAnimation GetAttributeAnimation(const String&) const;
  1978. float GetAttributeAnimationSpeed(const String&) const;
  1979. float GetAttributeAnimationTime(const String&) const;
  1980. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1981. Variant GetAttributeDefault(const String&) const;
  1982. bool GetInterceptNetworkUpdate(const String&) const;
  1983. bool HasSubscribedToEvent(Object, const String&);
  1984. bool HasSubscribedToEvent(const String&);
  1985. bool Load(File, bool = false);
  1986. bool Load(VectorBuffer&, bool = false);
  1987. bool LoadJSON(const JSONValue&, bool = false);
  1988. bool LoadXML(const XMLElement&, bool = false);
  1989. void MarkNetworkUpdate() const;
  1990. void Remove();
  1991. void RemoveAttributeAnimation(const String&);
  1992. void RemoveInstanceDefault();
  1993. void RemoveObjectAnimation();
  1994. void ResetToDefault();
  1995. bool Save(File) const;
  1996. bool Save(VectorBuffer&) const;
  1997. bool SaveJSON(JSONValue&) const;
  1998. bool SaveXML(XMLElement&) const;
  1999. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2000. void SetAnimationTime(float);
  2001. bool SetAttribute(const String&, const Variant&);
  2002. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2003. void SetAttributeAnimationSpeed(const String&, float);
  2004. void SetAttributeAnimationTime(const String&, float);
  2005. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2006. void SetInterceptNetworkUpdate(const String&, bool);
  2007. // Properties:
  2008. bool animationEnabled;
  2009. /* readonly */
  2010. Array<Variant> attributeDefaults;
  2011. /* readonly */
  2012. Array<AttributeInfo> attributeInfos;
  2013. Array<Variant> attributes;
  2014. /* readonly */
  2015. String category;
  2016. int categoryBits;
  2017. float density;
  2018. bool enabled;
  2019. /* readonly */
  2020. bool enabledEffective;
  2021. float friction;
  2022. int groupIndex;
  2023. /* readonly */
  2024. uint id;
  2025. /* readonly */
  2026. float inertia;
  2027. int maskBits;
  2028. /* readonly */
  2029. float mass;
  2030. /* readonly */
  2031. Vector2 massCenter;
  2032. /* readonly */
  2033. Node node;
  2034. /* readonly */
  2035. uint numAttributes;
  2036. ObjectAnimation objectAnimation;
  2037. /* readonly */
  2038. int refs;
  2039. float restitution;
  2040. bool temporary;
  2041. bool trigger;
  2042. /* readonly */
  2043. StringHash type;
  2044. /* readonly */
  2045. String typeName;
  2046. /* readonly */
  2047. int weakRefs;
  2048. };
  2049. class Color
  2050. {
  2051. // Methods:
  2052. Color Abs() const;
  2053. float Average() const;
  2054. float Chroma() const;
  2055. void Clip(bool);
  2056. bool Equals() const;
  2057. void FromHSL(float, float, float, float);
  2058. void FromHSV(float, float, float, float);
  2059. float Hue() const;
  2060. void Invert(bool);
  2061. Color Lerp(const Color&, float) const;
  2062. float Lightness() const;
  2063. float Luma() const;
  2064. float MaxRGB() const;
  2065. float MinRGB() const;
  2066. float Range() const;
  2067. float SaturationHSL() const;
  2068. float SaturationHSV() const;
  2069. float SumRGB() const;
  2070. Vector3 ToHSL() const;
  2071. Vector3 ToHSV() const;
  2072. String ToString() const;
  2073. uint ToUInt() const;
  2074. float Value() const;
  2075. // Properties:
  2076. float a;
  2077. float b;
  2078. /* readonly */
  2079. Array<float> data;
  2080. float g;
  2081. float r;
  2082. /* readonly */
  2083. Vector3 rgb;
  2084. /* readonly */
  2085. Vector4 rgba;
  2086. };
  2087. class ColorFrame
  2088. {
  2089. // Properties:
  2090. Color color;
  2091. float time;
  2092. };
  2093. class Component
  2094. {
  2095. // Methods:
  2096. void ApplyAttributes();
  2097. void DrawDebugGeometry(DebugRenderer, bool);
  2098. Variant GetAttribute(const String&) const;
  2099. ValueAnimation GetAttributeAnimation(const String&) const;
  2100. float GetAttributeAnimationSpeed(const String&) const;
  2101. float GetAttributeAnimationTime(const String&) const;
  2102. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2103. Variant GetAttributeDefault(const String&) const;
  2104. bool GetInterceptNetworkUpdate(const String&) const;
  2105. bool HasSubscribedToEvent(Object, const String&);
  2106. bool HasSubscribedToEvent(const String&);
  2107. bool Load(File, bool = false);
  2108. bool Load(VectorBuffer&, bool = false);
  2109. bool LoadJSON(const JSONValue&, bool = false);
  2110. bool LoadXML(const XMLElement&, bool = false);
  2111. void MarkNetworkUpdate() const;
  2112. void Remove();
  2113. void RemoveAttributeAnimation(const String&);
  2114. void RemoveInstanceDefault();
  2115. void RemoveObjectAnimation();
  2116. void ResetToDefault();
  2117. bool Save(File) const;
  2118. bool Save(VectorBuffer&) const;
  2119. bool SaveJSON(JSONValue&) const;
  2120. bool SaveXML(XMLElement&) const;
  2121. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2122. void SetAnimationTime(float);
  2123. bool SetAttribute(const String&, const Variant&);
  2124. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2125. void SetAttributeAnimationSpeed(const String&, float);
  2126. void SetAttributeAnimationTime(const String&, float);
  2127. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2128. void SetInterceptNetworkUpdate(const String&, bool);
  2129. // Properties:
  2130. bool animationEnabled;
  2131. /* readonly */
  2132. Array<Variant> attributeDefaults;
  2133. /* readonly */
  2134. Array<AttributeInfo> attributeInfos;
  2135. Array<Variant> attributes;
  2136. /* readonly */
  2137. String category;
  2138. bool enabled;
  2139. /* readonly */
  2140. bool enabledEffective;
  2141. /* readonly */
  2142. uint id;
  2143. /* readonly */
  2144. Node node;
  2145. /* readonly */
  2146. uint numAttributes;
  2147. ObjectAnimation objectAnimation;
  2148. /* readonly */
  2149. int refs;
  2150. bool temporary;
  2151. /* readonly */
  2152. StringHash type;
  2153. /* readonly */
  2154. String typeName;
  2155. /* readonly */
  2156. int weakRefs;
  2157. };
  2158. class Connection
  2159. {
  2160. // Methods:
  2161. void Disconnect(int = 0);
  2162. bool HasSubscribedToEvent(Object, const String&);
  2163. bool HasSubscribedToEvent(const String&);
  2164. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2165. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2166. void SendPackageToClient(PackageFile);
  2167. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2168. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2169. String ToString() const;
  2170. // Properties:
  2171. /* readonly */
  2172. String address;
  2173. /* readonly */
  2174. float bytesInPerSec;
  2175. /* readonly */
  2176. float bytesOutPerSec;
  2177. /* readonly */
  2178. String category;
  2179. /* readonly */
  2180. bool client;
  2181. /* readonly */
  2182. bool connectPending;
  2183. /* readonly */
  2184. bool connected;
  2185. Controls controls;
  2186. /* readonly */
  2187. String downloadName;
  2188. /* readonly */
  2189. float downloadProgress;
  2190. VariantMap identity;
  2191. /* readonly */
  2192. float lastHeardTime;
  2193. bool logStatistics;
  2194. /* readonly */
  2195. uint numDownloads;
  2196. /* readonly */
  2197. float packetsInPerSec;
  2198. /* readonly */
  2199. float packetsOutPerSec;
  2200. /* readonly */
  2201. uint16 port;
  2202. Vector3 position;
  2203. /* readonly */
  2204. int refs;
  2205. Quaternion rotation;
  2206. /* readonly */
  2207. float roundTripTime;
  2208. Scene scene;
  2209. /* readonly */
  2210. bool sceneLoaded;
  2211. uint8 timeStamp;
  2212. /* readonly */
  2213. StringHash type;
  2214. /* readonly */
  2215. String typeName;
  2216. /* readonly */
  2217. int weakRefs;
  2218. };
  2219. class Console
  2220. {
  2221. // Methods:
  2222. void CopySelectedRows() const;
  2223. bool HasSubscribedToEvent(Object, const String&);
  2224. bool HasSubscribedToEvent(const String&);
  2225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2226. void Toggle();
  2227. void UpdateElements();
  2228. // Properties:
  2229. bool autoVisibleOnError;
  2230. /* readonly */
  2231. BorderImage background;
  2232. /* readonly */
  2233. String category;
  2234. /* readonly */
  2235. Button closeButton;
  2236. String commandInterpreter;
  2237. XMLFile defaultStyle;
  2238. bool focusOnShow;
  2239. /* readonly */
  2240. uint historyPosition;
  2241. /* readonly */
  2242. Array<String> historyRow;
  2243. /* readonly */
  2244. LineEdit lineEdit;
  2245. uint numBufferedRows;
  2246. uint numHistoryRows;
  2247. uint numRows;
  2248. /* readonly */
  2249. int refs;
  2250. /* readonly */
  2251. StringHash type;
  2252. /* readonly */
  2253. String typeName;
  2254. bool visible;
  2255. /* readonly */
  2256. int weakRefs;
  2257. };
  2258. class Constraint
  2259. {
  2260. // Methods:
  2261. void ApplyAttributes();
  2262. void DrawDebugGeometry(DebugRenderer, bool);
  2263. Variant GetAttribute(const String&) const;
  2264. ValueAnimation GetAttributeAnimation(const String&) const;
  2265. float GetAttributeAnimationSpeed(const String&) const;
  2266. float GetAttributeAnimationTime(const String&) const;
  2267. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2268. Variant GetAttributeDefault(const String&) const;
  2269. bool GetInterceptNetworkUpdate(const String&) const;
  2270. bool HasSubscribedToEvent(Object, const String&);
  2271. bool HasSubscribedToEvent(const String&);
  2272. bool Load(File, bool = false);
  2273. bool Load(VectorBuffer&, bool = false);
  2274. bool LoadJSON(const JSONValue&, bool = false);
  2275. bool LoadXML(const XMLElement&, bool = false);
  2276. void MarkNetworkUpdate() const;
  2277. void Remove();
  2278. void RemoveAttributeAnimation(const String&);
  2279. void RemoveInstanceDefault();
  2280. void RemoveObjectAnimation();
  2281. void ResetToDefault();
  2282. bool Save(File) const;
  2283. bool Save(VectorBuffer&) const;
  2284. bool SaveJSON(JSONValue&) const;
  2285. bool SaveXML(XMLElement&) const;
  2286. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2287. void SetAnimationTime(float);
  2288. bool SetAttribute(const String&, const Variant&);
  2289. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2290. void SetAttributeAnimationSpeed(const String&, float);
  2291. void SetAttributeAnimationTime(const String&, float);
  2292. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2293. void SetInterceptNetworkUpdate(const String&, bool);
  2294. // Properties:
  2295. bool animationEnabled;
  2296. /* readonly */
  2297. Array<Variant> attributeDefaults;
  2298. /* readonly */
  2299. Array<AttributeInfo> attributeInfos;
  2300. Array<Variant> attributes;
  2301. /* writeonly */
  2302. Vector3 axis;
  2303. /* readonly */
  2304. String category;
  2305. float cfm;
  2306. ConstraintType constraintType;
  2307. bool disableCollision;
  2308. bool enabled;
  2309. /* readonly */
  2310. bool enabledEffective;
  2311. float erp;
  2312. Vector2 highLimit;
  2313. /* readonly */
  2314. uint id;
  2315. Vector2 lowLimit;
  2316. /* readonly */
  2317. Node node;
  2318. /* readonly */
  2319. uint numAttributes;
  2320. ObjectAnimation objectAnimation;
  2321. /* writeonly */
  2322. Vector3 otherAxis;
  2323. RigidBody otherBody;
  2324. Vector3 otherPosition;
  2325. Quaternion otherRotation;
  2326. /* readonly */
  2327. RigidBody ownBody;
  2328. Vector3 position;
  2329. /* readonly */
  2330. int refs;
  2331. Quaternion rotation;
  2332. bool temporary;
  2333. /* readonly */
  2334. StringHash type;
  2335. /* readonly */
  2336. String typeName;
  2337. /* readonly */
  2338. int weakRefs;
  2339. Vector3 worldPosition;
  2340. };
  2341. class Constraint2D
  2342. {
  2343. // Methods:
  2344. void ApplyAttributes();
  2345. void DrawDebugGeometry(DebugRenderer, bool);
  2346. Variant GetAttribute(const String&) const;
  2347. ValueAnimation GetAttributeAnimation(const String&) const;
  2348. float GetAttributeAnimationSpeed(const String&) const;
  2349. float GetAttributeAnimationTime(const String&) const;
  2350. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2351. Variant GetAttributeDefault(const String&) const;
  2352. bool GetInterceptNetworkUpdate(const String&) const;
  2353. bool HasSubscribedToEvent(Object, const String&);
  2354. bool HasSubscribedToEvent(const String&);
  2355. bool Load(File, bool = false);
  2356. bool Load(VectorBuffer&, bool = false);
  2357. bool LoadJSON(const JSONValue&, bool = false);
  2358. bool LoadXML(const XMLElement&, bool = false);
  2359. void MarkNetworkUpdate() const;
  2360. void Remove();
  2361. void RemoveAttributeAnimation(const String&);
  2362. void RemoveInstanceDefault();
  2363. void RemoveObjectAnimation();
  2364. void ResetToDefault();
  2365. bool Save(File) const;
  2366. bool Save(VectorBuffer&) const;
  2367. bool SaveJSON(JSONValue&) const;
  2368. bool SaveXML(XMLElement&) const;
  2369. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2370. void SetAnimationTime(float);
  2371. bool SetAttribute(const String&, const Variant&);
  2372. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2373. void SetAttributeAnimationSpeed(const String&, float);
  2374. void SetAttributeAnimationTime(const String&, float);
  2375. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2376. void SetInterceptNetworkUpdate(const String&, bool);
  2377. // Properties:
  2378. bool animationEnabled;
  2379. /* readonly */
  2380. Array<Variant> attributeDefaults;
  2381. /* readonly */
  2382. Array<AttributeInfo> attributeInfos;
  2383. Array<Variant> attributes;
  2384. /* readonly */
  2385. String category;
  2386. bool collideConnected;
  2387. bool enabled;
  2388. /* readonly */
  2389. bool enabledEffective;
  2390. /* readonly */
  2391. uint id;
  2392. /* readonly */
  2393. Node node;
  2394. /* readonly */
  2395. uint numAttributes;
  2396. ObjectAnimation objectAnimation;
  2397. RigidBody2D otherBody;
  2398. /* readonly */
  2399. RigidBody2D ownerBody;
  2400. /* readonly */
  2401. int refs;
  2402. bool temporary;
  2403. /* readonly */
  2404. StringHash type;
  2405. /* readonly */
  2406. String typeName;
  2407. /* readonly */
  2408. int weakRefs;
  2409. };
  2410. class ConstraintDistance2D
  2411. {
  2412. // Methods:
  2413. void ApplyAttributes();
  2414. void DrawDebugGeometry(DebugRenderer, bool);
  2415. Variant GetAttribute(const String&) const;
  2416. ValueAnimation GetAttributeAnimation(const String&) const;
  2417. float GetAttributeAnimationSpeed(const String&) const;
  2418. float GetAttributeAnimationTime(const String&) const;
  2419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2420. Variant GetAttributeDefault(const String&) const;
  2421. bool GetInterceptNetworkUpdate(const String&) const;
  2422. bool HasSubscribedToEvent(Object, const String&);
  2423. bool HasSubscribedToEvent(const String&);
  2424. bool Load(File, bool = false);
  2425. bool Load(VectorBuffer&, bool = false);
  2426. bool LoadJSON(const JSONValue&, bool = false);
  2427. bool LoadXML(const XMLElement&, bool = false);
  2428. void MarkNetworkUpdate() const;
  2429. void Remove();
  2430. void RemoveAttributeAnimation(const String&);
  2431. void RemoveInstanceDefault();
  2432. void RemoveObjectAnimation();
  2433. void ResetToDefault();
  2434. bool Save(File) const;
  2435. bool Save(VectorBuffer&) const;
  2436. bool SaveJSON(JSONValue&) const;
  2437. bool SaveXML(XMLElement&) const;
  2438. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2439. void SetAnimationTime(float);
  2440. bool SetAttribute(const String&, const Variant&);
  2441. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2442. void SetAttributeAnimationSpeed(const String&, float);
  2443. void SetAttributeAnimationTime(const String&, float);
  2444. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2445. void SetInterceptNetworkUpdate(const String&, bool);
  2446. // Properties:
  2447. bool animationEnabled;
  2448. /* readonly */
  2449. Array<Variant> attributeDefaults;
  2450. /* readonly */
  2451. Array<AttributeInfo> attributeInfos;
  2452. Array<Variant> attributes;
  2453. /* readonly */
  2454. String category;
  2455. bool collideConnected;
  2456. float dampingRatio;
  2457. bool enabled;
  2458. /* readonly */
  2459. bool enabledEffective;
  2460. float frequencyHz;
  2461. /* readonly */
  2462. uint id;
  2463. /* readonly */
  2464. Node node;
  2465. /* readonly */
  2466. uint numAttributes;
  2467. ObjectAnimation objectAnimation;
  2468. RigidBody2D otherBody;
  2469. Vector2 otherBodyAnchor;
  2470. /* readonly */
  2471. RigidBody2D ownerBody;
  2472. Vector2 ownerBodyAnchor;
  2473. /* readonly */
  2474. int refs;
  2475. bool temporary;
  2476. /* readonly */
  2477. StringHash type;
  2478. /* readonly */
  2479. String typeName;
  2480. /* readonly */
  2481. int weakRefs;
  2482. };
  2483. class ConstraintFriction2D
  2484. {
  2485. // Methods:
  2486. void ApplyAttributes();
  2487. void DrawDebugGeometry(DebugRenderer, bool);
  2488. Variant GetAttribute(const String&) const;
  2489. ValueAnimation GetAttributeAnimation(const String&) const;
  2490. float GetAttributeAnimationSpeed(const String&) const;
  2491. float GetAttributeAnimationTime(const String&) const;
  2492. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2493. Variant GetAttributeDefault(const String&) const;
  2494. bool GetInterceptNetworkUpdate(const String&) const;
  2495. bool HasSubscribedToEvent(Object, const String&);
  2496. bool HasSubscribedToEvent(const String&);
  2497. bool Load(File, bool = false);
  2498. bool Load(VectorBuffer&, bool = false);
  2499. bool LoadJSON(const JSONValue&, bool = false);
  2500. bool LoadXML(const XMLElement&, bool = false);
  2501. void MarkNetworkUpdate() const;
  2502. void Remove();
  2503. void RemoveAttributeAnimation(const String&);
  2504. void RemoveInstanceDefault();
  2505. void RemoveObjectAnimation();
  2506. void ResetToDefault();
  2507. bool Save(File) const;
  2508. bool Save(VectorBuffer&) const;
  2509. bool SaveJSON(JSONValue&) const;
  2510. bool SaveXML(XMLElement&) const;
  2511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2512. void SetAnimationTime(float);
  2513. bool SetAttribute(const String&, const Variant&);
  2514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2515. void SetAttributeAnimationSpeed(const String&, float);
  2516. void SetAttributeAnimationTime(const String&, float);
  2517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2518. void SetInterceptNetworkUpdate(const String&, bool);
  2519. // Properties:
  2520. Vector2 anchor;
  2521. bool animationEnabled;
  2522. /* readonly */
  2523. Array<Variant> attributeDefaults;
  2524. /* readonly */
  2525. Array<AttributeInfo> attributeInfos;
  2526. Array<Variant> attributes;
  2527. /* readonly */
  2528. String category;
  2529. bool collideConnected;
  2530. bool enabled;
  2531. /* readonly */
  2532. bool enabledEffective;
  2533. /* readonly */
  2534. uint id;
  2535. float maxForce;
  2536. float maxTorque;
  2537. /* readonly */
  2538. Node node;
  2539. /* readonly */
  2540. uint numAttributes;
  2541. ObjectAnimation objectAnimation;
  2542. RigidBody2D otherBody;
  2543. /* readonly */
  2544. RigidBody2D ownerBody;
  2545. /* readonly */
  2546. int refs;
  2547. bool temporary;
  2548. /* readonly */
  2549. StringHash type;
  2550. /* readonly */
  2551. String typeName;
  2552. /* readonly */
  2553. int weakRefs;
  2554. };
  2555. class ConstraintGear2D
  2556. {
  2557. // Methods:
  2558. void ApplyAttributes();
  2559. void DrawDebugGeometry(DebugRenderer, bool);
  2560. Variant GetAttribute(const String&) const;
  2561. ValueAnimation GetAttributeAnimation(const String&) const;
  2562. float GetAttributeAnimationSpeed(const String&) const;
  2563. float GetAttributeAnimationTime(const String&) const;
  2564. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2565. Variant GetAttributeDefault(const String&) const;
  2566. bool GetInterceptNetworkUpdate(const String&) const;
  2567. bool HasSubscribedToEvent(Object, const String&);
  2568. bool HasSubscribedToEvent(const String&);
  2569. bool Load(File, bool = false);
  2570. bool Load(VectorBuffer&, bool = false);
  2571. bool LoadJSON(const JSONValue&, bool = false);
  2572. bool LoadXML(const XMLElement&, bool = false);
  2573. void MarkNetworkUpdate() const;
  2574. void Remove();
  2575. void RemoveAttributeAnimation(const String&);
  2576. void RemoveInstanceDefault();
  2577. void RemoveObjectAnimation();
  2578. void ResetToDefault();
  2579. bool Save(File) const;
  2580. bool Save(VectorBuffer&) const;
  2581. bool SaveJSON(JSONValue&) const;
  2582. bool SaveXML(XMLElement&) const;
  2583. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2584. void SetAnimationTime(float);
  2585. bool SetAttribute(const String&, const Variant&);
  2586. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2587. void SetAttributeAnimationSpeed(const String&, float);
  2588. void SetAttributeAnimationTime(const String&, float);
  2589. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2590. void SetInterceptNetworkUpdate(const String&, bool);
  2591. // Properties:
  2592. bool animationEnabled;
  2593. /* readonly */
  2594. Array<Variant> attributeDefaults;
  2595. /* readonly */
  2596. Array<AttributeInfo> attributeInfos;
  2597. Array<Variant> attributes;
  2598. /* readonly */
  2599. String category;
  2600. bool collideConnected;
  2601. bool enabled;
  2602. /* readonly */
  2603. bool enabledEffective;
  2604. /* readonly */
  2605. uint id;
  2606. /* readonly */
  2607. Node node;
  2608. /* readonly */
  2609. uint numAttributes;
  2610. ObjectAnimation objectAnimation;
  2611. RigidBody2D otherBody;
  2612. Constraint2D otherConstraint;
  2613. /* readonly */
  2614. RigidBody2D ownerBody;
  2615. Constraint2D ownerConstraint;
  2616. float ratio;
  2617. /* readonly */
  2618. int refs;
  2619. bool temporary;
  2620. /* readonly */
  2621. StringHash type;
  2622. /* readonly */
  2623. String typeName;
  2624. /* readonly */
  2625. int weakRefs;
  2626. };
  2627. class ConstraintMotor2D
  2628. {
  2629. // Methods:
  2630. void ApplyAttributes();
  2631. void DrawDebugGeometry(DebugRenderer, bool);
  2632. Variant GetAttribute(const String&) const;
  2633. ValueAnimation GetAttributeAnimation(const String&) const;
  2634. float GetAttributeAnimationSpeed(const String&) const;
  2635. float GetAttributeAnimationTime(const String&) const;
  2636. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2637. Variant GetAttributeDefault(const String&) const;
  2638. bool GetInterceptNetworkUpdate(const String&) const;
  2639. bool HasSubscribedToEvent(Object, const String&);
  2640. bool HasSubscribedToEvent(const String&);
  2641. bool Load(File, bool = false);
  2642. bool Load(VectorBuffer&, bool = false);
  2643. bool LoadJSON(const JSONValue&, bool = false);
  2644. bool LoadXML(const XMLElement&, bool = false);
  2645. void MarkNetworkUpdate() const;
  2646. void Remove();
  2647. void RemoveAttributeAnimation(const String&);
  2648. void RemoveInstanceDefault();
  2649. void RemoveObjectAnimation();
  2650. void ResetToDefault();
  2651. bool Save(File) const;
  2652. bool Save(VectorBuffer&) const;
  2653. bool SaveJSON(JSONValue&) const;
  2654. bool SaveXML(XMLElement&) const;
  2655. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2656. void SetAnimationTime(float);
  2657. bool SetAttribute(const String&, const Variant&);
  2658. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2659. void SetAttributeAnimationSpeed(const String&, float);
  2660. void SetAttributeAnimationTime(const String&, float);
  2661. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2662. void SetInterceptNetworkUpdate(const String&, bool);
  2663. // Properties:
  2664. float angularOffset;
  2665. bool animationEnabled;
  2666. /* readonly */
  2667. Array<Variant> attributeDefaults;
  2668. /* readonly */
  2669. Array<AttributeInfo> attributeInfos;
  2670. Array<Variant> attributes;
  2671. /* readonly */
  2672. String category;
  2673. bool collideConnected;
  2674. float correctionFactor;
  2675. bool enabled;
  2676. /* readonly */
  2677. bool enabledEffective;
  2678. /* readonly */
  2679. uint id;
  2680. Vector2 linearOffset;
  2681. float maxForce;
  2682. float maxTorque;
  2683. /* readonly */
  2684. Node node;
  2685. /* readonly */
  2686. uint numAttributes;
  2687. ObjectAnimation objectAnimation;
  2688. RigidBody2D otherBody;
  2689. /* readonly */
  2690. RigidBody2D ownerBody;
  2691. /* readonly */
  2692. int refs;
  2693. bool temporary;
  2694. /* readonly */
  2695. StringHash type;
  2696. /* readonly */
  2697. String typeName;
  2698. /* readonly */
  2699. int weakRefs;
  2700. };
  2701. class ConstraintMouse2D
  2702. {
  2703. // Methods:
  2704. void ApplyAttributes();
  2705. void DrawDebugGeometry(DebugRenderer, bool);
  2706. Variant GetAttribute(const String&) const;
  2707. ValueAnimation GetAttributeAnimation(const String&) const;
  2708. float GetAttributeAnimationSpeed(const String&) const;
  2709. float GetAttributeAnimationTime(const String&) const;
  2710. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2711. Variant GetAttributeDefault(const String&) const;
  2712. bool GetInterceptNetworkUpdate(const String&) const;
  2713. bool HasSubscribedToEvent(Object, const String&);
  2714. bool HasSubscribedToEvent(const String&);
  2715. bool Load(File, bool = false);
  2716. bool Load(VectorBuffer&, bool = false);
  2717. bool LoadJSON(const JSONValue&, bool = false);
  2718. bool LoadXML(const XMLElement&, bool = false);
  2719. void MarkNetworkUpdate() const;
  2720. void Remove();
  2721. void RemoveAttributeAnimation(const String&);
  2722. void RemoveInstanceDefault();
  2723. void RemoveObjectAnimation();
  2724. void ResetToDefault();
  2725. bool Save(File) const;
  2726. bool Save(VectorBuffer&) const;
  2727. bool SaveJSON(JSONValue&) const;
  2728. bool SaveXML(XMLElement&) const;
  2729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2730. void SetAnimationTime(float);
  2731. bool SetAttribute(const String&, const Variant&);
  2732. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2733. void SetAttributeAnimationSpeed(const String&, float);
  2734. void SetAttributeAnimationTime(const String&, float);
  2735. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2736. void SetInterceptNetworkUpdate(const String&, bool);
  2737. // Properties:
  2738. bool animationEnabled;
  2739. /* readonly */
  2740. Array<Variant> attributeDefaults;
  2741. /* readonly */
  2742. Array<AttributeInfo> attributeInfos;
  2743. Array<Variant> attributes;
  2744. /* readonly */
  2745. String category;
  2746. bool collideConnected;
  2747. float dampingRatio;
  2748. bool enabled;
  2749. /* readonly */
  2750. bool enabledEffective;
  2751. float frequencyHz;
  2752. /* readonly */
  2753. uint id;
  2754. float maxForce;
  2755. /* readonly */
  2756. Node node;
  2757. /* readonly */
  2758. uint numAttributes;
  2759. ObjectAnimation objectAnimation;
  2760. RigidBody2D otherBody;
  2761. /* readonly */
  2762. RigidBody2D ownerBody;
  2763. /* readonly */
  2764. int refs;
  2765. Vector2 target;
  2766. bool temporary;
  2767. /* readonly */
  2768. StringHash type;
  2769. /* readonly */
  2770. String typeName;
  2771. /* readonly */
  2772. int weakRefs;
  2773. };
  2774. class ConstraintPrismatic2D
  2775. {
  2776. // Methods:
  2777. void ApplyAttributes();
  2778. void DrawDebugGeometry(DebugRenderer, bool);
  2779. Variant GetAttribute(const String&) const;
  2780. ValueAnimation GetAttributeAnimation(const String&) const;
  2781. float GetAttributeAnimationSpeed(const String&) const;
  2782. float GetAttributeAnimationTime(const String&) const;
  2783. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2784. Variant GetAttributeDefault(const String&) const;
  2785. bool GetInterceptNetworkUpdate(const String&) const;
  2786. bool HasSubscribedToEvent(Object, const String&);
  2787. bool HasSubscribedToEvent(const String&);
  2788. bool Load(File, bool = false);
  2789. bool Load(VectorBuffer&, bool = false);
  2790. bool LoadJSON(const JSONValue&, bool = false);
  2791. bool LoadXML(const XMLElement&, bool = false);
  2792. void MarkNetworkUpdate() const;
  2793. void Remove();
  2794. void RemoveAttributeAnimation(const String&);
  2795. void RemoveInstanceDefault();
  2796. void RemoveObjectAnimation();
  2797. void ResetToDefault();
  2798. bool Save(File) const;
  2799. bool Save(VectorBuffer&) const;
  2800. bool SaveJSON(JSONValue&) const;
  2801. bool SaveXML(XMLElement&) const;
  2802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2803. void SetAnimationTime(float);
  2804. bool SetAttribute(const String&, const Variant&);
  2805. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2806. void SetAttributeAnimationSpeed(const String&, float);
  2807. void SetAttributeAnimationTime(const String&, float);
  2808. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2809. void SetInterceptNetworkUpdate(const String&, bool);
  2810. // Properties:
  2811. Vector2 anchor;
  2812. bool animationEnabled;
  2813. /* readonly */
  2814. Array<Variant> attributeDefaults;
  2815. /* readonly */
  2816. Array<AttributeInfo> attributeInfos;
  2817. Array<Variant> attributes;
  2818. Vector2 axis;
  2819. /* readonly */
  2820. String category;
  2821. bool collideConnected;
  2822. bool enableLimit;
  2823. bool enableMotor;
  2824. bool enabled;
  2825. /* readonly */
  2826. bool enabledEffective;
  2827. /* readonly */
  2828. uint id;
  2829. float lowerTranslation;
  2830. float maxMotorForce;
  2831. float motorSpeed;
  2832. /* readonly */
  2833. Node node;
  2834. /* readonly */
  2835. uint numAttributes;
  2836. ObjectAnimation objectAnimation;
  2837. RigidBody2D otherBody;
  2838. /* readonly */
  2839. RigidBody2D ownerBody;
  2840. /* readonly */
  2841. int refs;
  2842. bool temporary;
  2843. /* readonly */
  2844. StringHash type;
  2845. /* readonly */
  2846. String typeName;
  2847. float upperTranslation;
  2848. /* readonly */
  2849. int weakRefs;
  2850. };
  2851. class ConstraintPulley2D
  2852. {
  2853. // Methods:
  2854. void ApplyAttributes();
  2855. void DrawDebugGeometry(DebugRenderer, bool);
  2856. Variant GetAttribute(const String&) const;
  2857. ValueAnimation GetAttributeAnimation(const String&) const;
  2858. float GetAttributeAnimationSpeed(const String&) const;
  2859. float GetAttributeAnimationTime(const String&) const;
  2860. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2861. Variant GetAttributeDefault(const String&) const;
  2862. bool GetInterceptNetworkUpdate(const String&) const;
  2863. bool HasSubscribedToEvent(Object, const String&);
  2864. bool HasSubscribedToEvent(const String&);
  2865. bool Load(File, bool = false);
  2866. bool Load(VectorBuffer&, bool = false);
  2867. bool LoadJSON(const JSONValue&, bool = false);
  2868. bool LoadXML(const XMLElement&, bool = false);
  2869. void MarkNetworkUpdate() const;
  2870. void Remove();
  2871. void RemoveAttributeAnimation(const String&);
  2872. void RemoveInstanceDefault();
  2873. void RemoveObjectAnimation();
  2874. void ResetToDefault();
  2875. bool Save(File) const;
  2876. bool Save(VectorBuffer&) const;
  2877. bool SaveJSON(JSONValue&) const;
  2878. bool SaveXML(XMLElement&) const;
  2879. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2880. void SetAnimationTime(float);
  2881. bool SetAttribute(const String&, const Variant&);
  2882. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2883. void SetAttributeAnimationSpeed(const String&, float);
  2884. void SetAttributeAnimationTime(const String&, float);
  2885. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2886. void SetInterceptNetworkUpdate(const String&, bool);
  2887. // Properties:
  2888. bool animationEnabled;
  2889. /* readonly */
  2890. Array<Variant> attributeDefaults;
  2891. /* readonly */
  2892. Array<AttributeInfo> attributeInfos;
  2893. Array<Variant> attributes;
  2894. /* readonly */
  2895. String category;
  2896. bool collideConnected;
  2897. bool enabled;
  2898. /* readonly */
  2899. bool enabledEffective;
  2900. /* readonly */
  2901. uint id;
  2902. /* readonly */
  2903. Node node;
  2904. /* readonly */
  2905. uint numAttributes;
  2906. ObjectAnimation objectAnimation;
  2907. RigidBody2D otherBody;
  2908. Vector2 otherBodyAnchor;
  2909. Vector2 otherBodyGroundAnchor;
  2910. /* readonly */
  2911. RigidBody2D ownerBody;
  2912. Vector2 ownerBodyAnchor;
  2913. Vector2 ownerBodyGroundAnchor;
  2914. float ratio;
  2915. /* readonly */
  2916. int refs;
  2917. bool temporary;
  2918. /* readonly */
  2919. StringHash type;
  2920. /* readonly */
  2921. String typeName;
  2922. /* readonly */
  2923. int weakRefs;
  2924. };
  2925. class ConstraintRevolute2D
  2926. {
  2927. // Methods:
  2928. void ApplyAttributes();
  2929. void DrawDebugGeometry(DebugRenderer, bool);
  2930. Variant GetAttribute(const String&) const;
  2931. ValueAnimation GetAttributeAnimation(const String&) const;
  2932. float GetAttributeAnimationSpeed(const String&) const;
  2933. float GetAttributeAnimationTime(const String&) const;
  2934. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2935. Variant GetAttributeDefault(const String&) const;
  2936. bool GetInterceptNetworkUpdate(const String&) const;
  2937. bool HasSubscribedToEvent(Object, const String&);
  2938. bool HasSubscribedToEvent(const String&);
  2939. bool Load(File, bool = false);
  2940. bool Load(VectorBuffer&, bool = false);
  2941. bool LoadJSON(const JSONValue&, bool = false);
  2942. bool LoadXML(const XMLElement&, bool = false);
  2943. void MarkNetworkUpdate() const;
  2944. void Remove();
  2945. void RemoveAttributeAnimation(const String&);
  2946. void RemoveInstanceDefault();
  2947. void RemoveObjectAnimation();
  2948. void ResetToDefault();
  2949. bool Save(File) const;
  2950. bool Save(VectorBuffer&) const;
  2951. bool SaveJSON(JSONValue&) const;
  2952. bool SaveXML(XMLElement&) const;
  2953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2954. void SetAnimationTime(float);
  2955. bool SetAttribute(const String&, const Variant&);
  2956. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2957. void SetAttributeAnimationSpeed(const String&, float);
  2958. void SetAttributeAnimationTime(const String&, float);
  2959. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2960. void SetInterceptNetworkUpdate(const String&, bool);
  2961. // Properties:
  2962. Vector2 anchor;
  2963. bool animationEnabled;
  2964. /* readonly */
  2965. Array<Variant> attributeDefaults;
  2966. /* readonly */
  2967. Array<AttributeInfo> attributeInfos;
  2968. Array<Variant> attributes;
  2969. /* readonly */
  2970. String category;
  2971. bool collideConnected;
  2972. bool enableLimit;
  2973. bool enableMotor;
  2974. bool enabled;
  2975. /* readonly */
  2976. bool enabledEffective;
  2977. /* readonly */
  2978. uint id;
  2979. float lowerAngle;
  2980. float maxMotorTorque;
  2981. float motorSpeed;
  2982. /* readonly */
  2983. Node node;
  2984. /* readonly */
  2985. uint numAttributes;
  2986. ObjectAnimation objectAnimation;
  2987. RigidBody2D otherBody;
  2988. /* readonly */
  2989. RigidBody2D ownerBody;
  2990. /* readonly */
  2991. int refs;
  2992. bool temporary;
  2993. /* readonly */
  2994. StringHash type;
  2995. /* readonly */
  2996. String typeName;
  2997. float upperAngle;
  2998. /* readonly */
  2999. int weakRefs;
  3000. };
  3001. class ConstraintRope2D
  3002. {
  3003. // Methods:
  3004. void ApplyAttributes();
  3005. void DrawDebugGeometry(DebugRenderer, bool);
  3006. Variant GetAttribute(const String&) const;
  3007. ValueAnimation GetAttributeAnimation(const String&) const;
  3008. float GetAttributeAnimationSpeed(const String&) const;
  3009. float GetAttributeAnimationTime(const String&) const;
  3010. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3011. Variant GetAttributeDefault(const String&) const;
  3012. bool GetInterceptNetworkUpdate(const String&) const;
  3013. bool HasSubscribedToEvent(Object, const String&);
  3014. bool HasSubscribedToEvent(const String&);
  3015. bool Load(File, bool = false);
  3016. bool Load(VectorBuffer&, bool = false);
  3017. bool LoadJSON(const JSONValue&, bool = false);
  3018. bool LoadXML(const XMLElement&, bool = false);
  3019. void MarkNetworkUpdate() const;
  3020. void Remove();
  3021. void RemoveAttributeAnimation(const String&);
  3022. void RemoveInstanceDefault();
  3023. void RemoveObjectAnimation();
  3024. void ResetToDefault();
  3025. bool Save(File) const;
  3026. bool Save(VectorBuffer&) const;
  3027. bool SaveJSON(JSONValue&) const;
  3028. bool SaveXML(XMLElement&) const;
  3029. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3030. void SetAnimationTime(float);
  3031. bool SetAttribute(const String&, const Variant&);
  3032. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3033. void SetAttributeAnimationSpeed(const String&, float);
  3034. void SetAttributeAnimationTime(const String&, float);
  3035. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3036. void SetInterceptNetworkUpdate(const String&, bool);
  3037. // Properties:
  3038. bool animationEnabled;
  3039. /* readonly */
  3040. Array<Variant> attributeDefaults;
  3041. /* readonly */
  3042. Array<AttributeInfo> attributeInfos;
  3043. Array<Variant> attributes;
  3044. /* readonly */
  3045. String category;
  3046. bool collideConnected;
  3047. bool enabled;
  3048. /* readonly */
  3049. bool enabledEffective;
  3050. /* readonly */
  3051. uint id;
  3052. float maxLength;
  3053. /* readonly */
  3054. Node node;
  3055. /* readonly */
  3056. uint numAttributes;
  3057. ObjectAnimation objectAnimation;
  3058. RigidBody2D otherBody;
  3059. Vector2 otherBodyAnchor;
  3060. /* readonly */
  3061. RigidBody2D ownerBody;
  3062. Vector2 ownerBodyAnchor;
  3063. /* readonly */
  3064. int refs;
  3065. bool temporary;
  3066. /* readonly */
  3067. StringHash type;
  3068. /* readonly */
  3069. String typeName;
  3070. /* readonly */
  3071. int weakRefs;
  3072. };
  3073. class ConstraintWeld2D
  3074. {
  3075. // Methods:
  3076. void ApplyAttributes();
  3077. void DrawDebugGeometry(DebugRenderer, bool);
  3078. Variant GetAttribute(const String&) const;
  3079. ValueAnimation GetAttributeAnimation(const String&) const;
  3080. float GetAttributeAnimationSpeed(const String&) const;
  3081. float GetAttributeAnimationTime(const String&) const;
  3082. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3083. Variant GetAttributeDefault(const String&) const;
  3084. bool GetInterceptNetworkUpdate(const String&) const;
  3085. bool HasSubscribedToEvent(Object, const String&);
  3086. bool HasSubscribedToEvent(const String&);
  3087. bool Load(File, bool = false);
  3088. bool Load(VectorBuffer&, bool = false);
  3089. bool LoadJSON(const JSONValue&, bool = false);
  3090. bool LoadXML(const XMLElement&, bool = false);
  3091. void MarkNetworkUpdate() const;
  3092. void Remove();
  3093. void RemoveAttributeAnimation(const String&);
  3094. void RemoveInstanceDefault();
  3095. void RemoveObjectAnimation();
  3096. void ResetToDefault();
  3097. bool Save(File) const;
  3098. bool Save(VectorBuffer&) const;
  3099. bool SaveJSON(JSONValue&) const;
  3100. bool SaveXML(XMLElement&) const;
  3101. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3102. void SetAnimationTime(float);
  3103. bool SetAttribute(const String&, const Variant&);
  3104. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3105. void SetAttributeAnimationSpeed(const String&, float);
  3106. void SetAttributeAnimationTime(const String&, float);
  3107. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3108. void SetInterceptNetworkUpdate(const String&, bool);
  3109. // Properties:
  3110. Vector2 anchor;
  3111. bool animationEnabled;
  3112. /* readonly */
  3113. Array<Variant> attributeDefaults;
  3114. /* readonly */
  3115. Array<AttributeInfo> attributeInfos;
  3116. Array<Variant> attributes;
  3117. /* readonly */
  3118. String category;
  3119. bool collideConnected;
  3120. float dampingRatio;
  3121. bool enabled;
  3122. /* readonly */
  3123. bool enabledEffective;
  3124. float frequencyHz;
  3125. /* readonly */
  3126. uint id;
  3127. /* readonly */
  3128. Node node;
  3129. /* readonly */
  3130. uint numAttributes;
  3131. ObjectAnimation objectAnimation;
  3132. RigidBody2D otherBody;
  3133. /* readonly */
  3134. RigidBody2D ownerBody;
  3135. /* readonly */
  3136. int refs;
  3137. bool temporary;
  3138. /* readonly */
  3139. StringHash type;
  3140. /* readonly */
  3141. String typeName;
  3142. /* readonly */
  3143. int weakRefs;
  3144. };
  3145. class ConstraintWheel2D
  3146. {
  3147. // Methods:
  3148. void ApplyAttributes();
  3149. void DrawDebugGeometry(DebugRenderer, bool);
  3150. Variant GetAttribute(const String&) const;
  3151. ValueAnimation GetAttributeAnimation(const String&) const;
  3152. float GetAttributeAnimationSpeed(const String&) const;
  3153. float GetAttributeAnimationTime(const String&) const;
  3154. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3155. Variant GetAttributeDefault(const String&) const;
  3156. bool GetInterceptNetworkUpdate(const String&) const;
  3157. bool HasSubscribedToEvent(Object, const String&);
  3158. bool HasSubscribedToEvent(const String&);
  3159. bool Load(File, bool = false);
  3160. bool Load(VectorBuffer&, bool = false);
  3161. bool LoadJSON(const JSONValue&, bool = false);
  3162. bool LoadXML(const XMLElement&, bool = false);
  3163. void MarkNetworkUpdate() const;
  3164. void Remove();
  3165. void RemoveAttributeAnimation(const String&);
  3166. void RemoveInstanceDefault();
  3167. void RemoveObjectAnimation();
  3168. void ResetToDefault();
  3169. bool Save(File) const;
  3170. bool Save(VectorBuffer&) const;
  3171. bool SaveJSON(JSONValue&) const;
  3172. bool SaveXML(XMLElement&) const;
  3173. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3174. void SetAnimationTime(float);
  3175. bool SetAttribute(const String&, const Variant&);
  3176. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3177. void SetAttributeAnimationSpeed(const String&, float);
  3178. void SetAttributeAnimationTime(const String&, float);
  3179. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3180. void SetInterceptNetworkUpdate(const String&, bool);
  3181. // Properties:
  3182. Vector2 anchor;
  3183. bool animationEnabled;
  3184. /* readonly */
  3185. Array<Variant> attributeDefaults;
  3186. /* readonly */
  3187. Array<AttributeInfo> attributeInfos;
  3188. Array<Variant> attributes;
  3189. Vector2 axis;
  3190. /* readonly */
  3191. String category;
  3192. bool collideConnected;
  3193. float dampingRatio;
  3194. bool enableMotor;
  3195. bool enabled;
  3196. /* readonly */
  3197. bool enabledEffective;
  3198. float frequencyHz;
  3199. /* readonly */
  3200. uint id;
  3201. float maxMotorTorque;
  3202. float motorSpeed;
  3203. /* readonly */
  3204. Node node;
  3205. /* readonly */
  3206. uint numAttributes;
  3207. ObjectAnimation objectAnimation;
  3208. RigidBody2D otherBody;
  3209. /* readonly */
  3210. RigidBody2D ownerBody;
  3211. /* readonly */
  3212. int refs;
  3213. bool temporary;
  3214. /* readonly */
  3215. StringHash type;
  3216. /* readonly */
  3217. String typeName;
  3218. /* readonly */
  3219. int weakRefs;
  3220. };
  3221. class Controls
  3222. {
  3223. // Methods:
  3224. bool IsDown(uint) const;
  3225. bool IsPressed(uint, const Controls&) const;
  3226. void Reset();
  3227. void Set(uint, bool);
  3228. // Properties:
  3229. uint buttons;
  3230. VariantMap extraData;
  3231. float pitch;
  3232. float yaw;
  3233. };
  3234. class CrowdAgent
  3235. {
  3236. // Methods:
  3237. void ApplyAttributes();
  3238. void DrawDebugGeometry(DebugRenderer, bool);
  3239. void DrawDebugGeometry(bool);
  3240. Variant GetAttribute(const String&) const;
  3241. ValueAnimation GetAttributeAnimation(const String&) const;
  3242. float GetAttributeAnimationSpeed(const String&) const;
  3243. float GetAttributeAnimationTime(const String&) const;
  3244. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3245. Variant GetAttributeDefault(const String&) const;
  3246. bool GetInterceptNetworkUpdate(const String&) const;
  3247. bool HasSubscribedToEvent(Object, const String&);
  3248. bool HasSubscribedToEvent(const String&);
  3249. bool Load(File, bool = false);
  3250. bool Load(VectorBuffer&, bool = false);
  3251. bool LoadJSON(const JSONValue&, bool = false);
  3252. bool LoadXML(const XMLElement&, bool = false);
  3253. void MarkNetworkUpdate() const;
  3254. void Remove();
  3255. void RemoveAttributeAnimation(const String&);
  3256. void RemoveInstanceDefault();
  3257. void RemoveObjectAnimation();
  3258. void ResetTarget();
  3259. void ResetToDefault();
  3260. bool Save(File) const;
  3261. bool Save(VectorBuffer&) const;
  3262. bool SaveJSON(JSONValue&) const;
  3263. bool SaveXML(XMLElement&) const;
  3264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3265. void SetAnimationTime(float);
  3266. bool SetAttribute(const String&, const Variant&);
  3267. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3268. void SetAttributeAnimationSpeed(const String&, float);
  3269. void SetAttributeAnimationTime(const String&, float);
  3270. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3271. void SetInterceptNetworkUpdate(const String&, bool);
  3272. // Properties:
  3273. /* readonly */
  3274. Vector3 actualVelocity;
  3275. /* readonly */
  3276. CrowdAgentState agentState;
  3277. bool animationEnabled;
  3278. /* readonly */
  3279. bool arrived;
  3280. /* readonly */
  3281. Array<Variant> attributeDefaults;
  3282. /* readonly */
  3283. Array<AttributeInfo> attributeInfos;
  3284. Array<Variant> attributes;
  3285. /* readonly */
  3286. String category;
  3287. /* readonly */
  3288. Vector3 desiredVelocity;
  3289. bool enabled;
  3290. /* readonly */
  3291. bool enabledEffective;
  3292. float height;
  3293. /* readonly */
  3294. uint id;
  3295. /* readonly */
  3296. bool inCrowd;
  3297. float maxAccel;
  3298. float maxSpeed;
  3299. NavigationPushiness navigationPushiness;
  3300. NavigationQuality navigationQuality;
  3301. /* readonly */
  3302. Node node;
  3303. /* readonly */
  3304. uint numAttributes;
  3305. ObjectAnimation objectAnimation;
  3306. uint obstacleAvoidanceType;
  3307. /* readonly */
  3308. Vector3 position;
  3309. uint queryFilterType;
  3310. float radius;
  3311. /* readonly */
  3312. int refs;
  3313. /* readonly */
  3314. bool requestedTarget;
  3315. /* readonly */
  3316. CrowdAgentRequestedTarget requestedTargetType;
  3317. Vector3 targetPosition;
  3318. /* readonly */
  3319. CrowdAgentTargetState targetState;
  3320. Vector3 targetVelocity;
  3321. bool temporary;
  3322. /* readonly */
  3323. StringHash type;
  3324. /* readonly */
  3325. String typeName;
  3326. bool updateNodePosition;
  3327. /* readonly */
  3328. int weakRefs;
  3329. };
  3330. class CrowdManager
  3331. {
  3332. // Methods:
  3333. void ApplyAttributes();
  3334. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3335. void DrawDebugGeometry(DebugRenderer, bool);
  3336. void DrawDebugGeometry(bool);
  3337. Vector3 FindNearestPoint(const Vector3&, int);
  3338. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3339. float GetAreaCost(uint, uint);
  3340. Variant GetAttribute(const String&) const;
  3341. ValueAnimation GetAttributeAnimation(const String&) const;
  3342. float GetAttributeAnimationSpeed(const String&) const;
  3343. float GetAttributeAnimationTime(const String&) const;
  3344. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3345. Variant GetAttributeDefault(const String&) const;
  3346. float GetDistanceToWall(const Vector3&, float, int);
  3347. uint16 GetExcludeFlags(uint);
  3348. uint16 GetIncludeFlags(uint);
  3349. bool GetInterceptNetworkUpdate(const String&) const;
  3350. Vector3 GetRandomPoint(int);
  3351. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3352. bool HasSubscribedToEvent(Object, const String&);
  3353. bool HasSubscribedToEvent(const String&);
  3354. bool Load(File, bool = false);
  3355. bool Load(VectorBuffer&, bool = false);
  3356. bool LoadJSON(const JSONValue&, bool = false);
  3357. bool LoadXML(const XMLElement&, bool = false);
  3358. void MarkNetworkUpdate() const;
  3359. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3360. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3361. void Remove();
  3362. void RemoveAttributeAnimation(const String&);
  3363. void RemoveInstanceDefault();
  3364. void RemoveObjectAnimation();
  3365. void ResetCrowdTarget(Node = null);
  3366. void ResetToDefault();
  3367. bool Save(File) const;
  3368. bool Save(VectorBuffer&) const;
  3369. bool SaveJSON(JSONValue&) const;
  3370. bool SaveXML(XMLElement&) const;
  3371. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3372. void SetAnimationTime(float);
  3373. void SetAreaCost(uint, uint, float);
  3374. bool SetAttribute(const String&, const Variant&);
  3375. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3376. void SetAttributeAnimationSpeed(const String&, float);
  3377. void SetAttributeAnimationTime(const String&, float);
  3378. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3379. void SetCrowdTarget(const Vector3&, Node = null);
  3380. void SetCrowdVelocity(const Vector3&, Node = null);
  3381. void SetExcludeFlags(uint, uint16);
  3382. void SetIncludeFlags(uint, uint16);
  3383. void SetInterceptNetworkUpdate(const String&, bool);
  3384. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3385. // Properties:
  3386. bool animationEnabled;
  3387. /* readonly */
  3388. Array<Variant> attributeDefaults;
  3389. /* readonly */
  3390. Array<AttributeInfo> attributeInfos;
  3391. Array<Variant> attributes;
  3392. /* readonly */
  3393. String category;
  3394. bool enabled;
  3395. /* readonly */
  3396. bool enabledEffective;
  3397. /* readonly */
  3398. uint id;
  3399. float maxAgentRadius;
  3400. int maxAgents;
  3401. NavigationMesh navMesh;
  3402. /* readonly */
  3403. Node node;
  3404. /* readonly */
  3405. Array<uint> numAreas;
  3406. /* readonly */
  3407. uint numAttributes;
  3408. /* readonly */
  3409. uint numObstacleAvoidanceTypes;
  3410. /* readonly */
  3411. uint numQueryFilterTypes;
  3412. ObjectAnimation objectAnimation;
  3413. /* readonly */
  3414. int refs;
  3415. bool temporary;
  3416. /* readonly */
  3417. StringHash type;
  3418. /* readonly */
  3419. String typeName;
  3420. /* readonly */
  3421. int weakRefs;
  3422. };
  3423. class CrowdObstacleAvoidanceParams
  3424. {
  3425. // Properties:
  3426. uint8 adaptiveDepth;
  3427. uint8 adaptiveDivs;
  3428. uint8 adaptiveRings;
  3429. uint8 gridSize;
  3430. float horizTime;
  3431. float velBias;
  3432. float weightCurVel;
  3433. float weightDesVel;
  3434. float weightSide;
  3435. float weightToi;
  3436. };
  3437. class Cursor
  3438. {
  3439. // Methods:
  3440. void AddChild(UIElement);
  3441. void AddTag(const String&);
  3442. void AddTags(const String&, int8 = ';');
  3443. void ApplyAttributes();
  3444. void BringToFront();
  3445. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3446. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3447. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3448. void DisableLayoutUpdate();
  3449. IntVector2 ElementToScreen(const IntVector2&);
  3450. void EnableLayoutUpdate();
  3451. uint FindChild(UIElement) const;
  3452. Variant GetAttribute(const String&) const;
  3453. ValueAnimation GetAttributeAnimation(const String&) const;
  3454. float GetAttributeAnimationSpeed(const String&) const;
  3455. float GetAttributeAnimationTime(const String&) const;
  3456. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3457. Variant GetAttributeDefault(const String&) const;
  3458. UIElement GetChild(const String&, bool = false) const;
  3459. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3460. Array<UIElement> GetChildren(bool = false) const;
  3461. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3462. UIElement GetElementEventSender() const;
  3463. bool GetInterceptNetworkUpdate(const String&) const;
  3464. uint GetNumChildren(bool) const;
  3465. bool HasSubscribedToEvent(Object, const String&);
  3466. bool HasSubscribedToEvent(const String&);
  3467. bool HasTag(const String&) const;
  3468. void InsertChild(uint, UIElement);
  3469. bool IsInside(IntVector2, bool);
  3470. bool IsInsideCombined(IntVector2, bool);
  3471. bool Load(File, bool = false);
  3472. bool Load(VectorBuffer&, bool = false);
  3473. bool LoadChildXML(XMLFile, XMLFile = null);
  3474. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3475. bool LoadJSON(const JSONValue&, bool = false);
  3476. bool LoadXML(File);
  3477. bool LoadXML(VectorBuffer&);
  3478. bool LoadXML(XMLFile, XMLFile);
  3479. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3480. bool LoadXML(const XMLElement&, bool = false);
  3481. void MarkNetworkUpdate() const;
  3482. void Remove();
  3483. void RemoveAllChildren();
  3484. void RemoveAllTags();
  3485. void RemoveAttributeAnimation(const String&);
  3486. void RemoveChild(UIElement, uint = 0);
  3487. void RemoveChild(uint);
  3488. void RemoveInstanceDefault();
  3489. void RemoveObjectAnimation();
  3490. bool RemoveTag(const String&);
  3491. void ResetDeepEnabled();
  3492. void ResetToDefault();
  3493. bool Save(File) const;
  3494. bool Save(VectorBuffer&) const;
  3495. bool SaveJSON(JSONValue&) const;
  3496. bool SaveXML(File, const String& = "\t");
  3497. bool SaveXML(VectorBuffer&, const String& = "\t");
  3498. bool SaveXML(XMLElement&) const;
  3499. IntVector2 ScreenToElement(const IntVector2&);
  3500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3501. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3502. void SetAnimationTime(float);
  3503. bool SetAttribute(const String&, const Variant&);
  3504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3505. void SetAttributeAnimationSpeed(const String&, float);
  3506. void SetAttributeAnimationTime(const String&, float);
  3507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3508. void SetDeepEnabled(bool);
  3509. void SetEnabledRecursive(bool);
  3510. void SetFixedHeight(int);
  3511. void SetFixedSize(int, int);
  3512. void SetFixedWidth(int);
  3513. void SetFullImageRect();
  3514. void SetHoverOffset(int, int);
  3515. void SetInterceptNetworkUpdate(const String&, bool);
  3516. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3517. void SetMaxSize(int, int);
  3518. void SetMinSize(int, int);
  3519. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3520. void SetPosition(int, int);
  3521. void SetShape(CursorShape);
  3522. void SetShape(const String&);
  3523. void SetSize(int, int);
  3524. bool SetStyle(const String&, XMLFile = null);
  3525. bool SetStyle(const XMLElement&);
  3526. bool SetStyleAuto(XMLFile = null);
  3527. void UpdateLayout();
  3528. const Variant& GetVar(const StringHash&);
  3529. // Properties:
  3530. bool animationEnabled;
  3531. /* readonly */
  3532. Array<Variant> attributeDefaults;
  3533. /* readonly */
  3534. Array<AttributeInfo> attributeInfos;
  3535. Array<Variant> attributes;
  3536. BlendMode blendMode;
  3537. IntRect border;
  3538. bool bringToBack;
  3539. bool bringToFront;
  3540. /* readonly */
  3541. String category;
  3542. /* readonly */
  3543. IntVector2 childOffset;
  3544. /* readonly */
  3545. Array<UIElement> children;
  3546. IntRect clipBorder;
  3547. bool clipChildren;
  3548. /* writeonly */
  3549. Color color;
  3550. /* readonly */
  3551. bool colorGradient;
  3552. Array<Color> colors;
  3553. /* readonly */
  3554. IntRect combinedScreenRect;
  3555. XMLFile defaultStyle;
  3556. /* readonly */
  3557. float derivedOpacity;
  3558. /* readonly */
  3559. uint dragButtonCombo;
  3560. /* readonly */
  3561. int dragButtonCount;
  3562. uint dragDropMode;
  3563. bool editable;
  3564. bool elementEventSender;
  3565. bool enabled;
  3566. /* readonly */
  3567. bool enabledSelf;
  3568. /* readonly */
  3569. bool fixedHeight;
  3570. /* readonly */
  3571. bool fixedSize;
  3572. /* readonly */
  3573. bool fixedWidth;
  3574. bool focus;
  3575. FocusMode focusMode;
  3576. int height;
  3577. HorizontalAlignment horizontalAlignment;
  3578. IntVector2 hoverOffset;
  3579. /* readonly */
  3580. bool hovering;
  3581. IntRect imageBorder;
  3582. IntRect imageRect;
  3583. int indent;
  3584. int indentSpacing;
  3585. /* readonly */
  3586. int indentWidth;
  3587. bool internal;
  3588. IntRect layoutBorder;
  3589. Vector2 layoutFlexScale;
  3590. LayoutMode layoutMode;
  3591. int layoutSpacing;
  3592. int maxHeight;
  3593. IntVector2 maxSize;
  3594. int maxWidth;
  3595. int minHeight;
  3596. IntVector2 minSize;
  3597. int minWidth;
  3598. String name;
  3599. /* readonly */
  3600. uint numAllChildren;
  3601. /* readonly */
  3602. uint numAttributes;
  3603. /* readonly */
  3604. uint numChildren;
  3605. ObjectAnimation objectAnimation;
  3606. float opacity;
  3607. UIElement parent;
  3608. IntVector2 position;
  3609. int priority;
  3610. /* readonly */
  3611. int refs;
  3612. /* readonly */
  3613. UIElement root;
  3614. /* readonly */
  3615. IntVector2 screenPosition;
  3616. bool selected;
  3617. String shape;
  3618. IntVector2 size;
  3619. bool sortChildren;
  3620. String style;
  3621. /* readonly */
  3622. Array<String> tags;
  3623. bool temporary;
  3624. Texture texture;
  3625. bool tiled;
  3626. TraversalMode traversalMode;
  3627. /* readonly */
  3628. StringHash type;
  3629. /* readonly */
  3630. String typeName;
  3631. bool useDerivedOpacity;
  3632. bool useSystemShapes;
  3633. /* readonly */
  3634. VariantMap vars;
  3635. VerticalAlignment verticalAlignment;
  3636. bool visible;
  3637. /* readonly */
  3638. bool visibleEffective;
  3639. /* readonly */
  3640. int weakRefs;
  3641. int width;
  3642. };
  3643. class CustomGeometry
  3644. {
  3645. // Methods:
  3646. void ApplyAttributes();
  3647. void BeginGeometry(uint, PrimitiveType);
  3648. void Clear();
  3649. void Commit();
  3650. void DefineColor(const Color&);
  3651. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3652. void DefineNormal(const Vector3&);
  3653. void DefineTangent(const Vector4&);
  3654. void DefineTexCoord(const Vector2&);
  3655. void DefineVertex(const Vector3&);
  3656. void DrawDebugGeometry(DebugRenderer, bool);
  3657. Variant GetAttribute(const String&) const;
  3658. ValueAnimation GetAttributeAnimation(const String&) const;
  3659. float GetAttributeAnimationSpeed(const String&) const;
  3660. float GetAttributeAnimationTime(const String&) const;
  3661. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3662. Variant GetAttributeDefault(const String&) const;
  3663. bool GetInterceptNetworkUpdate(const String&) const;
  3664. CustomGeometryVertex GetVertex(uint, uint);
  3665. bool HasSubscribedToEvent(Object, const String&);
  3666. bool HasSubscribedToEvent(const String&);
  3667. bool IsInView(Camera) const;
  3668. bool Load(File, bool = false);
  3669. bool Load(VectorBuffer&, bool = false);
  3670. bool LoadJSON(const JSONValue&, bool = false);
  3671. bool LoadXML(const XMLElement&, bool = false);
  3672. void MarkNetworkUpdate() const;
  3673. void Remove();
  3674. void RemoveAttributeAnimation(const String&);
  3675. void RemoveInstanceDefault();
  3676. void RemoveObjectAnimation();
  3677. void ResetToDefault();
  3678. bool Save(File) const;
  3679. bool Save(VectorBuffer&) const;
  3680. bool SaveJSON(JSONValue&) const;
  3681. bool SaveXML(XMLElement&) const;
  3682. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3683. void SetAnimationTime(float);
  3684. bool SetAttribute(const String&, const Variant&);
  3685. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3686. void SetAttributeAnimationSpeed(const String&, float);
  3687. void SetAttributeAnimationTime(const String&, float);
  3688. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3689. void SetInterceptNetworkUpdate(const String&, bool);
  3690. // Properties:
  3691. bool animationEnabled;
  3692. /* readonly */
  3693. Array<Variant> attributeDefaults;
  3694. /* readonly */
  3695. Array<AttributeInfo> attributeInfos;
  3696. Array<Variant> attributes;
  3697. /* readonly */
  3698. BoundingBox boundingBox;
  3699. bool castShadows;
  3700. /* readonly */
  3701. String category;
  3702. float drawDistance;
  3703. bool dynamic;
  3704. bool enabled;
  3705. /* readonly */
  3706. bool enabledEffective;
  3707. /* readonly */
  3708. uint id;
  3709. /* readonly */
  3710. bool inView;
  3711. uint lightMask;
  3712. float lodBias;
  3713. /* writeonly */
  3714. Material material;
  3715. Array<Material> materials;
  3716. uint maxLights;
  3717. /* readonly */
  3718. Node node;
  3719. /* readonly */
  3720. uint numAttributes;
  3721. uint numGeometries;
  3722. /* readonly */
  3723. Array<uint> numVertices;
  3724. ObjectAnimation objectAnimation;
  3725. bool occludee;
  3726. bool occluder;
  3727. /* readonly */
  3728. int refs;
  3729. float shadowDistance;
  3730. uint shadowMask;
  3731. bool temporary;
  3732. /* readonly */
  3733. StringHash type;
  3734. /* readonly */
  3735. String typeName;
  3736. uint viewMask;
  3737. /* readonly */
  3738. int weakRefs;
  3739. /* readonly */
  3740. BoundingBox worldBoundingBox;
  3741. /* readonly */
  3742. Zone zone;
  3743. uint zoneMask;
  3744. };
  3745. class CustomGeometryVertex
  3746. {
  3747. // Properties:
  3748. uint color;
  3749. Vector3 normal;
  3750. Vector3 position;
  3751. Vector4 tangent;
  3752. Vector2 texCoord;
  3753. };
  3754. class Database
  3755. {
  3756. // Methods:
  3757. DbConnection Connect(const String&);
  3758. void Disconnect(DbConnection);
  3759. bool HasSubscribedToEvent(Object, const String&);
  3760. bool HasSubscribedToEvent(const String&);
  3761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3762. // Properties:
  3763. /* readonly */
  3764. String category;
  3765. uint poolSize;
  3766. /* readonly */
  3767. bool pooling;
  3768. /* readonly */
  3769. int refs;
  3770. /* readonly */
  3771. StringHash type;
  3772. /* readonly */
  3773. String typeName;
  3774. /* readonly */
  3775. int weakRefs;
  3776. };
  3777. class DbConnection
  3778. {
  3779. // Methods:
  3780. DbResult Execute(const String&, bool = false);
  3781. bool HasSubscribedToEvent(Object, const String&);
  3782. bool HasSubscribedToEvent(const String&);
  3783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3784. // Properties:
  3785. /* readonly */
  3786. String category;
  3787. /* readonly */
  3788. bool connected;
  3789. /* readonly */
  3790. String connectionString;
  3791. /* readonly */
  3792. int refs;
  3793. /* readonly */
  3794. StringHash type;
  3795. /* readonly */
  3796. String typeName;
  3797. /* readonly */
  3798. int weakRefs;
  3799. };
  3800. class DbResult
  3801. {
  3802. // Properties:
  3803. /* readonly */
  3804. Array<String> columns;
  3805. /* readonly */
  3806. int64 numAffectedRows;
  3807. /* readonly */
  3808. uint numColumns;
  3809. /* readonly */
  3810. uint numRows;
  3811. /* readonly */
  3812. Array<Array<Variant>> row;
  3813. };
  3814. class DebugHud
  3815. {
  3816. // Methods:
  3817. void ClearAppStats();
  3818. bool HasSubscribedToEvent(Object, const String&);
  3819. bool HasSubscribedToEvent(const String&);
  3820. void ResetAppStats(const String&);
  3821. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3822. void SetAppStats(const String&, const String&);
  3823. void SetAppStats(const String&, const Variant&);
  3824. void Toggle(uint);
  3825. void ToggleAll();
  3826. void Update();
  3827. // Properties:
  3828. /* readonly */
  3829. String category;
  3830. XMLFile defaultStyle;
  3831. /* readonly */
  3832. Text memoryText;
  3833. uint mode;
  3834. /* readonly */
  3835. Text modeText;
  3836. float profilerInterval;
  3837. uint profilerMaxDepth;
  3838. /* readonly */
  3839. Text profilerText;
  3840. /* readonly */
  3841. int refs;
  3842. /* readonly */
  3843. Text statsText;
  3844. /* readonly */
  3845. StringHash type;
  3846. /* readonly */
  3847. String typeName;
  3848. bool useRendererStats;
  3849. /* readonly */
  3850. int weakRefs;
  3851. };
  3852. class DebugRenderer
  3853. {
  3854. // Methods:
  3855. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3856. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3857. void AddCross(const Vector3&, float, const Color&, bool = true);
  3858. void AddFrustum(const Frustum&, const Color&, bool = true);
  3859. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3860. void AddNode(Node, float = 1.0, bool = true);
  3861. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3862. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3863. void AddSkeleton(Skeleton, const Color&, bool = true);
  3864. void AddSphere(const Sphere&, const Color&, bool = true);
  3865. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3866. void ApplyAttributes();
  3867. void DrawDebugGeometry(DebugRenderer, bool);
  3868. Variant GetAttribute(const String&) const;
  3869. ValueAnimation GetAttributeAnimation(const String&) const;
  3870. float GetAttributeAnimationSpeed(const String&) const;
  3871. float GetAttributeAnimationTime(const String&) const;
  3872. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3873. Variant GetAttributeDefault(const String&) const;
  3874. bool GetInterceptNetworkUpdate(const String&) const;
  3875. bool HasSubscribedToEvent(Object, const String&);
  3876. bool HasSubscribedToEvent(const String&);
  3877. bool Load(File, bool = false);
  3878. bool Load(VectorBuffer&, bool = false);
  3879. bool LoadJSON(const JSONValue&, bool = false);
  3880. bool LoadXML(const XMLElement&, bool = false);
  3881. void MarkNetworkUpdate() const;
  3882. void Remove();
  3883. void RemoveAttributeAnimation(const String&);
  3884. void RemoveInstanceDefault();
  3885. void RemoveObjectAnimation();
  3886. void ResetToDefault();
  3887. bool Save(File) const;
  3888. bool Save(VectorBuffer&) const;
  3889. bool SaveJSON(JSONValue&) const;
  3890. bool SaveXML(XMLElement&) const;
  3891. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3892. void SetAnimationTime(float);
  3893. bool SetAttribute(const String&, const Variant&);
  3894. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3895. void SetAttributeAnimationSpeed(const String&, float);
  3896. void SetAttributeAnimationTime(const String&, float);
  3897. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3898. void SetInterceptNetworkUpdate(const String&, bool);
  3899. // Properties:
  3900. bool animationEnabled;
  3901. /* readonly */
  3902. Array<Variant> attributeDefaults;
  3903. /* readonly */
  3904. Array<AttributeInfo> attributeInfos;
  3905. Array<Variant> attributes;
  3906. /* readonly */
  3907. String category;
  3908. bool enabled;
  3909. /* readonly */
  3910. bool enabledEffective;
  3911. /* readonly */
  3912. uint id;
  3913. /* readonly */
  3914. Node node;
  3915. /* readonly */
  3916. uint numAttributes;
  3917. ObjectAnimation objectAnimation;
  3918. /* readonly */
  3919. int refs;
  3920. bool temporary;
  3921. /* readonly */
  3922. StringHash type;
  3923. /* readonly */
  3924. String typeName;
  3925. /* readonly */
  3926. int weakRefs;
  3927. };
  3928. class DecalSet
  3929. {
  3930. // Methods:
  3931. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3932. void ApplyAttributes();
  3933. void DrawDebugGeometry(DebugRenderer, bool);
  3934. Variant GetAttribute(const String&) const;
  3935. ValueAnimation GetAttributeAnimation(const String&) const;
  3936. float GetAttributeAnimationSpeed(const String&) const;
  3937. float GetAttributeAnimationTime(const String&) const;
  3938. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3939. Variant GetAttributeDefault(const String&) const;
  3940. bool GetInterceptNetworkUpdate(const String&) const;
  3941. bool HasSubscribedToEvent(Object, const String&);
  3942. bool HasSubscribedToEvent(const String&);
  3943. bool IsInView(Camera) const;
  3944. bool Load(File, bool = false);
  3945. bool Load(VectorBuffer&, bool = false);
  3946. bool LoadJSON(const JSONValue&, bool = false);
  3947. bool LoadXML(const XMLElement&, bool = false);
  3948. void MarkNetworkUpdate() const;
  3949. void Remove();
  3950. void RemoveAllDecals();
  3951. void RemoveAttributeAnimation(const String&);
  3952. void RemoveDecals(uint);
  3953. void RemoveInstanceDefault();
  3954. void RemoveObjectAnimation();
  3955. void ResetToDefault();
  3956. bool Save(File) const;
  3957. bool Save(VectorBuffer&) const;
  3958. bool SaveJSON(JSONValue&) const;
  3959. bool SaveXML(XMLElement&) const;
  3960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3961. void SetAnimationTime(float);
  3962. bool SetAttribute(const String&, const Variant&);
  3963. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3964. void SetAttributeAnimationSpeed(const String&, float);
  3965. void SetAttributeAnimationTime(const String&, float);
  3966. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3967. void SetInterceptNetworkUpdate(const String&, bool);
  3968. // Properties:
  3969. bool animationEnabled;
  3970. /* readonly */
  3971. Array<Variant> attributeDefaults;
  3972. /* readonly */
  3973. Array<AttributeInfo> attributeInfos;
  3974. Array<Variant> attributes;
  3975. /* readonly */
  3976. BoundingBox boundingBox;
  3977. bool castShadows;
  3978. /* readonly */
  3979. String category;
  3980. float drawDistance;
  3981. bool enabled;
  3982. /* readonly */
  3983. bool enabledEffective;
  3984. /* readonly */
  3985. uint id;
  3986. /* readonly */
  3987. bool inView;
  3988. uint lightMask;
  3989. float lodBias;
  3990. Material material;
  3991. uint maxIndices;
  3992. uint maxLights;
  3993. uint maxVertices;
  3994. /* readonly */
  3995. Node node;
  3996. /* readonly */
  3997. uint numAttributes;
  3998. /* readonly */
  3999. uint numDecals;
  4000. /* readonly */
  4001. uint numIndices;
  4002. /* readonly */
  4003. uint numVertices;
  4004. ObjectAnimation objectAnimation;
  4005. bool occludee;
  4006. bool occluder;
  4007. /* readonly */
  4008. int refs;
  4009. float shadowDistance;
  4010. uint shadowMask;
  4011. bool temporary;
  4012. /* readonly */
  4013. StringHash type;
  4014. /* readonly */
  4015. String typeName;
  4016. uint viewMask;
  4017. /* readonly */
  4018. int weakRefs;
  4019. /* readonly */
  4020. BoundingBox worldBoundingBox;
  4021. /* readonly */
  4022. Zone zone;
  4023. uint zoneMask;
  4024. };
  4025. class Deserializer
  4026. {
  4027. // Methods:
  4028. Array<uint8> Read(uint);
  4029. bool ReadBool();
  4030. BoundingBox ReadBoundingBox();
  4031. int8 ReadByte();
  4032. Color ReadColor();
  4033. double ReadDouble();
  4034. String ReadFileID();
  4035. float ReadFloat();
  4036. int ReadInt();
  4037. IntRect ReadIntRect();
  4038. IntVector2 ReadIntVector2();
  4039. String ReadLine();
  4040. Matrix3 ReadMatrix3();
  4041. Matrix3x4 ReadMatrix3x4();
  4042. Matrix4 ReadMatrix4();
  4043. uint ReadNetID();
  4044. Quaternion ReadPackedQuaternion();
  4045. Vector3 ReadPackedVector3(float);
  4046. Quaternion ReadQuaternion();
  4047. int16 ReadShort();
  4048. String ReadString();
  4049. StringHash ReadStringHash();
  4050. uint8 ReadUByte();
  4051. uint ReadUInt();
  4052. uint16 ReadUShort();
  4053. uint ReadVLE();
  4054. Variant ReadVariant();
  4055. VariantMap ReadVariantMap();
  4056. Vector2 ReadVector2();
  4057. Vector3 ReadVector3();
  4058. Vector4 ReadVector4();
  4059. VectorBuffer ReadVectorBuffer(uint);
  4060. uint Seek(uint);
  4061. // Properties:
  4062. /* readonly */
  4063. uint checksum;
  4064. /* readonly */
  4065. bool eof;
  4066. /* readonly */
  4067. String name;
  4068. /* readonly */
  4069. uint position;
  4070. /* readonly */
  4071. uint size;
  4072. };
  4073. class Dictionary
  4074. {
  4075. // Methods:
  4076. void Clear();
  4077. void Erase(const String&);
  4078. bool Exists(const String&) const;
  4079. bool Get(const String&, void*) const;
  4080. bool Get(const String&, double&) const;
  4081. bool Get(const String&, int64&) const;
  4082. void Set(const String&, const void*);
  4083. void Set(const String&, const double&);
  4084. void Set(const String&, const int64&);
  4085. // Properties:
  4086. /* readonly */
  4087. bool empty;
  4088. /* readonly */
  4089. Array<String> keys;
  4090. /* readonly */
  4091. uint length;
  4092. };
  4093. class DictionaryValue
  4094. {
  4095. };
  4096. class Drawable
  4097. {
  4098. // Methods:
  4099. void ApplyAttributes();
  4100. void DrawDebugGeometry(DebugRenderer, bool);
  4101. Variant GetAttribute(const String&) const;
  4102. ValueAnimation GetAttributeAnimation(const String&) const;
  4103. float GetAttributeAnimationSpeed(const String&) const;
  4104. float GetAttributeAnimationTime(const String&) const;
  4105. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4106. Variant GetAttributeDefault(const String&) const;
  4107. bool GetInterceptNetworkUpdate(const String&) const;
  4108. bool HasSubscribedToEvent(Object, const String&);
  4109. bool HasSubscribedToEvent(const String&);
  4110. bool IsInView(Camera) const;
  4111. bool Load(File, bool = false);
  4112. bool Load(VectorBuffer&, bool = false);
  4113. bool LoadJSON(const JSONValue&, bool = false);
  4114. bool LoadXML(const XMLElement&, bool = false);
  4115. void MarkNetworkUpdate() const;
  4116. void Remove();
  4117. void RemoveAttributeAnimation(const String&);
  4118. void RemoveInstanceDefault();
  4119. void RemoveObjectAnimation();
  4120. void ResetToDefault();
  4121. bool Save(File) const;
  4122. bool Save(VectorBuffer&) const;
  4123. bool SaveJSON(JSONValue&) const;
  4124. bool SaveXML(XMLElement&) const;
  4125. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4126. void SetAnimationTime(float);
  4127. bool SetAttribute(const String&, const Variant&);
  4128. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4129. void SetAttributeAnimationSpeed(const String&, float);
  4130. void SetAttributeAnimationTime(const String&, float);
  4131. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4132. void SetInterceptNetworkUpdate(const String&, bool);
  4133. // Properties:
  4134. bool animationEnabled;
  4135. /* readonly */
  4136. Array<Variant> attributeDefaults;
  4137. /* readonly */
  4138. Array<AttributeInfo> attributeInfos;
  4139. Array<Variant> attributes;
  4140. /* readonly */
  4141. BoundingBox boundingBox;
  4142. bool castShadows;
  4143. /* readonly */
  4144. String category;
  4145. float drawDistance;
  4146. bool enabled;
  4147. /* readonly */
  4148. bool enabledEffective;
  4149. /* readonly */
  4150. uint id;
  4151. /* readonly */
  4152. bool inView;
  4153. uint lightMask;
  4154. float lodBias;
  4155. uint maxLights;
  4156. /* readonly */
  4157. Node node;
  4158. /* readonly */
  4159. uint numAttributes;
  4160. ObjectAnimation objectAnimation;
  4161. bool occludee;
  4162. bool occluder;
  4163. /* readonly */
  4164. int refs;
  4165. float shadowDistance;
  4166. uint shadowMask;
  4167. bool temporary;
  4168. /* readonly */
  4169. StringHash type;
  4170. /* readonly */
  4171. String typeName;
  4172. uint viewMask;
  4173. /* readonly */
  4174. int weakRefs;
  4175. /* readonly */
  4176. BoundingBox worldBoundingBox;
  4177. uint zoneMask;
  4178. };
  4179. class Drawable2D
  4180. {
  4181. // Methods:
  4182. void ApplyAttributes();
  4183. void DrawDebugGeometry(DebugRenderer, bool);
  4184. Variant GetAttribute(const String&) const;
  4185. ValueAnimation GetAttributeAnimation(const String&) const;
  4186. float GetAttributeAnimationSpeed(const String&) const;
  4187. float GetAttributeAnimationTime(const String&) const;
  4188. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4189. Variant GetAttributeDefault(const String&) const;
  4190. bool GetInterceptNetworkUpdate(const String&) const;
  4191. bool HasSubscribedToEvent(Object, const String&);
  4192. bool HasSubscribedToEvent(const String&);
  4193. bool IsInView(Camera) const;
  4194. bool Load(File, bool = false);
  4195. bool Load(VectorBuffer&, bool = false);
  4196. bool LoadJSON(const JSONValue&, bool = false);
  4197. bool LoadXML(const XMLElement&, bool = false);
  4198. void MarkNetworkUpdate() const;
  4199. void Remove();
  4200. void RemoveAttributeAnimation(const String&);
  4201. void RemoveInstanceDefault();
  4202. void RemoveObjectAnimation();
  4203. void ResetToDefault();
  4204. bool Save(File) const;
  4205. bool Save(VectorBuffer&) const;
  4206. bool SaveJSON(JSONValue&) const;
  4207. bool SaveXML(XMLElement&) const;
  4208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4209. void SetAnimationTime(float);
  4210. bool SetAttribute(const String&, const Variant&);
  4211. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4212. void SetAttributeAnimationSpeed(const String&, float);
  4213. void SetAttributeAnimationTime(const String&, float);
  4214. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4215. void SetInterceptNetworkUpdate(const String&, bool);
  4216. // Properties:
  4217. bool animationEnabled;
  4218. /* readonly */
  4219. Array<Variant> attributeDefaults;
  4220. /* readonly */
  4221. Array<AttributeInfo> attributeInfos;
  4222. Array<Variant> attributes;
  4223. /* readonly */
  4224. BoundingBox boundingBox;
  4225. bool castShadows;
  4226. /* readonly */
  4227. String category;
  4228. float drawDistance;
  4229. bool enabled;
  4230. /* readonly */
  4231. bool enabledEffective;
  4232. /* readonly */
  4233. uint id;
  4234. /* readonly */
  4235. bool inView;
  4236. int layer;
  4237. uint lightMask;
  4238. float lodBias;
  4239. uint maxLights;
  4240. /* readonly */
  4241. Node node;
  4242. /* readonly */
  4243. uint numAttributes;
  4244. ObjectAnimation objectAnimation;
  4245. bool occludee;
  4246. bool occluder;
  4247. int orderInLayer;
  4248. /* readonly */
  4249. int refs;
  4250. float shadowDistance;
  4251. uint shadowMask;
  4252. bool temporary;
  4253. /* readonly */
  4254. StringHash type;
  4255. /* readonly */
  4256. String typeName;
  4257. uint viewMask;
  4258. /* readonly */
  4259. int weakRefs;
  4260. /* readonly */
  4261. BoundingBox worldBoundingBox;
  4262. uint zoneMask;
  4263. };
  4264. class DropDownList
  4265. {
  4266. // Methods:
  4267. void AddChild(UIElement);
  4268. void AddItem(UIElement);
  4269. void AddTag(const String&);
  4270. void AddTags(const String&, int8 = ';');
  4271. void ApplyAttributes();
  4272. void BringToFront();
  4273. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4274. void DisableLayoutUpdate();
  4275. IntVector2 ElementToScreen(const IntVector2&);
  4276. void EnableLayoutUpdate();
  4277. uint FindChild(UIElement) const;
  4278. Variant GetAttribute(const String&) const;
  4279. ValueAnimation GetAttributeAnimation(const String&) const;
  4280. float GetAttributeAnimationSpeed(const String&) const;
  4281. float GetAttributeAnimationTime(const String&) const;
  4282. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4283. Variant GetAttributeDefault(const String&) const;
  4284. UIElement GetChild(const String&, bool = false) const;
  4285. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4286. Array<UIElement> GetChildren(bool = false) const;
  4287. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4288. UIElement GetElementEventSender() const;
  4289. bool GetInterceptNetworkUpdate(const String&) const;
  4290. Array<UIElement> GetItems() const;
  4291. uint GetNumChildren(bool) const;
  4292. bool HasSubscribedToEvent(Object, const String&);
  4293. bool HasSubscribedToEvent(const String&);
  4294. bool HasTag(const String&) const;
  4295. void InsertChild(uint, UIElement);
  4296. void InsertItem(uint, UIElement);
  4297. bool IsInside(IntVector2, bool);
  4298. bool IsInsideCombined(IntVector2, bool);
  4299. bool Load(File, bool = false);
  4300. bool Load(VectorBuffer&, bool = false);
  4301. bool LoadChildXML(XMLFile, XMLFile = null);
  4302. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4303. bool LoadJSON(const JSONValue&, bool = false);
  4304. bool LoadXML(File);
  4305. bool LoadXML(VectorBuffer&);
  4306. bool LoadXML(XMLFile, XMLFile);
  4307. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4308. bool LoadXML(const XMLElement&, bool = false);
  4309. void MarkNetworkUpdate() const;
  4310. void Remove();
  4311. void RemoveAllChildren();
  4312. void RemoveAllItems();
  4313. void RemoveAllTags();
  4314. void RemoveAttributeAnimation(const String&);
  4315. void RemoveChild(UIElement, uint = 0);
  4316. void RemoveChild(uint);
  4317. void RemoveInstanceDefault();
  4318. void RemoveItem(UIElement);
  4319. void RemoveItem(uint);
  4320. void RemoveObjectAnimation();
  4321. bool RemoveTag(const String&);
  4322. void ResetDeepEnabled();
  4323. void ResetToDefault();
  4324. bool Save(File) const;
  4325. bool Save(VectorBuffer&) const;
  4326. bool SaveJSON(JSONValue&) const;
  4327. bool SaveXML(File, const String& = "\t");
  4328. bool SaveXML(VectorBuffer&, const String& = "\t");
  4329. bool SaveXML(XMLElement&) const;
  4330. IntVector2 ScreenToElement(const IntVector2&);
  4331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4332. void SetAccelerator(int, int);
  4333. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4334. void SetAnimationTime(float);
  4335. bool SetAttribute(const String&, const Variant&);
  4336. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4337. void SetAttributeAnimationSpeed(const String&, float);
  4338. void SetAttributeAnimationTime(const String&, float);
  4339. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4340. void SetDeepEnabled(bool);
  4341. void SetEnabledRecursive(bool);
  4342. void SetFixedHeight(int);
  4343. void SetFixedSize(int, int);
  4344. void SetFixedWidth(int);
  4345. void SetFullImageRect();
  4346. void SetHoverOffset(int, int);
  4347. void SetInterceptNetworkUpdate(const String&, bool);
  4348. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4349. void SetMaxSize(int, int);
  4350. void SetMinSize(int, int);
  4351. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4352. void SetPosition(int, int);
  4353. void SetPressedChildOffset(int, int);
  4354. void SetPressedOffset(int, int);
  4355. void SetRepeat(float, float);
  4356. void SetSize(int, int);
  4357. bool SetStyle(const String&, XMLFile = null);
  4358. bool SetStyle(const XMLElement&);
  4359. bool SetStyleAuto(XMLFile = null);
  4360. void UpdateLayout();
  4361. const Variant& GetVar(const StringHash&);
  4362. UIElement getPopup() const;
  4363. // Properties:
  4364. /* readonly */
  4365. int acceleratorKey;
  4366. /* readonly */
  4367. int acceleratorQualifiers;
  4368. bool animationEnabled;
  4369. /* readonly */
  4370. Array<Variant> attributeDefaults;
  4371. /* readonly */
  4372. Array<AttributeInfo> attributeInfos;
  4373. Array<Variant> attributes;
  4374. BlendMode blendMode;
  4375. IntRect border;
  4376. bool bringToBack;
  4377. bool bringToFront;
  4378. /* readonly */
  4379. String category;
  4380. /* readonly */
  4381. IntVector2 childOffset;
  4382. /* readonly */
  4383. Array<UIElement> children;
  4384. IntRect clipBorder;
  4385. bool clipChildren;
  4386. /* writeonly */
  4387. Color color;
  4388. /* readonly */
  4389. bool colorGradient;
  4390. Array<Color> colors;
  4391. /* readonly */
  4392. IntRect combinedScreenRect;
  4393. XMLFile defaultStyle;
  4394. /* readonly */
  4395. float derivedOpacity;
  4396. /* readonly */
  4397. uint dragButtonCombo;
  4398. /* readonly */
  4399. int dragButtonCount;
  4400. uint dragDropMode;
  4401. bool editable;
  4402. bool elementEventSender;
  4403. bool enabled;
  4404. /* readonly */
  4405. bool enabledSelf;
  4406. /* readonly */
  4407. bool fixedHeight;
  4408. /* readonly */
  4409. bool fixedSize;
  4410. /* readonly */
  4411. bool fixedWidth;
  4412. bool focus;
  4413. FocusMode focusMode;
  4414. int height;
  4415. HorizontalAlignment horizontalAlignment;
  4416. IntVector2 hoverOffset;
  4417. /* readonly */
  4418. bool hovering;
  4419. IntRect imageBorder;
  4420. IntRect imageRect;
  4421. int indent;
  4422. int indentSpacing;
  4423. /* readonly */
  4424. int indentWidth;
  4425. bool internal;
  4426. /* readonly */
  4427. Array<UIElement> items;
  4428. IntRect layoutBorder;
  4429. Vector2 layoutFlexScale;
  4430. LayoutMode layoutMode;
  4431. int layoutSpacing;
  4432. /* readonly */
  4433. ListView listView;
  4434. int maxHeight;
  4435. IntVector2 maxSize;
  4436. int maxWidth;
  4437. int minHeight;
  4438. IntVector2 minSize;
  4439. int minWidth;
  4440. String name;
  4441. /* readonly */
  4442. uint numAllChildren;
  4443. /* readonly */
  4444. uint numAttributes;
  4445. /* readonly */
  4446. uint numChildren;
  4447. /* readonly */
  4448. uint numItems;
  4449. ObjectAnimation objectAnimation;
  4450. float opacity;
  4451. UIElement parent;
  4452. /* readonly */
  4453. UIElement placeholder;
  4454. String placeholderText;
  4455. IntVector2 position;
  4456. /* readonly */
  4457. bool pressed;
  4458. IntVector2 pressedChildOffset;
  4459. IntVector2 pressedOffset;
  4460. int priority;
  4461. /* readonly */
  4462. int refs;
  4463. float repeatDelay;
  4464. float repeatRate;
  4465. bool resizePopup;
  4466. /* readonly */
  4467. UIElement root;
  4468. /* readonly */
  4469. IntVector2 screenPosition;
  4470. bool selected;
  4471. /* readonly */
  4472. UIElement selectedItem;
  4473. uint selection;
  4474. bool showPopup;
  4475. IntVector2 size;
  4476. bool sortChildren;
  4477. String style;
  4478. /* readonly */
  4479. Array<String> tags;
  4480. bool temporary;
  4481. Texture texture;
  4482. bool tiled;
  4483. TraversalMode traversalMode;
  4484. /* readonly */
  4485. StringHash type;
  4486. /* readonly */
  4487. String typeName;
  4488. bool useDerivedOpacity;
  4489. /* readonly */
  4490. VariantMap vars;
  4491. VerticalAlignment verticalAlignment;
  4492. bool visible;
  4493. /* readonly */
  4494. bool visibleEffective;
  4495. /* readonly */
  4496. int weakRefs;
  4497. int width;
  4498. };
  4499. class DynamicNavigationMesh
  4500. {
  4501. // Methods:
  4502. void ApplyAttributes();
  4503. bool Build();
  4504. bool Build(const BoundingBox&);
  4505. void DrawDebugGeometry(DebugRenderer, bool);
  4506. void DrawDebugGeometry(bool);
  4507. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4508. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4509. float GetAreaCost(uint) const;
  4510. Variant GetAttribute(const String&) const;
  4511. ValueAnimation GetAttributeAnimation(const String&) const;
  4512. float GetAttributeAnimationSpeed(const String&) const;
  4513. float GetAttributeAnimationTime(const String&) const;
  4514. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4515. Variant GetAttributeDefault(const String&) const;
  4516. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4517. bool GetInterceptNetworkUpdate(const String&) const;
  4518. Vector3 GetRandomPoint();
  4519. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4520. bool HasSubscribedToEvent(Object, const String&);
  4521. bool HasSubscribedToEvent(const String&);
  4522. bool Load(File, bool = false);
  4523. bool Load(VectorBuffer&, bool = false);
  4524. bool LoadJSON(const JSONValue&, bool = false);
  4525. bool LoadXML(const XMLElement&, bool = false);
  4526. void MarkNetworkUpdate() const;
  4527. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4528. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4529. void Remove();
  4530. void RemoveAttributeAnimation(const String&);
  4531. void RemoveInstanceDefault();
  4532. void RemoveObjectAnimation();
  4533. void ResetToDefault();
  4534. bool Save(File) const;
  4535. bool Save(VectorBuffer&) const;
  4536. bool SaveJSON(JSONValue&) const;
  4537. bool SaveXML(XMLElement&) const;
  4538. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4539. void SetAnimationTime(float);
  4540. void SetAreaCost(uint, float);
  4541. bool SetAttribute(const String&, const Variant&);
  4542. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4543. void SetAttributeAnimationSpeed(const String&, float);
  4544. void SetAttributeAnimationTime(const String&, float);
  4545. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4546. void SetInterceptNetworkUpdate(const String&, bool);
  4547. // Properties:
  4548. float agentHeight;
  4549. float agentMaxClimb;
  4550. float agentMaxSlope;
  4551. float agentRadius;
  4552. bool animationEnabled;
  4553. /* readonly */
  4554. Array<Variant> attributeDefaults;
  4555. /* readonly */
  4556. Array<AttributeInfo> attributeInfos;
  4557. Array<Variant> attributes;
  4558. /* readonly */
  4559. BoundingBox boundingBox;
  4560. /* readonly */
  4561. String category;
  4562. float cellHeight;
  4563. float cellSize;
  4564. float detailSampleDistance;
  4565. float detailSampleMaxError;
  4566. bool drawNavAreas;
  4567. bool drawObstacles;
  4568. bool drawOffMeshConnections;
  4569. float edgeMaxError;
  4570. float edgeMaxLength;
  4571. bool enabled;
  4572. /* readonly */
  4573. bool enabledEffective;
  4574. /* readonly */
  4575. uint id;
  4576. /* readonly */
  4577. bool initialized;
  4578. bool maxLayers;
  4579. uint maxObstacles;
  4580. /* readonly */
  4581. Node node;
  4582. /* readonly */
  4583. uint numAttributes;
  4584. /* readonly */
  4585. IntVector2 numTiles;
  4586. ObjectAnimation objectAnimation;
  4587. Vector3 padding;
  4588. NavmeshPartitionType partitionType;
  4589. /* readonly */
  4590. int refs;
  4591. float regionMergeSize;
  4592. float regionMinSize;
  4593. bool temporary;
  4594. int tileSize;
  4595. /* readonly */
  4596. StringHash type;
  4597. /* readonly */
  4598. String typeName;
  4599. /* readonly */
  4600. int weakRefs;
  4601. /* readonly */
  4602. BoundingBox worldBoundingBox;
  4603. };
  4604. class Engine
  4605. {
  4606. // Methods:
  4607. Console CreateConsole();
  4608. DebugHud CreateDebugHud();
  4609. void DumpMemory();
  4610. void DumpProfiler();
  4611. void DumpResources(bool = false);
  4612. void Exit();
  4613. bool HasSubscribedToEvent(Object, const String&);
  4614. bool HasSubscribedToEvent(const String&);
  4615. void RunFrame();
  4616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4617. // Properties:
  4618. bool autoExit;
  4619. /* readonly */
  4620. String category;
  4621. /* readonly */
  4622. bool exiting;
  4623. /* readonly */
  4624. bool headless;
  4625. /* readonly */
  4626. bool initialized;
  4627. int maxFps;
  4628. int maxInactiveFps;
  4629. int minFps;
  4630. bool pauseMinimized;
  4631. /* readonly */
  4632. int refs;
  4633. int timeStepSmoothing;
  4634. /* readonly */
  4635. StringHash type;
  4636. /* readonly */
  4637. String typeName;
  4638. /* readonly */
  4639. int weakRefs;
  4640. };
  4641. class File
  4642. {
  4643. // Methods:
  4644. void Close();
  4645. bool HasSubscribedToEvent(Object, const String&);
  4646. bool HasSubscribedToEvent(const String&);
  4647. bool Open(const String&, FileMode = FILE_READ);
  4648. Array<uint8> Read(uint);
  4649. bool ReadBool();
  4650. BoundingBox ReadBoundingBox();
  4651. int8 ReadByte();
  4652. Color ReadColor();
  4653. double ReadDouble();
  4654. String ReadFileID();
  4655. float ReadFloat();
  4656. int ReadInt();
  4657. IntRect ReadIntRect();
  4658. IntVector2 ReadIntVector2();
  4659. String ReadLine();
  4660. Matrix3 ReadMatrix3();
  4661. Matrix3x4 ReadMatrix3x4();
  4662. Matrix4 ReadMatrix4();
  4663. uint ReadNetID();
  4664. Quaternion ReadPackedQuaternion();
  4665. Vector3 ReadPackedVector3(float);
  4666. Quaternion ReadQuaternion();
  4667. int16 ReadShort();
  4668. String ReadString();
  4669. StringHash ReadStringHash();
  4670. uint8 ReadUByte();
  4671. uint ReadUInt();
  4672. uint16 ReadUShort();
  4673. uint ReadVLE();
  4674. Variant ReadVariant();
  4675. VariantMap ReadVariantMap();
  4676. Vector2 ReadVector2();
  4677. Vector3 ReadVector3();
  4678. Vector4 ReadVector4();
  4679. VectorBuffer ReadVectorBuffer(uint);
  4680. uint Seek(uint);
  4681. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4682. uint Write(Array<uint8>);
  4683. bool WriteBool(bool);
  4684. bool WriteBoundingBox(const BoundingBox&);
  4685. bool WriteByte(int8);
  4686. bool WriteColor(const Color&);
  4687. bool WriteDouble(double);
  4688. bool WriteFileID(const String&);
  4689. bool WriteFloat(float);
  4690. bool WriteInt(int);
  4691. bool WriteIntRect(const IntRect&);
  4692. bool WriteIntVector2(const IntVector2&);
  4693. bool WriteLine(const String&);
  4694. bool WriteMatrix3(const Matrix3&);
  4695. bool WriteMatrix3x4(const Matrix3x4&);
  4696. bool WriteMatrix4(const Matrix4&);
  4697. bool WriteNetID(uint);
  4698. bool WritePackedQuaternion(const Quaternion&);
  4699. bool WritePackedVector3(const Vector3&, float);
  4700. bool WriteQuaternion(const Quaternion&);
  4701. bool WriteShort(int16);
  4702. bool WriteString(const String&);
  4703. bool WriteStringHash(const StringHash&);
  4704. bool WriteUByte(uint8);
  4705. bool WriteUInt(uint);
  4706. bool WriteUShort(uint16);
  4707. bool WriteVLE(uint);
  4708. bool WriteVariant(const Variant&);
  4709. bool WriteVariantMap(const VariantMap&);
  4710. bool WriteVector2(const Vector2&);
  4711. bool WriteVector3(const Vector3&);
  4712. bool WriteVector4(const Vector4&);
  4713. bool WriteVectorBuffer(const VectorBuffer&);
  4714. // Properties:
  4715. /* readonly */
  4716. String category;
  4717. /* readonly */
  4718. uint checksum;
  4719. /* readonly */
  4720. bool eof;
  4721. /* readonly */
  4722. FileMode mode;
  4723. /* readonly */
  4724. String name;
  4725. /* readonly */
  4726. bool open;
  4727. /* readonly */
  4728. bool packaged;
  4729. /* readonly */
  4730. uint position;
  4731. /* readonly */
  4732. int refs;
  4733. /* readonly */
  4734. uint size;
  4735. /* readonly */
  4736. StringHash type;
  4737. /* readonly */
  4738. String typeName;
  4739. /* readonly */
  4740. int weakRefs;
  4741. };
  4742. class FileSelector
  4743. {
  4744. // Methods:
  4745. bool HasSubscribedToEvent(Object, const String&);
  4746. bool HasSubscribedToEvent(const String&);
  4747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4748. void SetButtonTexts(const String&, const String&);
  4749. void SetFilters(Array<String>, uint);
  4750. void UpdateElements();
  4751. // Properties:
  4752. /* readonly */
  4753. Button cancelButton;
  4754. /* readonly */
  4755. String category;
  4756. XMLFile defaultStyle;
  4757. bool directoryMode;
  4758. /* readonly */
  4759. ListView fileList;
  4760. String fileName;
  4761. /* readonly */
  4762. LineEdit fileNameEdit;
  4763. /* readonly */
  4764. String filter;
  4765. /* readonly */
  4766. uint filterIndex;
  4767. /* readonly */
  4768. DropDownList filterList;
  4769. /* readonly */
  4770. Button okButton;
  4771. String path;
  4772. /* readonly */
  4773. LineEdit pathEdit;
  4774. /* readonly */
  4775. int refs;
  4776. String title;
  4777. /* readonly */
  4778. Text titleText;
  4779. /* readonly */
  4780. StringHash type;
  4781. /* readonly */
  4782. String typeName;
  4783. /* readonly */
  4784. int weakRefs;
  4785. /* readonly */
  4786. Window window;
  4787. };
  4788. class FileSystem
  4789. {
  4790. // Methods:
  4791. bool Copy(const String&, const String&);
  4792. bool CreateDir(const String&);
  4793. bool Delete(const String&);
  4794. bool DirExists(const String&) const;
  4795. bool FileExists(const String&) const;
  4796. String GetAppPreferencesDir(const String&, const String&) const;
  4797. uint GetLastModifiedTime(const String&) const;
  4798. bool HasSubscribedToEvent(Object, const String&);
  4799. bool HasSubscribedToEvent(const String&);
  4800. bool Rename(const String&, const String&);
  4801. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4803. bool SetLastModifiedTime(const String&, uint);
  4804. int SystemCommand(const String&, bool = false);
  4805. uint SystemCommandAsync(const String&);
  4806. bool SystemOpen(const String&, const String&);
  4807. int SystemRun(const String&, Array<String>);
  4808. uint SystemRunAsync(const String&, Array<String>);
  4809. // Properties:
  4810. /* readonly */
  4811. String category;
  4812. String currentDir;
  4813. bool executeConsoleCommands;
  4814. /* readonly */
  4815. String programDir;
  4816. /* readonly */
  4817. int refs;
  4818. /* readonly */
  4819. StringHash type;
  4820. /* readonly */
  4821. String typeName;
  4822. /* readonly */
  4823. String userDocumentsDir;
  4824. /* readonly */
  4825. int weakRefs;
  4826. };
  4827. class FocusParameters
  4828. {
  4829. // Properties:
  4830. bool autoSize;
  4831. bool focus;
  4832. float minView;
  4833. bool nonUniform;
  4834. float quantize;
  4835. };
  4836. class Font
  4837. {
  4838. // Methods:
  4839. IntVector2 GetTotalGlyphOffset(int) const;
  4840. bool HasSubscribedToEvent(Object, const String&);
  4841. bool HasSubscribedToEvent(const String&);
  4842. bool Load(File);
  4843. bool Load(VectorBuffer&);
  4844. bool Save(File) const;
  4845. bool Save(VectorBuffer&) const;
  4846. bool SaveXML(File, int, bool = false, const String& = "\t");
  4847. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4848. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4849. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4850. // Properties:
  4851. IntVector2 absoluteGlyphOffset;
  4852. /* readonly */
  4853. String category;
  4854. /* readonly */
  4855. uint memoryUse;
  4856. String name;
  4857. /* readonly */
  4858. int refs;
  4859. Vector2 scaledGlyphOffset;
  4860. /* readonly */
  4861. StringHash type;
  4862. /* readonly */
  4863. String typeName;
  4864. /* readonly */
  4865. uint useTimer;
  4866. /* readonly */
  4867. int weakRefs;
  4868. };
  4869. class Frustum
  4870. {
  4871. // Methods:
  4872. void Define(const BoundingBox&, const Matrix3x4&);
  4873. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4874. void Define(float, float, float, float, float, const Matrix3x4&);
  4875. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4876. float Distance(const Vector3&) const;
  4877. Intersection IsInside(const BoundingBox&);
  4878. Intersection IsInside(const Sphere&);
  4879. Intersection IsInside(const Vector3&);
  4880. Intersection IsInsideFast(const BoundingBox&) const;
  4881. Intersection IsInsideFast(const Sphere&) const;
  4882. void Transform(const Matrix3&);
  4883. void Transform(const Matrix3x4&);
  4884. Frustum Transformed(const Matrix3&) const;
  4885. Frustum Transformed(const Matrix3x4&) const;
  4886. // Properties:
  4887. /* readonly */
  4888. Array<Vector3> vertices;
  4889. };
  4890. class Geometry
  4891. {
  4892. // Methods:
  4893. bool HasSubscribedToEvent(Object, const String&);
  4894. bool HasSubscribedToEvent(const String&);
  4895. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4896. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4897. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4898. void SetIndexBuffer(IndexBuffer);
  4899. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4900. // Properties:
  4901. /* readonly */
  4902. String category;
  4903. /* readonly */
  4904. bool empty;
  4905. IndexBuffer indexBuffer;
  4906. /* readonly */
  4907. uint indexCount;
  4908. /* readonly */
  4909. uint indexStart;
  4910. float lodDistance;
  4911. uint numVertexBuffers;
  4912. /* readonly */
  4913. PrimitiveType primitiveType;
  4914. /* readonly */
  4915. int refs;
  4916. /* readonly */
  4917. StringHash type;
  4918. /* readonly */
  4919. String typeName;
  4920. /* readonly */
  4921. Array<VertexBuffer> vertexBuffers;
  4922. /* readonly */
  4923. uint vertexCount;
  4924. /* readonly */
  4925. Array<uint> vertexElementMasks;
  4926. /* readonly */
  4927. uint vertexStart;
  4928. /* readonly */
  4929. int weakRefs;
  4930. };
  4931. class Graphics
  4932. {
  4933. // Methods:
  4934. void BeginDumpShaders(const String&);
  4935. void Close();
  4936. void EndDumpShaders();
  4937. bool HasSubscribedToEvent(Object, const String&);
  4938. bool HasSubscribedToEvent(const String&);
  4939. void Maximize();
  4940. void Minimize();
  4941. void PrecacheShaders(File);
  4942. void PrecacheShaders(VectorBuffer&);
  4943. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4944. bool SetMode(int, int);
  4945. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4946. void SetWindowPosition(int, int);
  4947. bool TakeScreenShot(Image);
  4948. bool ToggleFullscreen();
  4949. // Properties:
  4950. /* readonly */
  4951. String apiName;
  4952. /* readonly */
  4953. bool borderless;
  4954. /* readonly */
  4955. String category;
  4956. /* readonly */
  4957. bool deferredSupport;
  4958. /* readonly */
  4959. IntVector2 desktopResolution;
  4960. /* readonly */
  4961. bool deviceLost;
  4962. bool flushGPU;
  4963. /* readonly */
  4964. bool fullscreen;
  4965. /* readonly */
  4966. bool hardwareShadowSupport;
  4967. /* readonly */
  4968. int height;
  4969. /* readonly */
  4970. bool initialized;
  4971. /* readonly */
  4972. bool instancingSupport;
  4973. /* readonly */
  4974. bool lightPrepassSupport;
  4975. /* readonly */
  4976. int multiSample;
  4977. /* readonly */
  4978. Array<int> multiSampleLevels;
  4979. /* readonly */
  4980. uint numBatches;
  4981. /* readonly */
  4982. uint numPrimitives;
  4983. String orientations;
  4984. /* readonly */
  4985. bool readableDepthSupport;
  4986. /* readonly */
  4987. int refs;
  4988. /* readonly */
  4989. bool resizable;
  4990. /* readonly */
  4991. Array<IntVector2> resolutions;
  4992. bool sRGB;
  4993. /* readonly */
  4994. bool sRGBSupport;
  4995. /* readonly */
  4996. bool sRGBWriteSupport;
  4997. /* readonly */
  4998. bool tripleBuffer;
  4999. /* readonly */
  5000. StringHash type;
  5001. /* readonly */
  5002. String typeName;
  5003. /* readonly */
  5004. bool vsync;
  5005. /* readonly */
  5006. int weakRefs;
  5007. /* readonly */
  5008. int width;
  5009. /* writeonly */
  5010. Image windowIcon;
  5011. IntVector2 windowPosition;
  5012. String windowTitle;
  5013. };
  5014. class HttpRequest
  5015. {
  5016. // Methods:
  5017. Array<uint8> Read(uint);
  5018. bool ReadBool();
  5019. BoundingBox ReadBoundingBox();
  5020. int8 ReadByte();
  5021. Color ReadColor();
  5022. double ReadDouble();
  5023. String ReadFileID();
  5024. float ReadFloat();
  5025. int ReadInt();
  5026. IntRect ReadIntRect();
  5027. IntVector2 ReadIntVector2();
  5028. String ReadLine();
  5029. Matrix3 ReadMatrix3();
  5030. Matrix3x4 ReadMatrix3x4();
  5031. Matrix4 ReadMatrix4();
  5032. uint ReadNetID();
  5033. Quaternion ReadPackedQuaternion();
  5034. Vector3 ReadPackedVector3(float);
  5035. Quaternion ReadQuaternion();
  5036. int16 ReadShort();
  5037. String ReadString();
  5038. StringHash ReadStringHash();
  5039. uint8 ReadUByte();
  5040. uint ReadUInt();
  5041. uint16 ReadUShort();
  5042. uint ReadVLE();
  5043. Variant ReadVariant();
  5044. VariantMap ReadVariantMap();
  5045. Vector2 ReadVector2();
  5046. Vector3 ReadVector3();
  5047. Vector4 ReadVector4();
  5048. VectorBuffer ReadVectorBuffer(uint);
  5049. uint Seek(uint);
  5050. // Properties:
  5051. /* readonly */
  5052. uint availableSize;
  5053. /* readonly */
  5054. uint checksum;
  5055. /* readonly */
  5056. bool eof;
  5057. /* readonly */
  5058. String error;
  5059. /* readonly */
  5060. String name;
  5061. /* readonly */
  5062. bool open;
  5063. /* readonly */
  5064. uint position;
  5065. /* readonly */
  5066. int refs;
  5067. /* readonly */
  5068. uint size;
  5069. /* readonly */
  5070. HttpRequestState state;
  5071. /* readonly */
  5072. String url;
  5073. /* readonly */
  5074. String verb;
  5075. /* readonly */
  5076. int weakRefs;
  5077. };
  5078. class Image
  5079. {
  5080. // Methods:
  5081. void Clear(const Color&);
  5082. void ClearInt(uint);
  5083. bool FlipHorizontal();
  5084. bool FlipVertical();
  5085. Color GetPixel(int, int) const;
  5086. Color GetPixel(int, int, int) const;
  5087. Color GetPixelBilinear(float, float) const;
  5088. uint GetPixelInt(int, int) const;
  5089. uint GetPixelInt(int, int, int) const;
  5090. Color GetPixelTrilinear(float, float, float) const;
  5091. Image GetSubimage(const IntRect&) const;
  5092. bool HasSubscribedToEvent(Object, const String&);
  5093. bool HasSubscribedToEvent(const String&);
  5094. bool Load(File);
  5095. bool Load(VectorBuffer&);
  5096. bool LoadColorLUT(File);
  5097. bool LoadColorLUT(VectorBuffer&);
  5098. bool Resize(int, int);
  5099. bool Save(File) const;
  5100. bool Save(VectorBuffer&) const;
  5101. bool SaveBMP(const String&) const;
  5102. bool SaveJPG(const String&, int) const;
  5103. bool SavePNG(const String&) const;
  5104. bool SaveTGA(const String&) const;
  5105. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5106. void SetPixel(int, int, const Color&);
  5107. void SetPixel(int, int, int, const Color&);
  5108. void SetPixelInt(int, int, int, uint);
  5109. void SetPixelInt(int, int, uint);
  5110. bool SetSize(int, int, int, uint);
  5111. bool SetSize(int, int, uint);
  5112. // Properties:
  5113. /* readonly */
  5114. bool array;
  5115. /* readonly */
  5116. String category;
  5117. /* readonly */
  5118. uint components;
  5119. /* readonly */
  5120. bool compressed;
  5121. /* readonly */
  5122. CompressedFormat compressedFormat;
  5123. /* readonly */
  5124. bool cubemap;
  5125. /* readonly */
  5126. int depth;
  5127. /* readonly */
  5128. int height;
  5129. /* readonly */
  5130. uint memoryUse;
  5131. String name;
  5132. /* readonly */
  5133. uint numCompressedLevels;
  5134. /* readonly */
  5135. int refs;
  5136. /* readonly */
  5137. bool sRGB;
  5138. /* readonly */
  5139. StringHash type;
  5140. /* readonly */
  5141. String typeName;
  5142. /* readonly */
  5143. uint useTimer;
  5144. /* readonly */
  5145. int weakRefs;
  5146. /* readonly */
  5147. int width;
  5148. };
  5149. class IndexBuffer
  5150. {
  5151. // Methods:
  5152. VectorBuffer GetData();
  5153. bool HasSubscribedToEvent(Object, const String&);
  5154. bool HasSubscribedToEvent(const String&);
  5155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5156. bool SetData(VectorBuffer&);
  5157. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5158. void SetSize(uint, bool, bool = false);
  5159. // Properties:
  5160. /* readonly */
  5161. String category;
  5162. /* readonly */
  5163. bool dynamic;
  5164. /* readonly */
  5165. uint indexCount;
  5166. /* readonly */
  5167. uint indexSize;
  5168. /* readonly */
  5169. int refs;
  5170. bool shadowed;
  5171. /* readonly */
  5172. StringHash type;
  5173. /* readonly */
  5174. String typeName;
  5175. /* readonly */
  5176. int weakRefs;
  5177. };
  5178. class Input
  5179. {
  5180. // Methods:
  5181. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5182. int GetKeyFromName(const String&) const;
  5183. int GetKeyFromScancode(int) const;
  5184. String GetKeyName(int) const;
  5185. int GetScancodeFromKey(int) const;
  5186. int GetScancodeFromName(const String&) const;
  5187. String GetScancodeName(int) const;
  5188. bool HasSubscribedToEvent(Object, const String&);
  5189. bool HasSubscribedToEvent(const String&);
  5190. uint LoadGestures(File);
  5191. uint LoadGestures(VectorBuffer&);
  5192. bool RecordGesture();
  5193. void RemoveAllGestures();
  5194. bool RemoveGesture(uint);
  5195. bool RemoveScreenJoystick(int);
  5196. void ResetMouseVisible();
  5197. bool SaveGesture(File, uint);
  5198. bool SaveGesture(VectorBuffer&, uint);
  5199. bool SaveGestures(File);
  5200. bool SaveGestures(VectorBuffer&);
  5201. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5202. void SetMouseVisible(bool, bool = false);
  5203. // Properties:
  5204. /* readonly */
  5205. String category;
  5206. /* readonly */
  5207. bool focus;
  5208. /* readonly */
  5209. Array<JoystickState> joysticks;
  5210. /* readonly */
  5211. Array<JoystickState> joysticksByIndex;
  5212. /* readonly */
  5213. Array<bool> keyDown;
  5214. /* readonly */
  5215. Array<bool> keyPress;
  5216. /* readonly */
  5217. bool minimized;
  5218. /* readonly */
  5219. Array<bool> mouseButtonDown;
  5220. /* readonly */
  5221. Array<bool> mouseButtonPress;
  5222. bool mouseGrabbed;
  5223. MouseMode mouseMode;
  5224. /* readonly */
  5225. IntVector2 mouseMove;
  5226. /* readonly */
  5227. int mouseMoveWheel;
  5228. /* readonly */
  5229. int mouseMoveX;
  5230. /* readonly */
  5231. int mouseMoveY;
  5232. /* readonly */
  5233. IntVector2 mousePosition;
  5234. bool mouseVisible;
  5235. /* readonly */
  5236. uint numJoysticks;
  5237. /* readonly */
  5238. uint numTouches;
  5239. /* readonly */
  5240. Array<bool> qualifierDown;
  5241. /* readonly */
  5242. Array<bool> qualifierPress;
  5243. /* readonly */
  5244. int qualifiers;
  5245. /* readonly */
  5246. int refs;
  5247. /* readonly */
  5248. Array<bool> scancodeDown;
  5249. /* readonly */
  5250. Array<bool> scancodePress;
  5251. Array<bool> screenJoystickVisible;
  5252. /* readonly */
  5253. bool screenKeyboardSupport;
  5254. bool screenKeyboardVisible;
  5255. bool toggleFullscreen;
  5256. bool touchEmulation;
  5257. /* readonly */
  5258. Array<TouchState> touches;
  5259. /* readonly */
  5260. StringHash type;
  5261. /* readonly */
  5262. String typeName;
  5263. /* readonly */
  5264. int weakRefs;
  5265. };
  5266. class IntRect
  5267. {
  5268. // Methods:
  5269. Intersection IsInside(const IntVector2&) const;
  5270. // Properties:
  5271. int bottom;
  5272. /* readonly */
  5273. Array<int> data;
  5274. /* readonly */
  5275. int height;
  5276. int left;
  5277. int right;
  5278. /* readonly */
  5279. IntVector2 size;
  5280. int top;
  5281. /* readonly */
  5282. int width;
  5283. };
  5284. class IntVector2
  5285. {
  5286. // Methods:
  5287. String ToString() const;
  5288. // Properties:
  5289. /* readonly */
  5290. Array<int> data;
  5291. int x;
  5292. int y;
  5293. };
  5294. class JSONFile
  5295. {
  5296. // Methods:
  5297. JSONValue& GetRoot();
  5298. bool HasSubscribedToEvent(Object, const String&);
  5299. bool HasSubscribedToEvent(const String&);
  5300. bool Load(File);
  5301. bool Load(VectorBuffer&);
  5302. bool Save(File) const;
  5303. bool Save(File, const String&) const;
  5304. bool Save(VectorBuffer&) const;
  5305. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5306. // Properties:
  5307. /* readonly */
  5308. String category;
  5309. /* readonly */
  5310. uint memoryUse;
  5311. String name;
  5312. /* readonly */
  5313. int refs;
  5314. /* readonly */
  5315. JSONValue root;
  5316. /* readonly */
  5317. StringHash type;
  5318. /* readonly */
  5319. String typeName;
  5320. /* readonly */
  5321. uint useTimer;
  5322. /* readonly */
  5323. int weakRefs;
  5324. };
  5325. class JSONValue
  5326. {
  5327. // Methods:
  5328. void Clear();
  5329. bool Contains(const String&) const;
  5330. void Erase(const String&);
  5331. void Erase(uint, uint = 1);
  5332. bool GetBool() const;
  5333. double GetDouble() const;
  5334. float GetFloat() const;
  5335. int GetInt() const;
  5336. uint GetUInt() const;
  5337. void Insert(uint, const JSONValue&);
  5338. const JSONValue& Get(const String&) const;
  5339. void Pop();
  5340. void Push(const JSONValue&);
  5341. void Resize(uint);
  5342. void Set(const String&, const JSONValue&);
  5343. const String& GetString() const;
  5344. // Properties:
  5345. /* readonly */
  5346. bool isArray;
  5347. /* readonly */
  5348. bool isBool;
  5349. /* readonly */
  5350. bool isNull;
  5351. /* readonly */
  5352. bool isNumber;
  5353. /* readonly */
  5354. bool isObject;
  5355. /* readonly */
  5356. bool isString;
  5357. /* readonly */
  5358. uint size;
  5359. /* readonly */
  5360. JSONValueType valueType;
  5361. };
  5362. class JoystickState
  5363. {
  5364. // Properties:
  5365. /* readonly */
  5366. Array<float> axisPosition;
  5367. /* readonly */
  5368. Array<bool> buttonDown;
  5369. /* readonly */
  5370. Array<bool> buttonPress;
  5371. /* readonly */
  5372. bool controller;
  5373. /* readonly */
  5374. Array<int> hatPosition;
  5375. int joystickID;
  5376. String name;
  5377. /* readonly */
  5378. uint numAxes;
  5379. /* readonly */
  5380. uint numButtons;
  5381. /* readonly */
  5382. uint numHats;
  5383. };
  5384. class Light
  5385. {
  5386. // Methods:
  5387. void ApplyAttributes();
  5388. void DrawDebugGeometry(DebugRenderer, bool);
  5389. Variant GetAttribute(const String&) const;
  5390. ValueAnimation GetAttributeAnimation(const String&) const;
  5391. float GetAttributeAnimationSpeed(const String&) const;
  5392. float GetAttributeAnimationTime(const String&) const;
  5393. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5394. Variant GetAttributeDefault(const String&) const;
  5395. bool GetInterceptNetworkUpdate(const String&) const;
  5396. bool HasSubscribedToEvent(Object, const String&);
  5397. bool HasSubscribedToEvent(const String&);
  5398. bool IsInView(Camera) const;
  5399. bool Load(File, bool = false);
  5400. bool Load(VectorBuffer&, bool = false);
  5401. bool LoadJSON(const JSONValue&, bool = false);
  5402. bool LoadXML(const XMLElement&, bool = false);
  5403. void MarkNetworkUpdate() const;
  5404. void Remove();
  5405. void RemoveAttributeAnimation(const String&);
  5406. void RemoveInstanceDefault();
  5407. void RemoveObjectAnimation();
  5408. void ResetToDefault();
  5409. bool Save(File) const;
  5410. bool Save(VectorBuffer&) const;
  5411. bool SaveJSON(JSONValue&) const;
  5412. bool SaveXML(XMLElement&) const;
  5413. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5414. void SetAnimationTime(float);
  5415. bool SetAttribute(const String&, const Variant&);
  5416. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5417. void SetAttributeAnimationSpeed(const String&, float);
  5418. void SetAttributeAnimationTime(const String&, float);
  5419. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5420. void SetInterceptNetworkUpdate(const String&, bool);
  5421. // Properties:
  5422. bool animationEnabled;
  5423. float aspectRatio;
  5424. /* readonly */
  5425. Array<Variant> attributeDefaults;
  5426. /* readonly */
  5427. Array<AttributeInfo> attributeInfos;
  5428. Array<Variant> attributes;
  5429. /* readonly */
  5430. BoundingBox boundingBox;
  5431. float brightness;
  5432. bool castShadows;
  5433. /* readonly */
  5434. String category;
  5435. Color color;
  5436. float drawDistance;
  5437. /* readonly */
  5438. Color effectiveColor;
  5439. /* readonly */
  5440. float effectiveSpecularIntensity;
  5441. bool enabled;
  5442. /* readonly */
  5443. bool enabledEffective;
  5444. float fadeDistance;
  5445. float fov;
  5446. /* readonly */
  5447. Frustum frustum;
  5448. /* readonly */
  5449. uint id;
  5450. /* readonly */
  5451. bool inView;
  5452. uint lightMask;
  5453. LightType lightType;
  5454. float lodBias;
  5455. uint maxLights;
  5456. /* readonly */
  5457. bool negative;
  5458. /* readonly */
  5459. Node node;
  5460. /* readonly */
  5461. uint numAttributes;
  5462. /* readonly */
  5463. int numShadowSplits;
  5464. ObjectAnimation objectAnimation;
  5465. bool occludee;
  5466. bool occluder;
  5467. bool perVertex;
  5468. Texture rampTexture;
  5469. float range;
  5470. /* readonly */
  5471. int refs;
  5472. BiasParameters shadowBias;
  5473. CascadeParameters shadowCascade;
  5474. float shadowDistance;
  5475. float shadowFadeDistance;
  5476. FocusParameters shadowFocus;
  5477. float shadowIntensity;
  5478. uint shadowMask;
  5479. float shadowNearFarRatio;
  5480. float shadowResolution;
  5481. Texture shapeTexture;
  5482. float specularIntensity;
  5483. bool temporary;
  5484. /* readonly */
  5485. StringHash type;
  5486. /* readonly */
  5487. String typeName;
  5488. uint viewMask;
  5489. /* readonly */
  5490. int weakRefs;
  5491. /* readonly */
  5492. BoundingBox worldBoundingBox;
  5493. uint zoneMask;
  5494. };
  5495. class LineEdit
  5496. {
  5497. // Methods:
  5498. void AddChild(UIElement);
  5499. void AddTag(const String&);
  5500. void AddTags(const String&, int8 = ';');
  5501. void ApplyAttributes();
  5502. void BringToFront();
  5503. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5504. void DisableLayoutUpdate();
  5505. IntVector2 ElementToScreen(const IntVector2&);
  5506. void EnableLayoutUpdate();
  5507. uint FindChild(UIElement) const;
  5508. Variant GetAttribute(const String&) const;
  5509. ValueAnimation GetAttributeAnimation(const String&) const;
  5510. float GetAttributeAnimationSpeed(const String&) const;
  5511. float GetAttributeAnimationTime(const String&) const;
  5512. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5513. Variant GetAttributeDefault(const String&) const;
  5514. UIElement GetChild(const String&, bool = false) const;
  5515. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5516. Array<UIElement> GetChildren(bool = false) const;
  5517. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5518. UIElement GetElementEventSender() const;
  5519. bool GetInterceptNetworkUpdate(const String&) const;
  5520. uint GetNumChildren(bool) const;
  5521. bool HasSubscribedToEvent(Object, const String&);
  5522. bool HasSubscribedToEvent(const String&);
  5523. bool HasTag(const String&) const;
  5524. void InsertChild(uint, UIElement);
  5525. bool IsInside(IntVector2, bool);
  5526. bool IsInsideCombined(IntVector2, bool);
  5527. bool Load(File, bool = false);
  5528. bool Load(VectorBuffer&, bool = false);
  5529. bool LoadChildXML(XMLFile, XMLFile = null);
  5530. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5531. bool LoadJSON(const JSONValue&, bool = false);
  5532. bool LoadXML(File);
  5533. bool LoadXML(VectorBuffer&);
  5534. bool LoadXML(XMLFile, XMLFile);
  5535. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5536. bool LoadXML(const XMLElement&, bool = false);
  5537. void MarkNetworkUpdate() const;
  5538. void Remove();
  5539. void RemoveAllChildren();
  5540. void RemoveAllTags();
  5541. void RemoveAttributeAnimation(const String&);
  5542. void RemoveChild(UIElement, uint = 0);
  5543. void RemoveChild(uint);
  5544. void RemoveInstanceDefault();
  5545. void RemoveObjectAnimation();
  5546. bool RemoveTag(const String&);
  5547. void ResetDeepEnabled();
  5548. void ResetToDefault();
  5549. bool Save(File) const;
  5550. bool Save(VectorBuffer&) const;
  5551. bool SaveJSON(JSONValue&) const;
  5552. bool SaveXML(File, const String& = "\t");
  5553. bool SaveXML(VectorBuffer&, const String& = "\t");
  5554. bool SaveXML(XMLElement&) const;
  5555. IntVector2 ScreenToElement(const IntVector2&);
  5556. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5557. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5558. void SetAnimationTime(float);
  5559. bool SetAttribute(const String&, const Variant&);
  5560. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5561. void SetAttributeAnimationSpeed(const String&, float);
  5562. void SetAttributeAnimationTime(const String&, float);
  5563. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5564. void SetDeepEnabled(bool);
  5565. void SetEnabledRecursive(bool);
  5566. void SetFixedHeight(int);
  5567. void SetFixedSize(int, int);
  5568. void SetFixedWidth(int);
  5569. void SetFullImageRect();
  5570. void SetHoverOffset(int, int);
  5571. void SetInterceptNetworkUpdate(const String&, bool);
  5572. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5573. void SetMaxSize(int, int);
  5574. void SetMinSize(int, int);
  5575. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5576. void SetPosition(int, int);
  5577. void SetSize(int, int);
  5578. bool SetStyle(const String&, XMLFile = null);
  5579. bool SetStyle(const XMLElement&);
  5580. bool SetStyleAuto(XMLFile = null);
  5581. void UpdateLayout();
  5582. const Variant& GetVar(const StringHash&);
  5583. // Properties:
  5584. bool animationEnabled;
  5585. /* readonly */
  5586. Array<Variant> attributeDefaults;
  5587. /* readonly */
  5588. Array<AttributeInfo> attributeInfos;
  5589. Array<Variant> attributes;
  5590. BlendMode blendMode;
  5591. IntRect border;
  5592. bool bringToBack;
  5593. bool bringToFront;
  5594. /* readonly */
  5595. String category;
  5596. /* readonly */
  5597. IntVector2 childOffset;
  5598. /* readonly */
  5599. Array<UIElement> children;
  5600. IntRect clipBorder;
  5601. bool clipChildren;
  5602. /* writeonly */
  5603. Color color;
  5604. /* readonly */
  5605. bool colorGradient;
  5606. Array<Color> colors;
  5607. /* readonly */
  5608. IntRect combinedScreenRect;
  5609. /* readonly */
  5610. BorderImage cursor;
  5611. float cursorBlinkRate;
  5612. bool cursorMovable;
  5613. uint cursorPosition;
  5614. XMLFile defaultStyle;
  5615. /* readonly */
  5616. float derivedOpacity;
  5617. /* readonly */
  5618. uint dragButtonCombo;
  5619. /* readonly */
  5620. int dragButtonCount;
  5621. uint dragDropMode;
  5622. uint echoCharacter;
  5623. bool editable;
  5624. bool elementEventSender;
  5625. bool enabled;
  5626. /* readonly */
  5627. bool enabledSelf;
  5628. /* readonly */
  5629. bool fixedHeight;
  5630. /* readonly */
  5631. bool fixedSize;
  5632. /* readonly */
  5633. bool fixedWidth;
  5634. bool focus;
  5635. FocusMode focusMode;
  5636. int height;
  5637. HorizontalAlignment horizontalAlignment;
  5638. IntVector2 hoverOffset;
  5639. /* readonly */
  5640. bool hovering;
  5641. IntRect imageBorder;
  5642. IntRect imageRect;
  5643. int indent;
  5644. int indentSpacing;
  5645. /* readonly */
  5646. int indentWidth;
  5647. bool internal;
  5648. IntRect layoutBorder;
  5649. Vector2 layoutFlexScale;
  5650. LayoutMode layoutMode;
  5651. int layoutSpacing;
  5652. int maxHeight;
  5653. uint maxLength;
  5654. IntVector2 maxSize;
  5655. int maxWidth;
  5656. int minHeight;
  5657. IntVector2 minSize;
  5658. int minWidth;
  5659. String name;
  5660. /* readonly */
  5661. uint numAllChildren;
  5662. /* readonly */
  5663. uint numAttributes;
  5664. /* readonly */
  5665. uint numChildren;
  5666. ObjectAnimation objectAnimation;
  5667. float opacity;
  5668. UIElement parent;
  5669. IntVector2 position;
  5670. int priority;
  5671. /* readonly */
  5672. int refs;
  5673. /* readonly */
  5674. UIElement root;
  5675. /* readonly */
  5676. IntVector2 screenPosition;
  5677. bool selected;
  5678. IntVector2 size;
  5679. bool sortChildren;
  5680. String style;
  5681. /* readonly */
  5682. Array<String> tags;
  5683. bool temporary;
  5684. String text;
  5685. bool textCopyable;
  5686. /* readonly */
  5687. Text textElement;
  5688. bool textSelectable;
  5689. Texture texture;
  5690. bool tiled;
  5691. TraversalMode traversalMode;
  5692. /* readonly */
  5693. StringHash type;
  5694. /* readonly */
  5695. String typeName;
  5696. bool useDerivedOpacity;
  5697. /* readonly */
  5698. VariantMap vars;
  5699. VerticalAlignment verticalAlignment;
  5700. bool visible;
  5701. /* readonly */
  5702. bool visibleEffective;
  5703. /* readonly */
  5704. int weakRefs;
  5705. int width;
  5706. };
  5707. class ListView
  5708. {
  5709. // Methods:
  5710. void AddChild(UIElement);
  5711. void AddItem(UIElement);
  5712. void AddSelection(uint);
  5713. void AddTag(const String&);
  5714. void AddTags(const String&, int8 = ';');
  5715. void ApplyAttributes();
  5716. void BringToFront();
  5717. void ChangeSelection(int, bool);
  5718. void ClearSelection();
  5719. void CopySelectedItemsToClipboard();
  5720. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5721. void DisableLayoutUpdate();
  5722. IntVector2 ElementToScreen(const IntVector2&);
  5723. void EnableLayoutUpdate();
  5724. void Expand(uint, bool, bool = false);
  5725. uint FindChild(UIElement) const;
  5726. uint FindItem(UIElement);
  5727. Variant GetAttribute(const String&) const;
  5728. ValueAnimation GetAttributeAnimation(const String&) const;
  5729. float GetAttributeAnimationSpeed(const String&) const;
  5730. float GetAttributeAnimationTime(const String&) const;
  5731. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5732. Variant GetAttributeDefault(const String&) const;
  5733. UIElement GetChild(const String&, bool = false) const;
  5734. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5735. Array<UIElement> GetChildren(bool = false) const;
  5736. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5737. UIElement GetElementEventSender() const;
  5738. bool GetInterceptNetworkUpdate(const String&) const;
  5739. Array<UIElement> GetItems() const;
  5740. uint GetNumChildren(bool) const;
  5741. bool HasSubscribedToEvent(Object, const String&);
  5742. bool HasSubscribedToEvent(const String&);
  5743. bool HasTag(const String&) const;
  5744. void InsertChild(uint, UIElement);
  5745. void InsertItem(uint, UIElement, UIElement = null);
  5746. bool IsExpanded(uint) const;
  5747. bool IsInside(IntVector2, bool);
  5748. bool IsInsideCombined(IntVector2, bool);
  5749. bool IsSelected(uint) const;
  5750. bool Load(File, bool = false);
  5751. bool Load(VectorBuffer&, bool = false);
  5752. bool LoadChildXML(XMLFile, XMLFile = null);
  5753. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5754. bool LoadJSON(const JSONValue&, bool = false);
  5755. bool LoadXML(File);
  5756. bool LoadXML(VectorBuffer&);
  5757. bool LoadXML(XMLFile, XMLFile);
  5758. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5759. bool LoadXML(const XMLElement&, bool = false);
  5760. void MarkNetworkUpdate() const;
  5761. void Remove();
  5762. void RemoveAllChildren();
  5763. void RemoveAllItems();
  5764. void RemoveAllTags();
  5765. void RemoveAttributeAnimation(const String&);
  5766. void RemoveChild(UIElement, uint = 0);
  5767. void RemoveChild(uint);
  5768. void RemoveInstanceDefault();
  5769. void RemoveItem(UIElement, uint = 0);
  5770. void RemoveItem(uint);
  5771. void RemoveObjectAnimation();
  5772. void RemoveSelection(uint);
  5773. bool RemoveTag(const String&);
  5774. void ResetDeepEnabled();
  5775. void ResetToDefault();
  5776. bool Save(File) const;
  5777. bool Save(VectorBuffer&) const;
  5778. bool SaveJSON(JSONValue&) const;
  5779. bool SaveXML(File, const String& = "\t");
  5780. bool SaveXML(VectorBuffer&, const String& = "\t");
  5781. bool SaveXML(XMLElement&) const;
  5782. IntVector2 ScreenToElement(const IntVector2&);
  5783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5784. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5785. void SetAnimationTime(float);
  5786. bool SetAttribute(const String&, const Variant&);
  5787. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5788. void SetAttributeAnimationSpeed(const String&, float);
  5789. void SetAttributeAnimationTime(const String&, float);
  5790. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5791. void SetDeepEnabled(bool);
  5792. void SetEnabledRecursive(bool);
  5793. void SetFixedHeight(int);
  5794. void SetFixedSize(int, int);
  5795. void SetFixedWidth(int);
  5796. void SetInterceptNetworkUpdate(const String&, bool);
  5797. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5798. void SetMaxSize(int, int);
  5799. void SetMinSize(int, int);
  5800. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5801. void SetPosition(int, int);
  5802. void SetScrollBarsVisible(bool, bool);
  5803. void SetSelections(Array<uint>);
  5804. void SetSize(int, int);
  5805. bool SetStyle(const String&, XMLFile = null);
  5806. bool SetStyle(const XMLElement&);
  5807. bool SetStyleAuto(XMLFile = null);
  5808. void SetViewPosition(int, int);
  5809. void ToggleExpand(uint, bool = false);
  5810. void ToggleSelection(uint);
  5811. void UpdateLayout();
  5812. const Variant& GetVar(const StringHash&);
  5813. // Properties:
  5814. bool animationEnabled;
  5815. /* readonly */
  5816. Array<Variant> attributeDefaults;
  5817. /* readonly */
  5818. Array<AttributeInfo> attributeInfos;
  5819. Array<Variant> attributes;
  5820. bool autoDisableChildren;
  5821. float autoDisableThreshold;
  5822. int baseIndent;
  5823. bool bringToBack;
  5824. bool bringToFront;
  5825. /* readonly */
  5826. String category;
  5827. /* readonly */
  5828. IntVector2 childOffset;
  5829. /* readonly */
  5830. Array<UIElement> children;
  5831. bool clearSelectionOnDefocus;
  5832. IntRect clipBorder;
  5833. bool clipChildren;
  5834. /* writeonly */
  5835. Color color;
  5836. /* readonly */
  5837. bool colorGradient;
  5838. Array<Color> colors;
  5839. /* readonly */
  5840. IntRect combinedScreenRect;
  5841. /* readonly */
  5842. UIElement contentElement;
  5843. XMLFile defaultStyle;
  5844. /* readonly */
  5845. float derivedOpacity;
  5846. /* readonly */
  5847. uint dragButtonCombo;
  5848. /* readonly */
  5849. int dragButtonCount;
  5850. uint dragDropMode;
  5851. bool editable;
  5852. bool elementEventSender;
  5853. bool enabled;
  5854. /* readonly */
  5855. bool enabledSelf;
  5856. /* readonly */
  5857. bool fixedHeight;
  5858. /* readonly */
  5859. bool fixedSize;
  5860. /* readonly */
  5861. bool fixedWidth;
  5862. bool focus;
  5863. FocusMode focusMode;
  5864. int height;
  5865. bool hierarchyMode;
  5866. HighlightMode highlightMode;
  5867. HorizontalAlignment horizontalAlignment;
  5868. /* readonly */
  5869. ScrollBar horizontalScrollBar;
  5870. /* readonly */
  5871. bool hovering;
  5872. int indent;
  5873. int indentSpacing;
  5874. /* readonly */
  5875. int indentWidth;
  5876. bool internal;
  5877. /* readonly */
  5878. Array<UIElement> items;
  5879. IntRect layoutBorder;
  5880. Vector2 layoutFlexScale;
  5881. LayoutMode layoutMode;
  5882. int layoutSpacing;
  5883. int maxHeight;
  5884. IntVector2 maxSize;
  5885. int maxWidth;
  5886. int minHeight;
  5887. IntVector2 minSize;
  5888. int minWidth;
  5889. bool multiselect;
  5890. String name;
  5891. /* readonly */
  5892. uint numAllChildren;
  5893. /* readonly */
  5894. uint numAttributes;
  5895. /* readonly */
  5896. uint numChildren;
  5897. /* readonly */
  5898. uint numItems;
  5899. ObjectAnimation objectAnimation;
  5900. float opacity;
  5901. float pageStep;
  5902. UIElement parent;
  5903. IntVector2 position;
  5904. int priority;
  5905. /* readonly */
  5906. int refs;
  5907. /* readonly */
  5908. UIElement root;
  5909. /* readonly */
  5910. IntVector2 screenPosition;
  5911. bool scrollBarsAutoVisible;
  5912. float scrollDeceleration;
  5913. /* readonly */
  5914. BorderImage scrollPanel;
  5915. float scrollSnapEpsilon;
  5916. float scrollStep;
  5917. bool selectOnClickEnd;
  5918. bool selected;
  5919. /* readonly */
  5920. UIElement selectedItem;
  5921. /* readonly */
  5922. Array<UIElement> selectedItems;
  5923. uint selection;
  5924. /* readonly */
  5925. Array<uint> selections;
  5926. IntVector2 size;
  5927. bool sortChildren;
  5928. String style;
  5929. /* readonly */
  5930. Array<String> tags;
  5931. bool temporary;
  5932. TraversalMode traversalMode;
  5933. /* readonly */
  5934. StringHash type;
  5935. /* readonly */
  5936. String typeName;
  5937. bool useDerivedOpacity;
  5938. /* readonly */
  5939. VariantMap vars;
  5940. VerticalAlignment verticalAlignment;
  5941. /* readonly */
  5942. ScrollBar verticalScrollBar;
  5943. IntVector2 viewPosition;
  5944. bool visible;
  5945. /* readonly */
  5946. bool visibleEffective;
  5947. /* readonly */
  5948. int weakRefs;
  5949. int width;
  5950. };
  5951. class Localization
  5952. {
  5953. // Methods:
  5954. String Get(const String&);
  5955. String GetLanguage(int);
  5956. int GetLanguageIndex(const String&);
  5957. bool HasSubscribedToEvent(Object, const String&);
  5958. bool HasSubscribedToEvent(const String&);
  5959. void LoadJSON(const JSONValue&);
  5960. void LoadJSONFile(const String&);
  5961. void Reset();
  5962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5963. void SetLanguage(const String&);
  5964. void SetLanguage(int);
  5965. // Properties:
  5966. /* readonly */
  5967. String category;
  5968. /* readonly */
  5969. String language;
  5970. /* readonly */
  5971. int languageIndex;
  5972. /* readonly */
  5973. int numLanguages;
  5974. /* readonly */
  5975. int refs;
  5976. /* readonly */
  5977. StringHash type;
  5978. /* readonly */
  5979. String typeName;
  5980. /* readonly */
  5981. int weakRefs;
  5982. };
  5983. class Log
  5984. {
  5985. // Methods:
  5986. void Close();
  5987. void Debug(const String&);
  5988. void Error(const String&);
  5989. bool HasSubscribedToEvent(Object, const String&);
  5990. bool HasSubscribedToEvent(const String&);
  5991. void Info(const String&);
  5992. void Open(const String&);
  5993. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5994. void Warning(const String&);
  5995. void Write(const String&, bool = false);
  5996. // Properties:
  5997. /* readonly */
  5998. String category;
  5999. /* readonly */
  6000. String lastMessage;
  6001. int level;
  6002. bool quiet;
  6003. /* readonly */
  6004. int refs;
  6005. bool timeStamp;
  6006. /* readonly */
  6007. StringHash type;
  6008. /* readonly */
  6009. String typeName;
  6010. /* readonly */
  6011. int weakRefs;
  6012. };
  6013. class Material
  6014. {
  6015. // Methods:
  6016. Material Clone(const String& = String ( )) const;
  6017. Pass GetPass(uint, const String&);
  6018. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6019. float GetShaderParameterAnimationSpeed(const String&) const;
  6020. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6021. bool HasSubscribedToEvent(Object, const String&);
  6022. bool HasSubscribedToEvent(const String&);
  6023. bool Load(File);
  6024. bool Load(VectorBuffer&);
  6025. bool Load(const JSONValue&);
  6026. bool Load(const XMLElement&);
  6027. void RemoveShaderParameter(const String&);
  6028. bool Save(File) const;
  6029. bool Save(JSONValue&) const;
  6030. bool Save(VectorBuffer&) const;
  6031. bool Save(XMLElement&) const;
  6032. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6033. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6034. void SetShaderParameterAnimationSpeed(const String&, float);
  6035. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6036. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6037. void SetUVTransform(const Vector2&, float, const Vector2&);
  6038. void SetUVTransform(const Vector2&, float, float);
  6039. void SortTechniques();
  6040. // Properties:
  6041. /* readonly */
  6042. String category;
  6043. CullMode cullMode;
  6044. BiasParameters depthBias;
  6045. FillMode fillMode;
  6046. /* readonly */
  6047. uint memoryUse;
  6048. String name;
  6049. uint numTechniques;
  6050. /* readonly */
  6051. bool occlusion;
  6052. /* readonly */
  6053. int refs;
  6054. uint8 renderOrder;
  6055. Scene scene;
  6056. /* readonly */
  6057. Array<String> shaderParameterNames;
  6058. Array<Variant> shaderParameters;
  6059. CullMode shadowCullMode;
  6060. /* readonly */
  6061. Array<TechniqueEntry> techniqueEntries;
  6062. /* readonly */
  6063. Array<Technique> techniques;
  6064. Array<Texture> textures;
  6065. /* readonly */
  6066. StringHash type;
  6067. /* readonly */
  6068. String typeName;
  6069. /* readonly */
  6070. uint useTimer;
  6071. /* readonly */
  6072. int weakRefs;
  6073. };
  6074. class Matrix3
  6075. {
  6076. // Methods:
  6077. bool Equals(const Matrix3&) const;
  6078. Matrix3 Inverse() const;
  6079. Vector3 Scale() const;
  6080. Matrix3 Scaled(const Vector3&) const;
  6081. void SetScale(const Vector3&);
  6082. void SetScale(float);
  6083. String ToString() const;
  6084. Matrix3 Transpose() const;
  6085. // Properties:
  6086. float m00;
  6087. float m01;
  6088. float m02;
  6089. float m10;
  6090. float m11;
  6091. float m12;
  6092. float m20;
  6093. float m21;
  6094. float m22;
  6095. };
  6096. class Matrix3x4
  6097. {
  6098. // Methods:
  6099. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6100. bool Equals(const Matrix3x4&) const;
  6101. Matrix3x4 Inverse() const;
  6102. Quaternion Rotation() const;
  6103. Matrix3 RotationMatrix() const;
  6104. Vector3 Scale() const;
  6105. void SetRotation(const Matrix3&);
  6106. void SetScale(const Vector3&);
  6107. void SetScale(float);
  6108. void SetTranslation(const Vector3&);
  6109. Matrix3 ToMatrix3() const;
  6110. Matrix4 ToMatrix4() const;
  6111. String ToString() const;
  6112. Vector3 Translation() const;
  6113. // Properties:
  6114. float m00;
  6115. float m01;
  6116. float m02;
  6117. float m03;
  6118. float m10;
  6119. float m11;
  6120. float m12;
  6121. float m13;
  6122. float m20;
  6123. float m21;
  6124. float m22;
  6125. float m23;
  6126. };
  6127. class Matrix4
  6128. {
  6129. // Methods:
  6130. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6131. bool Equals(const Matrix4&) const;
  6132. Matrix4 Inverse() const;
  6133. Quaternion Rotation() const;
  6134. Matrix3 RotationMatrix() const;
  6135. Vector3 Scale() const;
  6136. void SetRotation(const Matrix3&);
  6137. void SetScale(const Vector3&);
  6138. void SetScale(float);
  6139. void SetTranslation(const Vector3&);
  6140. Matrix3 ToMatrix3() const;
  6141. String ToString() const;
  6142. Vector3 Translation() const;
  6143. Matrix4 Transpose() const;
  6144. // Properties:
  6145. float m00;
  6146. float m01;
  6147. float m02;
  6148. float m03;
  6149. float m10;
  6150. float m11;
  6151. float m12;
  6152. float m13;
  6153. float m20;
  6154. float m21;
  6155. float m22;
  6156. float m23;
  6157. float m30;
  6158. float m31;
  6159. float m32;
  6160. float m33;
  6161. };
  6162. class Menu
  6163. {
  6164. // Methods:
  6165. void AddChild(UIElement);
  6166. void AddTag(const String&);
  6167. void AddTags(const String&, int8 = ';');
  6168. void ApplyAttributes();
  6169. void BringToFront();
  6170. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6171. void DisableLayoutUpdate();
  6172. IntVector2 ElementToScreen(const IntVector2&);
  6173. void EnableLayoutUpdate();
  6174. uint FindChild(UIElement) const;
  6175. Variant GetAttribute(const String&) const;
  6176. ValueAnimation GetAttributeAnimation(const String&) const;
  6177. float GetAttributeAnimationSpeed(const String&) const;
  6178. float GetAttributeAnimationTime(const String&) const;
  6179. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6180. Variant GetAttributeDefault(const String&) const;
  6181. UIElement GetChild(const String&, bool = false) const;
  6182. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6183. Array<UIElement> GetChildren(bool = false) const;
  6184. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6185. UIElement GetElementEventSender() const;
  6186. bool GetInterceptNetworkUpdate(const String&) const;
  6187. uint GetNumChildren(bool) const;
  6188. bool HasSubscribedToEvent(Object, const String&);
  6189. bool HasSubscribedToEvent(const String&);
  6190. bool HasTag(const String&) const;
  6191. void InsertChild(uint, UIElement);
  6192. bool IsInside(IntVector2, bool);
  6193. bool IsInsideCombined(IntVector2, bool);
  6194. bool Load(File, bool = false);
  6195. bool Load(VectorBuffer&, bool = false);
  6196. bool LoadChildXML(XMLFile, XMLFile = null);
  6197. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6198. bool LoadJSON(const JSONValue&, bool = false);
  6199. bool LoadXML(File);
  6200. bool LoadXML(VectorBuffer&);
  6201. bool LoadXML(XMLFile, XMLFile);
  6202. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6203. bool LoadXML(const XMLElement&, bool = false);
  6204. void MarkNetworkUpdate() const;
  6205. void Remove();
  6206. void RemoveAllChildren();
  6207. void RemoveAllTags();
  6208. void RemoveAttributeAnimation(const String&);
  6209. void RemoveChild(UIElement, uint = 0);
  6210. void RemoveChild(uint);
  6211. void RemoveInstanceDefault();
  6212. void RemoveObjectAnimation();
  6213. bool RemoveTag(const String&);
  6214. void ResetDeepEnabled();
  6215. void ResetToDefault();
  6216. bool Save(File) const;
  6217. bool Save(VectorBuffer&) const;
  6218. bool SaveJSON(JSONValue&) const;
  6219. bool SaveXML(File, const String& = "\t");
  6220. bool SaveXML(VectorBuffer&, const String& = "\t");
  6221. bool SaveXML(XMLElement&) const;
  6222. IntVector2 ScreenToElement(const IntVector2&);
  6223. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6224. void SetAccelerator(int, int);
  6225. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6226. void SetAnimationTime(float);
  6227. bool SetAttribute(const String&, const Variant&);
  6228. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6229. void SetAttributeAnimationSpeed(const String&, float);
  6230. void SetAttributeAnimationTime(const String&, float);
  6231. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6232. void SetDeepEnabled(bool);
  6233. void SetEnabledRecursive(bool);
  6234. void SetFixedHeight(int);
  6235. void SetFixedSize(int, int);
  6236. void SetFixedWidth(int);
  6237. void SetFullImageRect();
  6238. void SetHoverOffset(int, int);
  6239. void SetInterceptNetworkUpdate(const String&, bool);
  6240. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6241. void SetMaxSize(int, int);
  6242. void SetMinSize(int, int);
  6243. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6244. void SetPopupOffset(int, int);
  6245. void SetPosition(int, int);
  6246. void SetPressedChildOffset(int, int);
  6247. void SetPressedOffset(int, int);
  6248. void SetRepeat(float, float);
  6249. void SetSize(int, int);
  6250. bool SetStyle(const String&, XMLFile = null);
  6251. bool SetStyle(const XMLElement&);
  6252. bool SetStyleAuto(XMLFile = null);
  6253. void UpdateLayout();
  6254. const Variant& GetVar(const StringHash&);
  6255. // Properties:
  6256. /* readonly */
  6257. int acceleratorKey;
  6258. /* readonly */
  6259. int acceleratorQualifiers;
  6260. bool animationEnabled;
  6261. /* readonly */
  6262. Array<Variant> attributeDefaults;
  6263. /* readonly */
  6264. Array<AttributeInfo> attributeInfos;
  6265. Array<Variant> attributes;
  6266. BlendMode blendMode;
  6267. IntRect border;
  6268. bool bringToBack;
  6269. bool bringToFront;
  6270. /* readonly */
  6271. String category;
  6272. /* readonly */
  6273. IntVector2 childOffset;
  6274. /* readonly */
  6275. Array<UIElement> children;
  6276. IntRect clipBorder;
  6277. bool clipChildren;
  6278. /* writeonly */
  6279. Color color;
  6280. /* readonly */
  6281. bool colorGradient;
  6282. Array<Color> colors;
  6283. /* readonly */
  6284. IntRect combinedScreenRect;
  6285. XMLFile defaultStyle;
  6286. /* readonly */
  6287. float derivedOpacity;
  6288. /* readonly */
  6289. uint dragButtonCombo;
  6290. /* readonly */
  6291. int dragButtonCount;
  6292. uint dragDropMode;
  6293. bool editable;
  6294. bool elementEventSender;
  6295. bool enabled;
  6296. /* readonly */
  6297. bool enabledSelf;
  6298. /* readonly */
  6299. bool fixedHeight;
  6300. /* readonly */
  6301. bool fixedSize;
  6302. /* readonly */
  6303. bool fixedWidth;
  6304. bool focus;
  6305. FocusMode focusMode;
  6306. int height;
  6307. HorizontalAlignment horizontalAlignment;
  6308. IntVector2 hoverOffset;
  6309. /* readonly */
  6310. bool hovering;
  6311. IntRect imageBorder;
  6312. IntRect imageRect;
  6313. int indent;
  6314. int indentSpacing;
  6315. /* readonly */
  6316. int indentWidth;
  6317. bool internal;
  6318. IntRect layoutBorder;
  6319. Vector2 layoutFlexScale;
  6320. LayoutMode layoutMode;
  6321. int layoutSpacing;
  6322. int maxHeight;
  6323. IntVector2 maxSize;
  6324. int maxWidth;
  6325. int minHeight;
  6326. IntVector2 minSize;
  6327. int minWidth;
  6328. String name;
  6329. /* readonly */
  6330. uint numAllChildren;
  6331. /* readonly */
  6332. uint numAttributes;
  6333. /* readonly */
  6334. uint numChildren;
  6335. ObjectAnimation objectAnimation;
  6336. float opacity;
  6337. UIElement parent;
  6338. UIElement popup;
  6339. IntVector2 popupOffset;
  6340. IntVector2 position;
  6341. /* readonly */
  6342. bool pressed;
  6343. IntVector2 pressedChildOffset;
  6344. IntVector2 pressedOffset;
  6345. int priority;
  6346. /* readonly */
  6347. int refs;
  6348. float repeatDelay;
  6349. float repeatRate;
  6350. /* readonly */
  6351. UIElement root;
  6352. /* readonly */
  6353. IntVector2 screenPosition;
  6354. bool selected;
  6355. bool showPopup;
  6356. IntVector2 size;
  6357. bool sortChildren;
  6358. String style;
  6359. /* readonly */
  6360. Array<String> tags;
  6361. bool temporary;
  6362. Texture texture;
  6363. bool tiled;
  6364. TraversalMode traversalMode;
  6365. /* readonly */
  6366. StringHash type;
  6367. /* readonly */
  6368. String typeName;
  6369. bool useDerivedOpacity;
  6370. /* readonly */
  6371. VariantMap vars;
  6372. VerticalAlignment verticalAlignment;
  6373. bool visible;
  6374. /* readonly */
  6375. bool visibleEffective;
  6376. /* readonly */
  6377. int weakRefs;
  6378. int width;
  6379. };
  6380. class MessageBox
  6381. {
  6382. // Methods:
  6383. bool HasSubscribedToEvent(Object, const String&);
  6384. bool HasSubscribedToEvent(const String&);
  6385. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6386. // Properties:
  6387. /* readonly */
  6388. String category;
  6389. String message;
  6390. /* readonly */
  6391. int refs;
  6392. String title;
  6393. /* readonly */
  6394. StringHash type;
  6395. /* readonly */
  6396. String typeName;
  6397. /* readonly */
  6398. int weakRefs;
  6399. /* readonly */
  6400. UIElement window;
  6401. };
  6402. class Model
  6403. {
  6404. // Methods:
  6405. Model Clone(const String& = String ( )) const;
  6406. Geometry GetGeometry(uint, uint) const;
  6407. bool HasSubscribedToEvent(Object, const String&);
  6408. bool HasSubscribedToEvent(const String&);
  6409. bool Load(File);
  6410. bool Load(VectorBuffer&);
  6411. bool Save(File) const;
  6412. bool Save(VectorBuffer&) const;
  6413. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6414. bool SetGeometry(uint, uint, Geometry);
  6415. // Properties:
  6416. BoundingBox boundingBox;
  6417. /* readonly */
  6418. String category;
  6419. Array<Vector3> geometryCenters;
  6420. /* readonly */
  6421. uint memoryUse;
  6422. String name;
  6423. uint numGeometries;
  6424. Array<uint> numGeometryLodLevels;
  6425. /* readonly */
  6426. uint numMorphs;
  6427. /* readonly */
  6428. int refs;
  6429. /* readonly */
  6430. Skeleton skeleton;
  6431. /* readonly */
  6432. StringHash type;
  6433. /* readonly */
  6434. String typeName;
  6435. /* readonly */
  6436. uint useTimer;
  6437. /* readonly */
  6438. int weakRefs;
  6439. };
  6440. class NavArea
  6441. {
  6442. // Methods:
  6443. void ApplyAttributes();
  6444. void DrawDebugGeometry(DebugRenderer, bool);
  6445. Variant GetAttribute(const String&) const;
  6446. ValueAnimation GetAttributeAnimation(const String&) const;
  6447. float GetAttributeAnimationSpeed(const String&) const;
  6448. float GetAttributeAnimationTime(const String&) const;
  6449. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6450. Variant GetAttributeDefault(const String&) const;
  6451. bool GetInterceptNetworkUpdate(const String&) const;
  6452. bool HasSubscribedToEvent(Object, const String&);
  6453. bool HasSubscribedToEvent(const String&);
  6454. bool Load(File, bool = false);
  6455. bool Load(VectorBuffer&, bool = false);
  6456. bool LoadJSON(const JSONValue&, bool = false);
  6457. bool LoadXML(const XMLElement&, bool = false);
  6458. void MarkNetworkUpdate() const;
  6459. void Remove();
  6460. void RemoveAttributeAnimation(const String&);
  6461. void RemoveInstanceDefault();
  6462. void RemoveObjectAnimation();
  6463. void ResetToDefault();
  6464. bool Save(File) const;
  6465. bool Save(VectorBuffer&) const;
  6466. bool SaveJSON(JSONValue&) const;
  6467. bool SaveXML(XMLElement&) const;
  6468. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6469. void SetAnimationTime(float);
  6470. bool SetAttribute(const String&, const Variant&);
  6471. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6472. void SetAttributeAnimationSpeed(const String&, float);
  6473. void SetAttributeAnimationTime(const String&, float);
  6474. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6475. void SetInterceptNetworkUpdate(const String&, bool);
  6476. // Properties:
  6477. bool animationEnabled;
  6478. uint areaID;
  6479. /* readonly */
  6480. Array<Variant> attributeDefaults;
  6481. /* readonly */
  6482. Array<AttributeInfo> attributeInfos;
  6483. Array<Variant> attributes;
  6484. BoundingBox boundingBox;
  6485. /* readonly */
  6486. String category;
  6487. bool enabled;
  6488. /* readonly */
  6489. bool enabledEffective;
  6490. /* readonly */
  6491. uint id;
  6492. /* readonly */
  6493. Node node;
  6494. /* readonly */
  6495. uint numAttributes;
  6496. ObjectAnimation objectAnimation;
  6497. /* readonly */
  6498. int refs;
  6499. bool temporary;
  6500. /* readonly */
  6501. StringHash type;
  6502. /* readonly */
  6503. String typeName;
  6504. /* readonly */
  6505. int weakRefs;
  6506. /* readonly */
  6507. BoundingBox worldBoundingBox;
  6508. };
  6509. class Navigable
  6510. {
  6511. // Methods:
  6512. void ApplyAttributes();
  6513. void DrawDebugGeometry(DebugRenderer, bool);
  6514. Variant GetAttribute(const String&) const;
  6515. ValueAnimation GetAttributeAnimation(const String&) const;
  6516. float GetAttributeAnimationSpeed(const String&) const;
  6517. float GetAttributeAnimationTime(const String&) const;
  6518. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6519. Variant GetAttributeDefault(const String&) const;
  6520. bool GetInterceptNetworkUpdate(const String&) const;
  6521. bool HasSubscribedToEvent(Object, const String&);
  6522. bool HasSubscribedToEvent(const String&);
  6523. bool Load(File, bool = false);
  6524. bool Load(VectorBuffer&, bool = false);
  6525. bool LoadJSON(const JSONValue&, bool = false);
  6526. bool LoadXML(const XMLElement&, bool = false);
  6527. void MarkNetworkUpdate() const;
  6528. void Remove();
  6529. void RemoveAttributeAnimation(const String&);
  6530. void RemoveInstanceDefault();
  6531. void RemoveObjectAnimation();
  6532. void ResetToDefault();
  6533. bool Save(File) const;
  6534. bool Save(VectorBuffer&) const;
  6535. bool SaveJSON(JSONValue&) const;
  6536. bool SaveXML(XMLElement&) const;
  6537. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6538. void SetAnimationTime(float);
  6539. bool SetAttribute(const String&, const Variant&);
  6540. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6541. void SetAttributeAnimationSpeed(const String&, float);
  6542. void SetAttributeAnimationTime(const String&, float);
  6543. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6544. void SetInterceptNetworkUpdate(const String&, bool);
  6545. // Properties:
  6546. bool animationEnabled;
  6547. /* readonly */
  6548. Array<Variant> attributeDefaults;
  6549. /* readonly */
  6550. Array<AttributeInfo> attributeInfos;
  6551. Array<Variant> attributes;
  6552. /* readonly */
  6553. String category;
  6554. bool enabled;
  6555. /* readonly */
  6556. bool enabledEffective;
  6557. /* readonly */
  6558. uint id;
  6559. /* readonly */
  6560. Node node;
  6561. /* readonly */
  6562. uint numAttributes;
  6563. ObjectAnimation objectAnimation;
  6564. bool recursive;
  6565. /* readonly */
  6566. int refs;
  6567. bool temporary;
  6568. /* readonly */
  6569. StringHash type;
  6570. /* readonly */
  6571. String typeName;
  6572. /* readonly */
  6573. int weakRefs;
  6574. };
  6575. class NavigationMesh
  6576. {
  6577. // Methods:
  6578. void ApplyAttributes();
  6579. bool Build();
  6580. bool Build(const BoundingBox&);
  6581. void DrawDebugGeometry(DebugRenderer, bool);
  6582. void DrawDebugGeometry(bool);
  6583. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6584. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6585. float GetAreaCost(uint) const;
  6586. Variant GetAttribute(const String&) const;
  6587. ValueAnimation GetAttributeAnimation(const String&) const;
  6588. float GetAttributeAnimationSpeed(const String&) const;
  6589. float GetAttributeAnimationTime(const String&) const;
  6590. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6591. Variant GetAttributeDefault(const String&) const;
  6592. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6593. bool GetInterceptNetworkUpdate(const String&) const;
  6594. Vector3 GetRandomPoint();
  6595. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6596. bool HasSubscribedToEvent(Object, const String&);
  6597. bool HasSubscribedToEvent(const String&);
  6598. bool Load(File, bool = false);
  6599. bool Load(VectorBuffer&, bool = false);
  6600. bool LoadJSON(const JSONValue&, bool = false);
  6601. bool LoadXML(const XMLElement&, bool = false);
  6602. void MarkNetworkUpdate() const;
  6603. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6604. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6605. void Remove();
  6606. void RemoveAttributeAnimation(const String&);
  6607. void RemoveInstanceDefault();
  6608. void RemoveObjectAnimation();
  6609. void ResetToDefault();
  6610. bool Save(File) const;
  6611. bool Save(VectorBuffer&) const;
  6612. bool SaveJSON(JSONValue&) const;
  6613. bool SaveXML(XMLElement&) const;
  6614. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6615. void SetAnimationTime(float);
  6616. void SetAreaCost(uint, float);
  6617. bool SetAttribute(const String&, const Variant&);
  6618. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6619. void SetAttributeAnimationSpeed(const String&, float);
  6620. void SetAttributeAnimationTime(const String&, float);
  6621. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6622. void SetInterceptNetworkUpdate(const String&, bool);
  6623. // Properties:
  6624. float agentHeight;
  6625. float agentMaxClimb;
  6626. float agentMaxSlope;
  6627. float agentRadius;
  6628. bool animationEnabled;
  6629. /* readonly */
  6630. Array<Variant> attributeDefaults;
  6631. /* readonly */
  6632. Array<AttributeInfo> attributeInfos;
  6633. Array<Variant> attributes;
  6634. /* readonly */
  6635. BoundingBox boundingBox;
  6636. /* readonly */
  6637. String category;
  6638. float cellHeight;
  6639. float cellSize;
  6640. float detailSampleDistance;
  6641. float detailSampleMaxError;
  6642. bool drawNavAreas;
  6643. bool drawOffMeshConnections;
  6644. float edgeMaxError;
  6645. float edgeMaxLength;
  6646. bool enabled;
  6647. /* readonly */
  6648. bool enabledEffective;
  6649. /* readonly */
  6650. uint id;
  6651. /* readonly */
  6652. bool initialized;
  6653. /* readonly */
  6654. Node node;
  6655. /* readonly */
  6656. uint numAttributes;
  6657. /* readonly */
  6658. IntVector2 numTiles;
  6659. ObjectAnimation objectAnimation;
  6660. Vector3 padding;
  6661. NavmeshPartitionType partitionType;
  6662. /* readonly */
  6663. int refs;
  6664. float regionMergeSize;
  6665. float regionMinSize;
  6666. bool temporary;
  6667. int tileSize;
  6668. /* readonly */
  6669. StringHash type;
  6670. /* readonly */
  6671. String typeName;
  6672. /* readonly */
  6673. int weakRefs;
  6674. /* readonly */
  6675. BoundingBox worldBoundingBox;
  6676. };
  6677. class Network
  6678. {
  6679. // Methods:
  6680. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6681. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6682. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6683. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6684. bool CheckRemoteEvent(const String&) const;
  6685. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6686. void Disconnect(int = 0);
  6687. bool HasSubscribedToEvent(Object, const String&);
  6688. bool HasSubscribedToEvent(const String&);
  6689. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6690. void RegisterRemoteEvent(const String&) const;
  6691. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6692. void SendPackageToClients(Scene, PackageFile);
  6693. bool StartServer(uint16);
  6694. void StopServer();
  6695. void UnregisterAllRemoteEvents();
  6696. void UnregisterRemoteEvent(const String&) const;
  6697. // Properties:
  6698. /* readonly */
  6699. String category;
  6700. /* readonly */
  6701. Array<Connection> clientConnections;
  6702. String packageCacheDir;
  6703. /* readonly */
  6704. int refs;
  6705. /* readonly */
  6706. Connection serverConnection;
  6707. /* readonly */
  6708. bool serverRunning;
  6709. int simulatedLatency;
  6710. float simulatedPacketLoss;
  6711. /* readonly */
  6712. StringHash type;
  6713. /* readonly */
  6714. String typeName;
  6715. int updateFps;
  6716. /* readonly */
  6717. int weakRefs;
  6718. };
  6719. class NetworkPriority
  6720. {
  6721. // Methods:
  6722. void ApplyAttributes();
  6723. void DrawDebugGeometry(DebugRenderer, bool);
  6724. Variant GetAttribute(const String&) const;
  6725. ValueAnimation GetAttributeAnimation(const String&) const;
  6726. float GetAttributeAnimationSpeed(const String&) const;
  6727. float GetAttributeAnimationTime(const String&) const;
  6728. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6729. Variant GetAttributeDefault(const String&) const;
  6730. bool GetInterceptNetworkUpdate(const String&) const;
  6731. bool HasSubscribedToEvent(Object, const String&);
  6732. bool HasSubscribedToEvent(const String&);
  6733. bool Load(File, bool = false);
  6734. bool Load(VectorBuffer&, bool = false);
  6735. bool LoadJSON(const JSONValue&, bool = false);
  6736. bool LoadXML(const XMLElement&, bool = false);
  6737. void MarkNetworkUpdate() const;
  6738. void Remove();
  6739. void RemoveAttributeAnimation(const String&);
  6740. void RemoveInstanceDefault();
  6741. void RemoveObjectAnimation();
  6742. void ResetToDefault();
  6743. bool Save(File) const;
  6744. bool Save(VectorBuffer&) const;
  6745. bool SaveJSON(JSONValue&) const;
  6746. bool SaveXML(XMLElement&) const;
  6747. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6748. void SetAnimationTime(float);
  6749. bool SetAttribute(const String&, const Variant&);
  6750. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6751. void SetAttributeAnimationSpeed(const String&, float);
  6752. void SetAttributeAnimationTime(const String&, float);
  6753. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6754. void SetInterceptNetworkUpdate(const String&, bool);
  6755. // Properties:
  6756. bool alwaysUpdateOwner;
  6757. bool animationEnabled;
  6758. /* readonly */
  6759. Array<Variant> attributeDefaults;
  6760. /* readonly */
  6761. Array<AttributeInfo> attributeInfos;
  6762. Array<Variant> attributes;
  6763. float basePriority;
  6764. /* readonly */
  6765. String category;
  6766. float distanceFactor;
  6767. bool enabled;
  6768. /* readonly */
  6769. bool enabledEffective;
  6770. /* readonly */
  6771. uint id;
  6772. float minPriority;
  6773. /* readonly */
  6774. Node node;
  6775. /* readonly */
  6776. uint numAttributes;
  6777. ObjectAnimation objectAnimation;
  6778. /* readonly */
  6779. int refs;
  6780. bool temporary;
  6781. /* readonly */
  6782. StringHash type;
  6783. /* readonly */
  6784. String typeName;
  6785. /* readonly */
  6786. int weakRefs;
  6787. };
  6788. class Node
  6789. {
  6790. // Methods:
  6791. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6792. void AddTag(const String&);
  6793. void AddTags(const String&, int8 = ';');
  6794. void ApplyAttributes();
  6795. Node Clone(CreateMode = REPLICATED);
  6796. Component CloneComponent(Component, CreateMode, uint = 0);
  6797. Component CloneComponent(Component, uint = 0);
  6798. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6799. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6800. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6801. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6802. Variant GetAttribute(const String&) const;
  6803. ValueAnimation GetAttributeAnimation(const String&) const;
  6804. float GetAttributeAnimationSpeed(const String&) const;
  6805. float GetAttributeAnimationTime(const String&) const;
  6806. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6807. Variant GetAttributeDefault(const String&) const;
  6808. Node GetChild(const String&, bool = false) const;
  6809. Array<Node> GetChildren(bool = false) const;
  6810. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6811. Array<Node> GetChildrenWithScript(bool = false) const;
  6812. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6813. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6814. Component GetComponent(const String&, bool = false) const;
  6815. Array<Component> GetComponents() const;
  6816. Array<Component> GetComponents(const String&, bool = false) const;
  6817. bool GetInterceptNetworkUpdate(const String&) const;
  6818. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6819. Component GetParentComponent(const String&, bool = false) const;
  6820. ScriptObject GetScriptObject() const;
  6821. ScriptObject GetScriptObject(const String&) const;
  6822. bool HasComponent(const String&) const;
  6823. bool HasSubscribedToEvent(Object, const String&);
  6824. bool HasSubscribedToEvent(const String&);
  6825. bool HasTag(const String&);
  6826. bool Load(File, bool = false);
  6827. bool Load(VectorBuffer&, bool = false);
  6828. bool LoadJSON(const JSONValue&, bool = false);
  6829. bool LoadXML(const XMLElement&, bool = false);
  6830. Vector3 LocalToWorld(const Vector3&) const;
  6831. Vector3 LocalToWorld(const Vector4&) const;
  6832. Vector2 LocalToWorld2D(const Vector2&) const;
  6833. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6834. void MarkDirty();
  6835. void MarkNetworkUpdate() const;
  6836. void Pitch(float, TransformSpace = TS_LOCAL);
  6837. void Remove();
  6838. void RemoveAllChildren();
  6839. void RemoveAllComponents();
  6840. void RemoveAllTags();
  6841. void RemoveAttributeAnimation(const String&);
  6842. void RemoveChild(Node);
  6843. void RemoveChildren(bool, bool, bool);
  6844. void RemoveComponent(Component);
  6845. void RemoveComponent(const String&);
  6846. void RemoveComponents(bool, bool);
  6847. void RemoveComponents(const String&);
  6848. void RemoveInstanceDefault();
  6849. void RemoveObjectAnimation();
  6850. bool RemoveTag(const String&);
  6851. void ResetDeepEnabled();
  6852. void ResetToDefault();
  6853. void Roll(float, TransformSpace = TS_LOCAL);
  6854. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6855. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6856. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6857. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6858. bool Save(File) const;
  6859. bool Save(VectorBuffer&) const;
  6860. bool SaveJSON(File);
  6861. bool SaveJSON(JSONValue&) const;
  6862. bool SaveJSON(VectorBuffer&);
  6863. bool SaveXML(File, const String& = "\t");
  6864. bool SaveXML(VectorBuffer&, const String& = "\t");
  6865. bool SaveXML(XMLElement&) const;
  6866. void Scale(const Vector3&);
  6867. void Scale(float);
  6868. void Scale2D(const Vector2&);
  6869. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6870. void SetAnimationTime(float);
  6871. bool SetAttribute(const String&, const Variant&);
  6872. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6873. void SetAttributeAnimationSpeed(const String&, float);
  6874. void SetAttributeAnimationTime(const String&, float);
  6875. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6876. void SetDeepEnabled(bool);
  6877. void SetEnabledRecursive(bool);
  6878. void SetInterceptNetworkUpdate(const String&, bool);
  6879. void SetPosition2D(float, float);
  6880. void SetScale(float);
  6881. void SetScale2D(float, float);
  6882. void SetTransform(const Vector3&, const Quaternion&);
  6883. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6884. void SetTransform(const Vector3&, const Quaternion&, float);
  6885. void SetTransform2D(const Vector2&, float);
  6886. void SetTransform2D(const Vector2&, float, const Vector2&);
  6887. void SetTransform2D(const Vector2&, float, float);
  6888. void SetWorldTransform(const Vector3&, const Quaternion&);
  6889. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6890. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6891. void SetWorldTransform2D(const Vector2&, float);
  6892. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6893. void SetWorldTransform2D(const Vector2&, float, float);
  6894. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6895. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6896. Vector3 WorldToLocal(const Vector3&) const;
  6897. Vector3 WorldToLocal(const Vector4&) const;
  6898. Vector2 WorldToLocal2D(const Vector2&) const;
  6899. void Yaw(float, TransformSpace = TS_LOCAL);
  6900. // Properties:
  6901. bool animationEnabled;
  6902. /* readonly */
  6903. Array<Variant> attributeDefaults;
  6904. /* readonly */
  6905. Array<AttributeInfo> attributeInfos;
  6906. Array<Variant> attributes;
  6907. /* readonly */
  6908. String category;
  6909. /* readonly */
  6910. Array<Node> children;
  6911. /* readonly */
  6912. Array<Component> components;
  6913. Vector3 direction;
  6914. bool enabled;
  6915. /* readonly */
  6916. bool enabledSelf;
  6917. /* readonly */
  6918. uint id;
  6919. String name;
  6920. /* readonly */
  6921. uint numAllChildren;
  6922. /* readonly */
  6923. uint numAttributes;
  6924. /* readonly */
  6925. uint numChildren;
  6926. /* readonly */
  6927. uint numComponents;
  6928. ObjectAnimation objectAnimation;
  6929. Connection owner;
  6930. Node parent;
  6931. Vector3 position;
  6932. Vector2 position2D;
  6933. /* readonly */
  6934. int refs;
  6935. /* readonly */
  6936. Vector3 right;
  6937. Quaternion rotation;
  6938. float rotation2D;
  6939. Vector3 scale;
  6940. Vector2 scale2D;
  6941. /* readonly */
  6942. Scene scene;
  6943. /* readonly */
  6944. ScriptObject scriptObject;
  6945. /* readonly */
  6946. Array<String> tags;
  6947. bool temporary;
  6948. /* readonly */
  6949. Matrix3x4 transform;
  6950. /* readonly */
  6951. StringHash type;
  6952. /* readonly */
  6953. String typeName;
  6954. /* readonly */
  6955. Vector3 up;
  6956. /* readonly */
  6957. VariantMap vars;
  6958. /* readonly */
  6959. int weakRefs;
  6960. Vector3 worldDirection;
  6961. Vector3 worldPosition;
  6962. Vector2 worldPosition2D;
  6963. /* readonly */
  6964. Vector3 worldRight;
  6965. Quaternion worldRotation;
  6966. float worldRotation2D;
  6967. Vector3 worldScale;
  6968. Vector2 worldScale2D;
  6969. /* readonly */
  6970. Matrix3x4 worldTransform;
  6971. /* readonly */
  6972. Vector3 worldUp;
  6973. };
  6974. class Object
  6975. {
  6976. // Methods:
  6977. bool HasSubscribedToEvent(Object, const String&);
  6978. bool HasSubscribedToEvent(const String&);
  6979. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6980. // Properties:
  6981. /* readonly */
  6982. String category;
  6983. /* readonly */
  6984. int refs;
  6985. /* readonly */
  6986. StringHash type;
  6987. /* readonly */
  6988. String typeName;
  6989. /* readonly */
  6990. int weakRefs;
  6991. };
  6992. class ObjectAnimation
  6993. {
  6994. // Methods:
  6995. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6996. ValueAnimation GetAttributeAnimation(const String&) const;
  6997. float GetAttributeAnimationSpeed(const String&) const;
  6998. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6999. bool HasSubscribedToEvent(Object, const String&);
  7000. bool HasSubscribedToEvent(const String&);
  7001. bool Load(File);
  7002. bool Load(VectorBuffer&);
  7003. void RemoveAttributeAnimation(ValueAnimation);
  7004. void RemoveAttributeAnimation(const String&);
  7005. bool Save(File) const;
  7006. bool Save(VectorBuffer&) const;
  7007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7008. // Properties:
  7009. /* readonly */
  7010. Array<Variant> attributeAnimations;
  7011. /* readonly */
  7012. String category;
  7013. /* readonly */
  7014. uint memoryUse;
  7015. String name;
  7016. /* readonly */
  7017. int refs;
  7018. /* readonly */
  7019. Array<Variant> speeds;
  7020. /* readonly */
  7021. StringHash type;
  7022. /* readonly */
  7023. String typeName;
  7024. /* readonly */
  7025. uint useTimer;
  7026. /* readonly */
  7027. int weakRefs;
  7028. /* readonly */
  7029. Array<Variant> wrapModes;
  7030. };
  7031. class Obstacle
  7032. {
  7033. // Methods:
  7034. void ApplyAttributes();
  7035. void DrawDebugGeometry(DebugRenderer, bool);
  7036. void DrawDebugGeometry(bool);
  7037. Variant GetAttribute(const String&) const;
  7038. ValueAnimation GetAttributeAnimation(const String&) const;
  7039. float GetAttributeAnimationSpeed(const String&) const;
  7040. float GetAttributeAnimationTime(const String&) const;
  7041. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7042. Variant GetAttributeDefault(const String&) const;
  7043. bool GetInterceptNetworkUpdate(const String&) const;
  7044. bool HasSubscribedToEvent(Object, const String&);
  7045. bool HasSubscribedToEvent(const String&);
  7046. bool Load(File, bool = false);
  7047. bool Load(VectorBuffer&, bool = false);
  7048. bool LoadJSON(const JSONValue&, bool = false);
  7049. bool LoadXML(const XMLElement&, bool = false);
  7050. void MarkNetworkUpdate() const;
  7051. void Remove();
  7052. void RemoveAttributeAnimation(const String&);
  7053. void RemoveInstanceDefault();
  7054. void RemoveObjectAnimation();
  7055. void ResetToDefault();
  7056. bool Save(File) const;
  7057. bool Save(VectorBuffer&) const;
  7058. bool SaveJSON(JSONValue&) const;
  7059. bool SaveXML(XMLElement&) const;
  7060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7061. void SetAnimationTime(float);
  7062. bool SetAttribute(const String&, const Variant&);
  7063. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7064. void SetAttributeAnimationSpeed(const String&, float);
  7065. void SetAttributeAnimationTime(const String&, float);
  7066. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7067. void SetInterceptNetworkUpdate(const String&, bool);
  7068. // Properties:
  7069. bool animationEnabled;
  7070. /* readonly */
  7071. Array<Variant> attributeDefaults;
  7072. /* readonly */
  7073. Array<AttributeInfo> attributeInfos;
  7074. Array<Variant> attributes;
  7075. /* readonly */
  7076. String category;
  7077. bool enabled;
  7078. /* readonly */
  7079. bool enabledEffective;
  7080. float height;
  7081. /* readonly */
  7082. uint id;
  7083. /* readonly */
  7084. Node node;
  7085. /* readonly */
  7086. uint numAttributes;
  7087. ObjectAnimation objectAnimation;
  7088. /* readonly */
  7089. uint obstacleId;
  7090. float radius;
  7091. /* readonly */
  7092. int refs;
  7093. bool temporary;
  7094. /* readonly */
  7095. StringHash type;
  7096. /* readonly */
  7097. String typeName;
  7098. /* readonly */
  7099. int weakRefs;
  7100. };
  7101. class Octree
  7102. {
  7103. // Methods:
  7104. void AddManualDrawable(Drawable);
  7105. void ApplyAttributes();
  7106. void DrawDebugGeometry(DebugRenderer, bool);
  7107. void DrawDebugGeometry(bool) const;
  7108. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7109. Variant GetAttribute(const String&) const;
  7110. ValueAnimation GetAttributeAnimation(const String&) const;
  7111. float GetAttributeAnimationSpeed(const String&) const;
  7112. float GetAttributeAnimationTime(const String&) const;
  7113. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7114. Variant GetAttributeDefault(const String&) const;
  7115. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7116. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7117. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7118. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7119. bool GetInterceptNetworkUpdate(const String&) const;
  7120. bool HasSubscribedToEvent(Object, const String&);
  7121. bool HasSubscribedToEvent(const String&);
  7122. bool Load(File, bool = false);
  7123. bool Load(VectorBuffer&, bool = false);
  7124. bool LoadJSON(const JSONValue&, bool = false);
  7125. bool LoadXML(const XMLElement&, bool = false);
  7126. void MarkNetworkUpdate() const;
  7127. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7128. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7129. void Remove();
  7130. void RemoveAttributeAnimation(const String&);
  7131. void RemoveInstanceDefault();
  7132. void RemoveManualDrawable(Drawable);
  7133. void RemoveObjectAnimation();
  7134. void ResetToDefault();
  7135. bool Save(File) const;
  7136. bool Save(VectorBuffer&) const;
  7137. bool SaveJSON(JSONValue&) const;
  7138. bool SaveXML(XMLElement&) const;
  7139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7140. void SetAnimationTime(float);
  7141. bool SetAttribute(const String&, const Variant&);
  7142. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7143. void SetAttributeAnimationSpeed(const String&, float);
  7144. void SetAttributeAnimationTime(const String&, float);
  7145. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7146. void SetInterceptNetworkUpdate(const String&, bool);
  7147. void SetSize(const BoundingBox&, uint);
  7148. // Properties:
  7149. bool animationEnabled;
  7150. /* readonly */
  7151. Array<Variant> attributeDefaults;
  7152. /* readonly */
  7153. Array<AttributeInfo> attributeInfos;
  7154. Array<Variant> attributes;
  7155. /* readonly */
  7156. String category;
  7157. bool enabled;
  7158. /* readonly */
  7159. bool enabledEffective;
  7160. /* readonly */
  7161. uint id;
  7162. /* readonly */
  7163. Node node;
  7164. /* readonly */
  7165. uint numAttributes;
  7166. /* readonly */
  7167. uint numLevels;
  7168. ObjectAnimation objectAnimation;
  7169. /* readonly */
  7170. int refs;
  7171. bool temporary;
  7172. /* readonly */
  7173. StringHash type;
  7174. /* readonly */
  7175. String typeName;
  7176. /* readonly */
  7177. int weakRefs;
  7178. /* readonly */
  7179. BoundingBox worldBoundingBox;
  7180. };
  7181. class OffMeshConnection
  7182. {
  7183. // Methods:
  7184. void ApplyAttributes();
  7185. void DrawDebugGeometry(DebugRenderer, bool);
  7186. Variant GetAttribute(const String&) const;
  7187. ValueAnimation GetAttributeAnimation(const String&) const;
  7188. float GetAttributeAnimationSpeed(const String&) const;
  7189. float GetAttributeAnimationTime(const String&) const;
  7190. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7191. Variant GetAttributeDefault(const String&) const;
  7192. bool GetInterceptNetworkUpdate(const String&) const;
  7193. bool HasSubscribedToEvent(Object, const String&);
  7194. bool HasSubscribedToEvent(const String&);
  7195. bool Load(File, bool = false);
  7196. bool Load(VectorBuffer&, bool = false);
  7197. bool LoadJSON(const JSONValue&, bool = false);
  7198. bool LoadXML(const XMLElement&, bool = false);
  7199. void MarkNetworkUpdate() const;
  7200. void Remove();
  7201. void RemoveAttributeAnimation(const String&);
  7202. void RemoveInstanceDefault();
  7203. void RemoveObjectAnimation();
  7204. void ResetToDefault();
  7205. bool Save(File) const;
  7206. bool Save(VectorBuffer&) const;
  7207. bool SaveJSON(JSONValue&) const;
  7208. bool SaveXML(XMLElement&) const;
  7209. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7210. void SetAnimationTime(float);
  7211. bool SetAttribute(const String&, const Variant&);
  7212. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7213. void SetAttributeAnimationSpeed(const String&, float);
  7214. void SetAttributeAnimationTime(const String&, float);
  7215. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7216. void SetInterceptNetworkUpdate(const String&, bool);
  7217. // Properties:
  7218. bool animationEnabled;
  7219. uint areaID;
  7220. /* readonly */
  7221. Array<Variant> attributeDefaults;
  7222. /* readonly */
  7223. Array<AttributeInfo> attributeInfos;
  7224. Array<Variant> attributes;
  7225. bool bidirectional;
  7226. /* readonly */
  7227. String category;
  7228. bool enabled;
  7229. /* readonly */
  7230. bool enabledEffective;
  7231. Node endPoint;
  7232. /* readonly */
  7233. uint id;
  7234. uint mask;
  7235. /* readonly */
  7236. Node node;
  7237. /* readonly */
  7238. uint numAttributes;
  7239. ObjectAnimation objectAnimation;
  7240. float radius;
  7241. /* readonly */
  7242. int refs;
  7243. bool temporary;
  7244. /* readonly */
  7245. StringHash type;
  7246. /* readonly */
  7247. String typeName;
  7248. /* readonly */
  7249. int weakRefs;
  7250. };
  7251. class PackageFile
  7252. {
  7253. // Methods:
  7254. bool Exists(const String&) const;
  7255. Array<String> GetEntryNames() const;
  7256. bool HasSubscribedToEvent(Object, const String&);
  7257. bool HasSubscribedToEvent(const String&);
  7258. bool Open(const String&, uint = 0) const;
  7259. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7260. bool compressed() const;
  7261. // Properties:
  7262. /* readonly */
  7263. String category;
  7264. /* readonly */
  7265. uint checksum;
  7266. /* readonly */
  7267. String name;
  7268. /* readonly */
  7269. uint numFiles;
  7270. /* readonly */
  7271. int refs;
  7272. /* readonly */
  7273. uint totalSize;
  7274. /* readonly */
  7275. StringHash type;
  7276. /* readonly */
  7277. String typeName;
  7278. /* readonly */
  7279. int weakRefs;
  7280. };
  7281. class ParticleEffect
  7282. {
  7283. // Methods:
  7284. void AddColorFrame(ColorFrame);
  7285. void AddColorTime(Color&, float);
  7286. void AddTextureFrame(TextureFrame);
  7287. void AddTextureTime(Rect&, float);
  7288. ColorFrame GetColorFrame(uint) const;
  7289. TextureFrame GetTextureFrame(uint) const;
  7290. bool HasSubscribedToEvent(Object, const String&);
  7291. bool HasSubscribedToEvent(const String&);
  7292. bool Load(File);
  7293. bool Load(VectorBuffer&);
  7294. bool Load(const XMLElement&);
  7295. void RemoveColorFrame(uint);
  7296. void RemoveTextureFrame(uint);
  7297. bool Save(File) const;
  7298. bool Save(VectorBuffer&) const;
  7299. bool Save(XMLElement&) const;
  7300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7301. void SetColorFrame(uint, ColorFrame);
  7302. void SetTextureFrame(uint, TextureFrame);
  7303. void SortColorFrames();
  7304. void SortTextureFrames();
  7305. // Properties:
  7306. float activeTime;
  7307. float animationLodBias;
  7308. /* readonly */
  7309. String category;
  7310. Vector3 constantForce;
  7311. float dampingForce;
  7312. Vector3 emitterSize;
  7313. EmitterType emitterType;
  7314. FaceCameraMode faceCameraMode;
  7315. float inactiveTime;
  7316. Material material;
  7317. Vector3 maxDirection;
  7318. float maxEmissionRate;
  7319. Vector2 maxParticleSize;
  7320. float maxRotation;
  7321. float maxRotationSpeed;
  7322. float maxTimeToLive;
  7323. float maxVelocity;
  7324. /* readonly */
  7325. uint memoryUse;
  7326. Vector3 minDirection;
  7327. float minEmissionRate;
  7328. Vector2 minParticleSize;
  7329. float minRotation;
  7330. float minRotationSpeed;
  7331. float minTimeToLive;
  7332. float minVelocity;
  7333. String name;
  7334. uint numColorFrames;
  7335. uint numParticles;
  7336. uint numTextureFrames;
  7337. /* readonly */
  7338. int refs;
  7339. bool relative;
  7340. bool scaled;
  7341. float sizeAdd;
  7342. float sizeMul;
  7343. bool sorted;
  7344. /* readonly */
  7345. StringHash type;
  7346. /* readonly */
  7347. String typeName;
  7348. bool updateInvisible;
  7349. /* readonly */
  7350. uint useTimer;
  7351. /* readonly */
  7352. int weakRefs;
  7353. };
  7354. class ParticleEffect2D
  7355. {
  7356. // Methods:
  7357. bool HasSubscribedToEvent(Object, const String&);
  7358. bool HasSubscribedToEvent(const String&);
  7359. bool Load(File);
  7360. bool Load(VectorBuffer&);
  7361. bool Save(File) const;
  7362. bool Save(VectorBuffer&) const;
  7363. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7364. // Properties:
  7365. /* readonly */
  7366. String category;
  7367. /* readonly */
  7368. uint memoryUse;
  7369. String name;
  7370. /* readonly */
  7371. int refs;
  7372. /* readonly */
  7373. StringHash type;
  7374. /* readonly */
  7375. String typeName;
  7376. /* readonly */
  7377. uint useTimer;
  7378. /* readonly */
  7379. int weakRefs;
  7380. };
  7381. class ParticleEmitter
  7382. {
  7383. // Methods:
  7384. void ApplyAttributes();
  7385. void ApplyEffect();
  7386. void Commit();
  7387. void DrawDebugGeometry(DebugRenderer, bool);
  7388. Variant GetAttribute(const String&) const;
  7389. ValueAnimation GetAttributeAnimation(const String&) const;
  7390. float GetAttributeAnimationSpeed(const String&) const;
  7391. float GetAttributeAnimationTime(const String&) const;
  7392. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7393. Variant GetAttributeDefault(const String&) const;
  7394. bool GetInterceptNetworkUpdate(const String&) const;
  7395. bool HasSubscribedToEvent(Object, const String&);
  7396. bool HasSubscribedToEvent(const String&);
  7397. bool IsInView(Camera) const;
  7398. bool Load(File, bool = false);
  7399. bool Load(VectorBuffer&, bool = false);
  7400. bool LoadJSON(const JSONValue&, bool = false);
  7401. bool LoadXML(const XMLElement&, bool = false);
  7402. void MarkNetworkUpdate() const;
  7403. void Remove();
  7404. void RemoveAllParticles();
  7405. void RemoveAttributeAnimation(const String&);
  7406. void RemoveInstanceDefault();
  7407. void RemoveObjectAnimation();
  7408. void Reset();
  7409. void ResetEmissionTimer();
  7410. void ResetToDefault();
  7411. bool Save(File) const;
  7412. bool Save(VectorBuffer&) const;
  7413. bool SaveJSON(JSONValue&) const;
  7414. bool SaveXML(XMLElement&) const;
  7415. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7416. void SetAnimationTime(float);
  7417. bool SetAttribute(const String&, const Variant&);
  7418. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7419. void SetAttributeAnimationSpeed(const String&, float);
  7420. void SetAttributeAnimationTime(const String&, float);
  7421. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7422. void SetInterceptNetworkUpdate(const String&, bool);
  7423. // Properties:
  7424. bool animationEnabled;
  7425. float animationLodBias;
  7426. /* readonly */
  7427. Array<Variant> attributeDefaults;
  7428. /* readonly */
  7429. Array<AttributeInfo> attributeInfos;
  7430. Array<Variant> attributes;
  7431. /* readonly */
  7432. Array<Billboard> billboards;
  7433. /* readonly */
  7434. BoundingBox boundingBox;
  7435. bool castShadows;
  7436. /* readonly */
  7437. String category;
  7438. float drawDistance;
  7439. ParticleEffect effect;
  7440. bool emitting;
  7441. bool enabled;
  7442. /* readonly */
  7443. bool enabledEffective;
  7444. FaceCameraMode faceCameraMode;
  7445. /* readonly */
  7446. uint id;
  7447. /* readonly */
  7448. bool inView;
  7449. uint lightMask;
  7450. float lodBias;
  7451. Material material;
  7452. uint maxLights;
  7453. /* readonly */
  7454. Node node;
  7455. /* readonly */
  7456. uint numAttributes;
  7457. uint numBillboards;
  7458. uint numParticles;
  7459. ObjectAnimation objectAnimation;
  7460. bool occludee;
  7461. bool occluder;
  7462. /* readonly */
  7463. int refs;
  7464. bool relative;
  7465. bool scaled;
  7466. bool serializeParticles;
  7467. float shadowDistance;
  7468. uint shadowMask;
  7469. bool sorted;
  7470. bool temporary;
  7471. /* readonly */
  7472. StringHash type;
  7473. /* readonly */
  7474. String typeName;
  7475. uint viewMask;
  7476. /* readonly */
  7477. int weakRefs;
  7478. /* readonly */
  7479. BoundingBox worldBoundingBox;
  7480. /* readonly */
  7481. Zone zone;
  7482. uint zoneMask;
  7483. };
  7484. class ParticleEmitter2D
  7485. {
  7486. // Methods:
  7487. void ApplyAttributes();
  7488. void DrawDebugGeometry(DebugRenderer, bool);
  7489. Variant GetAttribute(const String&) const;
  7490. ValueAnimation GetAttributeAnimation(const String&) const;
  7491. float GetAttributeAnimationSpeed(const String&) const;
  7492. float GetAttributeAnimationTime(const String&) const;
  7493. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7494. Variant GetAttributeDefault(const String&) const;
  7495. bool GetInterceptNetworkUpdate(const String&) const;
  7496. bool HasSubscribedToEvent(Object, const String&);
  7497. bool HasSubscribedToEvent(const String&);
  7498. bool IsInView(Camera) const;
  7499. bool Load(File, bool = false);
  7500. bool Load(VectorBuffer&, bool = false);
  7501. bool LoadJSON(const JSONValue&, bool = false);
  7502. bool LoadXML(const XMLElement&, bool = false);
  7503. void MarkNetworkUpdate() const;
  7504. void Remove();
  7505. void RemoveAttributeAnimation(const String&);
  7506. void RemoveInstanceDefault();
  7507. void RemoveObjectAnimation();
  7508. void ResetToDefault();
  7509. bool Save(File) const;
  7510. bool Save(VectorBuffer&) const;
  7511. bool SaveJSON(JSONValue&) const;
  7512. bool SaveXML(XMLElement&) const;
  7513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7514. void SetAnimationTime(float);
  7515. bool SetAttribute(const String&, const Variant&);
  7516. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7517. void SetAttributeAnimationSpeed(const String&, float);
  7518. void SetAttributeAnimationTime(const String&, float);
  7519. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7520. void SetInterceptNetworkUpdate(const String&, bool);
  7521. // Properties:
  7522. bool animationEnabled;
  7523. /* readonly */
  7524. Array<Variant> attributeDefaults;
  7525. /* readonly */
  7526. Array<AttributeInfo> attributeInfos;
  7527. Array<Variant> attributes;
  7528. BlendMode blendMode;
  7529. /* readonly */
  7530. BoundingBox boundingBox;
  7531. bool castShadows;
  7532. /* readonly */
  7533. String category;
  7534. float drawDistance;
  7535. ParticleEffect2D effect;
  7536. bool enabled;
  7537. /* readonly */
  7538. bool enabledEffective;
  7539. /* readonly */
  7540. uint id;
  7541. /* readonly */
  7542. bool inView;
  7543. int layer;
  7544. uint lightMask;
  7545. float lodBias;
  7546. uint maxLights;
  7547. /* readonly */
  7548. Node node;
  7549. /* readonly */
  7550. uint numAttributes;
  7551. ObjectAnimation objectAnimation;
  7552. bool occludee;
  7553. bool occluder;
  7554. int orderInLayer;
  7555. /* readonly */
  7556. int refs;
  7557. float shadowDistance;
  7558. uint shadowMask;
  7559. Sprite2D sprite;
  7560. bool temporary;
  7561. /* readonly */
  7562. StringHash type;
  7563. /* readonly */
  7564. String typeName;
  7565. uint viewMask;
  7566. /* readonly */
  7567. int weakRefs;
  7568. /* readonly */
  7569. BoundingBox worldBoundingBox;
  7570. uint zoneMask;
  7571. };
  7572. class Pass
  7573. {
  7574. // Properties:
  7575. bool alphaMask;
  7576. BlendMode blendMode;
  7577. CompareMode depthTestMode;
  7578. bool depthWrite;
  7579. bool desktop;
  7580. PassLightingMode lightingMode;
  7581. String pixelShader;
  7582. String pixelShaderDefines;
  7583. /* readonly */
  7584. int refs;
  7585. String vertexShader;
  7586. String vertexShaderDefines;
  7587. /* readonly */
  7588. int weakRefs;
  7589. };
  7590. class PhysicsRaycastResult
  7591. {
  7592. // Properties:
  7593. /* readonly */
  7594. RigidBody body;
  7595. float distance;
  7596. float hitFraction;
  7597. Vector3 normal;
  7598. Vector3 position;
  7599. };
  7600. class PhysicsRaycastResult2D
  7601. {
  7602. // Properties:
  7603. /* readonly */
  7604. RigidBody2D body;
  7605. float distance;
  7606. Vector2 normal;
  7607. Vector2 position;
  7608. };
  7609. class PhysicsWorld
  7610. {
  7611. // Methods:
  7612. void ApplyAttributes();
  7613. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7614. void DrawDebugGeometry(DebugRenderer, bool);
  7615. void DrawDebugGeometry(bool);
  7616. Variant GetAttribute(const String&) const;
  7617. ValueAnimation GetAttributeAnimation(const String&) const;
  7618. float GetAttributeAnimationSpeed(const String&) const;
  7619. float GetAttributeAnimationTime(const String&) const;
  7620. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7621. Variant GetAttributeDefault(const String&) const;
  7622. Array<RigidBody> GetCollidingBodies(RigidBody);
  7623. bool GetInterceptNetworkUpdate(const String&) const;
  7624. Array<RigidBody> GetRigidBodies(RigidBody);
  7625. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7626. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7627. bool HasSubscribedToEvent(Object, const String&);
  7628. bool HasSubscribedToEvent(const String&);
  7629. bool Load(File, bool = false);
  7630. bool Load(VectorBuffer&, bool = false);
  7631. bool LoadJSON(const JSONValue&, bool = false);
  7632. bool LoadXML(const XMLElement&, bool = false);
  7633. void MarkNetworkUpdate() const;
  7634. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7635. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7636. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7637. void Remove();
  7638. void RemoveAttributeAnimation(const String&);
  7639. void RemoveCachedGeometry(Model);
  7640. void RemoveInstanceDefault();
  7641. void RemoveObjectAnimation();
  7642. void ResetToDefault();
  7643. bool Save(File) const;
  7644. bool Save(VectorBuffer&) const;
  7645. bool SaveJSON(JSONValue&) const;
  7646. bool SaveXML(XMLElement&) const;
  7647. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7648. void SetAnimationTime(float);
  7649. bool SetAttribute(const String&, const Variant&);
  7650. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7651. void SetAttributeAnimationSpeed(const String&, float);
  7652. void SetAttributeAnimationTime(const String&, float);
  7653. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7654. void SetInterceptNetworkUpdate(const String&, bool);
  7655. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7656. void Update(float);
  7657. void UpdateCollisions();
  7658. // Properties:
  7659. bool animationEnabled;
  7660. /* readonly */
  7661. Array<Variant> attributeDefaults;
  7662. /* readonly */
  7663. Array<AttributeInfo> attributeInfos;
  7664. Array<Variant> attributes;
  7665. /* readonly */
  7666. String category;
  7667. bool enabled;
  7668. /* readonly */
  7669. bool enabledEffective;
  7670. int fps;
  7671. Vector3 gravity;
  7672. /* readonly */
  7673. uint id;
  7674. bool internalEdge;
  7675. bool interpolation;
  7676. int maxSubSteps;
  7677. /* readonly */
  7678. Node node;
  7679. /* readonly */
  7680. uint numAttributes;
  7681. int numIterations;
  7682. ObjectAnimation objectAnimation;
  7683. /* readonly */
  7684. int refs;
  7685. bool splitImpulse;
  7686. bool temporary;
  7687. /* readonly */
  7688. StringHash type;
  7689. /* readonly */
  7690. String typeName;
  7691. bool updateEnabled;
  7692. /* readonly */
  7693. int weakRefs;
  7694. };
  7695. class PhysicsWorld2D
  7696. {
  7697. // Methods:
  7698. void ApplyAttributes();
  7699. void DrawDebugGeometry() const;
  7700. void DrawDebugGeometry(DebugRenderer, bool);
  7701. Variant GetAttribute(const String&) const;
  7702. ValueAnimation GetAttributeAnimation(const String&) const;
  7703. float GetAttributeAnimationSpeed(const String&) const;
  7704. float GetAttributeAnimationTime(const String&) const;
  7705. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7706. Variant GetAttributeDefault(const String&) const;
  7707. bool GetInterceptNetworkUpdate(const String&) const;
  7708. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7709. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7710. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7711. bool HasSubscribedToEvent(Object, const String&);
  7712. bool HasSubscribedToEvent(const String&);
  7713. bool Load(File, bool = false);
  7714. bool Load(VectorBuffer&, bool = false);
  7715. bool LoadJSON(const JSONValue&, bool = false);
  7716. bool LoadXML(const XMLElement&, bool = false);
  7717. void MarkNetworkUpdate() const;
  7718. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7719. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7720. void Remove();
  7721. void RemoveAttributeAnimation(const String&);
  7722. void RemoveInstanceDefault();
  7723. void RemoveObjectAnimation();
  7724. void ResetToDefault();
  7725. bool Save(File) const;
  7726. bool Save(VectorBuffer&) const;
  7727. bool SaveJSON(JSONValue&) const;
  7728. bool SaveXML(XMLElement&) const;
  7729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7730. void SetAnimationTime(float);
  7731. bool SetAttribute(const String&, const Variant&);
  7732. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7733. void SetAttributeAnimationSpeed(const String&, float);
  7734. void SetAttributeAnimationTime(const String&, float);
  7735. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7736. void SetInterceptNetworkUpdate(const String&, bool);
  7737. // Properties:
  7738. bool allowSleeping;
  7739. bool animationEnabled;
  7740. /* readonly */
  7741. Array<Variant> attributeDefaults;
  7742. /* readonly */
  7743. Array<AttributeInfo> attributeInfos;
  7744. Array<Variant> attributes;
  7745. bool autoClearForces;
  7746. /* readonly */
  7747. String category;
  7748. bool continuousPhysics;
  7749. bool drawAabb;
  7750. bool drawCenterOfMass;
  7751. bool drawJoint;
  7752. bool drawPair;
  7753. bool drawShape;
  7754. bool enabled;
  7755. /* readonly */
  7756. bool enabledEffective;
  7757. Vector2 gravity;
  7758. /* readonly */
  7759. uint id;
  7760. /* readonly */
  7761. Node node;
  7762. /* readonly */
  7763. uint numAttributes;
  7764. ObjectAnimation objectAnimation;
  7765. uint positionIterations;
  7766. /* readonly */
  7767. int refs;
  7768. bool subStepping;
  7769. bool temporary;
  7770. /* readonly */
  7771. StringHash type;
  7772. /* readonly */
  7773. String typeName;
  7774. bool updateEnabled;
  7775. uint velocityIterations;
  7776. bool warmStarting;
  7777. /* readonly */
  7778. int weakRefs;
  7779. };
  7780. class Plane
  7781. {
  7782. // Methods:
  7783. void Define(const Vector3&, const Vector3&);
  7784. void Define(const Vector3&, const Vector3&, const Vector3&);
  7785. void Define(const Vector4&);
  7786. float Distance(const Vector3&) const;
  7787. Vector3 Project(const Vector3&) const;
  7788. Vector3 Reflect(const Vector3&) const;
  7789. Vector4 ToVector4() const;
  7790. void Transform(const Matrix3&);
  7791. void Transform(const Matrix3x4&);
  7792. void Transform(const Matrix4&);
  7793. Plane Transformed(const Matrix3&) const;
  7794. Plane Transformed(const Matrix3x4&) const;
  7795. Plane Transformed(const Matrix4&) const;
  7796. // Properties:
  7797. Vector3 absNormal;
  7798. float d;
  7799. Vector3 normal;
  7800. /* readonly */
  7801. Matrix3x4 reflectionMatrix;
  7802. };
  7803. class Polyhedron
  7804. {
  7805. // Methods:
  7806. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7807. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7808. void AddFace(const Array<Vector3>);
  7809. void Clear();
  7810. void Clip(const BoundingBox&);
  7811. void Clip(const Frustum&);
  7812. void Define(const BoundingBox&);
  7813. void Define(const Frustum&);
  7814. void Transform(const Matrix3&);
  7815. void Transform(const Matrix3x4&);
  7816. Polyhedron Transformed(const Matrix3&) const;
  7817. Polyhedron Transformed(const Matrix3x4&) const;
  7818. // Properties:
  7819. /* readonly */
  7820. Array<Array<Vector3>> face;
  7821. /* readonly */
  7822. uint numFaces;
  7823. };
  7824. class PropertySet2D
  7825. {
  7826. // Methods:
  7827. bool HasProperty(const String&) const;
  7828. const String& GetProperty(const String&) const;
  7829. // Properties:
  7830. /* readonly */
  7831. int refs;
  7832. /* readonly */
  7833. int weakRefs;
  7834. };
  7835. class Quaternion
  7836. {
  7837. // Methods:
  7838. float DotProduct(const Quaternion&) const;
  7839. bool Equals(const Quaternion&) const;
  7840. void FromAngleAxis(float, const Vector3&);
  7841. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7842. void FromEulerAngles(float, float, float);
  7843. bool FromLookRotation(const Vector3&, const Vector3&);
  7844. void FromRotationTo(const Vector3&, const Vector3&);
  7845. Quaternion Inverse() const;
  7846. bool IsNaN() const;
  7847. Quaternion Nlerp(Quaternion, float, bool) const;
  7848. void Normalize();
  7849. Quaternion Normalized() const;
  7850. Quaternion Slerp(Quaternion, float) const;
  7851. String ToString() const;
  7852. // Properties:
  7853. /* readonly */
  7854. Vector3 eulerAngles;
  7855. /* readonly */
  7856. float pitch;
  7857. /* readonly */
  7858. float roll;
  7859. float w;
  7860. float x;
  7861. float y;
  7862. /* readonly */
  7863. float yaw;
  7864. float z;
  7865. };
  7866. class Ray
  7867. {
  7868. // Methods:
  7869. Vector3 ClosestPoint(const Ray&) const;
  7870. void Define(const Vector3&, const Vector3&);
  7871. float Distance(const Vector3&) const;
  7872. float HitDistance(const BoundingBox&) const;
  7873. float HitDistance(const Frustum&, bool = true) const;
  7874. float HitDistance(const Plane&) const;
  7875. float HitDistance(const Sphere&) const;
  7876. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7877. Vector3 Project(const Vector3&) const;
  7878. Ray Transformed(const Matrix3x4&) const;
  7879. // Properties:
  7880. Vector3 direction;
  7881. Vector3 origin;
  7882. };
  7883. class RayQueryResult
  7884. {
  7885. // Properties:
  7886. float distance;
  7887. /* readonly */
  7888. Drawable drawable;
  7889. /* readonly */
  7890. Node node;
  7891. Vector3 normal;
  7892. Vector3 position;
  7893. uint subObject;
  7894. Vector2 textureUV;
  7895. };
  7896. class Rect
  7897. {
  7898. // Methods:
  7899. void Clear();
  7900. void Clip(const Rect&);
  7901. void Define(const Vector2&);
  7902. void Define(const Vector2&, const Vector2&);
  7903. bool Defined() const;
  7904. bool Equals(const Rect&) const;
  7905. Intersection IsInside(const Vector2&) const;
  7906. void Merge(const Rect&);
  7907. void Merge(const Vector2&);
  7908. Vector4 ToVector4() const;
  7909. // Properties:
  7910. float bottom;
  7911. /* readonly */
  7912. Vector2 center;
  7913. /* readonly */
  7914. Vector2 halfSize;
  7915. float left;
  7916. Vector2 max;
  7917. Vector2 min;
  7918. float right;
  7919. /* readonly */
  7920. Vector2 size;
  7921. float top;
  7922. };
  7923. class RefCounted
  7924. {
  7925. // Properties:
  7926. /* readonly */
  7927. int refs;
  7928. /* readonly */
  7929. int weakRefs;
  7930. };
  7931. class RenderPath
  7932. {
  7933. // Methods:
  7934. void AddCommand(const RenderPathCommand&);
  7935. void AddRenderTarget(const RenderTargetInfo&);
  7936. bool Append(XMLFile);
  7937. RenderPath Clone();
  7938. void InsertCommand(uint, const RenderPathCommand&);
  7939. bool Load(XMLFile);
  7940. void RemoveCommand(uint);
  7941. void RemoveCommands(const String&);
  7942. void RemoveRenderTarget(const String&);
  7943. void RemoveRenderTarget(uint);
  7944. void RemoveRenderTargts(const String&);
  7945. void SetEnabled(const String&, bool);
  7946. void ToggleEnabled(const String&);
  7947. // Properties:
  7948. Array<RenderPathCommand> commands;
  7949. /* readonly */
  7950. uint numCommands;
  7951. /* readonly */
  7952. uint numRenderTargets;
  7953. /* readonly */
  7954. int refs;
  7955. Array<RenderTargetInfo> renderTargets;
  7956. Array<Variant> shaderParameters;
  7957. /* readonly */
  7958. int weakRefs;
  7959. };
  7960. class RenderPathCommand
  7961. {
  7962. // Methods:
  7963. void RemoveShaderParameter(const String&);
  7964. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7965. // Properties:
  7966. BlendMode blendMode;
  7967. Color clearColor;
  7968. float clearDepth;
  7969. uint clearFlags;
  7970. uint clearStencil;
  7971. String depthStencilName;
  7972. bool enabled;
  7973. bool markToStencil;
  7974. String metadata;
  7975. uint numOutputs;
  7976. Array<CubeMapFace> outputFaces;
  7977. Array<String> outputNames;
  7978. String pass;
  7979. String pixelShaderDefines;
  7980. String pixelShaderName;
  7981. Array<Variant> shaderParameters;
  7982. RenderCommandSortMode sortMode;
  7983. String tag;
  7984. Array<String> textureNames;
  7985. RenderCommandType type;
  7986. bool useFogColor;
  7987. bool useLitBase;
  7988. bool vertexLights;
  7989. String vertexShaderDefines;
  7990. String vertexShaderName;
  7991. };
  7992. class RenderSurface
  7993. {
  7994. // Methods:
  7995. void QueueUpdate();
  7996. // Properties:
  7997. /* readonly */
  7998. int height;
  7999. RenderSurface linkedDepthStencil;
  8000. RenderSurface linkedRenderTarget;
  8001. uint numViewports;
  8002. /* readonly */
  8003. Texture parentTexture;
  8004. RenderSurfaceUpdateMode updateMode;
  8005. /* readonly */
  8006. TextureUsage usage;
  8007. Array<Viewport> viewports;
  8008. /* readonly */
  8009. int width;
  8010. };
  8011. class RenderTargetInfo
  8012. {
  8013. // Properties:
  8014. bool cubemap;
  8015. bool enabled;
  8016. bool filtered;
  8017. uint format;
  8018. String name;
  8019. bool persistent;
  8020. bool sRGB;
  8021. Vector2 size;
  8022. RenderTargetSizeMode sizeMode;
  8023. String tag;
  8024. };
  8025. class Renderer
  8026. {
  8027. // Methods:
  8028. void DrawDebugGeometry(bool) const;
  8029. bool HasSubscribedToEvent(Object, const String&);
  8030. bool HasSubscribedToEvent(const String&);
  8031. void ReloadShaders() const;
  8032. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8033. void SetDefaultRenderPath(XMLFile);
  8034. void SetVSMShadowParameters(float, float);
  8035. // Properties:
  8036. /* readonly */
  8037. String category;
  8038. /* readonly */
  8039. Material defaultLightRamp;
  8040. /* readonly */
  8041. Material defaultLightSpot;
  8042. /* readonly */
  8043. Material defaultMaterial;
  8044. RenderPath defaultRenderPath;
  8045. /* readonly */
  8046. Zone defaultZone;
  8047. bool drawShadows;
  8048. bool dynamicInstancing;
  8049. bool hdrRendering;
  8050. int materialQuality;
  8051. int maxOccluderTriangles;
  8052. int maxShadowMaps;
  8053. int maxSortedInstances;
  8054. int minInstances;
  8055. float mobileShadowBiasAdd;
  8056. float mobileShadowBiasMul;
  8057. /* readonly */
  8058. uint numBatches;
  8059. /* readonly */
  8060. Array<uint> numGeometries;
  8061. /* readonly */
  8062. Array<uint> numLights;
  8063. /* readonly */
  8064. Array<uint> numOccluders;
  8065. /* readonly */
  8066. uint numPrimitives;
  8067. /* readonly */
  8068. Array<uint> numShadowMaps;
  8069. uint numViewports;
  8070. /* readonly */
  8071. uint numViews;
  8072. float occluderSizeThreshold;
  8073. int occlusionBufferSize;
  8074. /* readonly */
  8075. int refs;
  8076. bool reuseShadowMaps;
  8077. int shadowMapSize;
  8078. ShadowQuality shadowQuality;
  8079. float shadowSoftness;
  8080. bool specularLighting;
  8081. int textureAnisotropy;
  8082. TextureFilterMode textureFilterMode;
  8083. int textureQuality;
  8084. bool threadedOcclusion;
  8085. /* readonly */
  8086. StringHash type;
  8087. /* readonly */
  8088. String typeName;
  8089. Array<Viewport> viewports;
  8090. Vector2 vsmShadowParameters;
  8091. /* readonly */
  8092. int weakRefs;
  8093. };
  8094. class Resource
  8095. {
  8096. // Methods:
  8097. bool HasSubscribedToEvent(Object, const String&);
  8098. bool HasSubscribedToEvent(const String&);
  8099. bool Load(File);
  8100. bool Load(VectorBuffer&);
  8101. bool Save(File) const;
  8102. bool Save(VectorBuffer&) const;
  8103. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8104. // Properties:
  8105. /* readonly */
  8106. String category;
  8107. /* readonly */
  8108. uint memoryUse;
  8109. String name;
  8110. /* readonly */
  8111. int refs;
  8112. /* readonly */
  8113. StringHash type;
  8114. /* readonly */
  8115. String typeName;
  8116. /* readonly */
  8117. uint useTimer;
  8118. /* readonly */
  8119. int weakRefs;
  8120. };
  8121. class ResourceCache
  8122. {
  8123. // Methods:
  8124. bool AddManualResource(Resource);
  8125. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8126. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8127. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8128. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8129. bool Exists(const String&) const;
  8130. Resource GetExistingResource(StringHash, const String&);
  8131. Resource GetExistingResource(const String&, const String&);
  8132. File GetFile(const String&);
  8133. String GetPreferredResourceDir(const String&) const;
  8134. Resource GetResource(StringHash, const String&, bool = true);
  8135. Resource GetResource(const String&, const String&, bool = true);
  8136. String GetResourceFileName(const String&) const;
  8137. bool HasSubscribedToEvent(Object, const String&);
  8138. bool HasSubscribedToEvent(const String&);
  8139. void ReleaseAllResources(bool = false);
  8140. void ReleaseResource(const String&, const String&, bool = false);
  8141. void ReleaseResources(StringHash, bool = false);
  8142. void ReleaseResources(const String&, bool = false);
  8143. void ReleaseResources(const String&, const String&, bool = false);
  8144. bool ReloadResource(Resource);
  8145. void ReloadResourceWithDependencies(const String&);
  8146. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8147. void RemovePackageFile(const String&, bool = true, bool = false);
  8148. void RemoveResourceDir(const String&);
  8149. String SanitateResourceDirName(const String&) const;
  8150. String SanitateResourceName(const String&) const;
  8151. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8152. // Properties:
  8153. bool autoReloadResources;
  8154. /* readonly */
  8155. String category;
  8156. int finishBackgroundResourcesMs;
  8157. Array<uint64> memoryBudget;
  8158. /* readonly */
  8159. Array<uint64> memoryUse;
  8160. /* readonly */
  8161. uint numBackgroundLoadResources;
  8162. /* readonly */
  8163. Array<PackageFile> packageFiles;
  8164. /* readonly */
  8165. int refs;
  8166. /* readonly */
  8167. Array<String> resourceDirs;
  8168. bool returnFailedResources;
  8169. /* readonly */
  8170. bool seachPackagesFirst;
  8171. /* writeonly */
  8172. bool searchPackagesFirst;
  8173. /* readonly */
  8174. uint64 totalMemoryUse;
  8175. /* readonly */
  8176. StringHash type;
  8177. /* readonly */
  8178. String typeName;
  8179. /* readonly */
  8180. int weakRefs;
  8181. };
  8182. class ResourceRef
  8183. {
  8184. // Properties:
  8185. String name;
  8186. StringHash type;
  8187. };
  8188. class ResourceRefList
  8189. {
  8190. // Methods:
  8191. void Resize(uint);
  8192. // Properties:
  8193. /* readonly */
  8194. bool empty;
  8195. /* readonly */
  8196. uint length;
  8197. Array<String> names;
  8198. StringHash type;
  8199. };
  8200. class RigidBody
  8201. {
  8202. // Methods:
  8203. void Activate();
  8204. void ApplyAttributes();
  8205. void ApplyForce(const Vector3&);
  8206. void ApplyForce(const Vector3&, const Vector3&);
  8207. void ApplyImpulse(const Vector3&);
  8208. void ApplyImpulse(const Vector3&, const Vector3&);
  8209. void ApplyTorque(const Vector3&);
  8210. void ApplyTorqueImpulse(const Vector3&);
  8211. void DisableMassUpdate();
  8212. void DrawDebugGeometry(DebugRenderer, bool);
  8213. void EnableMassUpdate();
  8214. Variant GetAttribute(const String&) const;
  8215. ValueAnimation GetAttributeAnimation(const String&) const;
  8216. float GetAttributeAnimationSpeed(const String&) const;
  8217. float GetAttributeAnimationTime(const String&) const;
  8218. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8219. Variant GetAttributeDefault(const String&) const;
  8220. bool GetInterceptNetworkUpdate(const String&) const;
  8221. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8222. bool HasSubscribedToEvent(Object, const String&);
  8223. bool HasSubscribedToEvent(const String&);
  8224. bool Load(File, bool = false);
  8225. bool Load(VectorBuffer&, bool = false);
  8226. bool LoadJSON(const JSONValue&, bool = false);
  8227. bool LoadXML(const XMLElement&, bool = false);
  8228. void MarkNetworkUpdate() const;
  8229. void ReAddBodyToWorld();
  8230. void Remove();
  8231. void RemoveAttributeAnimation(const String&);
  8232. void RemoveInstanceDefault();
  8233. void RemoveObjectAnimation();
  8234. void ResetForces();
  8235. void ResetToDefault();
  8236. bool Save(File) const;
  8237. bool Save(VectorBuffer&) const;
  8238. bool SaveJSON(JSONValue&) const;
  8239. bool SaveXML(XMLElement&) const;
  8240. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8241. void SetAnimationTime(float);
  8242. bool SetAttribute(const String&, const Variant&);
  8243. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8244. void SetAttributeAnimationSpeed(const String&, float);
  8245. void SetAttributeAnimationTime(const String&, float);
  8246. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8247. void SetCollisionLayerAndMask(uint, uint);
  8248. void SetInterceptNetworkUpdate(const String&, bool);
  8249. void SetTransform(const Vector3&, const Quaternion&);
  8250. // Properties:
  8251. /* readonly */
  8252. bool active;
  8253. float angularDamping;
  8254. Vector3 angularFactor;
  8255. float angularRestThreshold;
  8256. Vector3 angularVelocity;
  8257. bool animationEnabled;
  8258. Vector3 anisotropicFriction;
  8259. /* readonly */
  8260. Array<Variant> attributeDefaults;
  8261. /* readonly */
  8262. Array<AttributeInfo> attributeInfos;
  8263. Array<Variant> attributes;
  8264. /* readonly */
  8265. String category;
  8266. float ccdMotionThreshold;
  8267. float ccdRadius;
  8268. /* readonly */
  8269. Vector3 centerOfMass;
  8270. /* readonly */
  8271. Array<RigidBody> collidingBodies;
  8272. CollisionEventMode collisionEventMode;
  8273. uint collisionLayer;
  8274. uint collisionMask;
  8275. float contactProcessingThreshold;
  8276. bool enabled;
  8277. /* readonly */
  8278. bool enabledEffective;
  8279. float friction;
  8280. Vector3 gravityOverride;
  8281. /* readonly */
  8282. uint id;
  8283. bool kinematic;
  8284. float linearDamping;
  8285. Vector3 linearFactor;
  8286. float linearRestThreshold;
  8287. Vector3 linearVelocity;
  8288. float mass;
  8289. /* readonly */
  8290. Node node;
  8291. /* readonly */
  8292. uint numAttributes;
  8293. ObjectAnimation objectAnimation;
  8294. Vector3 position;
  8295. /* readonly */
  8296. int refs;
  8297. float restitution;
  8298. float rollingFriction;
  8299. Quaternion rotation;
  8300. bool temporary;
  8301. bool trigger;
  8302. /* readonly */
  8303. StringHash type;
  8304. /* readonly */
  8305. String typeName;
  8306. bool useGravity;
  8307. /* readonly */
  8308. int weakRefs;
  8309. };
  8310. class RigidBody2D
  8311. {
  8312. // Methods:
  8313. void ApplyAngularImpulse(float, bool);
  8314. void ApplyAttributes();
  8315. void ApplyForce(const Vector2&, const Vector2&, bool);
  8316. void ApplyForceToCenter(const Vector2&, bool);
  8317. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8318. void ApplyTorque(float, bool);
  8319. void DrawDebugGeometry(DebugRenderer, bool);
  8320. Variant GetAttribute(const String&) const;
  8321. ValueAnimation GetAttributeAnimation(const String&) const;
  8322. float GetAttributeAnimationSpeed(const String&) const;
  8323. float GetAttributeAnimationTime(const String&) const;
  8324. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8325. Variant GetAttributeDefault(const String&) const;
  8326. bool GetInterceptNetworkUpdate(const String&) const;
  8327. bool HasSubscribedToEvent(Object, const String&);
  8328. bool HasSubscribedToEvent(const String&);
  8329. bool Load(File, bool = false);
  8330. bool Load(VectorBuffer&, bool = false);
  8331. bool LoadJSON(const JSONValue&, bool = false);
  8332. bool LoadXML(const XMLElement&, bool = false);
  8333. void MarkNetworkUpdate() const;
  8334. void Remove();
  8335. void RemoveAttributeAnimation(const String&);
  8336. void RemoveInstanceDefault();
  8337. void RemoveObjectAnimation();
  8338. void ResetToDefault();
  8339. bool Save(File) const;
  8340. bool Save(VectorBuffer&) const;
  8341. bool SaveJSON(JSONValue&) const;
  8342. bool SaveXML(XMLElement&) const;
  8343. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8344. void SetAnimationTime(float);
  8345. bool SetAttribute(const String&, const Variant&);
  8346. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8347. void SetAttributeAnimationSpeed(const String&, float);
  8348. void SetAttributeAnimationTime(const String&, float);
  8349. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8350. void SetInterceptNetworkUpdate(const String&, bool);
  8351. // Properties:
  8352. bool allowSleep;
  8353. float angularDamping;
  8354. bool animationEnabled;
  8355. /* readonly */
  8356. Array<Variant> attributeDefaults;
  8357. /* readonly */
  8358. Array<AttributeInfo> attributeInfos;
  8359. Array<Variant> attributes;
  8360. bool awake;
  8361. BodyType2D bodyType;
  8362. bool bullet;
  8363. /* readonly */
  8364. String category;
  8365. bool enabled;
  8366. /* readonly */
  8367. bool enabledEffective;
  8368. bool fixedRotation;
  8369. float gravityScale;
  8370. /* readonly */
  8371. uint id;
  8372. float inertia;
  8373. float linearDamping;
  8374. Vector2 linearVelocity;
  8375. float mass;
  8376. Vector2 massCenter;
  8377. /* readonly */
  8378. Node node;
  8379. /* readonly */
  8380. uint numAttributes;
  8381. ObjectAnimation objectAnimation;
  8382. /* readonly */
  8383. int refs;
  8384. bool temporary;
  8385. /* readonly */
  8386. StringHash type;
  8387. /* readonly */
  8388. String typeName;
  8389. bool useFixtureMass;
  8390. /* readonly */
  8391. int weakRefs;
  8392. };
  8393. class Scene
  8394. {
  8395. // Methods:
  8396. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8397. void AddRequiredPackageFile(PackageFile);
  8398. void AddTag(const String&);
  8399. void AddTags(const String&, int8 = ';');
  8400. void ApplyAttributes();
  8401. void Clear(bool = true, bool = true);
  8402. void ClearRequiredPackageFiles();
  8403. Component CloneComponent(Component, CreateMode, uint = 0);
  8404. Component CloneComponent(Component, uint = 0);
  8405. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8406. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8407. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8408. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8409. Variant GetAttribute(const String&) const;
  8410. ValueAnimation GetAttributeAnimation(const String&) const;
  8411. float GetAttributeAnimationSpeed(const String&) const;
  8412. float GetAttributeAnimationTime(const String&) const;
  8413. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8414. Variant GetAttributeDefault(const String&) const;
  8415. Node GetChild(const String&, bool = false) const;
  8416. Array<Node> GetChildren(bool = false) const;
  8417. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8418. Array<Node> GetChildrenWithScript(bool = false) const;
  8419. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8420. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8421. Component GetComponent(const String&, bool = false) const;
  8422. Component GetComponent(uint) const;
  8423. Array<Component> GetComponents() const;
  8424. Array<Component> GetComponents(const String&, bool = false) const;
  8425. bool GetInterceptNetworkUpdate(const String&) const;
  8426. Node GetNode(uint) const;
  8427. Array<Node> GetNodesWithTag(const String&) const;
  8428. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8429. Component GetParentComponent(const String&, bool = false) const;
  8430. ScriptObject GetScriptObject() const;
  8431. ScriptObject GetScriptObject(const String&) const;
  8432. bool HasComponent(const String&) const;
  8433. bool HasSubscribedToEvent(Object, const String&);
  8434. bool HasSubscribedToEvent(const String&);
  8435. bool HasTag(const String&);
  8436. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8437. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8438. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8439. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8440. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8441. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8442. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8443. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8444. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8445. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8446. bool Load(File, bool = false);
  8447. bool Load(VectorBuffer&, bool = false);
  8448. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8449. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8450. bool LoadJSON(File);
  8451. bool LoadJSON(VectorBuffer&);
  8452. bool LoadJSON(const JSONValue&, bool = false);
  8453. bool LoadXML(File);
  8454. bool LoadXML(VectorBuffer&);
  8455. bool LoadXML(const XMLElement&, bool = false);
  8456. Vector3 LocalToWorld(const Vector3&) const;
  8457. Vector3 LocalToWorld(const Vector4&) const;
  8458. Vector2 LocalToWorld2D(const Vector2&) const;
  8459. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8460. void MarkNetworkUpdate() const;
  8461. void Pitch(float, TransformSpace = TS_LOCAL);
  8462. void RegisterVar(const String&);
  8463. void Remove();
  8464. void RemoveAllChildren();
  8465. void RemoveAllComponents();
  8466. void RemoveAllTags();
  8467. void RemoveAttributeAnimation(const String&);
  8468. void RemoveChild(Node);
  8469. void RemoveChildren(bool, bool, bool);
  8470. void RemoveComponent(Component);
  8471. void RemoveComponent(const String&);
  8472. void RemoveComponents(bool, bool);
  8473. void RemoveComponents(const String&);
  8474. void RemoveInstanceDefault();
  8475. void RemoveObjectAnimation();
  8476. bool RemoveTag(const String&);
  8477. void ResetToDefault();
  8478. void Roll(float, TransformSpace = TS_LOCAL);
  8479. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8480. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8481. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8482. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8483. bool Save(File) const;
  8484. bool Save(VectorBuffer&) const;
  8485. bool SaveJSON(File, const String& = "\t");
  8486. bool SaveJSON(JSONValue&) const;
  8487. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8488. bool SaveXML(File, const String& = "\t");
  8489. bool SaveXML(VectorBuffer&, const String& = "\t");
  8490. bool SaveXML(XMLElement&) const;
  8491. void Scale(const Vector3&);
  8492. void Scale(float);
  8493. void Scale2D(const Vector2&);
  8494. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8495. void SetAnimationTime(float);
  8496. bool SetAttribute(const String&, const Variant&);
  8497. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8498. void SetAttributeAnimationSpeed(const String&, float);
  8499. void SetAttributeAnimationTime(const String&, float);
  8500. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8501. void SetInterceptNetworkUpdate(const String&, bool);
  8502. void SetPosition2D(float, float);
  8503. void SetScale(float);
  8504. void SetScale2D(float, float);
  8505. void SetTransform(const Vector3&, const Quaternion&);
  8506. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8507. void SetTransform(const Vector3&, const Quaternion&, float);
  8508. void SetTransform2D(const Vector2&, float);
  8509. void SetTransform2D(const Vector2&, float, const Vector2&);
  8510. void SetTransform2D(const Vector2&, float, float);
  8511. void SetWorldTransform(const Vector3&, const Quaternion&);
  8512. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8513. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8514. void SetWorldTransform2D(const Vector2&, float);
  8515. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8516. void SetWorldTransform2D(const Vector2&, float, float);
  8517. void StopAsyncLoading();
  8518. const String& GetVarName(StringHash) const;
  8519. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8520. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8521. void UnregisterAllVars(const String&);
  8522. void UnregisterVar(const String&);
  8523. void Update(float);
  8524. Vector3 WorldToLocal(const Vector3&) const;
  8525. Vector3 WorldToLocal(const Vector4&) const;
  8526. Vector2 WorldToLocal2D(const Vector2&) const;
  8527. void Yaw(float, TransformSpace = TS_LOCAL);
  8528. // Properties:
  8529. bool animationEnabled;
  8530. /* readonly */
  8531. LoadMode asyncLoadMode;
  8532. /* readonly */
  8533. bool asyncLoading;
  8534. int asyncLoadingMs;
  8535. /* readonly */
  8536. float asyncProgress;
  8537. /* readonly */
  8538. Array<Variant> attributeDefaults;
  8539. /* readonly */
  8540. Array<AttributeInfo> attributeInfos;
  8541. Array<Variant> attributes;
  8542. /* readonly */
  8543. String category;
  8544. /* readonly */
  8545. uint checksum;
  8546. /* readonly */
  8547. Array<Node> children;
  8548. /* readonly */
  8549. Array<Component> components;
  8550. /* readonly */
  8551. DebugRenderer debugRenderer;
  8552. Vector3 direction;
  8553. float elapsedTime;
  8554. /* readonly */
  8555. String fileName;
  8556. /* readonly */
  8557. uint id;
  8558. String name;
  8559. /* readonly */
  8560. uint numAllChildren;
  8561. /* readonly */
  8562. uint numAttributes;
  8563. /* readonly */
  8564. uint numChildren;
  8565. /* readonly */
  8566. uint numComponents;
  8567. ObjectAnimation objectAnimation;
  8568. /* readonly */
  8569. Octree octree;
  8570. Node parent;
  8571. /* readonly */
  8572. PhysicsWorld physicsWorld;
  8573. /* readonly */
  8574. PhysicsWorld2D physicsWorld2D;
  8575. Vector3 position;
  8576. Vector2 position2D;
  8577. /* readonly */
  8578. int refs;
  8579. /* readonly */
  8580. Array<PackageFile> requiredPackageFiles;
  8581. /* readonly */
  8582. Vector3 right;
  8583. Quaternion rotation;
  8584. float rotation2D;
  8585. Vector3 scale;
  8586. Vector2 scale2D;
  8587. /* readonly */
  8588. ScriptObject scriptObject;
  8589. float smoothingConstant;
  8590. float snapThreshold;
  8591. /* readonly */
  8592. Array<String> tags;
  8593. bool temporary;
  8594. float timeScale;
  8595. /* readonly */
  8596. Matrix3x4 transform;
  8597. /* readonly */
  8598. StringHash type;
  8599. /* readonly */
  8600. String typeName;
  8601. /* readonly */
  8602. Vector3 up;
  8603. bool updateEnabled;
  8604. /* readonly */
  8605. VariantMap vars;
  8606. /* readonly */
  8607. int weakRefs;
  8608. Vector3 worldDirection;
  8609. Vector3 worldPosition;
  8610. Vector2 worldPosition2D;
  8611. /* readonly */
  8612. Vector3 worldRight;
  8613. Quaternion worldRotation;
  8614. float worldRotation2D;
  8615. Vector3 worldScale;
  8616. Vector2 worldScale2D;
  8617. /* readonly */
  8618. Matrix3x4 worldTransform;
  8619. /* readonly */
  8620. Vector3 worldUp;
  8621. };
  8622. class Script
  8623. {
  8624. // Methods:
  8625. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8626. bool Execute(const String&);
  8627. bool HasSubscribedToEvent(Object, const String&);
  8628. bool HasSubscribedToEvent(const String&);
  8629. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8630. // Properties:
  8631. /* readonly */
  8632. String category;
  8633. Scene defaultScene;
  8634. ScriptFile defaultScriptFile;
  8635. bool executeConsoleCommands;
  8636. /* readonly */
  8637. int refs;
  8638. /* readonly */
  8639. StringHash type;
  8640. /* readonly */
  8641. String typeName;
  8642. /* readonly */
  8643. int weakRefs;
  8644. };
  8645. class ScriptFile
  8646. {
  8647. // Methods:
  8648. void ClearDelayedExecute(const String& = String ( ));
  8649. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8650. bool Execute(const String&, const Array<Variant> = null);
  8651. bool HasSubscribedToEvent(Object, const String&);
  8652. bool HasSubscribedToEvent(const String&);
  8653. bool Load(File);
  8654. bool Load(VectorBuffer&);
  8655. bool Save(File) const;
  8656. bool Save(VectorBuffer&) const;
  8657. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8658. // Properties:
  8659. /* readonly */
  8660. String category;
  8661. /* readonly */
  8662. bool compiled;
  8663. /* readonly */
  8664. uint memoryUse;
  8665. String name;
  8666. /* readonly */
  8667. int refs;
  8668. /* readonly */
  8669. StringHash type;
  8670. /* readonly */
  8671. String typeName;
  8672. /* readonly */
  8673. uint useTimer;
  8674. /* readonly */
  8675. int weakRefs;
  8676. };
  8677. class ScriptInstance
  8678. {
  8679. // Methods:
  8680. void ApplyAttributes();
  8681. void ClearDelayedExecute(const String& = String ( ));
  8682. bool CreateObject(ScriptFile, const String&);
  8683. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8684. void DrawDebugGeometry(DebugRenderer, bool);
  8685. bool Execute(const String&, const Array<Variant> = null);
  8686. Variant GetAttribute(const String&) const;
  8687. ValueAnimation GetAttributeAnimation(const String&) const;
  8688. float GetAttributeAnimationSpeed(const String&) const;
  8689. float GetAttributeAnimationTime(const String&) const;
  8690. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8691. Variant GetAttributeDefault(const String&) const;
  8692. bool GetInterceptNetworkUpdate(const String&) const;
  8693. bool HasMethod(const String&) const;
  8694. bool HasSubscribedToEvent(Object, const String&);
  8695. bool HasSubscribedToEvent(const String&);
  8696. bool IsA(const String&) const;
  8697. bool Load(File, bool = false);
  8698. bool Load(VectorBuffer&, bool = false);
  8699. bool LoadJSON(const JSONValue&, bool = false);
  8700. bool LoadXML(const XMLElement&, bool = false);
  8701. void MarkNetworkUpdate() const;
  8702. void Remove();
  8703. void RemoveAttributeAnimation(const String&);
  8704. void RemoveInstanceDefault();
  8705. void RemoveObjectAnimation();
  8706. void ResetToDefault();
  8707. bool Save(File) const;
  8708. bool Save(VectorBuffer&) const;
  8709. bool SaveJSON(JSONValue&) const;
  8710. bool SaveXML(XMLElement&) const;
  8711. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8712. void SetAnimationTime(float);
  8713. bool SetAttribute(const String&, const Variant&);
  8714. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8715. void SetAttributeAnimationSpeed(const String&, float);
  8716. void SetAttributeAnimationTime(const String&, float);
  8717. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8718. void SetInterceptNetworkUpdate(const String&, bool);
  8719. // Properties:
  8720. bool animationEnabled;
  8721. /* readonly */
  8722. Array<Variant> attributeDefaults;
  8723. /* readonly */
  8724. Array<AttributeInfo> attributeInfos;
  8725. Array<Variant> attributes;
  8726. /* readonly */
  8727. String category;
  8728. String className;
  8729. bool enabled;
  8730. /* readonly */
  8731. bool enabledEffective;
  8732. /* readonly */
  8733. uint id;
  8734. /* readonly */
  8735. Node node;
  8736. /* readonly */
  8737. uint numAttributes;
  8738. ObjectAnimation objectAnimation;
  8739. /* readonly */
  8740. int refs;
  8741. ScriptFile scriptFile;
  8742. /* readonly */
  8743. ScriptObject scriptObject;
  8744. bool temporary;
  8745. /* readonly */
  8746. StringHash type;
  8747. /* readonly */
  8748. String typeName;
  8749. /* readonly */
  8750. int weakRefs;
  8751. };
  8752. class ScriptObject
  8753. {
  8754. };
  8755. class ScrollBar
  8756. {
  8757. // Methods:
  8758. void AddChild(UIElement);
  8759. void AddTag(const String&);
  8760. void AddTags(const String&, int8 = ';');
  8761. void ApplyAttributes();
  8762. void BringToFront();
  8763. void ChangeValue(float);
  8764. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8765. void DisableLayoutUpdate();
  8766. IntVector2 ElementToScreen(const IntVector2&);
  8767. void EnableLayoutUpdate();
  8768. uint FindChild(UIElement) const;
  8769. Variant GetAttribute(const String&) const;
  8770. ValueAnimation GetAttributeAnimation(const String&) const;
  8771. float GetAttributeAnimationSpeed(const String&) const;
  8772. float GetAttributeAnimationTime(const String&) const;
  8773. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8774. Variant GetAttributeDefault(const String&) const;
  8775. UIElement GetChild(const String&, bool = false) const;
  8776. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8777. Array<UIElement> GetChildren(bool = false) const;
  8778. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8779. UIElement GetElementEventSender() const;
  8780. bool GetInterceptNetworkUpdate(const String&) const;
  8781. uint GetNumChildren(bool) const;
  8782. bool HasSubscribedToEvent(Object, const String&);
  8783. bool HasSubscribedToEvent(const String&);
  8784. bool HasTag(const String&) const;
  8785. void InsertChild(uint, UIElement);
  8786. bool IsInside(IntVector2, bool);
  8787. bool IsInsideCombined(IntVector2, bool);
  8788. bool Load(File, bool = false);
  8789. bool Load(VectorBuffer&, bool = false);
  8790. bool LoadChildXML(XMLFile, XMLFile = null);
  8791. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8792. bool LoadJSON(const JSONValue&, bool = false);
  8793. bool LoadXML(File);
  8794. bool LoadXML(VectorBuffer&);
  8795. bool LoadXML(XMLFile, XMLFile);
  8796. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8797. bool LoadXML(const XMLElement&, bool = false);
  8798. void MarkNetworkUpdate() const;
  8799. void Remove();
  8800. void RemoveAllChildren();
  8801. void RemoveAllTags();
  8802. void RemoveAttributeAnimation(const String&);
  8803. void RemoveChild(UIElement, uint = 0);
  8804. void RemoveChild(uint);
  8805. void RemoveInstanceDefault();
  8806. void RemoveObjectAnimation();
  8807. bool RemoveTag(const String&);
  8808. void ResetDeepEnabled();
  8809. void ResetToDefault();
  8810. bool Save(File) const;
  8811. bool Save(VectorBuffer&) const;
  8812. bool SaveJSON(JSONValue&) const;
  8813. bool SaveXML(File, const String& = "\t");
  8814. bool SaveXML(VectorBuffer&, const String& = "\t");
  8815. bool SaveXML(XMLElement&) const;
  8816. IntVector2 ScreenToElement(const IntVector2&);
  8817. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8818. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8819. void SetAnimationTime(float);
  8820. bool SetAttribute(const String&, const Variant&);
  8821. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8822. void SetAttributeAnimationSpeed(const String&, float);
  8823. void SetAttributeAnimationTime(const String&, float);
  8824. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8825. void SetDeepEnabled(bool);
  8826. void SetEnabledRecursive(bool);
  8827. void SetFixedHeight(int);
  8828. void SetFixedSize(int, int);
  8829. void SetFixedWidth(int);
  8830. void SetInterceptNetworkUpdate(const String&, bool);
  8831. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8832. void SetMaxSize(int, int);
  8833. void SetMinSize(int, int);
  8834. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8835. void SetPosition(int, int);
  8836. void SetSize(int, int);
  8837. bool SetStyle(const String&, XMLFile = null);
  8838. bool SetStyle(const XMLElement&);
  8839. bool SetStyleAuto(XMLFile = null);
  8840. void StepBack();
  8841. void StepForward();
  8842. void UpdateLayout();
  8843. const Variant& GetVar(const StringHash&);
  8844. // Properties:
  8845. bool animationEnabled;
  8846. /* readonly */
  8847. Array<Variant> attributeDefaults;
  8848. /* readonly */
  8849. Array<AttributeInfo> attributeInfos;
  8850. Array<Variant> attributes;
  8851. /* readonly */
  8852. Button backButton;
  8853. bool bringToBack;
  8854. bool bringToFront;
  8855. /* readonly */
  8856. String category;
  8857. /* readonly */
  8858. IntVector2 childOffset;
  8859. /* readonly */
  8860. Array<UIElement> children;
  8861. IntRect clipBorder;
  8862. bool clipChildren;
  8863. /* writeonly */
  8864. Color color;
  8865. /* readonly */
  8866. bool colorGradient;
  8867. Array<Color> colors;
  8868. /* readonly */
  8869. IntRect combinedScreenRect;
  8870. XMLFile defaultStyle;
  8871. /* readonly */
  8872. float derivedOpacity;
  8873. /* readonly */
  8874. uint dragButtonCombo;
  8875. /* readonly */
  8876. int dragButtonCount;
  8877. uint dragDropMode;
  8878. bool editable;
  8879. /* readonly */
  8880. float effectiveScrollStep;
  8881. bool elementEventSender;
  8882. bool enabled;
  8883. /* readonly */
  8884. bool enabledSelf;
  8885. /* readonly */
  8886. bool fixedHeight;
  8887. /* readonly */
  8888. bool fixedSize;
  8889. /* readonly */
  8890. bool fixedWidth;
  8891. bool focus;
  8892. FocusMode focusMode;
  8893. /* readonly */
  8894. Button forwardButton;
  8895. int height;
  8896. HorizontalAlignment horizontalAlignment;
  8897. /* readonly */
  8898. bool hovering;
  8899. int indent;
  8900. int indentSpacing;
  8901. /* readonly */
  8902. int indentWidth;
  8903. bool internal;
  8904. IntRect layoutBorder;
  8905. Vector2 layoutFlexScale;
  8906. LayoutMode layoutMode;
  8907. int layoutSpacing;
  8908. int maxHeight;
  8909. IntVector2 maxSize;
  8910. int maxWidth;
  8911. int minHeight;
  8912. IntVector2 minSize;
  8913. int minWidth;
  8914. String name;
  8915. /* readonly */
  8916. uint numAllChildren;
  8917. /* readonly */
  8918. uint numAttributes;
  8919. /* readonly */
  8920. uint numChildren;
  8921. ObjectAnimation objectAnimation;
  8922. float opacity;
  8923. Orientation orientation;
  8924. UIElement parent;
  8925. IntVector2 position;
  8926. int priority;
  8927. float range;
  8928. /* readonly */
  8929. int refs;
  8930. /* readonly */
  8931. UIElement root;
  8932. /* readonly */
  8933. IntVector2 screenPosition;
  8934. float scrollStep;
  8935. bool selected;
  8936. IntVector2 size;
  8937. /* readonly */
  8938. Slider slider;
  8939. bool sortChildren;
  8940. float stepFactor;
  8941. String style;
  8942. /* readonly */
  8943. Array<String> tags;
  8944. bool temporary;
  8945. TraversalMode traversalMode;
  8946. /* readonly */
  8947. StringHash type;
  8948. /* readonly */
  8949. String typeName;
  8950. bool useDerivedOpacity;
  8951. float value;
  8952. /* readonly */
  8953. VariantMap vars;
  8954. VerticalAlignment verticalAlignment;
  8955. bool visible;
  8956. /* readonly */
  8957. bool visibleEffective;
  8958. /* readonly */
  8959. int weakRefs;
  8960. int width;
  8961. };
  8962. class ScrollView
  8963. {
  8964. // Methods:
  8965. void AddChild(UIElement);
  8966. void AddTag(const String&);
  8967. void AddTags(const String&, int8 = ';');
  8968. void ApplyAttributes();
  8969. void BringToFront();
  8970. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8971. void DisableLayoutUpdate();
  8972. IntVector2 ElementToScreen(const IntVector2&);
  8973. void EnableLayoutUpdate();
  8974. uint FindChild(UIElement) const;
  8975. Variant GetAttribute(const String&) const;
  8976. ValueAnimation GetAttributeAnimation(const String&) const;
  8977. float GetAttributeAnimationSpeed(const String&) const;
  8978. float GetAttributeAnimationTime(const String&) const;
  8979. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8980. Variant GetAttributeDefault(const String&) const;
  8981. UIElement GetChild(const String&, bool = false) const;
  8982. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8983. Array<UIElement> GetChildren(bool = false) const;
  8984. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8985. UIElement GetElementEventSender() const;
  8986. bool GetInterceptNetworkUpdate(const String&) const;
  8987. uint GetNumChildren(bool) const;
  8988. bool HasSubscribedToEvent(Object, const String&);
  8989. bool HasSubscribedToEvent(const String&);
  8990. bool HasTag(const String&) const;
  8991. void InsertChild(uint, UIElement);
  8992. bool IsInside(IntVector2, bool);
  8993. bool IsInsideCombined(IntVector2, bool);
  8994. bool Load(File, bool = false);
  8995. bool Load(VectorBuffer&, bool = false);
  8996. bool LoadChildXML(XMLFile, XMLFile = null);
  8997. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8998. bool LoadJSON(const JSONValue&, bool = false);
  8999. bool LoadXML(File);
  9000. bool LoadXML(VectorBuffer&);
  9001. bool LoadXML(XMLFile, XMLFile);
  9002. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9003. bool LoadXML(const XMLElement&, bool = false);
  9004. void MarkNetworkUpdate() const;
  9005. void Remove();
  9006. void RemoveAllChildren();
  9007. void RemoveAllTags();
  9008. void RemoveAttributeAnimation(const String&);
  9009. void RemoveChild(UIElement, uint = 0);
  9010. void RemoveChild(uint);
  9011. void RemoveInstanceDefault();
  9012. void RemoveObjectAnimation();
  9013. bool RemoveTag(const String&);
  9014. void ResetDeepEnabled();
  9015. void ResetToDefault();
  9016. bool Save(File) const;
  9017. bool Save(VectorBuffer&) const;
  9018. bool SaveJSON(JSONValue&) const;
  9019. bool SaveXML(File, const String& = "\t");
  9020. bool SaveXML(VectorBuffer&, const String& = "\t");
  9021. bool SaveXML(XMLElement&) const;
  9022. IntVector2 ScreenToElement(const IntVector2&);
  9023. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9024. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9025. void SetAnimationTime(float);
  9026. bool SetAttribute(const String&, const Variant&);
  9027. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9028. void SetAttributeAnimationSpeed(const String&, float);
  9029. void SetAttributeAnimationTime(const String&, float);
  9030. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9031. void SetDeepEnabled(bool);
  9032. void SetEnabledRecursive(bool);
  9033. void SetFixedHeight(int);
  9034. void SetFixedSize(int, int);
  9035. void SetFixedWidth(int);
  9036. void SetInterceptNetworkUpdate(const String&, bool);
  9037. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9038. void SetMaxSize(int, int);
  9039. void SetMinSize(int, int);
  9040. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9041. void SetPosition(int, int);
  9042. void SetScrollBarsVisible(bool, bool);
  9043. void SetSize(int, int);
  9044. bool SetStyle(const String&, XMLFile = null);
  9045. bool SetStyle(const XMLElement&);
  9046. bool SetStyleAuto(XMLFile = null);
  9047. void SetViewPosition(int, int);
  9048. void UpdateLayout();
  9049. const Variant& GetVar(const StringHash&);
  9050. // Properties:
  9051. bool animationEnabled;
  9052. /* readonly */
  9053. Array<Variant> attributeDefaults;
  9054. /* readonly */
  9055. Array<AttributeInfo> attributeInfos;
  9056. Array<Variant> attributes;
  9057. bool autoDisableChildren;
  9058. float autoDisableThreshold;
  9059. bool bringToBack;
  9060. bool bringToFront;
  9061. /* readonly */
  9062. String category;
  9063. /* readonly */
  9064. IntVector2 childOffset;
  9065. /* readonly */
  9066. Array<UIElement> children;
  9067. IntRect clipBorder;
  9068. bool clipChildren;
  9069. /* writeonly */
  9070. Color color;
  9071. /* readonly */
  9072. bool colorGradient;
  9073. Array<Color> colors;
  9074. /* readonly */
  9075. IntRect combinedScreenRect;
  9076. UIElement contentElement;
  9077. XMLFile defaultStyle;
  9078. /* readonly */
  9079. float derivedOpacity;
  9080. /* readonly */
  9081. uint dragButtonCombo;
  9082. /* readonly */
  9083. int dragButtonCount;
  9084. uint dragDropMode;
  9085. bool editable;
  9086. bool elementEventSender;
  9087. bool enabled;
  9088. /* readonly */
  9089. bool enabledSelf;
  9090. /* readonly */
  9091. bool fixedHeight;
  9092. /* readonly */
  9093. bool fixedSize;
  9094. /* readonly */
  9095. bool fixedWidth;
  9096. bool focus;
  9097. FocusMode focusMode;
  9098. int height;
  9099. HorizontalAlignment horizontalAlignment;
  9100. /* readonly */
  9101. ScrollBar horizontalScrollBar;
  9102. /* readonly */
  9103. bool hovering;
  9104. int indent;
  9105. int indentSpacing;
  9106. /* readonly */
  9107. int indentWidth;
  9108. bool internal;
  9109. IntRect layoutBorder;
  9110. Vector2 layoutFlexScale;
  9111. LayoutMode layoutMode;
  9112. int layoutSpacing;
  9113. int maxHeight;
  9114. IntVector2 maxSize;
  9115. int maxWidth;
  9116. int minHeight;
  9117. IntVector2 minSize;
  9118. int minWidth;
  9119. String name;
  9120. /* readonly */
  9121. uint numAllChildren;
  9122. /* readonly */
  9123. uint numAttributes;
  9124. /* readonly */
  9125. uint numChildren;
  9126. ObjectAnimation objectAnimation;
  9127. float opacity;
  9128. float pageStep;
  9129. UIElement parent;
  9130. IntVector2 position;
  9131. int priority;
  9132. /* readonly */
  9133. int refs;
  9134. /* readonly */
  9135. UIElement root;
  9136. /* readonly */
  9137. IntVector2 screenPosition;
  9138. bool scrollBarsAutoVisible;
  9139. float scrollDeceleration;
  9140. /* readonly */
  9141. BorderImage scrollPanel;
  9142. float scrollSnapEpsilon;
  9143. float scrollStep;
  9144. bool selected;
  9145. IntVector2 size;
  9146. bool sortChildren;
  9147. String style;
  9148. /* readonly */
  9149. Array<String> tags;
  9150. bool temporary;
  9151. TraversalMode traversalMode;
  9152. /* readonly */
  9153. StringHash type;
  9154. /* readonly */
  9155. String typeName;
  9156. bool useDerivedOpacity;
  9157. /* readonly */
  9158. VariantMap vars;
  9159. VerticalAlignment verticalAlignment;
  9160. /* readonly */
  9161. ScrollBar verticalScrollBar;
  9162. IntVector2 viewPosition;
  9163. bool visible;
  9164. /* readonly */
  9165. bool visibleEffective;
  9166. /* readonly */
  9167. int weakRefs;
  9168. int width;
  9169. };
  9170. class Serializable
  9171. {
  9172. // Methods:
  9173. void ApplyAttributes();
  9174. Variant GetAttribute(const String&) const;
  9175. Variant GetAttributeDefault(const String&) const;
  9176. bool GetInterceptNetworkUpdate(const String&) const;
  9177. bool HasSubscribedToEvent(Object, const String&);
  9178. bool HasSubscribedToEvent(const String&);
  9179. bool Load(File, bool = false);
  9180. bool Load(VectorBuffer&, bool = false);
  9181. bool LoadJSON(const JSONValue&, bool = false);
  9182. bool LoadXML(const XMLElement&, bool = false);
  9183. void MarkNetworkUpdate() const;
  9184. void RemoveInstanceDefault();
  9185. void ResetToDefault();
  9186. bool Save(File) const;
  9187. bool Save(VectorBuffer&) const;
  9188. bool SaveJSON(JSONValue&) const;
  9189. bool SaveXML(XMLElement&) const;
  9190. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9191. bool SetAttribute(const String&, const Variant&);
  9192. void SetInterceptNetworkUpdate(const String&, bool);
  9193. // Properties:
  9194. /* readonly */
  9195. Array<Variant> attributeDefaults;
  9196. /* readonly */
  9197. Array<AttributeInfo> attributeInfos;
  9198. Array<Variant> attributes;
  9199. /* readonly */
  9200. String category;
  9201. /* readonly */
  9202. uint numAttributes;
  9203. /* readonly */
  9204. int refs;
  9205. bool temporary;
  9206. /* readonly */
  9207. StringHash type;
  9208. /* readonly */
  9209. String typeName;
  9210. /* readonly */
  9211. int weakRefs;
  9212. };
  9213. class Serializer
  9214. {
  9215. // Methods:
  9216. uint Write(Array<uint8>);
  9217. bool WriteBool(bool);
  9218. bool WriteBoundingBox(const BoundingBox&);
  9219. bool WriteByte(int8);
  9220. bool WriteColor(const Color&);
  9221. bool WriteDouble(double);
  9222. bool WriteFileID(const String&);
  9223. bool WriteFloat(float);
  9224. bool WriteInt(int);
  9225. bool WriteIntRect(const IntRect&);
  9226. bool WriteIntVector2(const IntVector2&);
  9227. bool WriteLine(const String&);
  9228. bool WriteMatrix3(const Matrix3&);
  9229. bool WriteMatrix3x4(const Matrix3x4&);
  9230. bool WriteMatrix4(const Matrix4&);
  9231. bool WriteNetID(uint);
  9232. bool WritePackedQuaternion(const Quaternion&);
  9233. bool WritePackedVector3(const Vector3&, float);
  9234. bool WriteQuaternion(const Quaternion&);
  9235. bool WriteShort(int16);
  9236. bool WriteString(const String&);
  9237. bool WriteStringHash(const StringHash&);
  9238. bool WriteUByte(uint8);
  9239. bool WriteUInt(uint);
  9240. bool WriteUShort(uint16);
  9241. bool WriteVLE(uint);
  9242. bool WriteVariant(const Variant&);
  9243. bool WriteVariantMap(const VariantMap&);
  9244. bool WriteVector2(const Vector2&);
  9245. bool WriteVector3(const Vector3&);
  9246. bool WriteVector4(const Vector4&);
  9247. bool WriteVectorBuffer(const VectorBuffer&);
  9248. };
  9249. class Skeleton
  9250. {
  9251. // Methods:
  9252. Bone GetBone(const String&) const;
  9253. void Reset();
  9254. // Properties:
  9255. /* readonly */
  9256. Array<Bone> bones;
  9257. /* readonly */
  9258. uint numBones;
  9259. /* readonly */
  9260. Bone rootBone;
  9261. };
  9262. class Skybox
  9263. {
  9264. // Methods:
  9265. void ApplyAttributes();
  9266. void ApplyMaterialList(const String& = String ( ));
  9267. void DrawDebugGeometry(DebugRenderer, bool);
  9268. Variant GetAttribute(const String&) const;
  9269. ValueAnimation GetAttributeAnimation(const String&) const;
  9270. float GetAttributeAnimationSpeed(const String&) const;
  9271. float GetAttributeAnimationTime(const String&) const;
  9272. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9273. Variant GetAttributeDefault(const String&) const;
  9274. bool GetInterceptNetworkUpdate(const String&) const;
  9275. bool HasSubscribedToEvent(Object, const String&);
  9276. bool HasSubscribedToEvent(const String&);
  9277. bool IsInView(Camera) const;
  9278. bool Load(File, bool = false);
  9279. bool Load(VectorBuffer&, bool = false);
  9280. bool LoadJSON(const JSONValue&, bool = false);
  9281. bool LoadXML(const XMLElement&, bool = false);
  9282. void MarkNetworkUpdate() const;
  9283. void Remove();
  9284. void RemoveAttributeAnimation(const String&);
  9285. void RemoveInstanceDefault();
  9286. void RemoveObjectAnimation();
  9287. void ResetToDefault();
  9288. bool Save(File) const;
  9289. bool Save(VectorBuffer&) const;
  9290. bool SaveJSON(JSONValue&) const;
  9291. bool SaveXML(XMLElement&) const;
  9292. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9293. void SetAnimationTime(float);
  9294. bool SetAttribute(const String&, const Variant&);
  9295. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9296. void SetAttributeAnimationSpeed(const String&, float);
  9297. void SetAttributeAnimationTime(const String&, float);
  9298. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9299. void SetInterceptNetworkUpdate(const String&, bool);
  9300. // Properties:
  9301. bool animationEnabled;
  9302. /* readonly */
  9303. Array<Variant> attributeDefaults;
  9304. /* readonly */
  9305. Array<AttributeInfo> attributeInfos;
  9306. Array<Variant> attributes;
  9307. /* readonly */
  9308. BoundingBox boundingBox;
  9309. bool castShadows;
  9310. /* readonly */
  9311. String category;
  9312. float drawDistance;
  9313. bool enabled;
  9314. /* readonly */
  9315. bool enabledEffective;
  9316. /* readonly */
  9317. uint id;
  9318. /* readonly */
  9319. bool inView;
  9320. uint lightMask;
  9321. float lodBias;
  9322. /* writeonly */
  9323. Material material;
  9324. Array<Material> materials;
  9325. uint maxLights;
  9326. Model model;
  9327. /* readonly */
  9328. Node node;
  9329. /* readonly */
  9330. uint numAttributes;
  9331. /* readonly */
  9332. uint numGeometries;
  9333. ObjectAnimation objectAnimation;
  9334. bool occludee;
  9335. bool occluder;
  9336. /* readonly */
  9337. int refs;
  9338. float shadowDistance;
  9339. uint shadowMask;
  9340. bool temporary;
  9341. /* readonly */
  9342. StringHash type;
  9343. /* readonly */
  9344. String typeName;
  9345. uint viewMask;
  9346. /* readonly */
  9347. int weakRefs;
  9348. /* readonly */
  9349. BoundingBox worldBoundingBox;
  9350. /* readonly */
  9351. Zone zone;
  9352. uint zoneMask;
  9353. };
  9354. class Slider
  9355. {
  9356. // Methods:
  9357. void AddChild(UIElement);
  9358. void AddTag(const String&);
  9359. void AddTags(const String&, int8 = ';');
  9360. void ApplyAttributes();
  9361. void BringToFront();
  9362. void ChangeValue(float);
  9363. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9364. void DisableLayoutUpdate();
  9365. IntVector2 ElementToScreen(const IntVector2&);
  9366. void EnableLayoutUpdate();
  9367. uint FindChild(UIElement) const;
  9368. Variant GetAttribute(const String&) const;
  9369. ValueAnimation GetAttributeAnimation(const String&) const;
  9370. float GetAttributeAnimationSpeed(const String&) const;
  9371. float GetAttributeAnimationTime(const String&) const;
  9372. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9373. Variant GetAttributeDefault(const String&) const;
  9374. UIElement GetChild(const String&, bool = false) const;
  9375. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9376. Array<UIElement> GetChildren(bool = false) const;
  9377. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9378. UIElement GetElementEventSender() const;
  9379. bool GetInterceptNetworkUpdate(const String&) const;
  9380. uint GetNumChildren(bool) const;
  9381. bool HasSubscribedToEvent(Object, const String&);
  9382. bool HasSubscribedToEvent(const String&);
  9383. bool HasTag(const String&) const;
  9384. void InsertChild(uint, UIElement);
  9385. bool IsInside(IntVector2, bool);
  9386. bool IsInsideCombined(IntVector2, bool);
  9387. bool Load(File, bool = false);
  9388. bool Load(VectorBuffer&, bool = false);
  9389. bool LoadChildXML(XMLFile, XMLFile = null);
  9390. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9391. bool LoadJSON(const JSONValue&, bool = false);
  9392. bool LoadXML(File);
  9393. bool LoadXML(VectorBuffer&);
  9394. bool LoadXML(XMLFile, XMLFile);
  9395. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9396. bool LoadXML(const XMLElement&, bool = false);
  9397. void MarkNetworkUpdate() const;
  9398. void Remove();
  9399. void RemoveAllChildren();
  9400. void RemoveAllTags();
  9401. void RemoveAttributeAnimation(const String&);
  9402. void RemoveChild(UIElement, uint = 0);
  9403. void RemoveChild(uint);
  9404. void RemoveInstanceDefault();
  9405. void RemoveObjectAnimation();
  9406. bool RemoveTag(const String&);
  9407. void ResetDeepEnabled();
  9408. void ResetToDefault();
  9409. bool Save(File) const;
  9410. bool Save(VectorBuffer&) const;
  9411. bool SaveJSON(JSONValue&) const;
  9412. bool SaveXML(File, const String& = "\t");
  9413. bool SaveXML(VectorBuffer&, const String& = "\t");
  9414. bool SaveXML(XMLElement&) const;
  9415. IntVector2 ScreenToElement(const IntVector2&);
  9416. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9417. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9418. void SetAnimationTime(float);
  9419. bool SetAttribute(const String&, const Variant&);
  9420. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9421. void SetAttributeAnimationSpeed(const String&, float);
  9422. void SetAttributeAnimationTime(const String&, float);
  9423. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9424. void SetDeepEnabled(bool);
  9425. void SetEnabledRecursive(bool);
  9426. void SetFixedHeight(int);
  9427. void SetFixedSize(int, int);
  9428. void SetFixedWidth(int);
  9429. void SetFullImageRect();
  9430. void SetHoverOffset(int, int);
  9431. void SetInterceptNetworkUpdate(const String&, bool);
  9432. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9433. void SetMaxSize(int, int);
  9434. void SetMinSize(int, int);
  9435. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9436. void SetPosition(int, int);
  9437. void SetSize(int, int);
  9438. bool SetStyle(const String&, XMLFile = null);
  9439. bool SetStyle(const XMLElement&);
  9440. bool SetStyleAuto(XMLFile = null);
  9441. void UpdateLayout();
  9442. const Variant& GetVar(const StringHash&);
  9443. // Properties:
  9444. bool animationEnabled;
  9445. /* readonly */
  9446. Array<Variant> attributeDefaults;
  9447. /* readonly */
  9448. Array<AttributeInfo> attributeInfos;
  9449. Array<Variant> attributes;
  9450. BlendMode blendMode;
  9451. IntRect border;
  9452. bool bringToBack;
  9453. bool bringToFront;
  9454. /* readonly */
  9455. String category;
  9456. /* readonly */
  9457. IntVector2 childOffset;
  9458. /* readonly */
  9459. Array<UIElement> children;
  9460. IntRect clipBorder;
  9461. bool clipChildren;
  9462. /* writeonly */
  9463. Color color;
  9464. /* readonly */
  9465. bool colorGradient;
  9466. Array<Color> colors;
  9467. /* readonly */
  9468. IntRect combinedScreenRect;
  9469. XMLFile defaultStyle;
  9470. /* readonly */
  9471. float derivedOpacity;
  9472. /* readonly */
  9473. uint dragButtonCombo;
  9474. /* readonly */
  9475. int dragButtonCount;
  9476. uint dragDropMode;
  9477. bool editable;
  9478. bool elementEventSender;
  9479. bool enabled;
  9480. /* readonly */
  9481. bool enabledSelf;
  9482. /* readonly */
  9483. bool fixedHeight;
  9484. /* readonly */
  9485. bool fixedSize;
  9486. /* readonly */
  9487. bool fixedWidth;
  9488. bool focus;
  9489. FocusMode focusMode;
  9490. int height;
  9491. HorizontalAlignment horizontalAlignment;
  9492. IntVector2 hoverOffset;
  9493. /* readonly */
  9494. bool hovering;
  9495. IntRect imageBorder;
  9496. IntRect imageRect;
  9497. int indent;
  9498. int indentSpacing;
  9499. /* readonly */
  9500. int indentWidth;
  9501. bool internal;
  9502. /* readonly */
  9503. BorderImage knob;
  9504. IntRect layoutBorder;
  9505. Vector2 layoutFlexScale;
  9506. LayoutMode layoutMode;
  9507. int layoutSpacing;
  9508. int maxHeight;
  9509. IntVector2 maxSize;
  9510. int maxWidth;
  9511. int minHeight;
  9512. IntVector2 minSize;
  9513. int minWidth;
  9514. String name;
  9515. /* readonly */
  9516. uint numAllChildren;
  9517. /* readonly */
  9518. uint numAttributes;
  9519. /* readonly */
  9520. uint numChildren;
  9521. ObjectAnimation objectAnimation;
  9522. float opacity;
  9523. Orientation orientation;
  9524. UIElement parent;
  9525. IntVector2 position;
  9526. int priority;
  9527. float range;
  9528. /* readonly */
  9529. int refs;
  9530. float repeatRate;
  9531. /* readonly */
  9532. UIElement root;
  9533. /* readonly */
  9534. IntVector2 screenPosition;
  9535. bool selected;
  9536. IntVector2 size;
  9537. bool sortChildren;
  9538. String style;
  9539. /* readonly */
  9540. Array<String> tags;
  9541. bool temporary;
  9542. Texture texture;
  9543. bool tiled;
  9544. TraversalMode traversalMode;
  9545. /* readonly */
  9546. StringHash type;
  9547. /* readonly */
  9548. String typeName;
  9549. bool useDerivedOpacity;
  9550. float value;
  9551. /* readonly */
  9552. VariantMap vars;
  9553. VerticalAlignment verticalAlignment;
  9554. bool visible;
  9555. /* readonly */
  9556. bool visibleEffective;
  9557. /* readonly */
  9558. int weakRefs;
  9559. int width;
  9560. };
  9561. class SmoothedTransform
  9562. {
  9563. // Methods:
  9564. void ApplyAttributes();
  9565. void DrawDebugGeometry(DebugRenderer, bool);
  9566. Variant GetAttribute(const String&) const;
  9567. ValueAnimation GetAttributeAnimation(const String&) const;
  9568. float GetAttributeAnimationSpeed(const String&) const;
  9569. float GetAttributeAnimationTime(const String&) const;
  9570. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9571. Variant GetAttributeDefault(const String&) const;
  9572. bool GetInterceptNetworkUpdate(const String&) const;
  9573. bool HasSubscribedToEvent(Object, const String&);
  9574. bool HasSubscribedToEvent(const String&);
  9575. bool Load(File, bool = false);
  9576. bool Load(VectorBuffer&, bool = false);
  9577. bool LoadJSON(const JSONValue&, bool = false);
  9578. bool LoadXML(const XMLElement&, bool = false);
  9579. void MarkNetworkUpdate() const;
  9580. void Remove();
  9581. void RemoveAttributeAnimation(const String&);
  9582. void RemoveInstanceDefault();
  9583. void RemoveObjectAnimation();
  9584. void ResetToDefault();
  9585. bool Save(File) const;
  9586. bool Save(VectorBuffer&) const;
  9587. bool SaveJSON(JSONValue&) const;
  9588. bool SaveXML(XMLElement&) const;
  9589. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9590. void SetAnimationTime(float);
  9591. bool SetAttribute(const String&, const Variant&);
  9592. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9593. void SetAttributeAnimationSpeed(const String&, float);
  9594. void SetAttributeAnimationTime(const String&, float);
  9595. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9596. void SetInterceptNetworkUpdate(const String&, bool);
  9597. void Update(float, float);
  9598. // Properties:
  9599. bool animationEnabled;
  9600. /* readonly */
  9601. Array<Variant> attributeDefaults;
  9602. /* readonly */
  9603. Array<AttributeInfo> attributeInfos;
  9604. Array<Variant> attributes;
  9605. /* readonly */
  9606. String category;
  9607. bool enabled;
  9608. /* readonly */
  9609. bool enabledEffective;
  9610. /* readonly */
  9611. uint id;
  9612. /* readonly */
  9613. bool inProgress;
  9614. /* readonly */
  9615. Node node;
  9616. /* readonly */
  9617. uint numAttributes;
  9618. ObjectAnimation objectAnimation;
  9619. /* readonly */
  9620. int refs;
  9621. Vector3 targetPosition;
  9622. Quaternion targetRotation;
  9623. Vector3 targetWorldPosition;
  9624. Quaternion targetWorldRotation;
  9625. bool temporary;
  9626. /* readonly */
  9627. StringHash type;
  9628. /* readonly */
  9629. String typeName;
  9630. /* readonly */
  9631. int weakRefs;
  9632. };
  9633. class Sound
  9634. {
  9635. // Methods:
  9636. bool HasSubscribedToEvent(Object, const String&);
  9637. bool HasSubscribedToEvent(const String&);
  9638. bool Load(File);
  9639. bool Load(VectorBuffer&);
  9640. bool Save(File) const;
  9641. bool Save(VectorBuffer&) const;
  9642. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9643. // Properties:
  9644. /* readonly */
  9645. String category;
  9646. /* readonly */
  9647. bool compressed;
  9648. /* readonly */
  9649. float frequency;
  9650. /* readonly */
  9651. float length;
  9652. bool looped;
  9653. /* readonly */
  9654. uint memoryUse;
  9655. String name;
  9656. /* readonly */
  9657. int refs;
  9658. /* readonly */
  9659. uint sampleSize;
  9660. /* readonly */
  9661. bool sixteenBit;
  9662. /* readonly */
  9663. bool stereo;
  9664. /* readonly */
  9665. StringHash type;
  9666. /* readonly */
  9667. String typeName;
  9668. /* readonly */
  9669. uint useTimer;
  9670. /* readonly */
  9671. int weakRefs;
  9672. };
  9673. class SoundListener
  9674. {
  9675. // Methods:
  9676. void ApplyAttributes();
  9677. void DrawDebugGeometry(DebugRenderer, bool);
  9678. Variant GetAttribute(const String&) const;
  9679. ValueAnimation GetAttributeAnimation(const String&) const;
  9680. float GetAttributeAnimationSpeed(const String&) const;
  9681. float GetAttributeAnimationTime(const String&) const;
  9682. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9683. Variant GetAttributeDefault(const String&) const;
  9684. bool GetInterceptNetworkUpdate(const String&) const;
  9685. bool HasSubscribedToEvent(Object, const String&);
  9686. bool HasSubscribedToEvent(const String&);
  9687. bool Load(File, bool = false);
  9688. bool Load(VectorBuffer&, bool = false);
  9689. bool LoadJSON(const JSONValue&, bool = false);
  9690. bool LoadXML(const XMLElement&, bool = false);
  9691. void MarkNetworkUpdate() const;
  9692. void Remove();
  9693. void RemoveAttributeAnimation(const String&);
  9694. void RemoveInstanceDefault();
  9695. void RemoveObjectAnimation();
  9696. void ResetToDefault();
  9697. bool Save(File) const;
  9698. bool Save(VectorBuffer&) const;
  9699. bool SaveJSON(JSONValue&) const;
  9700. bool SaveXML(XMLElement&) const;
  9701. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9702. void SetAnimationTime(float);
  9703. bool SetAttribute(const String&, const Variant&);
  9704. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9705. void SetAttributeAnimationSpeed(const String&, float);
  9706. void SetAttributeAnimationTime(const String&, float);
  9707. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9708. void SetInterceptNetworkUpdate(const String&, bool);
  9709. // Properties:
  9710. bool animationEnabled;
  9711. /* readonly */
  9712. Array<Variant> attributeDefaults;
  9713. /* readonly */
  9714. Array<AttributeInfo> attributeInfos;
  9715. Array<Variant> attributes;
  9716. /* readonly */
  9717. String category;
  9718. bool enabled;
  9719. /* readonly */
  9720. bool enabledEffective;
  9721. /* readonly */
  9722. uint id;
  9723. /* readonly */
  9724. Node node;
  9725. /* readonly */
  9726. uint numAttributes;
  9727. ObjectAnimation objectAnimation;
  9728. /* readonly */
  9729. int refs;
  9730. bool temporary;
  9731. /* readonly */
  9732. StringHash type;
  9733. /* readonly */
  9734. String typeName;
  9735. /* readonly */
  9736. int weakRefs;
  9737. };
  9738. class SoundSource
  9739. {
  9740. // Methods:
  9741. void ApplyAttributes();
  9742. void DrawDebugGeometry(DebugRenderer, bool);
  9743. Variant GetAttribute(const String&) const;
  9744. ValueAnimation GetAttributeAnimation(const String&) const;
  9745. float GetAttributeAnimationSpeed(const String&) const;
  9746. float GetAttributeAnimationTime(const String&) const;
  9747. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9748. Variant GetAttributeDefault(const String&) const;
  9749. bool GetInterceptNetworkUpdate(const String&) const;
  9750. bool HasSubscribedToEvent(Object, const String&);
  9751. bool HasSubscribedToEvent(const String&);
  9752. bool Load(File, bool = false);
  9753. bool Load(VectorBuffer&, bool = false);
  9754. bool LoadJSON(const JSONValue&, bool = false);
  9755. bool LoadXML(const XMLElement&, bool = false);
  9756. void MarkNetworkUpdate() const;
  9757. void Play(Sound);
  9758. void Play(Sound, float);
  9759. void Play(Sound, float, float);
  9760. void Play(Sound, float, float, float);
  9761. void Remove();
  9762. void RemoveAttributeAnimation(const String&);
  9763. void RemoveInstanceDefault();
  9764. void RemoveObjectAnimation();
  9765. void ResetToDefault();
  9766. bool Save(File) const;
  9767. bool Save(VectorBuffer&) const;
  9768. bool SaveJSON(JSONValue&) const;
  9769. bool SaveXML(XMLElement&) const;
  9770. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9771. void SetAnimationTime(float);
  9772. bool SetAttribute(const String&, const Variant&);
  9773. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9774. void SetAttributeAnimationSpeed(const String&, float);
  9775. void SetAttributeAnimationTime(const String&, float);
  9776. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9777. void SetInterceptNetworkUpdate(const String&, bool);
  9778. void Stop();
  9779. // Properties:
  9780. bool animationEnabled;
  9781. /* readonly */
  9782. float attenuation;
  9783. /* readonly */
  9784. Array<Variant> attributeDefaults;
  9785. /* readonly */
  9786. Array<AttributeInfo> attributeInfos;
  9787. Array<Variant> attributes;
  9788. bool autoRemove;
  9789. /* readonly */
  9790. String category;
  9791. bool enabled;
  9792. /* readonly */
  9793. bool enabledEffective;
  9794. float frequency;
  9795. float gain;
  9796. /* readonly */
  9797. uint id;
  9798. /* readonly */
  9799. Node node;
  9800. /* readonly */
  9801. uint numAttributes;
  9802. ObjectAnimation objectAnimation;
  9803. float panning;
  9804. /* readonly */
  9805. bool playing;
  9806. /* readonly */
  9807. int refs;
  9808. /* readonly */
  9809. Sound sound;
  9810. String soundType;
  9811. bool temporary;
  9812. /* readonly */
  9813. float timePosition;
  9814. /* readonly */
  9815. StringHash type;
  9816. /* readonly */
  9817. String typeName;
  9818. /* readonly */
  9819. int weakRefs;
  9820. };
  9821. class SoundSource3D
  9822. {
  9823. // Methods:
  9824. void ApplyAttributes();
  9825. void DrawDebugGeometry(DebugRenderer, bool);
  9826. Variant GetAttribute(const String&) const;
  9827. ValueAnimation GetAttributeAnimation(const String&) const;
  9828. float GetAttributeAnimationSpeed(const String&) const;
  9829. float GetAttributeAnimationTime(const String&) const;
  9830. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9831. Variant GetAttributeDefault(const String&) const;
  9832. bool GetInterceptNetworkUpdate(const String&) const;
  9833. bool HasSubscribedToEvent(Object, const String&);
  9834. bool HasSubscribedToEvent(const String&);
  9835. bool Load(File, bool = false);
  9836. bool Load(VectorBuffer&, bool = false);
  9837. bool LoadJSON(const JSONValue&, bool = false);
  9838. bool LoadXML(const XMLElement&, bool = false);
  9839. void MarkNetworkUpdate() const;
  9840. void Play(Sound);
  9841. void Play(Sound, float);
  9842. void Play(Sound, float, float);
  9843. void Play(Sound, float, float, float);
  9844. void Remove();
  9845. void RemoveAttributeAnimation(const String&);
  9846. void RemoveInstanceDefault();
  9847. void RemoveObjectAnimation();
  9848. void ResetToDefault();
  9849. bool Save(File) const;
  9850. bool Save(VectorBuffer&) const;
  9851. bool SaveJSON(JSONValue&) const;
  9852. bool SaveXML(XMLElement&) const;
  9853. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9854. void SetAngleAttenuation(float, float);
  9855. void SetAnimationTime(float);
  9856. bool SetAttribute(const String&, const Variant&);
  9857. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9858. void SetAttributeAnimationSpeed(const String&, float);
  9859. void SetAttributeAnimationTime(const String&, float);
  9860. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9861. void SetDistanceAttenuation(float, float, float);
  9862. void SetInterceptNetworkUpdate(const String&, bool);
  9863. void Stop();
  9864. // Properties:
  9865. bool animationEnabled;
  9866. /* readonly */
  9867. float attenuation;
  9868. /* readonly */
  9869. Array<Variant> attributeDefaults;
  9870. /* readonly */
  9871. Array<AttributeInfo> attributeInfos;
  9872. Array<Variant> attributes;
  9873. bool autoRemove;
  9874. /* readonly */
  9875. String category;
  9876. bool enabled;
  9877. /* readonly */
  9878. bool enabledEffective;
  9879. float farDistance;
  9880. float frequency;
  9881. float gain;
  9882. /* readonly */
  9883. uint id;
  9884. float innerAngle;
  9885. float nearDistance;
  9886. /* readonly */
  9887. Node node;
  9888. /* readonly */
  9889. uint numAttributes;
  9890. ObjectAnimation objectAnimation;
  9891. float outerAngle;
  9892. float panning;
  9893. /* readonly */
  9894. bool playing;
  9895. /* readonly */
  9896. int refs;
  9897. float rolloffFactor;
  9898. /* readonly */
  9899. Sound sound;
  9900. String soundType;
  9901. bool temporary;
  9902. /* readonly */
  9903. float timePosition;
  9904. /* readonly */
  9905. StringHash type;
  9906. /* readonly */
  9907. String typeName;
  9908. /* readonly */
  9909. int weakRefs;
  9910. };
  9911. class Sphere
  9912. {
  9913. // Methods:
  9914. void Clear();
  9915. void Define(const BoundingBox&);
  9916. void Define(const Frustum&);
  9917. void Define(const Polyhedron&);
  9918. void Define(const Sphere&);
  9919. void Define(const Vector3&, float);
  9920. bool Defined() const;
  9921. float Distance(const Vector3&) const;
  9922. Intersection IsInside(const BoundingBox&) const;
  9923. Intersection IsInside(const Sphere&) const;
  9924. Intersection IsInside(const Vector3&) const;
  9925. Intersection IsInsideFast(const BoundingBox&) const;
  9926. Intersection IsInsideFast(const Sphere&) const;
  9927. void Merge(const BoundingBox&);
  9928. void Merge(const Frustum&);
  9929. void Merge(const Sphere&);
  9930. void Merge(const Vector3&);
  9931. // Properties:
  9932. Vector3 center;
  9933. float radius;
  9934. };
  9935. class Spline
  9936. {
  9937. // Methods:
  9938. void AddKnot(const Variant&);
  9939. void AddKnot(const Variant&, uint);
  9940. void Clear();
  9941. Variant GetPoint(float);
  9942. void RemoveKnot();
  9943. void RemoveKnot(uint);
  9944. // Properties:
  9945. InterpolationMode interpolationMode;
  9946. Array<Variant> knot;
  9947. Array<Variant> knots;
  9948. };
  9949. class SplinePath
  9950. {
  9951. // Methods:
  9952. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9953. void ApplyAttributes();
  9954. void ClearControlPoints();
  9955. void DrawDebugGeometry(DebugRenderer, bool);
  9956. Variant GetAttribute(const String&) const;
  9957. ValueAnimation GetAttributeAnimation(const String&) const;
  9958. float GetAttributeAnimationSpeed(const String&) const;
  9959. float GetAttributeAnimationTime(const String&) const;
  9960. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9961. Variant GetAttributeDefault(const String&) const;
  9962. bool GetInterceptNetworkUpdate(const String&) const;
  9963. Vector3 GetPoint(float) const;
  9964. Vector3 GetPosition() const;
  9965. bool HasSubscribedToEvent(Object, const String&);
  9966. bool HasSubscribedToEvent(const String&);
  9967. bool Load(File, bool = false);
  9968. bool Load(VectorBuffer&, bool = false);
  9969. bool LoadJSON(const JSONValue&, bool = false);
  9970. bool LoadXML(const XMLElement&, bool = false);
  9971. void MarkNetworkUpdate() const;
  9972. void Move(float);
  9973. void Remove();
  9974. void RemoveAttributeAnimation(const String&);
  9975. void RemoveControlPoint(Node);
  9976. void RemoveInstanceDefault();
  9977. void RemoveObjectAnimation();
  9978. void Reset();
  9979. void ResetToDefault();
  9980. bool Save(File) const;
  9981. bool Save(VectorBuffer&) const;
  9982. bool SaveJSON(JSONValue&) const;
  9983. bool SaveXML(XMLElement&) const;
  9984. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9985. void SetAnimationTime(float);
  9986. bool SetAttribute(const String&, const Variant&);
  9987. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9988. void SetAttributeAnimationSpeed(const String&, float);
  9989. void SetAttributeAnimationTime(const String&, float);
  9990. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9991. void SetInterceptNetworkUpdate(const String&, bool);
  9992. void SetPosition(float);
  9993. // Properties:
  9994. bool animationEnabled;
  9995. /* readonly */
  9996. Array<Variant> attributeDefaults;
  9997. /* readonly */
  9998. Array<AttributeInfo> attributeInfos;
  9999. Array<Variant> attributes;
  10000. /* readonly */
  10001. String category;
  10002. Node controlledNode;
  10003. bool enabled;
  10004. /* readonly */
  10005. bool enabledEffective;
  10006. /* readonly */
  10007. uint id;
  10008. InterpolationMode interpolationMode;
  10009. /* readonly */
  10010. bool isFinished;
  10011. /* readonly */
  10012. float length;
  10013. /* readonly */
  10014. Node node;
  10015. /* readonly */
  10016. uint numAttributes;
  10017. ObjectAnimation objectAnimation;
  10018. /* readonly */
  10019. int refs;
  10020. float speed;
  10021. bool temporary;
  10022. /* readonly */
  10023. StringHash type;
  10024. /* readonly */
  10025. String typeName;
  10026. /* readonly */
  10027. int weakRefs;
  10028. };
  10029. class Sprite
  10030. {
  10031. // Methods:
  10032. void AddChild(UIElement);
  10033. void AddTag(const String&);
  10034. void AddTags(const String&, int8 = ';');
  10035. void ApplyAttributes();
  10036. void BringToFront();
  10037. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10038. uint FindChild(UIElement) const;
  10039. Variant GetAttribute(const String&) const;
  10040. ValueAnimation GetAttributeAnimation(const String&) const;
  10041. float GetAttributeAnimationSpeed(const String&) const;
  10042. float GetAttributeAnimationTime(const String&) const;
  10043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10044. Variant GetAttributeDefault(const String&) const;
  10045. UIElement GetChild(const String&, bool = false) const;
  10046. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10047. Array<UIElement> GetChildren(bool = false) const;
  10048. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10049. UIElement GetElementEventSender() const;
  10050. bool GetInterceptNetworkUpdate(const String&) const;
  10051. uint GetNumChildren(bool) const;
  10052. bool HasSubscribedToEvent(Object, const String&);
  10053. bool HasSubscribedToEvent(const String&);
  10054. bool HasTag(const String&) const;
  10055. void InsertChild(uint, UIElement);
  10056. bool Load(File, bool = false);
  10057. bool Load(VectorBuffer&, bool = false);
  10058. bool LoadChildXML(XMLFile, XMLFile = null);
  10059. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10060. bool LoadJSON(const JSONValue&, bool = false);
  10061. bool LoadXML(File);
  10062. bool LoadXML(VectorBuffer&);
  10063. bool LoadXML(XMLFile, XMLFile);
  10064. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10065. bool LoadXML(const XMLElement&, bool = false);
  10066. void MarkNetworkUpdate() const;
  10067. void Remove();
  10068. void RemoveAllChildren();
  10069. void RemoveAllTags();
  10070. void RemoveAttributeAnimation(const String&);
  10071. void RemoveChild(UIElement, uint = 0);
  10072. void RemoveChild(uint);
  10073. void RemoveInstanceDefault();
  10074. void RemoveObjectAnimation();
  10075. bool RemoveTag(const String&);
  10076. void ResetToDefault();
  10077. bool Save(File) const;
  10078. bool Save(VectorBuffer&) const;
  10079. bool SaveJSON(JSONValue&) const;
  10080. bool SaveXML(File, const String& = "\t");
  10081. bool SaveXML(VectorBuffer&, const String& = "\t");
  10082. bool SaveXML(XMLElement&) const;
  10083. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10084. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10085. void SetAnimationTime(float);
  10086. bool SetAttribute(const String&, const Variant&);
  10087. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10088. void SetAttributeAnimationSpeed(const String&, float);
  10089. void SetAttributeAnimationTime(const String&, float);
  10090. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10091. void SetFixedHeight(int);
  10092. void SetFixedSize(int, int);
  10093. void SetFixedWidth(int);
  10094. void SetFullImageRect();
  10095. void SetHotSpot(int, int);
  10096. void SetInterceptNetworkUpdate(const String&, bool);
  10097. void SetMaxSize(int, int);
  10098. void SetMinSize(int, int);
  10099. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10100. void SetPosition(float, float);
  10101. void SetScale(float);
  10102. void SetScale(float, float);
  10103. void SetSize(int, int);
  10104. bool SetStyle(const String&, XMLFile = null);
  10105. bool SetStyle(const XMLElement&);
  10106. bool SetStyleAuto(XMLFile = null);
  10107. const Variant& GetVar(const StringHash&);
  10108. // Properties:
  10109. bool animationEnabled;
  10110. /* readonly */
  10111. Array<Variant> attributeDefaults;
  10112. /* readonly */
  10113. Array<AttributeInfo> attributeInfos;
  10114. Array<Variant> attributes;
  10115. BlendMode blendMode;
  10116. bool bringToBack;
  10117. bool bringToFront;
  10118. /* readonly */
  10119. String category;
  10120. /* readonly */
  10121. Array<UIElement> children;
  10122. /* writeonly */
  10123. Color color;
  10124. /* readonly */
  10125. bool colorGradient;
  10126. Array<Color> colors;
  10127. XMLFile defaultStyle;
  10128. /* readonly */
  10129. float derivedOpacity;
  10130. /* readonly */
  10131. uint dragButtonCombo;
  10132. /* readonly */
  10133. int dragButtonCount;
  10134. bool elementEventSender;
  10135. int height;
  10136. HorizontalAlignment horizontalAlignment;
  10137. IntVector2 hotSpot;
  10138. IntRect imageRect;
  10139. String name;
  10140. /* readonly */
  10141. uint numAllChildren;
  10142. /* readonly */
  10143. uint numAttributes;
  10144. /* readonly */
  10145. uint numChildren;
  10146. ObjectAnimation objectAnimation;
  10147. float opacity;
  10148. UIElement parent;
  10149. Vector2 position;
  10150. int priority;
  10151. /* readonly */
  10152. int refs;
  10153. /* readonly */
  10154. UIElement root;
  10155. float rotation;
  10156. Vector2 scale;
  10157. IntVector2 size;
  10158. bool sortChildren;
  10159. String style;
  10160. /* readonly */
  10161. Array<String> tags;
  10162. bool temporary;
  10163. Texture texture;
  10164. /* readonly */
  10165. StringHash type;
  10166. /* readonly */
  10167. String typeName;
  10168. bool useDerivedOpacity;
  10169. /* readonly */
  10170. VariantMap vars;
  10171. VerticalAlignment verticalAlignment;
  10172. bool visible;
  10173. /* readonly */
  10174. bool visibleEffective;
  10175. /* readonly */
  10176. int weakRefs;
  10177. int width;
  10178. };
  10179. class Sprite2D
  10180. {
  10181. // Methods:
  10182. bool HasSubscribedToEvent(Object, const String&);
  10183. bool HasSubscribedToEvent(const String&);
  10184. bool Load(File);
  10185. bool Load(VectorBuffer&);
  10186. bool Save(File) const;
  10187. bool Save(VectorBuffer&) const;
  10188. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10189. // Properties:
  10190. /* readonly */
  10191. String category;
  10192. Vector2 hotSpot;
  10193. /* readonly */
  10194. uint memoryUse;
  10195. String name;
  10196. IntVector2 offset;
  10197. IntRect rectangle;
  10198. /* readonly */
  10199. int refs;
  10200. Texture2D texture;
  10201. /* readonly */
  10202. StringHash type;
  10203. /* readonly */
  10204. String typeName;
  10205. /* readonly */
  10206. uint useTimer;
  10207. /* readonly */
  10208. int weakRefs;
  10209. };
  10210. class SpriteSheet2D
  10211. {
  10212. // Methods:
  10213. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10214. Sprite2D GetSprite(const String&);
  10215. bool HasSubscribedToEvent(Object, const String&);
  10216. bool HasSubscribedToEvent(const String&);
  10217. bool Load(File);
  10218. bool Load(VectorBuffer&);
  10219. bool Save(File) const;
  10220. bool Save(VectorBuffer&) const;
  10221. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10222. // Properties:
  10223. /* readonly */
  10224. String category;
  10225. /* readonly */
  10226. uint memoryUse;
  10227. String name;
  10228. /* readonly */
  10229. int refs;
  10230. /* readonly */
  10231. Texture2D texture;
  10232. /* readonly */
  10233. StringHash type;
  10234. /* readonly */
  10235. String typeName;
  10236. /* readonly */
  10237. uint useTimer;
  10238. /* readonly */
  10239. int weakRefs;
  10240. };
  10241. class StaticModel
  10242. {
  10243. // Methods:
  10244. void ApplyAttributes();
  10245. void ApplyMaterialList(const String& = String ( ));
  10246. void DrawDebugGeometry(DebugRenderer, bool);
  10247. Variant GetAttribute(const String&) const;
  10248. ValueAnimation GetAttributeAnimation(const String&) const;
  10249. float GetAttributeAnimationSpeed(const String&) const;
  10250. float GetAttributeAnimationTime(const String&) const;
  10251. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10252. Variant GetAttributeDefault(const String&) const;
  10253. bool GetInterceptNetworkUpdate(const String&) const;
  10254. bool HasSubscribedToEvent(Object, const String&);
  10255. bool HasSubscribedToEvent(const String&);
  10256. bool IsInView(Camera) const;
  10257. bool IsInside(const Vector3&) const;
  10258. bool IsInsideLocal(const Vector3&) const;
  10259. bool Load(File, bool = false);
  10260. bool Load(VectorBuffer&, bool = false);
  10261. bool LoadJSON(const JSONValue&, bool = false);
  10262. bool LoadXML(const XMLElement&, bool = false);
  10263. void MarkNetworkUpdate() const;
  10264. void Remove();
  10265. void RemoveAttributeAnimation(const String&);
  10266. void RemoveInstanceDefault();
  10267. void RemoveObjectAnimation();
  10268. void ResetToDefault();
  10269. bool Save(File) const;
  10270. bool Save(VectorBuffer&) const;
  10271. bool SaveJSON(JSONValue&) const;
  10272. bool SaveXML(XMLElement&) const;
  10273. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10274. void SetAnimationTime(float);
  10275. bool SetAttribute(const String&, const Variant&);
  10276. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10277. void SetAttributeAnimationSpeed(const String&, float);
  10278. void SetAttributeAnimationTime(const String&, float);
  10279. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10280. void SetInterceptNetworkUpdate(const String&, bool);
  10281. // Properties:
  10282. bool animationEnabled;
  10283. /* readonly */
  10284. Array<Variant> attributeDefaults;
  10285. /* readonly */
  10286. Array<AttributeInfo> attributeInfos;
  10287. Array<Variant> attributes;
  10288. /* readonly */
  10289. BoundingBox boundingBox;
  10290. bool castShadows;
  10291. /* readonly */
  10292. String category;
  10293. float drawDistance;
  10294. bool enabled;
  10295. /* readonly */
  10296. bool enabledEffective;
  10297. /* readonly */
  10298. uint id;
  10299. /* readonly */
  10300. bool inView;
  10301. uint lightMask;
  10302. float lodBias;
  10303. /* writeonly */
  10304. Material material;
  10305. Array<Material> materials;
  10306. uint maxLights;
  10307. Model model;
  10308. /* readonly */
  10309. Node node;
  10310. /* readonly */
  10311. uint numAttributes;
  10312. /* readonly */
  10313. uint numGeometries;
  10314. ObjectAnimation objectAnimation;
  10315. bool occludee;
  10316. bool occluder;
  10317. uint occlusionLodLevel;
  10318. /* readonly */
  10319. int refs;
  10320. float shadowDistance;
  10321. uint shadowMask;
  10322. bool temporary;
  10323. /* readonly */
  10324. StringHash type;
  10325. /* readonly */
  10326. String typeName;
  10327. uint viewMask;
  10328. /* readonly */
  10329. int weakRefs;
  10330. /* readonly */
  10331. BoundingBox worldBoundingBox;
  10332. uint zoneMask;
  10333. };
  10334. class StaticModelGroup
  10335. {
  10336. // Methods:
  10337. void AddInstanceNode(Node);
  10338. void ApplyAttributes();
  10339. void ApplyMaterialList(const String& = String ( ));
  10340. void DrawDebugGeometry(DebugRenderer, bool);
  10341. Variant GetAttribute(const String&) const;
  10342. ValueAnimation GetAttributeAnimation(const String&) const;
  10343. float GetAttributeAnimationSpeed(const String&) const;
  10344. float GetAttributeAnimationTime(const String&) const;
  10345. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10346. Variant GetAttributeDefault(const String&) const;
  10347. bool GetInterceptNetworkUpdate(const String&) const;
  10348. bool HasSubscribedToEvent(Object, const String&);
  10349. bool HasSubscribedToEvent(const String&);
  10350. bool IsInView(Camera) const;
  10351. bool Load(File, bool = false);
  10352. bool Load(VectorBuffer&, bool = false);
  10353. bool LoadJSON(const JSONValue&, bool = false);
  10354. bool LoadXML(const XMLElement&, bool = false);
  10355. void MarkNetworkUpdate() const;
  10356. void Remove();
  10357. void RemoveAllInstanceNodes();
  10358. void RemoveAttributeAnimation(const String&);
  10359. void RemoveInstanceDefault();
  10360. void RemoveInstanceNode(Node);
  10361. void RemoveObjectAnimation();
  10362. void ResetToDefault();
  10363. bool Save(File) const;
  10364. bool Save(VectorBuffer&) const;
  10365. bool SaveJSON(JSONValue&) const;
  10366. bool SaveXML(XMLElement&) const;
  10367. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10368. void SetAnimationTime(float);
  10369. bool SetAttribute(const String&, const Variant&);
  10370. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10371. void SetAttributeAnimationSpeed(const String&, float);
  10372. void SetAttributeAnimationTime(const String&, float);
  10373. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10374. void SetInterceptNetworkUpdate(const String&, bool);
  10375. // Properties:
  10376. bool animationEnabled;
  10377. /* readonly */
  10378. Array<Variant> attributeDefaults;
  10379. /* readonly */
  10380. Array<AttributeInfo> attributeInfos;
  10381. Array<Variant> attributes;
  10382. /* readonly */
  10383. BoundingBox boundingBox;
  10384. bool castShadows;
  10385. /* readonly */
  10386. String category;
  10387. float drawDistance;
  10388. bool enabled;
  10389. /* readonly */
  10390. bool enabledEffective;
  10391. /* readonly */
  10392. uint id;
  10393. /* readonly */
  10394. bool inView;
  10395. /* readonly */
  10396. Array<Node> instanceNodes;
  10397. uint lightMask;
  10398. float lodBias;
  10399. /* writeonly */
  10400. Material material;
  10401. Array<Material> materials;
  10402. uint maxLights;
  10403. Model model;
  10404. /* readonly */
  10405. Node node;
  10406. /* readonly */
  10407. uint numAttributes;
  10408. /* readonly */
  10409. uint numGeometries;
  10410. /* readonly */
  10411. uint numInstanceNodes;
  10412. ObjectAnimation objectAnimation;
  10413. bool occludee;
  10414. bool occluder;
  10415. uint occlusionLodLevel;
  10416. /* readonly */
  10417. int refs;
  10418. float shadowDistance;
  10419. uint shadowMask;
  10420. bool temporary;
  10421. /* readonly */
  10422. StringHash type;
  10423. /* readonly */
  10424. String typeName;
  10425. uint viewMask;
  10426. /* readonly */
  10427. int weakRefs;
  10428. /* readonly */
  10429. BoundingBox worldBoundingBox;
  10430. /* readonly */
  10431. Zone zone;
  10432. uint zoneMask;
  10433. };
  10434. class StaticSprite2D
  10435. {
  10436. // Methods:
  10437. void ApplyAttributes();
  10438. void DrawDebugGeometry(DebugRenderer, bool);
  10439. Variant GetAttribute(const String&) const;
  10440. ValueAnimation GetAttributeAnimation(const String&) const;
  10441. float GetAttributeAnimationSpeed(const String&) const;
  10442. float GetAttributeAnimationTime(const String&) const;
  10443. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10444. Variant GetAttributeDefault(const String&) const;
  10445. bool GetInterceptNetworkUpdate(const String&) const;
  10446. bool HasSubscribedToEvent(Object, const String&);
  10447. bool HasSubscribedToEvent(const String&);
  10448. bool IsInView(Camera) const;
  10449. bool Load(File, bool = false);
  10450. bool Load(VectorBuffer&, bool = false);
  10451. bool LoadJSON(const JSONValue&, bool = false);
  10452. bool LoadXML(const XMLElement&, bool = false);
  10453. void MarkNetworkUpdate() const;
  10454. void Remove();
  10455. void RemoveAttributeAnimation(const String&);
  10456. void RemoveInstanceDefault();
  10457. void RemoveObjectAnimation();
  10458. void ResetToDefault();
  10459. bool Save(File) const;
  10460. bool Save(VectorBuffer&) const;
  10461. bool SaveJSON(JSONValue&) const;
  10462. bool SaveXML(XMLElement&) const;
  10463. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10464. void SetAnimationTime(float);
  10465. bool SetAttribute(const String&, const Variant&);
  10466. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10467. void SetAttributeAnimationSpeed(const String&, float);
  10468. void SetAttributeAnimationTime(const String&, float);
  10469. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10470. void SetFlip(bool, bool);
  10471. void SetInterceptNetworkUpdate(const String&, bool);
  10472. // Properties:
  10473. float alpha;
  10474. bool animationEnabled;
  10475. /* readonly */
  10476. Array<Variant> attributeDefaults;
  10477. /* readonly */
  10478. Array<AttributeInfo> attributeInfos;
  10479. Array<Variant> attributes;
  10480. BlendMode blendMode;
  10481. /* readonly */
  10482. BoundingBox boundingBox;
  10483. bool castShadows;
  10484. /* readonly */
  10485. String category;
  10486. Color color;
  10487. Material customMaterial;
  10488. float drawDistance;
  10489. bool enabled;
  10490. /* readonly */
  10491. bool enabledEffective;
  10492. bool flipX;
  10493. bool flipY;
  10494. Vector2 hotSpot;
  10495. /* readonly */
  10496. uint id;
  10497. /* readonly */
  10498. bool inView;
  10499. int layer;
  10500. uint lightMask;
  10501. float lodBias;
  10502. uint maxLights;
  10503. /* readonly */
  10504. Node node;
  10505. /* readonly */
  10506. uint numAttributes;
  10507. ObjectAnimation objectAnimation;
  10508. bool occludee;
  10509. bool occluder;
  10510. int orderInLayer;
  10511. /* readonly */
  10512. int refs;
  10513. float shadowDistance;
  10514. uint shadowMask;
  10515. Sprite2D sprite;
  10516. bool temporary;
  10517. /* readonly */
  10518. StringHash type;
  10519. /* readonly */
  10520. String typeName;
  10521. bool useHotSpot;
  10522. uint viewMask;
  10523. /* readonly */
  10524. int weakRefs;
  10525. /* readonly */
  10526. BoundingBox worldBoundingBox;
  10527. uint zoneMask;
  10528. };
  10529. class String
  10530. {
  10531. // Methods:
  10532. void AppendUTF8(uint);
  10533. uint AtUTF8(uint) const;
  10534. uint ByteOffsetUTF8(uint) const;
  10535. void Clear();
  10536. int Compare(const String&, bool = true) const;
  10537. bool Contains(const String&, bool = true) const;
  10538. bool Contains(uint8, bool = true) const;
  10539. bool EndsWith(const String&, bool = true) const;
  10540. uint Find(const String&, uint = 0, bool = true) const;
  10541. uint Find(uint8, uint = 0, bool = true) const;
  10542. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10543. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10544. void Join(Array<String>&, const String&);
  10545. uint NextUTF8Char(uint&) const;
  10546. void Replace(const String&, const String&, bool = true);
  10547. void Replace(uint8, uint8, bool = true);
  10548. void ReplaceUTF8(uint, uint);
  10549. String Replaced(const String&, const String&, bool = true) const;
  10550. String Replaced(uint8, uint8, bool = true) const;
  10551. void Resize(uint);
  10552. void SetUTF8FromLatin1(const String&);
  10553. Array<String> Split(uint8, bool = false) const;
  10554. bool StartsWith(const String&, bool = true) const;
  10555. String Substring(uint) const;
  10556. String Substring(uint, uint) const;
  10557. String SubstringUTF8(uint) const;
  10558. String SubstringUTF8(uint, uint) const;
  10559. bool ToBool() const;
  10560. Color ToColor() const;
  10561. double ToDouble() const;
  10562. float ToFloat() const;
  10563. int ToInt() const;
  10564. IntRect ToIntRect() const;
  10565. IntVector2 ToIntVector2() const;
  10566. String ToLower() const;
  10567. Matrix3 ToMatrix3() const;
  10568. Matrix3x4 ToMatrix3x4() const;
  10569. Matrix4 ToMatrix4() const;
  10570. Quaternion ToQuaternion() const;
  10571. uint ToUInt() const;
  10572. String ToUpper() const;
  10573. Vector2 ToVector2() const;
  10574. Vector3 ToVector3() const;
  10575. Vector4 ToVector4(bool = false) const;
  10576. Variant ToVectorVariant() const;
  10577. String Trimmed() const;
  10578. // Properties:
  10579. /* readonly */
  10580. bool empty;
  10581. /* readonly */
  10582. uint length;
  10583. /* readonly */
  10584. uint utf8Length;
  10585. };
  10586. class StringHash
  10587. {
  10588. // Methods:
  10589. String ToString() const;
  10590. // Properties:
  10591. /* readonly */
  10592. uint value;
  10593. };
  10594. class Technique
  10595. {
  10596. // Methods:
  10597. Pass CreatePass(const String&);
  10598. Pass GetPass(const String&);
  10599. Pass GetSupportedPass(const String&);
  10600. bool HasPass(const String&) const;
  10601. bool HasSubscribedToEvent(Object, const String&);
  10602. bool HasSubscribedToEvent(const String&);
  10603. bool Load(File);
  10604. bool Load(VectorBuffer&);
  10605. void RemovePass(const String&);
  10606. bool Save(File) const;
  10607. bool Save(VectorBuffer&) const;
  10608. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10609. // Properties:
  10610. /* readonly */
  10611. String category;
  10612. bool desktop;
  10613. /* readonly */
  10614. uint memoryUse;
  10615. String name;
  10616. /* readonly */
  10617. uint numPasses;
  10618. /* readonly */
  10619. Array<String> passNames;
  10620. /* readonly */
  10621. Array<Pass> passes;
  10622. /* readonly */
  10623. int refs;
  10624. /* readonly */
  10625. bool supported;
  10626. /* readonly */
  10627. StringHash type;
  10628. /* readonly */
  10629. String typeName;
  10630. /* readonly */
  10631. uint useTimer;
  10632. /* readonly */
  10633. int weakRefs;
  10634. };
  10635. class TechniqueEntry
  10636. {
  10637. // Properties:
  10638. float lodDistance;
  10639. int qualityLevel;
  10640. Technique technique;
  10641. };
  10642. class Terrain
  10643. {
  10644. // Methods:
  10645. void ApplyAttributes();
  10646. void ApplyHeightMap();
  10647. void DrawDebugGeometry(DebugRenderer, bool);
  10648. Variant GetAttribute(const String&) const;
  10649. ValueAnimation GetAttributeAnimation(const String&) const;
  10650. float GetAttributeAnimationSpeed(const String&) const;
  10651. float GetAttributeAnimationTime(const String&) const;
  10652. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10653. Variant GetAttributeDefault(const String&) const;
  10654. float GetHeight(const Vector3&) const;
  10655. bool GetInterceptNetworkUpdate(const String&) const;
  10656. Vector3 GetNormal(const Vector3&) const;
  10657. TerrainPatch GetPatch(int, int) const;
  10658. bool HasSubscribedToEvent(Object, const String&);
  10659. bool HasSubscribedToEvent(const String&);
  10660. bool Load(File, bool = false);
  10661. bool Load(VectorBuffer&, bool = false);
  10662. bool LoadJSON(const JSONValue&, bool = false);
  10663. bool LoadXML(const XMLElement&, bool = false);
  10664. void MarkNetworkUpdate() const;
  10665. void Remove();
  10666. void RemoveAttributeAnimation(const String&);
  10667. void RemoveInstanceDefault();
  10668. void RemoveObjectAnimation();
  10669. void ResetToDefault();
  10670. bool Save(File) const;
  10671. bool Save(VectorBuffer&) const;
  10672. bool SaveJSON(JSONValue&) const;
  10673. bool SaveXML(XMLElement&) const;
  10674. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10675. void SetAnimationTime(float);
  10676. bool SetAttribute(const String&, const Variant&);
  10677. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10678. void SetAttributeAnimationSpeed(const String&, float);
  10679. void SetAttributeAnimationTime(const String&, float);
  10680. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10681. void SetInterceptNetworkUpdate(const String&, bool);
  10682. IntVector2 WorldToHeightMap(const Vector3&) const;
  10683. // Properties:
  10684. bool animationEnabled;
  10685. /* readonly */
  10686. Array<Variant> attributeDefaults;
  10687. /* readonly */
  10688. Array<AttributeInfo> attributeInfos;
  10689. Array<Variant> attributes;
  10690. bool castShadows;
  10691. /* readonly */
  10692. String category;
  10693. float drawDistance;
  10694. bool enabled;
  10695. /* readonly */
  10696. bool enabledEffective;
  10697. Image heightMap;
  10698. /* readonly */
  10699. uint id;
  10700. uint lightMask;
  10701. float lodBias;
  10702. Material material;
  10703. uint maxLights;
  10704. uint maxLodLevels;
  10705. /* readonly */
  10706. Node node;
  10707. /* readonly */
  10708. uint numAttributes;
  10709. /* readonly */
  10710. IntVector2 numPatches;
  10711. /* readonly */
  10712. IntVector2 numVertices;
  10713. ObjectAnimation objectAnimation;
  10714. bool occludee;
  10715. bool occluder;
  10716. uint occlusionLodLevel;
  10717. int patchSize;
  10718. /* readonly */
  10719. Array<TerrainPatch> patches;
  10720. /* readonly */
  10721. int refs;
  10722. float shadowDistance;
  10723. uint shadowMask;
  10724. bool smoothing;
  10725. Vector3 spacing;
  10726. bool temporary;
  10727. /* readonly */
  10728. StringHash type;
  10729. /* readonly */
  10730. String typeName;
  10731. uint viewMask;
  10732. /* readonly */
  10733. int weakRefs;
  10734. uint zoneMask;
  10735. };
  10736. class TerrainPatch
  10737. {
  10738. // Methods:
  10739. void ApplyAttributes();
  10740. void DrawDebugGeometry(DebugRenderer, bool);
  10741. Variant GetAttribute(const String&) const;
  10742. ValueAnimation GetAttributeAnimation(const String&) const;
  10743. float GetAttributeAnimationSpeed(const String&) const;
  10744. float GetAttributeAnimationTime(const String&) const;
  10745. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10746. Variant GetAttributeDefault(const String&) const;
  10747. bool GetInterceptNetworkUpdate(const String&) const;
  10748. bool HasSubscribedToEvent(Object, const String&);
  10749. bool HasSubscribedToEvent(const String&);
  10750. bool IsInView(Camera) const;
  10751. bool Load(File, bool = false);
  10752. bool Load(VectorBuffer&, bool = false);
  10753. bool LoadJSON(const JSONValue&, bool = false);
  10754. bool LoadXML(const XMLElement&, bool = false);
  10755. void MarkNetworkUpdate() const;
  10756. void Remove();
  10757. void RemoveAttributeAnimation(const String&);
  10758. void RemoveInstanceDefault();
  10759. void RemoveObjectAnimation();
  10760. void ResetToDefault();
  10761. bool Save(File) const;
  10762. bool Save(VectorBuffer&) const;
  10763. bool SaveJSON(JSONValue&) const;
  10764. bool SaveXML(XMLElement&) const;
  10765. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10766. void SetAnimationTime(float);
  10767. bool SetAttribute(const String&, const Variant&);
  10768. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10769. void SetAttributeAnimationSpeed(const String&, float);
  10770. void SetAttributeAnimationTime(const String&, float);
  10771. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10772. void SetInterceptNetworkUpdate(const String&, bool);
  10773. // Properties:
  10774. bool animationEnabled;
  10775. /* readonly */
  10776. Array<Variant> attributeDefaults;
  10777. /* readonly */
  10778. Array<AttributeInfo> attributeInfos;
  10779. Array<Variant> attributes;
  10780. /* readonly */
  10781. BoundingBox boundingBox;
  10782. bool castShadows;
  10783. /* readonly */
  10784. String category;
  10785. float drawDistance;
  10786. bool enabled;
  10787. /* readonly */
  10788. bool enabledEffective;
  10789. /* readonly */
  10790. uint id;
  10791. /* readonly */
  10792. bool inView;
  10793. uint lightMask;
  10794. float lodBias;
  10795. uint maxLights;
  10796. /* readonly */
  10797. Node node;
  10798. /* readonly */
  10799. uint numAttributes;
  10800. ObjectAnimation objectAnimation;
  10801. bool occludee;
  10802. bool occluder;
  10803. /* readonly */
  10804. int refs;
  10805. float shadowDistance;
  10806. uint shadowMask;
  10807. bool temporary;
  10808. /* readonly */
  10809. StringHash type;
  10810. /* readonly */
  10811. String typeName;
  10812. uint viewMask;
  10813. /* readonly */
  10814. int weakRefs;
  10815. /* readonly */
  10816. BoundingBox worldBoundingBox;
  10817. uint zoneMask;
  10818. };
  10819. class Text
  10820. {
  10821. // Methods:
  10822. void AddChild(UIElement);
  10823. void AddTag(const String&);
  10824. void AddTags(const String&, int8 = ';');
  10825. void ApplyAttributes();
  10826. void BringToFront();
  10827. void ClearSelection();
  10828. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10829. void DisableLayoutUpdate();
  10830. IntVector2 ElementToScreen(const IntVector2&);
  10831. void EnableLayoutUpdate();
  10832. uint FindChild(UIElement) const;
  10833. Variant GetAttribute(const String&) const;
  10834. ValueAnimation GetAttributeAnimation(const String&) const;
  10835. float GetAttributeAnimationSpeed(const String&) const;
  10836. float GetAttributeAnimationTime(const String&) const;
  10837. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10838. Variant GetAttributeDefault(const String&) const;
  10839. UIElement GetChild(const String&, bool = false) const;
  10840. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10841. Array<UIElement> GetChildren(bool = false) const;
  10842. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10843. UIElement GetElementEventSender() const;
  10844. bool GetInterceptNetworkUpdate(const String&) const;
  10845. uint GetNumChildren(bool) const;
  10846. bool HasSubscribedToEvent(Object, const String&);
  10847. bool HasSubscribedToEvent(const String&);
  10848. bool HasTag(const String&) const;
  10849. void InsertChild(uint, UIElement);
  10850. bool IsInside(IntVector2, bool);
  10851. bool IsInsideCombined(IntVector2, bool);
  10852. bool Load(File, bool = false);
  10853. bool Load(VectorBuffer&, bool = false);
  10854. bool LoadChildXML(XMLFile, XMLFile = null);
  10855. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10856. bool LoadJSON(const JSONValue&, bool = false);
  10857. bool LoadXML(File);
  10858. bool LoadXML(VectorBuffer&);
  10859. bool LoadXML(XMLFile, XMLFile);
  10860. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10861. bool LoadXML(const XMLElement&, bool = false);
  10862. void MarkNetworkUpdate() const;
  10863. void Remove();
  10864. void RemoveAllChildren();
  10865. void RemoveAllTags();
  10866. void RemoveAttributeAnimation(const String&);
  10867. void RemoveChild(UIElement, uint = 0);
  10868. void RemoveChild(uint);
  10869. void RemoveInstanceDefault();
  10870. void RemoveObjectAnimation();
  10871. bool RemoveTag(const String&);
  10872. void ResetDeepEnabled();
  10873. void ResetToDefault();
  10874. bool Save(File) const;
  10875. bool Save(VectorBuffer&) const;
  10876. bool SaveJSON(JSONValue&) const;
  10877. bool SaveXML(File, const String& = "\t");
  10878. bool SaveXML(VectorBuffer&, const String& = "\t");
  10879. bool SaveXML(XMLElement&) const;
  10880. IntVector2 ScreenToElement(const IntVector2&);
  10881. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10882. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10883. void SetAnimationTime(float);
  10884. bool SetAttribute(const String&, const Variant&);
  10885. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10886. void SetAttributeAnimationSpeed(const String&, float);
  10887. void SetAttributeAnimationTime(const String&, float);
  10888. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10889. void SetDeepEnabled(bool);
  10890. void SetEnabledRecursive(bool);
  10891. void SetFixedHeight(int);
  10892. void SetFixedSize(int, int);
  10893. void SetFixedWidth(int);
  10894. bool SetFont(Font, int);
  10895. bool SetFont(const String&, int);
  10896. void SetInterceptNetworkUpdate(const String&, bool);
  10897. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10898. void SetMaxSize(int, int);
  10899. void SetMinSize(int, int);
  10900. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10901. void SetPosition(int, int);
  10902. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10903. void SetSize(int, int);
  10904. bool SetStyle(const String&, XMLFile = null);
  10905. bool SetStyle(const XMLElement&);
  10906. bool SetStyleAuto(XMLFile = null);
  10907. void UpdateLayout();
  10908. const Variant& GetVar(const StringHash&);
  10909. // Properties:
  10910. bool animationEnabled;
  10911. /* readonly */
  10912. Array<Variant> attributeDefaults;
  10913. /* readonly */
  10914. Array<AttributeInfo> attributeInfos;
  10915. Array<Variant> attributes;
  10916. bool autoLocalizable;
  10917. bool bringToBack;
  10918. bool bringToFront;
  10919. /* readonly */
  10920. String category;
  10921. /* readonly */
  10922. Array<IntVector2> charPositions;
  10923. /* readonly */
  10924. Array<IntVector2> charSizes;
  10925. /* readonly */
  10926. IntVector2 childOffset;
  10927. /* readonly */
  10928. Array<UIElement> children;
  10929. IntRect clipBorder;
  10930. bool clipChildren;
  10931. /* writeonly */
  10932. Color color;
  10933. /* readonly */
  10934. bool colorGradient;
  10935. Array<Color> colors;
  10936. /* readonly */
  10937. IntRect combinedScreenRect;
  10938. XMLFile defaultStyle;
  10939. /* readonly */
  10940. float derivedOpacity;
  10941. /* readonly */
  10942. uint dragButtonCombo;
  10943. /* readonly */
  10944. int dragButtonCount;
  10945. uint dragDropMode;
  10946. bool editable;
  10947. Color effectColor;
  10948. bool elementEventSender;
  10949. bool enabled;
  10950. /* readonly */
  10951. bool enabledSelf;
  10952. /* readonly */
  10953. bool fixedHeight;
  10954. /* readonly */
  10955. bool fixedSize;
  10956. /* readonly */
  10957. bool fixedWidth;
  10958. bool focus;
  10959. FocusMode focusMode;
  10960. /* readonly */
  10961. Font font;
  10962. /* readonly */
  10963. int fontSize;
  10964. int height;
  10965. HorizontalAlignment horizontalAlignment;
  10966. Color hoverColor;
  10967. /* readonly */
  10968. bool hovering;
  10969. int indent;
  10970. int indentSpacing;
  10971. /* readonly */
  10972. int indentWidth;
  10973. bool internal;
  10974. IntRect layoutBorder;
  10975. Vector2 layoutFlexScale;
  10976. LayoutMode layoutMode;
  10977. int layoutSpacing;
  10978. int maxHeight;
  10979. IntVector2 maxSize;
  10980. int maxWidth;
  10981. int minHeight;
  10982. IntVector2 minSize;
  10983. int minWidth;
  10984. String name;
  10985. /* readonly */
  10986. uint numAllChildren;
  10987. /* readonly */
  10988. uint numAttributes;
  10989. /* readonly */
  10990. uint numChars;
  10991. /* readonly */
  10992. uint numChildren;
  10993. /* readonly */
  10994. uint numRows;
  10995. ObjectAnimation objectAnimation;
  10996. float opacity;
  10997. UIElement parent;
  10998. IntVector2 position;
  10999. int priority;
  11000. /* readonly */
  11001. int refs;
  11002. /* readonly */
  11003. UIElement root;
  11004. /* readonly */
  11005. int rowHeight;
  11006. float rowSpacing;
  11007. /* readonly */
  11008. Array<int> rowWidths;
  11009. /* readonly */
  11010. IntVector2 screenPosition;
  11011. bool selected;
  11012. Color selectionColor;
  11013. /* readonly */
  11014. uint selectionLength;
  11015. /* readonly */
  11016. uint selectionStart;
  11017. IntVector2 size;
  11018. bool sortChildren;
  11019. String style;
  11020. /* readonly */
  11021. Array<String> tags;
  11022. bool temporary;
  11023. String text;
  11024. HorizontalAlignment textAlignment;
  11025. TextEffect textEffect;
  11026. TraversalMode traversalMode;
  11027. /* readonly */
  11028. StringHash type;
  11029. /* readonly */
  11030. String typeName;
  11031. bool useDerivedOpacity;
  11032. /* readonly */
  11033. VariantMap vars;
  11034. VerticalAlignment verticalAlignment;
  11035. bool visible;
  11036. /* readonly */
  11037. bool visibleEffective;
  11038. /* readonly */
  11039. int weakRefs;
  11040. int width;
  11041. bool wordwrap;
  11042. };
  11043. class Text3D
  11044. {
  11045. // Methods:
  11046. void ApplyAttributes();
  11047. void DrawDebugGeometry(DebugRenderer, bool);
  11048. Variant GetAttribute(const String&) const;
  11049. ValueAnimation GetAttributeAnimation(const String&) const;
  11050. float GetAttributeAnimationSpeed(const String&) const;
  11051. float GetAttributeAnimationTime(const String&) const;
  11052. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11053. Variant GetAttributeDefault(const String&) const;
  11054. bool GetInterceptNetworkUpdate(const String&) const;
  11055. bool HasSubscribedToEvent(Object, const String&);
  11056. bool HasSubscribedToEvent(const String&);
  11057. bool IsInView(Camera) const;
  11058. bool Load(File, bool = false);
  11059. bool Load(VectorBuffer&, bool = false);
  11060. bool LoadJSON(const JSONValue&, bool = false);
  11061. bool LoadXML(const XMLElement&, bool = false);
  11062. void MarkNetworkUpdate() const;
  11063. void Remove();
  11064. void RemoveAttributeAnimation(const String&);
  11065. void RemoveInstanceDefault();
  11066. void RemoveObjectAnimation();
  11067. void ResetToDefault();
  11068. bool Save(File) const;
  11069. bool Save(VectorBuffer&) const;
  11070. bool SaveJSON(JSONValue&) const;
  11071. bool SaveXML(XMLElement&) const;
  11072. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11073. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11074. void SetAnimationTime(float);
  11075. bool SetAttribute(const String&, const Variant&);
  11076. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11077. void SetAttributeAnimationSpeed(const String&, float);
  11078. void SetAttributeAnimationTime(const String&, float);
  11079. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11080. bool SetFont(Font, int);
  11081. bool SetFont(const String&, int);
  11082. void SetInterceptNetworkUpdate(const String&, bool);
  11083. // Properties:
  11084. bool animationEnabled;
  11085. /* readonly */
  11086. Array<Variant> attributeDefaults;
  11087. /* readonly */
  11088. Array<AttributeInfo> attributeInfos;
  11089. Array<Variant> attributes;
  11090. /* readonly */
  11091. BoundingBox boundingBox;
  11092. bool castShadows;
  11093. /* readonly */
  11094. String category;
  11095. /* readonly */
  11096. Array<IntVector2> charPositions;
  11097. /* readonly */
  11098. Array<IntVector2> charSizes;
  11099. /* writeonly */
  11100. Color color;
  11101. Array<Color> colors;
  11102. float drawDistance;
  11103. Color effectColor;
  11104. float effectDepthBias;
  11105. bool enabled;
  11106. /* readonly */
  11107. bool enabledEffective;
  11108. FaceCameraMode faceCameraMode;
  11109. /* readonly */
  11110. Font font;
  11111. /* readonly */
  11112. int fontSize;
  11113. HorizontalAlignment horizontalAlignment;
  11114. /* readonly */
  11115. uint id;
  11116. /* readonly */
  11117. bool inView;
  11118. uint lightMask;
  11119. float lodBias;
  11120. Material material;
  11121. uint maxLights;
  11122. /* readonly */
  11123. Node node;
  11124. /* readonly */
  11125. uint numAttributes;
  11126. /* readonly */
  11127. uint numChars;
  11128. /* readonly */
  11129. uint numRows;
  11130. ObjectAnimation objectAnimation;
  11131. bool occludee;
  11132. bool occluder;
  11133. float opacity;
  11134. /* readonly */
  11135. int refs;
  11136. /* readonly */
  11137. int rowHeight;
  11138. float rowSpacing;
  11139. /* readonly */
  11140. Array<int> rowWidths;
  11141. float shadowDistance;
  11142. uint shadowMask;
  11143. bool temporary;
  11144. String text;
  11145. HorizontalAlignment textAlignment;
  11146. TextEffect textEffect;
  11147. /* readonly */
  11148. StringHash type;
  11149. /* readonly */
  11150. String typeName;
  11151. VerticalAlignment verticalAlignment;
  11152. uint viewMask;
  11153. /* readonly */
  11154. int weakRefs;
  11155. int width;
  11156. bool wordwrap;
  11157. /* readonly */
  11158. BoundingBox worldBoundingBox;
  11159. uint zoneMask;
  11160. };
  11161. class Texture
  11162. {
  11163. // Methods:
  11164. void ClearDataLost();
  11165. bool HasSubscribedToEvent(Object, const String&);
  11166. bool HasSubscribedToEvent(const String&);
  11167. bool Load(File);
  11168. bool Load(VectorBuffer&);
  11169. bool Save(File) const;
  11170. bool Save(VectorBuffer&) const;
  11171. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11172. void SetNumLevels(uint);
  11173. // Properties:
  11174. Array<TextureAddressMode> addressMode;
  11175. Texture backupTexture;
  11176. Color borderColor;
  11177. /* readonly */
  11178. String category;
  11179. /* readonly */
  11180. uint components;
  11181. /* readonly */
  11182. bool compressed;
  11183. /* readonly */
  11184. bool dataLost;
  11185. TextureFilterMode filterMode;
  11186. /* readonly */
  11187. uint format;
  11188. /* readonly */
  11189. int height;
  11190. /* readonly */
  11191. Array<int> levelHeight;
  11192. /* readonly */
  11193. Array<int> levelWidth;
  11194. /* readonly */
  11195. uint levels;
  11196. /* readonly */
  11197. uint memoryUse;
  11198. Array<int> mipsToSkip;
  11199. String name;
  11200. /* readonly */
  11201. int refs;
  11202. bool sRGB;
  11203. /* readonly */
  11204. StringHash type;
  11205. /* readonly */
  11206. String typeName;
  11207. /* readonly */
  11208. TextureUsage usage;
  11209. /* readonly */
  11210. uint useTimer;
  11211. /* readonly */
  11212. int weakRefs;
  11213. /* readonly */
  11214. int width;
  11215. };
  11216. class Texture2D
  11217. {
  11218. // Methods:
  11219. void ClearDataLost();
  11220. Image GetImage() const;
  11221. bool HasSubscribedToEvent(Object, const String&);
  11222. bool HasSubscribedToEvent(const String&);
  11223. bool Load(File);
  11224. bool Load(VectorBuffer&);
  11225. bool Save(File) const;
  11226. bool Save(VectorBuffer&) const;
  11227. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11228. bool SetData(Image, bool = false);
  11229. void SetNumLevels(uint);
  11230. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11231. // Properties:
  11232. Array<TextureAddressMode> addressMode;
  11233. Texture backupTexture;
  11234. Color borderColor;
  11235. /* readonly */
  11236. String category;
  11237. /* readonly */
  11238. uint components;
  11239. /* readonly */
  11240. bool compressed;
  11241. /* readonly */
  11242. bool dataLost;
  11243. TextureFilterMode filterMode;
  11244. /* readonly */
  11245. uint format;
  11246. /* readonly */
  11247. int height;
  11248. /* readonly */
  11249. Array<int> levelHeight;
  11250. /* readonly */
  11251. Array<int> levelWidth;
  11252. /* readonly */
  11253. uint levels;
  11254. /* readonly */
  11255. uint memoryUse;
  11256. Array<int> mipsToSkip;
  11257. String name;
  11258. /* readonly */
  11259. int refs;
  11260. /* readonly */
  11261. RenderSurface renderSurface;
  11262. bool sRGB;
  11263. /* readonly */
  11264. StringHash type;
  11265. /* readonly */
  11266. String typeName;
  11267. /* readonly */
  11268. TextureUsage usage;
  11269. /* readonly */
  11270. uint useTimer;
  11271. /* readonly */
  11272. int weakRefs;
  11273. /* readonly */
  11274. int width;
  11275. };
  11276. class Texture3D
  11277. {
  11278. // Methods:
  11279. void ClearDataLost();
  11280. bool HasSubscribedToEvent(Object, const String&);
  11281. bool HasSubscribedToEvent(const String&);
  11282. bool Load(File);
  11283. bool Load(VectorBuffer&);
  11284. bool Save(File) const;
  11285. bool Save(VectorBuffer&) const;
  11286. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11287. bool SetData(Image, bool = false);
  11288. void SetNumLevels(uint);
  11289. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11290. // Properties:
  11291. Array<TextureAddressMode> addressMode;
  11292. Texture backupTexture;
  11293. Color borderColor;
  11294. /* readonly */
  11295. String category;
  11296. /* readonly */
  11297. uint components;
  11298. /* readonly */
  11299. bool compressed;
  11300. /* readonly */
  11301. bool dataLost;
  11302. TextureFilterMode filterMode;
  11303. /* readonly */
  11304. uint format;
  11305. /* readonly */
  11306. int height;
  11307. /* readonly */
  11308. Array<int> levelHeight;
  11309. /* readonly */
  11310. Array<int> levelWidth;
  11311. /* readonly */
  11312. uint levels;
  11313. /* readonly */
  11314. uint memoryUse;
  11315. Array<int> mipsToSkip;
  11316. String name;
  11317. /* readonly */
  11318. int refs;
  11319. bool sRGB;
  11320. /* readonly */
  11321. StringHash type;
  11322. /* readonly */
  11323. String typeName;
  11324. /* readonly */
  11325. TextureUsage usage;
  11326. /* readonly */
  11327. uint useTimer;
  11328. /* readonly */
  11329. int weakRefs;
  11330. /* readonly */
  11331. int width;
  11332. };
  11333. class TextureCube
  11334. {
  11335. // Methods:
  11336. void ClearDataLost();
  11337. bool HasSubscribedToEvent(Object, const String&);
  11338. bool HasSubscribedToEvent(const String&);
  11339. bool Load(File);
  11340. bool Load(VectorBuffer&);
  11341. bool Save(File) const;
  11342. bool Save(VectorBuffer&) const;
  11343. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11344. bool SetData(CubeMapFace, Image, bool = false);
  11345. void SetNumLevels(uint);
  11346. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11347. // Properties:
  11348. Array<TextureAddressMode> addressMode;
  11349. Texture backupTexture;
  11350. Color borderColor;
  11351. /* readonly */
  11352. String category;
  11353. /* readonly */
  11354. uint components;
  11355. /* readonly */
  11356. bool compressed;
  11357. /* readonly */
  11358. bool dataLost;
  11359. TextureFilterMode filterMode;
  11360. /* readonly */
  11361. uint format;
  11362. /* readonly */
  11363. int height;
  11364. /* readonly */
  11365. Array<int> levelHeight;
  11366. /* readonly */
  11367. Array<int> levelWidth;
  11368. /* readonly */
  11369. uint levels;
  11370. /* readonly */
  11371. uint memoryUse;
  11372. Array<int> mipsToSkip;
  11373. String name;
  11374. /* readonly */
  11375. int refs;
  11376. /* readonly */
  11377. Array<RenderSurface> renderSurfaces;
  11378. bool sRGB;
  11379. /* readonly */
  11380. StringHash type;
  11381. /* readonly */
  11382. String typeName;
  11383. /* readonly */
  11384. TextureUsage usage;
  11385. /* readonly */
  11386. uint useTimer;
  11387. /* readonly */
  11388. int weakRefs;
  11389. /* readonly */
  11390. int width;
  11391. };
  11392. class TextureFrame
  11393. {
  11394. // Properties:
  11395. float time;
  11396. Rect uv;
  11397. };
  11398. class Tile2D
  11399. {
  11400. // Methods:
  11401. bool HasProperty(const String&) const;
  11402. const String& GetProperty(const String&) const;
  11403. // Properties:
  11404. /* readonly */
  11405. int gid;
  11406. /* readonly */
  11407. int refs;
  11408. /* readonly */
  11409. Sprite2D sprite;
  11410. /* readonly */
  11411. int weakRefs;
  11412. };
  11413. class TileMap2D
  11414. {
  11415. // Methods:
  11416. void ApplyAttributes();
  11417. void DrawDebugGeometry(DebugRenderer, bool);
  11418. Variant GetAttribute(const String&) const;
  11419. ValueAnimation GetAttributeAnimation(const String&) const;
  11420. float GetAttributeAnimationSpeed(const String&) const;
  11421. float GetAttributeAnimationTime(const String&) const;
  11422. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11423. Variant GetAttributeDefault(const String&) const;
  11424. bool GetInterceptNetworkUpdate(const String&) const;
  11425. TileMapLayer2D GetLayer(uint) const;
  11426. bool HasSubscribedToEvent(Object, const String&);
  11427. bool HasSubscribedToEvent(const String&);
  11428. bool Load(File, bool = false);
  11429. bool Load(VectorBuffer&, bool = false);
  11430. bool LoadJSON(const JSONValue&, bool = false);
  11431. bool LoadXML(const XMLElement&, bool = false);
  11432. void MarkNetworkUpdate() const;
  11433. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11434. void Remove();
  11435. void RemoveAttributeAnimation(const String&);
  11436. void RemoveInstanceDefault();
  11437. void RemoveObjectAnimation();
  11438. void ResetToDefault();
  11439. bool Save(File) const;
  11440. bool Save(VectorBuffer&) const;
  11441. bool SaveJSON(JSONValue&) const;
  11442. bool SaveXML(XMLElement&) const;
  11443. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11444. void SetAnimationTime(float);
  11445. bool SetAttribute(const String&, const Variant&);
  11446. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11447. void SetAttributeAnimationSpeed(const String&, float);
  11448. void SetAttributeAnimationTime(const String&, float);
  11449. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11450. void SetInterceptNetworkUpdate(const String&, bool);
  11451. Vector2 TileIndexToPosition(int, int) const;
  11452. // Properties:
  11453. bool animationEnabled;
  11454. /* readonly */
  11455. Array<Variant> attributeDefaults;
  11456. /* readonly */
  11457. Array<AttributeInfo> attributeInfos;
  11458. Array<Variant> attributes;
  11459. /* readonly */
  11460. String category;
  11461. bool enabled;
  11462. /* readonly */
  11463. bool enabledEffective;
  11464. /* readonly */
  11465. uint id;
  11466. /* readonly */
  11467. TileMapInfo2D info;
  11468. /* readonly */
  11469. Node node;
  11470. /* readonly */
  11471. uint numAttributes;
  11472. /* readonly */
  11473. uint numLayers;
  11474. ObjectAnimation objectAnimation;
  11475. /* readonly */
  11476. int refs;
  11477. bool temporary;
  11478. TmxFile2D tmxFile;
  11479. /* readonly */
  11480. StringHash type;
  11481. /* readonly */
  11482. String typeName;
  11483. /* readonly */
  11484. int weakRefs;
  11485. };
  11486. class TileMapInfo2D
  11487. {
  11488. // Properties:
  11489. int height;
  11490. /* readonly */
  11491. float mapHeight;
  11492. /* readonly */
  11493. float mapWidth;
  11494. Orientation2D orientation;
  11495. float tileHeight;
  11496. float tileWidth;
  11497. int width;
  11498. };
  11499. class TileMapLayer2D
  11500. {
  11501. // Methods:
  11502. void ApplyAttributes();
  11503. void DrawDebugGeometry(DebugRenderer, bool);
  11504. Variant GetAttribute(const String&) const;
  11505. ValueAnimation GetAttributeAnimation(const String&) const;
  11506. float GetAttributeAnimationSpeed(const String&) const;
  11507. float GetAttributeAnimationTime(const String&) const;
  11508. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11509. Variant GetAttributeDefault(const String&) const;
  11510. bool GetInterceptNetworkUpdate(const String&) const;
  11511. TileMapObject2D GetObject(uint) const;
  11512. Node GetObjectNode(uint) const;
  11513. Tile2D GetTile(int, int) const;
  11514. Node GetTileNode(int, int) const;
  11515. bool HasProperty(const String&) const;
  11516. bool HasSubscribedToEvent(Object, const String&);
  11517. bool HasSubscribedToEvent(const String&);
  11518. bool Load(File, bool = false);
  11519. bool Load(VectorBuffer&, bool = false);
  11520. bool LoadJSON(const JSONValue&, bool = false);
  11521. bool LoadXML(const XMLElement&, bool = false);
  11522. void MarkNetworkUpdate() const;
  11523. void Remove();
  11524. void RemoveAttributeAnimation(const String&);
  11525. void RemoveInstanceDefault();
  11526. void RemoveObjectAnimation();
  11527. void ResetToDefault();
  11528. bool Save(File) const;
  11529. bool Save(VectorBuffer&) const;
  11530. bool SaveJSON(JSONValue&) const;
  11531. bool SaveXML(XMLElement&) const;
  11532. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11533. void SetAnimationTime(float);
  11534. bool SetAttribute(const String&, const Variant&);
  11535. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11536. void SetAttributeAnimationSpeed(const String&, float);
  11537. void SetAttributeAnimationTime(const String&, float);
  11538. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11539. void SetInterceptNetworkUpdate(const String&, bool);
  11540. const String& GetProperty(const String&) const;
  11541. // Properties:
  11542. bool animationEnabled;
  11543. /* readonly */
  11544. Array<Variant> attributeDefaults;
  11545. /* readonly */
  11546. Array<AttributeInfo> attributeInfos;
  11547. Array<Variant> attributes;
  11548. /* readonly */
  11549. String category;
  11550. int drawOrder;
  11551. bool enabled;
  11552. /* readonly */
  11553. bool enabledEffective;
  11554. /* readonly */
  11555. int height;
  11556. /* readonly */
  11557. uint id;
  11558. /* readonly */
  11559. Node imageNode;
  11560. /* readonly */
  11561. TileMapLayerType2D layerType;
  11562. /* readonly */
  11563. Node node;
  11564. /* readonly */
  11565. uint numAttributes;
  11566. /* readonly */
  11567. uint numObjects;
  11568. ObjectAnimation objectAnimation;
  11569. /* readonly */
  11570. int refs;
  11571. bool temporary;
  11572. /* readonly */
  11573. StringHash type;
  11574. /* readonly */
  11575. String typeName;
  11576. bool visible;
  11577. /* readonly */
  11578. int weakRefs;
  11579. /* readonly */
  11580. int width;
  11581. };
  11582. class TileMapObject2D
  11583. {
  11584. // Methods:
  11585. bool HasProperty(const String&) const;
  11586. const String& GetProperty(const String&) const;
  11587. const Vector2& GetPoint(uint) const;
  11588. // Properties:
  11589. /* readonly */
  11590. String name;
  11591. /* readonly */
  11592. uint numPoints;
  11593. /* readonly */
  11594. TileObjectType2D objectType;
  11595. /* readonly */
  11596. Vector2 position;
  11597. /* readonly */
  11598. int refs;
  11599. /* readonly */
  11600. Vector2 size;
  11601. /* readonly */
  11602. int tileGid;
  11603. /* readonly */
  11604. Sprite2D tileSprite;
  11605. /* readonly */
  11606. String type;
  11607. /* readonly */
  11608. int weakRefs;
  11609. };
  11610. class Time
  11611. {
  11612. // Methods:
  11613. bool HasSubscribedToEvent(Object, const String&);
  11614. bool HasSubscribedToEvent(const String&);
  11615. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11616. // Properties:
  11617. /* readonly */
  11618. String category;
  11619. /* readonly */
  11620. float elapsedTime;
  11621. /* readonly */
  11622. uint frameNumber;
  11623. /* readonly */
  11624. int refs;
  11625. /* readonly */
  11626. uint systemTime;
  11627. /* readonly */
  11628. uint timeSinceEpoch;
  11629. /* readonly */
  11630. String timeStamp;
  11631. /* readonly */
  11632. float timeStep;
  11633. /* readonly */
  11634. StringHash type;
  11635. /* readonly */
  11636. String typeName;
  11637. /* readonly */
  11638. int weakRefs;
  11639. };
  11640. class Timer
  11641. {
  11642. // Methods:
  11643. uint GetMSec(bool);
  11644. void Reset();
  11645. };
  11646. class TmxFile2D
  11647. {
  11648. // Methods:
  11649. bool HasSubscribedToEvent(Object, const String&);
  11650. bool HasSubscribedToEvent(const String&);
  11651. bool Load(File);
  11652. bool Load(VectorBuffer&);
  11653. bool Save(File) const;
  11654. bool Save(VectorBuffer&) const;
  11655. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11656. // Properties:
  11657. /* readonly */
  11658. String category;
  11659. /* readonly */
  11660. uint memoryUse;
  11661. String name;
  11662. /* readonly */
  11663. int refs;
  11664. /* readonly */
  11665. StringHash type;
  11666. /* readonly */
  11667. String typeName;
  11668. /* readonly */
  11669. uint useTimer;
  11670. /* readonly */
  11671. int weakRefs;
  11672. };
  11673. class ToolTip
  11674. {
  11675. // Methods:
  11676. void AddChild(UIElement);
  11677. void AddTag(const String&);
  11678. void AddTags(const String&, int8 = ';');
  11679. void ApplyAttributes();
  11680. void BringToFront();
  11681. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11682. void DisableLayoutUpdate();
  11683. IntVector2 ElementToScreen(const IntVector2&);
  11684. void EnableLayoutUpdate();
  11685. uint FindChild(UIElement) const;
  11686. Variant GetAttribute(const String&) const;
  11687. ValueAnimation GetAttributeAnimation(const String&) const;
  11688. float GetAttributeAnimationSpeed(const String&) const;
  11689. float GetAttributeAnimationTime(const String&) const;
  11690. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11691. Variant GetAttributeDefault(const String&) const;
  11692. UIElement GetChild(const String&, bool = false) const;
  11693. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11694. Array<UIElement> GetChildren(bool = false) const;
  11695. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11696. UIElement GetElementEventSender() const;
  11697. bool GetInterceptNetworkUpdate(const String&) const;
  11698. uint GetNumChildren(bool) const;
  11699. bool HasSubscribedToEvent(Object, const String&);
  11700. bool HasSubscribedToEvent(const String&);
  11701. bool HasTag(const String&) const;
  11702. void InsertChild(uint, UIElement);
  11703. bool IsInside(IntVector2, bool);
  11704. bool IsInsideCombined(IntVector2, bool);
  11705. bool Load(File, bool = false);
  11706. bool Load(VectorBuffer&, bool = false);
  11707. bool LoadChildXML(XMLFile, XMLFile = null);
  11708. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11709. bool LoadJSON(const JSONValue&, bool = false);
  11710. bool LoadXML(File);
  11711. bool LoadXML(VectorBuffer&);
  11712. bool LoadXML(XMLFile, XMLFile);
  11713. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11714. bool LoadXML(const XMLElement&, bool = false);
  11715. void MarkNetworkUpdate() const;
  11716. void Remove();
  11717. void RemoveAllChildren();
  11718. void RemoveAllTags();
  11719. void RemoveAttributeAnimation(const String&);
  11720. void RemoveChild(UIElement, uint = 0);
  11721. void RemoveChild(uint);
  11722. void RemoveInstanceDefault();
  11723. void RemoveObjectAnimation();
  11724. bool RemoveTag(const String&);
  11725. void ResetDeepEnabled();
  11726. void ResetToDefault();
  11727. bool Save(File) const;
  11728. bool Save(VectorBuffer&) const;
  11729. bool SaveJSON(JSONValue&) const;
  11730. bool SaveXML(File, const String& = "\t");
  11731. bool SaveXML(VectorBuffer&, const String& = "\t");
  11732. bool SaveXML(XMLElement&) const;
  11733. IntVector2 ScreenToElement(const IntVector2&);
  11734. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11735. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11736. void SetAnimationTime(float);
  11737. bool SetAttribute(const String&, const Variant&);
  11738. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11739. void SetAttributeAnimationSpeed(const String&, float);
  11740. void SetAttributeAnimationTime(const String&, float);
  11741. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11742. void SetDeepEnabled(bool);
  11743. void SetEnabledRecursive(bool);
  11744. void SetFixedHeight(int);
  11745. void SetFixedSize(int, int);
  11746. void SetFixedWidth(int);
  11747. void SetInterceptNetworkUpdate(const String&, bool);
  11748. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11749. void SetMaxSize(int, int);
  11750. void SetMinSize(int, int);
  11751. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11752. void SetPosition(int, int);
  11753. void SetSize(int, int);
  11754. bool SetStyle(const String&, XMLFile = null);
  11755. bool SetStyle(const XMLElement&);
  11756. bool SetStyleAuto(XMLFile = null);
  11757. void UpdateLayout();
  11758. const Variant& GetVar(const StringHash&);
  11759. // Properties:
  11760. bool animationEnabled;
  11761. /* readonly */
  11762. Array<Variant> attributeDefaults;
  11763. /* readonly */
  11764. Array<AttributeInfo> attributeInfos;
  11765. Array<Variant> attributes;
  11766. bool bringToBack;
  11767. bool bringToFront;
  11768. /* readonly */
  11769. String category;
  11770. /* readonly */
  11771. IntVector2 childOffset;
  11772. /* readonly */
  11773. Array<UIElement> children;
  11774. IntRect clipBorder;
  11775. bool clipChildren;
  11776. /* writeonly */
  11777. Color color;
  11778. /* readonly */
  11779. bool colorGradient;
  11780. Array<Color> colors;
  11781. /* readonly */
  11782. IntRect combinedScreenRect;
  11783. XMLFile defaultStyle;
  11784. float delay;
  11785. /* readonly */
  11786. float derivedOpacity;
  11787. /* readonly */
  11788. uint dragButtonCombo;
  11789. /* readonly */
  11790. int dragButtonCount;
  11791. uint dragDropMode;
  11792. bool editable;
  11793. bool elementEventSender;
  11794. bool enabled;
  11795. /* readonly */
  11796. bool enabledSelf;
  11797. /* readonly */
  11798. bool fixedHeight;
  11799. /* readonly */
  11800. bool fixedSize;
  11801. /* readonly */
  11802. bool fixedWidth;
  11803. bool focus;
  11804. FocusMode focusMode;
  11805. int height;
  11806. HorizontalAlignment horizontalAlignment;
  11807. /* readonly */
  11808. bool hovering;
  11809. int indent;
  11810. int indentSpacing;
  11811. /* readonly */
  11812. int indentWidth;
  11813. bool internal;
  11814. IntRect layoutBorder;
  11815. Vector2 layoutFlexScale;
  11816. LayoutMode layoutMode;
  11817. int layoutSpacing;
  11818. int maxHeight;
  11819. IntVector2 maxSize;
  11820. int maxWidth;
  11821. int minHeight;
  11822. IntVector2 minSize;
  11823. int minWidth;
  11824. String name;
  11825. /* readonly */
  11826. uint numAllChildren;
  11827. /* readonly */
  11828. uint numAttributes;
  11829. /* readonly */
  11830. uint numChildren;
  11831. ObjectAnimation objectAnimation;
  11832. float opacity;
  11833. UIElement parent;
  11834. IntVector2 position;
  11835. int priority;
  11836. /* readonly */
  11837. int refs;
  11838. /* readonly */
  11839. UIElement root;
  11840. /* readonly */
  11841. IntVector2 screenPosition;
  11842. bool selected;
  11843. IntVector2 size;
  11844. bool sortChildren;
  11845. String style;
  11846. /* readonly */
  11847. Array<String> tags;
  11848. bool temporary;
  11849. TraversalMode traversalMode;
  11850. /* readonly */
  11851. StringHash type;
  11852. /* readonly */
  11853. String typeName;
  11854. bool useDerivedOpacity;
  11855. /* readonly */
  11856. VariantMap vars;
  11857. VerticalAlignment verticalAlignment;
  11858. bool visible;
  11859. /* readonly */
  11860. bool visibleEffective;
  11861. /* readonly */
  11862. int weakRefs;
  11863. int width;
  11864. };
  11865. class TouchState
  11866. {
  11867. // Properties:
  11868. IntVector2 delta;
  11869. IntVector2 lastPosition;
  11870. IntVector2 position;
  11871. float pressure;
  11872. int touchID;
  11873. /* readonly */
  11874. UIElement touchedElement;
  11875. };
  11876. class UI
  11877. {
  11878. // Methods:
  11879. void Clear();
  11880. void DebugDraw(UIElement);
  11881. UIElement GetElementAt(const IntVector2&, bool = true);
  11882. UIElement GetElementAt(int, int, bool = true);
  11883. bool HasModalElement() const;
  11884. bool HasSubscribedToEvent(Object, const String&);
  11885. bool HasSubscribedToEvent(const String&);
  11886. bool IsDragging() const;
  11887. UIElement LoadLayout(File);
  11888. UIElement LoadLayout(File, XMLFile);
  11889. UIElement LoadLayout(VectorBuffer&);
  11890. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11891. UIElement LoadLayout(XMLFile);
  11892. UIElement LoadLayout(XMLFile, XMLFile);
  11893. bool SaveLayout(File, UIElement);
  11894. bool SaveLayout(VectorBuffer&, UIElement);
  11895. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11896. void SetFocusElement(UIElement, bool = false);
  11897. void SetHeight(float);
  11898. void SetWidth(float);
  11899. const Array<UIElement> GetDragElements();
  11900. // Properties:
  11901. /* readonly */
  11902. String category;
  11903. String clipBoardText;
  11904. Cursor cursor;
  11905. /* readonly */
  11906. IntVector2 cursorPosition;
  11907. float defaultToolTipDelay;
  11908. float doubleClickInterval;
  11909. int dragBeginDistance;
  11910. float dragBeginInterval;
  11911. UIElement focusElement;
  11912. bool forceAutoHint;
  11913. /* readonly */
  11914. UIElement frontElement;
  11915. int maxFontTextureSize;
  11916. /* readonly */
  11917. UIElement modalRoot;
  11918. bool nonFocusedMouseWheel;
  11919. /* readonly */
  11920. int refs;
  11921. /* readonly */
  11922. UIElement root;
  11923. float scale;
  11924. /* readonly */
  11925. StringHash type;
  11926. /* readonly */
  11927. String typeName;
  11928. bool useMutableGlyphs;
  11929. bool useScreenKeyboard;
  11930. bool useSystemClipboard;
  11931. /* readonly */
  11932. int weakRefs;
  11933. };
  11934. class UIElement
  11935. {
  11936. // Methods:
  11937. void AddChild(UIElement);
  11938. void AddTag(const String&);
  11939. void AddTags(const String&, int8 = ';');
  11940. void ApplyAttributes();
  11941. void BringToFront();
  11942. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11943. void DisableLayoutUpdate();
  11944. IntVector2 ElementToScreen(const IntVector2&);
  11945. void EnableLayoutUpdate();
  11946. uint FindChild(UIElement) const;
  11947. Variant GetAttribute(const String&) const;
  11948. ValueAnimation GetAttributeAnimation(const String&) const;
  11949. float GetAttributeAnimationSpeed(const String&) const;
  11950. float GetAttributeAnimationTime(const String&) const;
  11951. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11952. Variant GetAttributeDefault(const String&) const;
  11953. UIElement GetChild(const String&, bool = false) const;
  11954. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11955. Array<UIElement> GetChildren(bool = false) const;
  11956. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11957. UIElement GetElementEventSender() const;
  11958. bool GetInterceptNetworkUpdate(const String&) const;
  11959. uint GetNumChildren(bool) const;
  11960. bool HasSubscribedToEvent(Object, const String&);
  11961. bool HasSubscribedToEvent(const String&);
  11962. bool HasTag(const String&) const;
  11963. void InsertChild(uint, UIElement);
  11964. bool IsInside(IntVector2, bool);
  11965. bool IsInsideCombined(IntVector2, bool);
  11966. bool Load(File, bool = false);
  11967. bool Load(VectorBuffer&, bool = false);
  11968. bool LoadChildXML(XMLFile, XMLFile = null);
  11969. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11970. bool LoadJSON(const JSONValue&, bool = false);
  11971. bool LoadXML(File);
  11972. bool LoadXML(VectorBuffer&);
  11973. bool LoadXML(XMLFile, XMLFile);
  11974. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11975. bool LoadXML(const XMLElement&, bool = false);
  11976. void MarkNetworkUpdate() const;
  11977. void Remove();
  11978. void RemoveAllChildren();
  11979. void RemoveAllTags();
  11980. void RemoveAttributeAnimation(const String&);
  11981. void RemoveChild(UIElement, uint = 0);
  11982. void RemoveChild(uint);
  11983. void RemoveInstanceDefault();
  11984. void RemoveObjectAnimation();
  11985. bool RemoveTag(const String&);
  11986. void ResetDeepEnabled();
  11987. void ResetToDefault();
  11988. bool Save(File) const;
  11989. bool Save(VectorBuffer&) const;
  11990. bool SaveJSON(JSONValue&) const;
  11991. bool SaveXML(File, const String& = "\t");
  11992. bool SaveXML(VectorBuffer&, const String& = "\t");
  11993. bool SaveXML(XMLElement&) const;
  11994. IntVector2 ScreenToElement(const IntVector2&);
  11995. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11996. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11997. void SetAnimationTime(float);
  11998. bool SetAttribute(const String&, const Variant&);
  11999. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12000. void SetAttributeAnimationSpeed(const String&, float);
  12001. void SetAttributeAnimationTime(const String&, float);
  12002. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12003. void SetDeepEnabled(bool);
  12004. void SetEnabledRecursive(bool);
  12005. void SetFixedHeight(int);
  12006. void SetFixedSize(int, int);
  12007. void SetFixedWidth(int);
  12008. void SetInterceptNetworkUpdate(const String&, bool);
  12009. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12010. void SetMaxSize(int, int);
  12011. void SetMinSize(int, int);
  12012. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12013. void SetPosition(int, int);
  12014. void SetSize(int, int);
  12015. bool SetStyle(const String&, XMLFile = null);
  12016. bool SetStyle(const XMLElement&);
  12017. bool SetStyleAuto(XMLFile = null);
  12018. void UpdateLayout();
  12019. const Variant& GetVar(const StringHash&);
  12020. // Properties:
  12021. bool animationEnabled;
  12022. /* readonly */
  12023. Array<Variant> attributeDefaults;
  12024. /* readonly */
  12025. Array<AttributeInfo> attributeInfos;
  12026. Array<Variant> attributes;
  12027. bool bringToBack;
  12028. bool bringToFront;
  12029. /* readonly */
  12030. String category;
  12031. /* readonly */
  12032. IntVector2 childOffset;
  12033. /* readonly */
  12034. Array<UIElement> children;
  12035. IntRect clipBorder;
  12036. bool clipChildren;
  12037. /* writeonly */
  12038. Color color;
  12039. /* readonly */
  12040. bool colorGradient;
  12041. Array<Color> colors;
  12042. /* readonly */
  12043. IntRect combinedScreenRect;
  12044. XMLFile defaultStyle;
  12045. /* readonly */
  12046. float derivedOpacity;
  12047. /* readonly */
  12048. uint dragButtonCombo;
  12049. /* readonly */
  12050. int dragButtonCount;
  12051. uint dragDropMode;
  12052. bool editable;
  12053. bool elementEventSender;
  12054. bool enabled;
  12055. /* readonly */
  12056. bool enabledSelf;
  12057. /* readonly */
  12058. bool fixedHeight;
  12059. /* readonly */
  12060. bool fixedSize;
  12061. /* readonly */
  12062. bool fixedWidth;
  12063. bool focus;
  12064. FocusMode focusMode;
  12065. int height;
  12066. HorizontalAlignment horizontalAlignment;
  12067. /* readonly */
  12068. bool hovering;
  12069. int indent;
  12070. int indentSpacing;
  12071. /* readonly */
  12072. int indentWidth;
  12073. bool internal;
  12074. IntRect layoutBorder;
  12075. Vector2 layoutFlexScale;
  12076. LayoutMode layoutMode;
  12077. int layoutSpacing;
  12078. int maxHeight;
  12079. IntVector2 maxSize;
  12080. int maxWidth;
  12081. int minHeight;
  12082. IntVector2 minSize;
  12083. int minWidth;
  12084. String name;
  12085. /* readonly */
  12086. uint numAllChildren;
  12087. /* readonly */
  12088. uint numAttributes;
  12089. /* readonly */
  12090. uint numChildren;
  12091. ObjectAnimation objectAnimation;
  12092. float opacity;
  12093. UIElement parent;
  12094. IntVector2 position;
  12095. int priority;
  12096. /* readonly */
  12097. int refs;
  12098. /* readonly */
  12099. UIElement root;
  12100. /* readonly */
  12101. IntVector2 screenPosition;
  12102. bool selected;
  12103. IntVector2 size;
  12104. bool sortChildren;
  12105. String style;
  12106. /* readonly */
  12107. Array<String> tags;
  12108. bool temporary;
  12109. TraversalMode traversalMode;
  12110. /* readonly */
  12111. StringHash type;
  12112. /* readonly */
  12113. String typeName;
  12114. bool useDerivedOpacity;
  12115. /* readonly */
  12116. VariantMap vars;
  12117. VerticalAlignment verticalAlignment;
  12118. bool visible;
  12119. /* readonly */
  12120. bool visibleEffective;
  12121. /* readonly */
  12122. int weakRefs;
  12123. int width;
  12124. };
  12125. class ValueAnimation
  12126. {
  12127. // Methods:
  12128. bool HasSubscribedToEvent(Object, const String&);
  12129. bool HasSubscribedToEvent(const String&);
  12130. bool Load(File);
  12131. bool Load(VectorBuffer&);
  12132. bool Save(File) const;
  12133. bool Save(VectorBuffer&) const;
  12134. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12135. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12136. void SetKeyFrame(float, const Variant&);
  12137. // Properties:
  12138. /* readonly */
  12139. String category;
  12140. InterpMethod interpolationMethod;
  12141. /* readonly */
  12142. uint memoryUse;
  12143. String name;
  12144. /* readonly */
  12145. int refs;
  12146. float splineTension;
  12147. /* readonly */
  12148. StringHash type;
  12149. /* readonly */
  12150. String typeName;
  12151. /* readonly */
  12152. uint useTimer;
  12153. VariantType valueType;
  12154. /* readonly */
  12155. int weakRefs;
  12156. };
  12157. class Variant
  12158. {
  12159. // Methods:
  12160. void Clear();
  12161. const Color& GetColor() const;
  12162. void FromString(VariantType, const String&);
  12163. void FromString(const String&, const String&);
  12164. bool GetBool() const;
  12165. double GetDouble() const;
  12166. float GetFloat() const;
  12167. int GetInt() const;
  12168. RefCounted GetPtr() const;
  12169. ScriptObject GetScriptObject() const;
  12170. StringHash GetStringHash() const;
  12171. Array<String> GetStringVector() const;
  12172. uint GetUInt() const;
  12173. Array<Variant> GetVariantVector() const;
  12174. const IntRect& GetIntRect() const;
  12175. const IntVector2& GetIntVector2() const;
  12176. const Matrix3& GetMatrix3() const;
  12177. const Matrix3x4& GetMatrix3x4() const;
  12178. const Matrix4& GetMatrix4() const;
  12179. const Quaternion& GetQuaternion() const;
  12180. const ResourceRef& GetResourceRef() const;
  12181. const ResourceRefList& GetResourceRefList() const;
  12182. const String& GetString() const;
  12183. String ToString() const;
  12184. const VariantMap& GetVariantMap() const;
  12185. const Vector2& GetVector2() const;
  12186. const Vector3& GetVector3() const;
  12187. const Vector4& GetVector4() const;
  12188. const VectorBuffer GetBuffer() const;
  12189. // Properties:
  12190. /* readonly */
  12191. bool empty;
  12192. /* readonly */
  12193. VariantType type;
  12194. /* readonly */
  12195. String typeName;
  12196. /* readonly */
  12197. bool zero;
  12198. };
  12199. class VariantMap
  12200. {
  12201. // Methods:
  12202. void Clear();
  12203. bool Contains(StringHash) const;
  12204. bool Contains(const String&) const;
  12205. bool Erase(StringHash);
  12206. bool Erase(const String&);
  12207. // Properties:
  12208. /* readonly */
  12209. Array<StringHash> keys;
  12210. /* readonly */
  12211. uint length;
  12212. /* readonly */
  12213. Array<Variant> values;
  12214. };
  12215. class Vector2
  12216. {
  12217. // Methods:
  12218. Vector2 Abs() const;
  12219. float AbsDotProduct(const Vector2&) const;
  12220. float DotProduct(const Vector2&) const;
  12221. bool Equals(const Vector2&) const;
  12222. bool IsNaN() const;
  12223. Vector2 Lerp(const Vector2&, float) const;
  12224. void Normalize();
  12225. Vector2 Normalized() const;
  12226. String ToString() const;
  12227. // Properties:
  12228. /* readonly */
  12229. Array<float> data;
  12230. /* readonly */
  12231. float length;
  12232. /* readonly */
  12233. float lengthSquared;
  12234. float x;
  12235. float y;
  12236. };
  12237. class Vector3
  12238. {
  12239. // Methods:
  12240. Vector3 Abs() const;
  12241. float AbsDotProduct(const Vector3&) const;
  12242. float Angle(const Vector3&) const;
  12243. Vector3 CrossProduct(const Vector3&) const;
  12244. float DotProduct(const Vector3&) const;
  12245. bool Equals(const Vector3&) const;
  12246. bool IsNaN() const;
  12247. Vector3 Lerp(const Vector3&, float) const;
  12248. void Normalize();
  12249. Vector3 Normalized() const;
  12250. String ToString() const;
  12251. // Properties:
  12252. /* readonly */
  12253. Array<float> data;
  12254. /* readonly */
  12255. float length;
  12256. /* readonly */
  12257. float lengthSquared;
  12258. float x;
  12259. float y;
  12260. float z;
  12261. };
  12262. class Vector4
  12263. {
  12264. // Methods:
  12265. Vector4 Abs() const;
  12266. float AbsDotProduct(const Vector4&) const;
  12267. float DotProduct(const Vector4&) const;
  12268. bool Equals(const Vector4&) const;
  12269. bool IsNaN() const;
  12270. Vector4 Lerp(const Vector4&, float) const;
  12271. String ToString() const;
  12272. // Properties:
  12273. /* readonly */
  12274. Array<float> data;
  12275. float w;
  12276. float x;
  12277. float y;
  12278. float z;
  12279. };
  12280. class VectorBuffer
  12281. {
  12282. // Methods:
  12283. void Clear();
  12284. Array<uint8> Read(uint);
  12285. bool ReadBool();
  12286. BoundingBox ReadBoundingBox();
  12287. int8 ReadByte();
  12288. Color ReadColor();
  12289. double ReadDouble();
  12290. String ReadFileID();
  12291. float ReadFloat();
  12292. int ReadInt();
  12293. IntRect ReadIntRect();
  12294. IntVector2 ReadIntVector2();
  12295. String ReadLine();
  12296. Matrix3 ReadMatrix3();
  12297. Matrix3x4 ReadMatrix3x4();
  12298. Matrix4 ReadMatrix4();
  12299. uint ReadNetID();
  12300. Quaternion ReadPackedQuaternion();
  12301. Vector3 ReadPackedVector3(float);
  12302. Quaternion ReadQuaternion();
  12303. int16 ReadShort();
  12304. String ReadString();
  12305. StringHash ReadStringHash();
  12306. uint8 ReadUByte();
  12307. uint ReadUInt();
  12308. uint16 ReadUShort();
  12309. uint ReadVLE();
  12310. Variant ReadVariant();
  12311. VariantMap ReadVariantMap();
  12312. Vector2 ReadVector2();
  12313. Vector3 ReadVector3();
  12314. Vector4 ReadVector4();
  12315. VectorBuffer ReadVectorBuffer(uint);
  12316. void Resize(uint);
  12317. uint Seek(uint);
  12318. void SetData(Deserializer, uint);
  12319. uint Write(Array<uint8>);
  12320. bool WriteBool(bool);
  12321. bool WriteBoundingBox(const BoundingBox&);
  12322. bool WriteByte(int8);
  12323. bool WriteColor(const Color&);
  12324. bool WriteDouble(double);
  12325. bool WriteFileID(const String&);
  12326. bool WriteFloat(float);
  12327. bool WriteInt(int);
  12328. bool WriteIntRect(const IntRect&);
  12329. bool WriteIntVector2(const IntVector2&);
  12330. bool WriteLine(const String&);
  12331. bool WriteMatrix3(const Matrix3&);
  12332. bool WriteMatrix3x4(const Matrix3x4&);
  12333. bool WriteMatrix4(const Matrix4&);
  12334. bool WriteNetID(uint);
  12335. bool WritePackedQuaternion(const Quaternion&);
  12336. bool WritePackedVector3(const Vector3&, float);
  12337. bool WriteQuaternion(const Quaternion&);
  12338. bool WriteShort(int16);
  12339. bool WriteString(const String&);
  12340. bool WriteStringHash(const StringHash&);
  12341. bool WriteUByte(uint8);
  12342. bool WriteUInt(uint);
  12343. bool WriteUShort(uint16);
  12344. bool WriteVLE(uint);
  12345. bool WriteVariant(const Variant&);
  12346. bool WriteVariantMap(const VariantMap&);
  12347. bool WriteVector2(const Vector2&);
  12348. bool WriteVector3(const Vector3&);
  12349. bool WriteVector4(const Vector4&);
  12350. bool WriteVectorBuffer(const VectorBuffer&);
  12351. // Properties:
  12352. /* readonly */
  12353. uint checksum;
  12354. /* readonly */
  12355. bool eof;
  12356. /* readonly */
  12357. String name;
  12358. /* readonly */
  12359. uint position;
  12360. /* readonly */
  12361. uint size;
  12362. };
  12363. class VertexBuffer
  12364. {
  12365. // Methods:
  12366. VectorBuffer GetData();
  12367. bool HasSubscribedToEvent(Object, const String&);
  12368. bool HasSubscribedToEvent(const String&);
  12369. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12370. bool SetData(VectorBuffer&);
  12371. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12372. void SetSize(uint, uint, bool = false);
  12373. // Properties:
  12374. /* readonly */
  12375. String category;
  12376. /* readonly */
  12377. bool dynamic;
  12378. /* readonly */
  12379. uint elementMask;
  12380. /* readonly */
  12381. int refs;
  12382. bool shadowed;
  12383. /* readonly */
  12384. StringHash type;
  12385. /* readonly */
  12386. String typeName;
  12387. /* readonly */
  12388. uint vertexCount;
  12389. /* readonly */
  12390. uint vertexSize;
  12391. /* readonly */
  12392. int weakRefs;
  12393. };
  12394. class View3D
  12395. {
  12396. // Methods:
  12397. void AddChild(UIElement);
  12398. void AddTag(const String&);
  12399. void AddTags(const String&, int8 = ';');
  12400. void ApplyAttributes();
  12401. void BringToFront();
  12402. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12403. void DisableLayoutUpdate();
  12404. IntVector2 ElementToScreen(const IntVector2&);
  12405. void EnableLayoutUpdate();
  12406. uint FindChild(UIElement) const;
  12407. Variant GetAttribute(const String&) const;
  12408. ValueAnimation GetAttributeAnimation(const String&) const;
  12409. float GetAttributeAnimationSpeed(const String&) const;
  12410. float GetAttributeAnimationTime(const String&) const;
  12411. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12412. Variant GetAttributeDefault(const String&) const;
  12413. UIElement GetChild(const String&, bool = false) const;
  12414. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12415. Array<UIElement> GetChildren(bool = false) const;
  12416. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12417. UIElement GetElementEventSender() const;
  12418. bool GetInterceptNetworkUpdate(const String&) const;
  12419. uint GetNumChildren(bool) const;
  12420. bool HasSubscribedToEvent(Object, const String&);
  12421. bool HasSubscribedToEvent(const String&);
  12422. bool HasTag(const String&) const;
  12423. void InsertChild(uint, UIElement);
  12424. bool IsInside(IntVector2, bool);
  12425. bool IsInsideCombined(IntVector2, bool);
  12426. bool Load(File, bool = false);
  12427. bool Load(VectorBuffer&, bool = false);
  12428. bool LoadChildXML(XMLFile, XMLFile = null);
  12429. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12430. bool LoadJSON(const JSONValue&, bool = false);
  12431. bool LoadXML(File);
  12432. bool LoadXML(VectorBuffer&);
  12433. bool LoadXML(XMLFile, XMLFile);
  12434. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12435. bool LoadXML(const XMLElement&, bool = false);
  12436. void MarkNetworkUpdate() const;
  12437. void QueueUpdate();
  12438. void Remove();
  12439. void RemoveAllChildren();
  12440. void RemoveAllTags();
  12441. void RemoveAttributeAnimation(const String&);
  12442. void RemoveChild(UIElement, uint = 0);
  12443. void RemoveChild(uint);
  12444. void RemoveInstanceDefault();
  12445. void RemoveObjectAnimation();
  12446. bool RemoveTag(const String&);
  12447. void ResetDeepEnabled();
  12448. void ResetToDefault();
  12449. bool Save(File) const;
  12450. bool Save(VectorBuffer&) const;
  12451. bool SaveJSON(JSONValue&) const;
  12452. bool SaveXML(File, const String& = "\t");
  12453. bool SaveXML(VectorBuffer&, const String& = "\t");
  12454. bool SaveXML(XMLElement&) const;
  12455. IntVector2 ScreenToElement(const IntVector2&);
  12456. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12457. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12458. void SetAnimationTime(float);
  12459. bool SetAttribute(const String&, const Variant&);
  12460. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12461. void SetAttributeAnimationSpeed(const String&, float);
  12462. void SetAttributeAnimationTime(const String&, float);
  12463. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12464. void SetDeepEnabled(bool);
  12465. void SetEnabledRecursive(bool);
  12466. void SetFixedHeight(int);
  12467. void SetFixedSize(int, int);
  12468. void SetFixedWidth(int);
  12469. void SetFullImageRect();
  12470. void SetHoverOffset(int, int);
  12471. void SetInterceptNetworkUpdate(const String&, bool);
  12472. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12473. void SetMaxSize(int, int);
  12474. void SetMinSize(int, int);
  12475. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12476. void SetPosition(int, int);
  12477. void SetSize(int, int);
  12478. bool SetStyle(const String&, XMLFile = null);
  12479. bool SetStyle(const XMLElement&);
  12480. bool SetStyleAuto(XMLFile = null);
  12481. void SetView(Scene, Camera, bool = true);
  12482. void UpdateLayout();
  12483. const Variant& GetVar(const StringHash&);
  12484. // Properties:
  12485. bool animationEnabled;
  12486. /* readonly */
  12487. Array<Variant> attributeDefaults;
  12488. /* readonly */
  12489. Array<AttributeInfo> attributeInfos;
  12490. Array<Variant> attributes;
  12491. bool autoUpdate;
  12492. BlendMode blendMode;
  12493. IntRect border;
  12494. bool bringToBack;
  12495. bool bringToFront;
  12496. /* readonly */
  12497. Node cameraNode;
  12498. /* readonly */
  12499. String category;
  12500. /* readonly */
  12501. IntVector2 childOffset;
  12502. /* readonly */
  12503. Array<UIElement> children;
  12504. IntRect clipBorder;
  12505. bool clipChildren;
  12506. /* writeonly */
  12507. Color color;
  12508. /* readonly */
  12509. bool colorGradient;
  12510. Array<Color> colors;
  12511. /* readonly */
  12512. IntRect combinedScreenRect;
  12513. XMLFile defaultStyle;
  12514. /* readonly */
  12515. Texture2D depthTexture;
  12516. /* readonly */
  12517. float derivedOpacity;
  12518. /* readonly */
  12519. uint dragButtonCombo;
  12520. /* readonly */
  12521. int dragButtonCount;
  12522. uint dragDropMode;
  12523. bool editable;
  12524. bool elementEventSender;
  12525. bool enabled;
  12526. /* readonly */
  12527. bool enabledSelf;
  12528. /* readonly */
  12529. bool fixedHeight;
  12530. bool fixedHeightResizing;
  12531. /* readonly */
  12532. bool fixedSize;
  12533. /* readonly */
  12534. bool fixedWidth;
  12535. bool fixedWidthResizing;
  12536. bool focus;
  12537. FocusMode focusMode;
  12538. uint format;
  12539. int height;
  12540. HorizontalAlignment horizontalAlignment;
  12541. IntVector2 hoverOffset;
  12542. /* readonly */
  12543. bool hovering;
  12544. IntRect imageBorder;
  12545. IntRect imageRect;
  12546. int indent;
  12547. int indentSpacing;
  12548. /* readonly */
  12549. int indentWidth;
  12550. bool internal;
  12551. IntRect layoutBorder;
  12552. Vector2 layoutFlexScale;
  12553. LayoutMode layoutMode;
  12554. int layoutSpacing;
  12555. int maxHeight;
  12556. IntVector2 maxSize;
  12557. int maxWidth;
  12558. int minHeight;
  12559. IntVector2 minSize;
  12560. int minWidth;
  12561. bool modal;
  12562. bool modalAutoDismiss;
  12563. Color modalFrameColor;
  12564. IntVector2 modalFrameSize;
  12565. Color modalShadeColor;
  12566. bool movable;
  12567. String name;
  12568. /* readonly */
  12569. uint numAllChildren;
  12570. /* readonly */
  12571. uint numAttributes;
  12572. /* readonly */
  12573. uint numChildren;
  12574. ObjectAnimation objectAnimation;
  12575. float opacity;
  12576. UIElement parent;
  12577. IntVector2 position;
  12578. int priority;
  12579. /* readonly */
  12580. int refs;
  12581. /* readonly */
  12582. Texture2D renderTexture;
  12583. bool resizable;
  12584. IntRect resizeBorder;
  12585. /* readonly */
  12586. UIElement root;
  12587. /* readonly */
  12588. Scene scene;
  12589. /* readonly */
  12590. IntVector2 screenPosition;
  12591. bool selected;
  12592. IntVector2 size;
  12593. bool sortChildren;
  12594. String style;
  12595. /* readonly */
  12596. Array<String> tags;
  12597. bool temporary;
  12598. Texture texture;
  12599. bool tiled;
  12600. TraversalMode traversalMode;
  12601. /* readonly */
  12602. StringHash type;
  12603. /* readonly */
  12604. String typeName;
  12605. bool useDerivedOpacity;
  12606. /* readonly */
  12607. VariantMap vars;
  12608. VerticalAlignment verticalAlignment;
  12609. /* readonly */
  12610. Viewport viewport;
  12611. bool visible;
  12612. /* readonly */
  12613. bool visibleEffective;
  12614. /* readonly */
  12615. int weakRefs;
  12616. int width;
  12617. };
  12618. class Viewport
  12619. {
  12620. // Methods:
  12621. Ray GetScreenRay(int, int) const;
  12622. bool HasSubscribedToEvent(Object, const String&);
  12623. bool HasSubscribedToEvent(const String&);
  12624. Vector3 ScreenToWorldPoint(int, int, float) const;
  12625. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12626. void SetRenderPath(XMLFile);
  12627. Vector2 WorldToScreenPoint(const Vector3&) const;
  12628. // Properties:
  12629. Camera camera;
  12630. /* readonly */
  12631. String category;
  12632. Camera cullCamera;
  12633. bool drawDebug;
  12634. IntRect rect;
  12635. /* readonly */
  12636. int refs;
  12637. RenderPath renderPath;
  12638. Scene scene;
  12639. /* readonly */
  12640. StringHash type;
  12641. /* readonly */
  12642. String typeName;
  12643. /* readonly */
  12644. int weakRefs;
  12645. };
  12646. class WeakHandle
  12647. {
  12648. // Methods:
  12649. RefCounted Get() const;
  12650. // Properties:
  12651. /* readonly */
  12652. bool expired;
  12653. /* readonly */
  12654. int refs;
  12655. /* readonly */
  12656. int weakRefs;
  12657. };
  12658. class Window
  12659. {
  12660. // Methods:
  12661. void AddChild(UIElement);
  12662. void AddTag(const String&);
  12663. void AddTags(const String&, int8 = ';');
  12664. void ApplyAttributes();
  12665. void BringToFront();
  12666. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12667. void DisableLayoutUpdate();
  12668. IntVector2 ElementToScreen(const IntVector2&);
  12669. void EnableLayoutUpdate();
  12670. uint FindChild(UIElement) const;
  12671. Variant GetAttribute(const String&) const;
  12672. ValueAnimation GetAttributeAnimation(const String&) const;
  12673. float GetAttributeAnimationSpeed(const String&) const;
  12674. float GetAttributeAnimationTime(const String&) const;
  12675. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12676. Variant GetAttributeDefault(const String&) const;
  12677. UIElement GetChild(const String&, bool = false) const;
  12678. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12679. Array<UIElement> GetChildren(bool = false) const;
  12680. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12681. UIElement GetElementEventSender() const;
  12682. bool GetInterceptNetworkUpdate(const String&) const;
  12683. uint GetNumChildren(bool) const;
  12684. bool HasSubscribedToEvent(Object, const String&);
  12685. bool HasSubscribedToEvent(const String&);
  12686. bool HasTag(const String&) const;
  12687. void InsertChild(uint, UIElement);
  12688. bool IsInside(IntVector2, bool);
  12689. bool IsInsideCombined(IntVector2, bool);
  12690. bool Load(File, bool = false);
  12691. bool Load(VectorBuffer&, bool = false);
  12692. bool LoadChildXML(XMLFile, XMLFile = null);
  12693. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12694. bool LoadJSON(const JSONValue&, bool = false);
  12695. bool LoadXML(File);
  12696. bool LoadXML(VectorBuffer&);
  12697. bool LoadXML(XMLFile, XMLFile);
  12698. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12699. bool LoadXML(const XMLElement&, bool = false);
  12700. void MarkNetworkUpdate() const;
  12701. void Remove();
  12702. void RemoveAllChildren();
  12703. void RemoveAllTags();
  12704. void RemoveAttributeAnimation(const String&);
  12705. void RemoveChild(UIElement, uint = 0);
  12706. void RemoveChild(uint);
  12707. void RemoveInstanceDefault();
  12708. void RemoveObjectAnimation();
  12709. bool RemoveTag(const String&);
  12710. void ResetDeepEnabled();
  12711. void ResetToDefault();
  12712. bool Save(File) const;
  12713. bool Save(VectorBuffer&) const;
  12714. bool SaveJSON(JSONValue&) const;
  12715. bool SaveXML(File, const String& = "\t");
  12716. bool SaveXML(VectorBuffer&, const String& = "\t");
  12717. bool SaveXML(XMLElement&) const;
  12718. IntVector2 ScreenToElement(const IntVector2&);
  12719. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12720. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12721. void SetAnimationTime(float);
  12722. bool SetAttribute(const String&, const Variant&);
  12723. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12724. void SetAttributeAnimationSpeed(const String&, float);
  12725. void SetAttributeAnimationTime(const String&, float);
  12726. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12727. void SetDeepEnabled(bool);
  12728. void SetEnabledRecursive(bool);
  12729. void SetFixedHeight(int);
  12730. void SetFixedSize(int, int);
  12731. void SetFixedWidth(int);
  12732. void SetFullImageRect();
  12733. void SetHoverOffset(int, int);
  12734. void SetInterceptNetworkUpdate(const String&, bool);
  12735. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12736. void SetMaxSize(int, int);
  12737. void SetMinSize(int, int);
  12738. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12739. void SetPosition(int, int);
  12740. void SetSize(int, int);
  12741. bool SetStyle(const String&, XMLFile = null);
  12742. bool SetStyle(const XMLElement&);
  12743. bool SetStyleAuto(XMLFile = null);
  12744. void UpdateLayout();
  12745. const Variant& GetVar(const StringHash&);
  12746. // Properties:
  12747. bool animationEnabled;
  12748. /* readonly */
  12749. Array<Variant> attributeDefaults;
  12750. /* readonly */
  12751. Array<AttributeInfo> attributeInfos;
  12752. Array<Variant> attributes;
  12753. BlendMode blendMode;
  12754. IntRect border;
  12755. bool bringToBack;
  12756. bool bringToFront;
  12757. /* readonly */
  12758. String category;
  12759. /* readonly */
  12760. IntVector2 childOffset;
  12761. /* readonly */
  12762. Array<UIElement> children;
  12763. IntRect clipBorder;
  12764. bool clipChildren;
  12765. /* writeonly */
  12766. Color color;
  12767. /* readonly */
  12768. bool colorGradient;
  12769. Array<Color> colors;
  12770. /* readonly */
  12771. IntRect combinedScreenRect;
  12772. XMLFile defaultStyle;
  12773. /* readonly */
  12774. float derivedOpacity;
  12775. /* readonly */
  12776. uint dragButtonCombo;
  12777. /* readonly */
  12778. int dragButtonCount;
  12779. uint dragDropMode;
  12780. bool editable;
  12781. bool elementEventSender;
  12782. bool enabled;
  12783. /* readonly */
  12784. bool enabledSelf;
  12785. /* readonly */
  12786. bool fixedHeight;
  12787. bool fixedHeightResizing;
  12788. /* readonly */
  12789. bool fixedSize;
  12790. /* readonly */
  12791. bool fixedWidth;
  12792. bool fixedWidthResizing;
  12793. bool focus;
  12794. FocusMode focusMode;
  12795. int height;
  12796. HorizontalAlignment horizontalAlignment;
  12797. IntVector2 hoverOffset;
  12798. /* readonly */
  12799. bool hovering;
  12800. IntRect imageBorder;
  12801. IntRect imageRect;
  12802. int indent;
  12803. int indentSpacing;
  12804. /* readonly */
  12805. int indentWidth;
  12806. bool internal;
  12807. IntRect layoutBorder;
  12808. Vector2 layoutFlexScale;
  12809. LayoutMode layoutMode;
  12810. int layoutSpacing;
  12811. int maxHeight;
  12812. IntVector2 maxSize;
  12813. int maxWidth;
  12814. int minHeight;
  12815. IntVector2 minSize;
  12816. int minWidth;
  12817. bool modal;
  12818. bool modalAutoDismiss;
  12819. Color modalFrameColor;
  12820. IntVector2 modalFrameSize;
  12821. Color modalShadeColor;
  12822. bool movable;
  12823. String name;
  12824. /* readonly */
  12825. uint numAllChildren;
  12826. /* readonly */
  12827. uint numAttributes;
  12828. /* readonly */
  12829. uint numChildren;
  12830. ObjectAnimation objectAnimation;
  12831. float opacity;
  12832. UIElement parent;
  12833. IntVector2 position;
  12834. int priority;
  12835. /* readonly */
  12836. int refs;
  12837. bool resizable;
  12838. IntRect resizeBorder;
  12839. /* readonly */
  12840. UIElement root;
  12841. /* readonly */
  12842. IntVector2 screenPosition;
  12843. bool selected;
  12844. IntVector2 size;
  12845. bool sortChildren;
  12846. String style;
  12847. /* readonly */
  12848. Array<String> tags;
  12849. bool temporary;
  12850. Texture texture;
  12851. bool tiled;
  12852. TraversalMode traversalMode;
  12853. /* readonly */
  12854. StringHash type;
  12855. /* readonly */
  12856. String typeName;
  12857. bool useDerivedOpacity;
  12858. /* readonly */
  12859. VariantMap vars;
  12860. VerticalAlignment verticalAlignment;
  12861. bool visible;
  12862. /* readonly */
  12863. bool visibleEffective;
  12864. /* readonly */
  12865. int weakRefs;
  12866. int width;
  12867. };
  12868. class XMLElement
  12869. {
  12870. // Methods:
  12871. XMLElement CreateChild(const String&);
  12872. String GetAttribute(const String& = String ( )) const;
  12873. String GetAttributeLower(const String&) const;
  12874. Array<String> GetAttributeNames() const;
  12875. String GetAttributeUpper(const String&) const;
  12876. bool GetBool(const String&) const;
  12877. BoundingBox GetBoundingBox() const;
  12878. XMLElement GetChild(const String& = String ( )) const;
  12879. Color GetColor(const String&) const;
  12880. double GetDouble(const String&) const;
  12881. float GetFloat(const String&) const;
  12882. int GetInt(const String&) const;
  12883. IntRect GetIntRect(const String&) const;
  12884. IntVector2 GetIntVector2(const String&) const;
  12885. Matrix3 GetMatrix3(const String&) const;
  12886. Matrix3x4 GetMatrix3x4(const String&) const;
  12887. Matrix4 GetMatrix4(const String&) const;
  12888. XMLElement GetNext(const String& = String ( )) const;
  12889. Quaternion GetQuaternion(const String&) const;
  12890. ResourceRef GetResourceRef() const;
  12891. ResourceRefList GetResourceRefList() const;
  12892. uint GetUInt(const String&) const;
  12893. String GetValue() const;
  12894. Variant GetVariant() const;
  12895. VariantMap GetVariantMap() const;
  12896. Array<Variant> GetVariantVector() const;
  12897. Vector2 GetVector2(const String&) const;
  12898. Vector3 GetVector3(const String&) const;
  12899. Vector4 GetVector4(const String&) const;
  12900. Variant GetVectorVariant(const String&) const;
  12901. bool HasAttribute(const String&) const;
  12902. bool HasChild(const String&) const;
  12903. bool RemoveAttribute(const String& = String ( ));
  12904. bool RemoveChild(const String&);
  12905. bool RemoveChild(const XMLElement&);
  12906. bool RemoveChildren(const String& = String ( ));
  12907. XPathResultSet Select(const String&);
  12908. XPathResultSet SelectPrepared(const XPathQuery&);
  12909. XMLElement SelectSingle(const String&);
  12910. XMLElement SelectSinglePrepared(const XPathQuery&);
  12911. bool SetAttribute(const String&);
  12912. bool SetAttribute(const String&, const String&);
  12913. bool SetBool(const String&, bool);
  12914. bool SetBoundingBox(const BoundingBox&);
  12915. bool SetColor(const String&, const Color&);
  12916. bool SetDouble(const String&, double);
  12917. bool SetFloat(const String&, float);
  12918. bool SetInt(const String&, int);
  12919. bool SetIntRect(const String&, const IntRect&);
  12920. bool SetIntVector2(const String&, const IntVector2&);
  12921. bool SetMatrix3(const String&, const Matrix3&);
  12922. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12923. bool SetMatrix4(const String&, const Matrix4&);
  12924. bool SetQuaternion(const String&, const Quaternion&);
  12925. bool SetResourceRef(const String&, const ResourceRef&);
  12926. bool SetResourceRefList(const String&, const ResourceRefList&);
  12927. bool SetUInt(const String&, uint);
  12928. bool SetValue(const String&);
  12929. bool SetVariant(const Variant&);
  12930. bool SetVariantMap(const VariantMap&);
  12931. bool SetVariantVector(Array<Variant>);
  12932. bool SetVector2(const String&, const Vector2&);
  12933. bool SetVector3(const String&, const Vector3&);
  12934. bool SetVector4(const String&, const Vector4&);
  12935. bool SetVectorVariant(const String&, const Variant&);
  12936. // Properties:
  12937. /* readonly */
  12938. XMLFile file;
  12939. /* readonly */
  12940. bool isNull;
  12941. /* readonly */
  12942. String name;
  12943. /* readonly */
  12944. XMLElement nextResult;
  12945. /* readonly */
  12946. bool notNull;
  12947. /* readonly */
  12948. uint numAttributes;
  12949. /* readonly */
  12950. XMLElement parent;
  12951. String value;
  12952. };
  12953. class XMLFile
  12954. {
  12955. // Methods:
  12956. XMLElement CreateRoot(const String&);
  12957. bool FromString(const String&);
  12958. XMLElement GetRoot(const String& = String ( ));
  12959. bool HasSubscribedToEvent(Object, const String&);
  12960. bool HasSubscribedToEvent(const String&);
  12961. bool Load(File);
  12962. bool Load(VectorBuffer&);
  12963. void Patch(XMLElement);
  12964. void Patch(XMLFile);
  12965. bool Save(File) const;
  12966. bool Save(File, const String&) const;
  12967. bool Save(VectorBuffer&) const;
  12968. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12969. String ToString(const String& = String ( "\t" )) const;
  12970. // Properties:
  12971. /* readonly */
  12972. String category;
  12973. /* readonly */
  12974. uint memoryUse;
  12975. String name;
  12976. /* readonly */
  12977. int refs;
  12978. /* readonly */
  12979. XMLElement root;
  12980. /* readonly */
  12981. StringHash type;
  12982. /* readonly */
  12983. String typeName;
  12984. /* readonly */
  12985. uint useTimer;
  12986. /* readonly */
  12987. int weakRefs;
  12988. };
  12989. class XPathQuery
  12990. {
  12991. // Methods:
  12992. void Bind();
  12993. void Clear();
  12994. XPathResultSet Evaluate(XMLElement);
  12995. bool EvaluateToBool(XMLElement);
  12996. float EvaluateToFloat(XMLElement);
  12997. String EvaluateToString(XMLElement);
  12998. bool SetQuery(const String&, const String& = String ( ), bool = true);
  12999. bool SetVariable(const String&, bool);
  13000. bool SetVariable(const String&, const String&);
  13001. bool SetVariable(const String&, const XPathResultSet&);
  13002. bool SetVariable(const String&, float);
  13003. // Properties:
  13004. String query;
  13005. };
  13006. class XPathResultSet
  13007. {
  13008. // Properties:
  13009. /* readonly */
  13010. bool empty;
  13011. /* readonly */
  13012. XMLElement firstResult;
  13013. /* readonly */
  13014. uint size;
  13015. };
  13016. class Zone
  13017. {
  13018. // Methods:
  13019. void ApplyAttributes();
  13020. void DrawDebugGeometry(DebugRenderer, bool);
  13021. Variant GetAttribute(const String&) const;
  13022. ValueAnimation GetAttributeAnimation(const String&) const;
  13023. float GetAttributeAnimationSpeed(const String&) const;
  13024. float GetAttributeAnimationTime(const String&) const;
  13025. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13026. Variant GetAttributeDefault(const String&) const;
  13027. bool GetInterceptNetworkUpdate(const String&) const;
  13028. bool HasSubscribedToEvent(Object, const String&);
  13029. bool HasSubscribedToEvent(const String&);
  13030. bool IsInView(Camera) const;
  13031. bool Load(File, bool = false);
  13032. bool Load(VectorBuffer&, bool = false);
  13033. bool LoadJSON(const JSONValue&, bool = false);
  13034. bool LoadXML(const XMLElement&, bool = false);
  13035. void MarkNetworkUpdate() const;
  13036. void Remove();
  13037. void RemoveAttributeAnimation(const String&);
  13038. void RemoveInstanceDefault();
  13039. void RemoveObjectAnimation();
  13040. void ResetToDefault();
  13041. bool Save(File) const;
  13042. bool Save(VectorBuffer&) const;
  13043. bool SaveJSON(JSONValue&) const;
  13044. bool SaveXML(XMLElement&) const;
  13045. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13046. void SetAnimationTime(float);
  13047. bool SetAttribute(const String&, const Variant&);
  13048. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13049. void SetAttributeAnimationSpeed(const String&, float);
  13050. void SetAttributeAnimationTime(const String&, float);
  13051. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13052. void SetInterceptNetworkUpdate(const String&, bool);
  13053. // Properties:
  13054. Color ambientColor;
  13055. /* readonly */
  13056. Color ambientEndColor;
  13057. bool ambientGradient;
  13058. /* readonly */
  13059. Color ambientStartColor;
  13060. bool animationEnabled;
  13061. /* readonly */
  13062. Array<Variant> attributeDefaults;
  13063. /* readonly */
  13064. Array<AttributeInfo> attributeInfos;
  13065. Array<Variant> attributes;
  13066. BoundingBox boundingBox;
  13067. bool castShadows;
  13068. /* readonly */
  13069. String category;
  13070. float drawDistance;
  13071. bool enabled;
  13072. /* readonly */
  13073. bool enabledEffective;
  13074. Color fogColor;
  13075. float fogEnd;
  13076. float fogHeight;
  13077. float fogHeightScale;
  13078. float fogStart;
  13079. bool heightFog;
  13080. /* readonly */
  13081. uint id;
  13082. /* readonly */
  13083. bool inView;
  13084. /* readonly */
  13085. Matrix3x4 inverseWorldTransform;
  13086. uint lightMask;
  13087. float lodBias;
  13088. uint maxLights;
  13089. /* readonly */
  13090. Node node;
  13091. /* readonly */
  13092. uint numAttributes;
  13093. ObjectAnimation objectAnimation;
  13094. bool occludee;
  13095. bool occluder;
  13096. bool override;
  13097. int priority;
  13098. /* readonly */
  13099. int refs;
  13100. float shadowDistance;
  13101. uint shadowMask;
  13102. bool temporary;
  13103. /* readonly */
  13104. StringHash type;
  13105. /* readonly */
  13106. String typeName;
  13107. uint viewMask;
  13108. /* readonly */
  13109. int weakRefs;
  13110. /* readonly */
  13111. BoundingBox worldBoundingBox;
  13112. uint zoneMask;
  13113. Texture zoneTexture;
  13114. };
  13115. // Enumerations
  13116. enum BlendMode
  13117. {
  13118. BLEND_REPLACE,
  13119. BLEND_ADD,
  13120. BLEND_MULTIPLY,
  13121. BLEND_ALPHA,
  13122. BLEND_ADDALPHA,
  13123. BLEND_PREMULALPHA,
  13124. BLEND_INVDESTALPHA,
  13125. BLEND_SUBTRACT,
  13126. BLEND_SUBTRACTALPHA,
  13127. };
  13128. enum BodyType2D
  13129. {
  13130. BT_STATIC,
  13131. BT_KINEMATIC,
  13132. BT_DYNAMIC,
  13133. };
  13134. enum CollisionEventMode
  13135. {
  13136. COLLISION_NEVER,
  13137. COLLISION_ACTIVE,
  13138. COLLISION_ALWAYS,
  13139. };
  13140. enum CompareMode
  13141. {
  13142. CMP_ALWAYS,
  13143. CMP_EQUAL,
  13144. CMP_NOTEQUAL,
  13145. CMP_LESS,
  13146. CMP_LESSEQUAL,
  13147. CMP_GREATER,
  13148. CMP_GREATEREQUAL,
  13149. };
  13150. enum CompressedFormat
  13151. {
  13152. CF_NONE,
  13153. CF_RGBA,
  13154. CF_DXT1,
  13155. CF_DXT3,
  13156. CF_DXT5,
  13157. CF_ETC1,
  13158. CF_PVRTC_RGB_2BPP,
  13159. CF_PVRTC_RGBA_2BPP,
  13160. CF_PVRTC_RGB_4BPP,
  13161. CF_PVRTC_RGBA_4BPP,
  13162. };
  13163. enum ConstraintType
  13164. {
  13165. CONSTRAINT_POINT,
  13166. CONSTRAINT_HINGE,
  13167. CONSTRAINT_SLIDER,
  13168. CONSTRAINT_CONETWIST,
  13169. };
  13170. enum Corner
  13171. {
  13172. C_TOPLEFT,
  13173. C_TOPRIGHT,
  13174. C_BOTTOMLEFT,
  13175. C_BOTTOMRIGHT,
  13176. };
  13177. enum CreateMode
  13178. {
  13179. REPLICATED,
  13180. LOCAL,
  13181. };
  13182. enum CrowdAgentRequestedTarget
  13183. {
  13184. CA_REQUESTEDTARGET_NONE,
  13185. CA_REQUESTEDTARGET_POSITION,
  13186. CA_REQUESTEDTARGET_VELOCITY,
  13187. };
  13188. enum CrowdAgentState
  13189. {
  13190. CA_STATE_INVALID,
  13191. CA_STATE_WALKING,
  13192. CA_STATE_OFFMESH,
  13193. };
  13194. enum CrowdAgentTargetState
  13195. {
  13196. CA_TARGET_NONE,
  13197. CA_TARGET_FAILED,
  13198. CA_TARGET_VALID,
  13199. CA_TARGET_REQUESTING,
  13200. CA_TARGET_WAITINGFORQUEUE,
  13201. CA_TARGET_WAITINGFORPATH,
  13202. CA_TARGET_VELOCITY,
  13203. };
  13204. enum CubeMapFace
  13205. {
  13206. FACE_POSITIVE_X,
  13207. FACE_NEGATIVE_X,
  13208. FACE_POSITIVE_Y,
  13209. FACE_NEGATIVE_Y,
  13210. FACE_POSITIVE_Z,
  13211. FACE_NEGATIVE_Z,
  13212. };
  13213. enum CullMode
  13214. {
  13215. CULL_NONE,
  13216. CULL_CCW,
  13217. CULL_CW,
  13218. };
  13219. enum CursorShape
  13220. {
  13221. CS_NORMAL,
  13222. CS_IBEAM,
  13223. CS_CROSS,
  13224. CS_RESIZEVERTICAL,
  13225. CS_RESIZEDIAGONAL_TOPRIGHT,
  13226. CS_RESIZEHORIZONTAL,
  13227. CS_RESIZEDIAGONAL_TOPLEFT,
  13228. CS_RESIZE_ALL,
  13229. CS_ACCEPTDROP,
  13230. CS_REJECTDROP,
  13231. CS_BUSY,
  13232. CS_BUSY_ARROW,
  13233. };
  13234. enum DBAPI
  13235. {
  13236. DBAPI_SQLITE,
  13237. DBAPI_ODBC,
  13238. };
  13239. enum DumpMode
  13240. {
  13241. DOXYGEN,
  13242. C_HEADER,
  13243. };
  13244. enum EmitterType
  13245. {
  13246. EMITTER_SPHERE,
  13247. EMITTER_BOX,
  13248. };
  13249. enum EmitterType2D
  13250. {
  13251. EMITTER_TYPE_GRAVITY,
  13252. EMITTER_TYPE_RADIAL,
  13253. };
  13254. enum FaceCameraMode
  13255. {
  13256. FC_NONE,
  13257. FC_ROTATE_XYZ,
  13258. FC_ROTATE_Y,
  13259. FC_LOOKAT_XYZ,
  13260. FC_LOOKAT_Y,
  13261. FC_DIRECTION,
  13262. };
  13263. enum FileMode
  13264. {
  13265. FILE_READ,
  13266. FILE_WRITE,
  13267. FILE_READWRITE,
  13268. };
  13269. enum FillMode
  13270. {
  13271. FILL_SOLID,
  13272. FILL_WIREFRAME,
  13273. FILL_POINT,
  13274. };
  13275. enum FocusMode
  13276. {
  13277. FM_NOTFOCUSABLE,
  13278. FM_RESETFOCUS,
  13279. FM_FOCUSABLE,
  13280. FM_FOCUSABLE_DEFOCUSABLE,
  13281. };
  13282. enum HighlightMode
  13283. {
  13284. HM_NEVER,
  13285. HM_FOCUS,
  13286. HM_ALWAYS,
  13287. };
  13288. enum HorizontalAlignment
  13289. {
  13290. HA_LEFT,
  13291. HA_CENTER,
  13292. HA_RIGHT,
  13293. };
  13294. enum HttpRequestState
  13295. {
  13296. HTTP_INITIALIZING,
  13297. HTTP_ERROR,
  13298. HTTP_OPEN,
  13299. HTTP_CLOSED,
  13300. };
  13301. enum InterpMethod
  13302. {
  13303. IM_LINEAR,
  13304. IM_SPLINE,
  13305. };
  13306. enum InterpolationMode
  13307. {
  13308. BEZIER_CURVE,
  13309. CATMULL_ROM_CURVE,
  13310. LINEAR_CURVE,
  13311. CATMULL_ROM_FULL_CURVE,
  13312. };
  13313. enum Intersection
  13314. {
  13315. OUTSIDE,
  13316. INTERSECTS,
  13317. INSIDE,
  13318. };
  13319. enum JSONValueType
  13320. {
  13321. JSON_NULL,
  13322. JSON_BOOL,
  13323. JSON_NUMBER,
  13324. JSON_STRING,
  13325. JSON_ARRAY,
  13326. JSON_OBJECT,
  13327. };
  13328. enum LayoutMode
  13329. {
  13330. LM_FREE,
  13331. LM_HORIZONTAL,
  13332. LM_VERTICAL,
  13333. };
  13334. enum LightType
  13335. {
  13336. LIGHT_DIRECTIONAL,
  13337. LIGHT_SPOT,
  13338. LIGHT_POINT,
  13339. };
  13340. enum LoadMode
  13341. {
  13342. LOAD_RESOURCES_ONLY,
  13343. LOAD_SCENE,
  13344. LOAD_SCENE_AND_RESOURCES,
  13345. };
  13346. enum LoopMode2D
  13347. {
  13348. LM_DEFAULT,
  13349. LM_FORCE_LOOPED,
  13350. LM_FORCE_CLAMPED,
  13351. };
  13352. enum MouseMode
  13353. {
  13354. MM_ABSOLUTE,
  13355. MM_RELATIVE,
  13356. MM_WRAP,
  13357. MM_FREE,
  13358. };
  13359. enum NavigationPushiness
  13360. {
  13361. NAVIGATIONPUSHINESS_LOW,
  13362. NAVIGATIONPUSHINESS_MEDIUM,
  13363. NAVIGATIONPUSHINESS_HIGH,
  13364. };
  13365. enum NavigationQuality
  13366. {
  13367. NAVIGATIONQUALITY_LOW,
  13368. NAVIGATIONQUALITY_MEDIUM,
  13369. NAVIGATIONQUALITY_HIGH,
  13370. };
  13371. enum NavmeshPartitionType
  13372. {
  13373. NAVMESH_PARTITION_WATERSHED,
  13374. NAVMESH_PARTITION_MONOTONE,
  13375. };
  13376. enum Orientation
  13377. {
  13378. O_HORIZONTAL,
  13379. O_VERTICAL,
  13380. };
  13381. enum Orientation2D
  13382. {
  13383. O_ORTHOGONAL,
  13384. O_ISOMETRIC,
  13385. O_STAGGERED,
  13386. };
  13387. enum PassLightingMode
  13388. {
  13389. LIGHTING_UNLIT,
  13390. LIGHTING_PERVERTEX,
  13391. LIGHTING_PERPIXEL,
  13392. };
  13393. enum PrimitiveType
  13394. {
  13395. TRIANGLE_LIST,
  13396. LINE_LIST,
  13397. POINT_LIST,
  13398. TRIANGLE_STRIP,
  13399. LINE_STRIP,
  13400. TRIANGLE_FAN,
  13401. };
  13402. enum RayQueryLevel
  13403. {
  13404. RAY_AABB,
  13405. RAY_OBB,
  13406. RAY_TRIANGLE,
  13407. RAY_TRIANGLE_UV,
  13408. };
  13409. enum RenderCommandSortMode
  13410. {
  13411. SORT_FRONTTOBACK,
  13412. SORT_BACKTOFRONT,
  13413. };
  13414. enum RenderCommandType
  13415. {
  13416. CMD_NONE,
  13417. CMD_CLEAR,
  13418. CMD_SCENEPASS,
  13419. CMD_QUAD,
  13420. CMD_FORWARDLIGHTS,
  13421. CMD_LIGHTVOLUMES,
  13422. CMD_RENDERUI,
  13423. };
  13424. enum RenderSurfaceUpdateMode
  13425. {
  13426. SURFACE_MANUALUPDATE,
  13427. SURFACE_UPDATEVISIBLE,
  13428. SURFACE_UPDATEALWAYS,
  13429. };
  13430. enum RenderTargetSizeMode
  13431. {
  13432. SIZE_ABSOLUTE,
  13433. SIZE_VIEWPORTDIVISOR,
  13434. SIZE_VIEWPORTMULTIPLIER,
  13435. };
  13436. enum ShadowQuality
  13437. {
  13438. SHADOWQUALITY_SIMPLE_16BIT,
  13439. SHADOWQUALITY_SIMPLE_24BIT,
  13440. SHADOWQUALITY_PCF_16BIT,
  13441. SHADOWQUALITY_PCF_24BIT,
  13442. SHADOWQUALITY_VSM,
  13443. SHADOWQUALITY_BLUR_VSM,
  13444. };
  13445. enum ShapeType
  13446. {
  13447. SHAPE_BOX,
  13448. SHAPE_SPHERE,
  13449. SHAPE_STATICPLANE,
  13450. SHAPE_CYLINDER,
  13451. SHAPE_CAPSULE,
  13452. SHAPE_CONE,
  13453. SHAPE_TRIANGLEMESH,
  13454. SHAPE_CONVEXHULL,
  13455. SHAPE_TERRAIN,
  13456. };
  13457. enum TextEffect
  13458. {
  13459. TE_NONE,
  13460. TE_SHADOW,
  13461. TE_STROKE,
  13462. };
  13463. enum TextureAddressMode
  13464. {
  13465. ADDRESS_WRAP,
  13466. ADDRESS_MIRROR,
  13467. ADDRESS_CLAMP,
  13468. ADDRESS_BORDER,
  13469. };
  13470. enum TextureCoordinate
  13471. {
  13472. COORD_U,
  13473. COORD_V,
  13474. COORD_W,
  13475. };
  13476. enum TextureFilterMode
  13477. {
  13478. FILTER_NEAREST,
  13479. FILTER_BILINEAR,
  13480. FILTER_TRILINEAR,
  13481. FILTER_ANISOTROPIC,
  13482. FILTER_DEFAULT,
  13483. };
  13484. enum TextureUnit
  13485. {
  13486. TU_DIFFUSE,
  13487. TU_ALBEDOBUFFER,
  13488. TU_NORMAL,
  13489. TU_NORMALBUFFER,
  13490. TU_SPECULAR,
  13491. TU_EMISSIVE,
  13492. TU_ENVIRONMENT,
  13493. TU_LIGHTRAMP,
  13494. TU_LIGHTSHAPE,
  13495. TU_SHADOWMAP,
  13496. TU_CUSTOM1,
  13497. TU_CUSTOM2,
  13498. TU_VOLUMEMAP,
  13499. TU_FACESELECT,
  13500. TU_INDIRECTION,
  13501. TU_DEPTHBUFFER,
  13502. TU_LIGHTBUFFER,
  13503. TU_ZONE,
  13504. MAX_MATERIAL_TEXTURE_UNITS,
  13505. MAX_TEXTURE_UNITS,
  13506. };
  13507. enum TextureUsage
  13508. {
  13509. TEXTURE_STATIC,
  13510. TEXTURE_DYNAMIC,
  13511. TEXTURE_RENDERTARGET,
  13512. TEXTURE_DEPTHSTENCIL,
  13513. };
  13514. enum TileMapLayerType2D
  13515. {
  13516. LT_TILE_LAYER,
  13517. LT_OBJECT_GROUP,
  13518. LT_IMAGE_LAYER,
  13519. LT_INVALID,
  13520. };
  13521. enum TileObjectType2D
  13522. {
  13523. OT_RECTANGLE,
  13524. OT_ELLIPSE,
  13525. OT_POLYGON,
  13526. OT_POLYLINE,
  13527. OT_TILE,
  13528. OT_INVALID,
  13529. };
  13530. enum TransformSpace
  13531. {
  13532. TS_LOCAL,
  13533. TS_PARENT,
  13534. TS_WORLD,
  13535. };
  13536. enum TraversalMode
  13537. {
  13538. TM_BREADTH_FIRST,
  13539. TM_DEPTH_FIRST,
  13540. };
  13541. enum VariantType
  13542. {
  13543. VAR_NONE,
  13544. VAR_INT,
  13545. VAR_BOOL,
  13546. VAR_FLOAT,
  13547. VAR_VECTOR2,
  13548. VAR_VECTOR3,
  13549. VAR_VECTOR4,
  13550. VAR_QUATERNION,
  13551. VAR_COLOR,
  13552. VAR_STRING,
  13553. VAR_BUFFER,
  13554. VAR_VOIDPTR,
  13555. VAR_RESOURCEREF,
  13556. VAR_RESOURCEREFLIST,
  13557. VAR_VARIANTVECTOR,
  13558. VAR_VARIANTMAP,
  13559. VAR_INTRECT,
  13560. VAR_INTVECTOR2,
  13561. VAR_PTR,
  13562. VAR_MATRIX3,
  13563. VAR_MATRIX3X4,
  13564. VAR_MATRIX4,
  13565. VAR_DOUBLE,
  13566. VAR_STRINGVECTOR,
  13567. };
  13568. enum VerticalAlignment
  13569. {
  13570. VA_TOP,
  13571. VA_CENTER,
  13572. VA_BOTTOM,
  13573. };
  13574. enum WrapMode
  13575. {
  13576. WM_LOOP,
  13577. WM_ONCE,
  13578. WM_CLAMP,
  13579. };
  13580. // Global functions
  13581. float Abs(float);
  13582. float Acos(float);
  13583. String AddTrailingSlash(const String&);
  13584. float Asin(float);
  13585. float Atan(float);
  13586. float Atan2(float, float);
  13587. float Ceil(float);
  13588. float Clamp(float, float, float);
  13589. int Clamp(int, int, int);
  13590. void ClearDelayedExecute(const String& = String ( ));
  13591. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13592. float Cos(float);
  13593. uint CountSetBits(uint);
  13594. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13595. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13596. bool Equals(float, float);
  13597. void ErrorDialog(const String&, const String&);
  13598. float Floor(float);
  13599. uint GetAlphaFormat();
  13600. Array<String> GetArguments();
  13601. String GetConsoleInput();
  13602. uint GetDepthStencilFormat();
  13603. Object GetEventSender();
  13604. String GetExtension(const String&, bool = true);
  13605. String GetFileName(const String&);
  13606. String GetFileNameAndExtension(const String&, bool = false);
  13607. String GetFileSizeString(uint64);
  13608. uint GetFloat16Format();
  13609. uint GetFloat32Format();
  13610. uint GetFormat(const String&);
  13611. String GetInternalPath(const String&);
  13612. uint GetLinearDepthFormat();
  13613. uint GetLuminanceAlphaFormat();
  13614. uint GetLuminanceFormat();
  13615. uint GetMaxBones();
  13616. String GetMiniDumpDir();
  13617. uint GetNumLogicalCPUs();
  13618. uint GetNumPhysicalCPUs();
  13619. Array<String> GetObjectCategories();
  13620. Array<String> GetObjectsByCategory(const String&);
  13621. String GetParentPath(const String&);
  13622. String GetPath(const String&);
  13623. String GetPlatform();
  13624. uint GetRG16Format();
  13625. uint GetRGBA16Format();
  13626. uint GetRGBAFloat16Format();
  13627. uint GetRGBAFloat32Format();
  13628. uint GetRGBAFormat();
  13629. uint GetRGBFormat();
  13630. uint GetRGFloat16Format();
  13631. uint GetRGFloat32Format();
  13632. uint GetRandomSeed();
  13633. uint GetReadableDepthFormat();
  13634. String GetTextureUnitName(TextureUnit);
  13635. bool HasSubscribedToEvent(Object, const String&);
  13636. bool HasSubscribedToEvent(const String&);
  13637. bool IsAbsolutePath(const String&);
  13638. bool IsAlpha(uint);
  13639. bool IsDigit(uint);
  13640. bool IsNaN(float);
  13641. bool IsPowerOfTwo(uint);
  13642. String Join(Array<String>&, const String&);
  13643. float Lerp(float, float, float);
  13644. void MarkNetworkUpdate();
  13645. float Max(float, float);
  13646. int Max(int, int);
  13647. float Min(float, float);
  13648. int Min(int, int);
  13649. float Mod(float, float);
  13650. uint NextPowerOfTwo(uint);
  13651. void OpenConsoleWindow();
  13652. float Pow(float, float);
  13653. void Print(bool, bool = false);
  13654. void Print(const String&, bool = false);
  13655. void Print(const Variant&, bool = false);
  13656. void Print(float, bool = false);
  13657. void Print(int, bool = false);
  13658. void Print(uint, bool = false);
  13659. void PrintCallStack(bool = false);
  13660. float Random();
  13661. float Random(float);
  13662. float Random(float, float);
  13663. int RandomInt();
  13664. int RandomInt(int);
  13665. int RandomInt(int, int);
  13666. float RandomNormal(float, float);
  13667. void Remove();
  13668. String RemoveTrailingSlash(const String&);
  13669. String ReplaceExtension(const String&, const String&);
  13670. uint SDBMHash(uint, uint8);
  13671. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13672. void SetMiniDumpDir(const String&);
  13673. void SetRandomSeed(uint);
  13674. float Sign(float);
  13675. float Sin(float);
  13676. float SmoothStep(float, float, float);
  13677. float Sqrt(float);
  13678. const String& GetTypeName(StringHash);
  13679. void SubscribeToEvent(Object, const String&, const String&);
  13680. void SubscribeToEvent(const String&, const String&);
  13681. float Tan(float);
  13682. uint ToLower(uint);
  13683. String ToStringHex(int);
  13684. uint ToUpper(uint);
  13685. void UnsubscribeFromAllEvents();
  13686. void UnsubscribeFromAllEventsExcept(Array<String>);
  13687. void UnsubscribeFromEvent(Object, const String&);
  13688. void UnsubscribeFromEvent(const String&);
  13689. void UnsubscribeFromEvents(Object);
  13690. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13691. // Global properties
  13692. DBAPI DBAPI;
  13693. Audio audio;
  13694. ResourceCache cache;
  13695. Console console;
  13696. Database database;
  13697. DebugHud debugHud;
  13698. DebugRenderer debugRenderer;
  13699. Engine engine;
  13700. FileSystem fileSystem;
  13701. Graphics graphics;
  13702. Input input;
  13703. Localization localization;
  13704. Log log;
  13705. Network network;
  13706. Node node;
  13707. Octree octree;
  13708. PhysicsWorld physicsWorld;
  13709. PhysicsWorld2D physicsWorld2D;
  13710. Renderer renderer;
  13711. ResourceCache resourceCache;
  13712. Scene scene;
  13713. Script script;
  13714. ScriptFile scriptFile;
  13715. ScriptInstance self;
  13716. Time time;
  13717. UI ui;
  13718. // Global constants
  13719. uint AM_COMPONENTID;
  13720. uint AM_DEFAULT;
  13721. uint AM_FILE;
  13722. uint AM_LATESTDATA;
  13723. uint AM_NET;
  13724. uint AM_NODEID;
  13725. uint AM_NODEIDVECTOR;
  13726. uint AM_NOEDIT;
  13727. Color BLACK;
  13728. Color BLUE;
  13729. uint8 CHANNEL_POSITION;
  13730. uint8 CHANNEL_ROTATION;
  13731. uint8 CHANNEL_SCALE;
  13732. uint CLEAR_COLOR;
  13733. uint CLEAR_DEPTH;
  13734. uint CLEAR_STENCIL;
  13735. int CONTROLLER_AXIS_LEFTX;
  13736. int CONTROLLER_AXIS_LEFTY;
  13737. int CONTROLLER_AXIS_RIGHTX;
  13738. int CONTROLLER_AXIS_RIGHTY;
  13739. int CONTROLLER_AXIS_TRIGGERLEFT;
  13740. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13741. int CONTROLLER_BUTTON_A;
  13742. int CONTROLLER_BUTTON_B;
  13743. int CONTROLLER_BUTTON_BACK;
  13744. int CONTROLLER_BUTTON_DPAD_DOWN;
  13745. int CONTROLLER_BUTTON_DPAD_LEFT;
  13746. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13747. int CONTROLLER_BUTTON_DPAD_UP;
  13748. int CONTROLLER_BUTTON_GUIDE;
  13749. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13750. int CONTROLLER_BUTTON_LEFTSTICK;
  13751. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13752. int CONTROLLER_BUTTON_RIGHTSTICK;
  13753. int CONTROLLER_BUTTON_START;
  13754. int CONTROLLER_BUTTON_X;
  13755. int CONTROLLER_BUTTON_Y;
  13756. Color CYAN;
  13757. uint DD_DISABLED;
  13758. uint DD_SOURCE;
  13759. uint DD_SOURCE_AND_TARGET;
  13760. uint DD_TARGET;
  13761. uint DEBUGHUD_SHOW_ALL;
  13762. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13763. uint DEBUGHUD_SHOW_MEMORY;
  13764. uint DEBUGHUD_SHOW_MODE;
  13765. uint DEBUGHUD_SHOW_NONE;
  13766. uint DEBUGHUD_SHOW_PROFILER;
  13767. uint DEBUGHUD_SHOW_STATS;
  13768. uint DEFAULT_LIGHTMASK;
  13769. uint DEFAULT_VIEWMASK;
  13770. uint DRAWABLE_ANY;
  13771. uint DRAWABLE_GEOMETRY;
  13772. uint DRAWABLE_GEOMETRY2D;
  13773. uint DRAWABLE_LIGHT;
  13774. uint DRAWABLE_ZONE;
  13775. uint FIRST_LOCAL_ID;
  13776. uint FIRST_REPLICATED_ID;
  13777. Color GRAY;
  13778. Color GREEN;
  13779. int HAT_CENTER;
  13780. int HAT_DOWN;
  13781. int HAT_LEFT;
  13782. int HAT_RIGHT;
  13783. int HAT_UP;
  13784. int KEY_0;
  13785. int KEY_1;
  13786. int KEY_2;
  13787. int KEY_3;
  13788. int KEY_4;
  13789. int KEY_5;
  13790. int KEY_6;
  13791. int KEY_7;
  13792. int KEY_8;
  13793. int KEY_9;
  13794. int KEY_A;
  13795. int KEY_ALT;
  13796. int KEY_APPLICATION;
  13797. int KEY_B;
  13798. int KEY_BACKSPACE;
  13799. int KEY_C;
  13800. int KEY_CAPSLOCK;
  13801. int KEY_CTRL;
  13802. int KEY_D;
  13803. int KEY_DELETE;
  13804. int KEY_DOWN;
  13805. int KEY_E;
  13806. int KEY_END;
  13807. int KEY_ESC;
  13808. int KEY_F;
  13809. int KEY_F1;
  13810. int KEY_F10;
  13811. int KEY_F11;
  13812. int KEY_F12;
  13813. int KEY_F13;
  13814. int KEY_F14;
  13815. int KEY_F15;
  13816. int KEY_F16;
  13817. int KEY_F17;
  13818. int KEY_F18;
  13819. int KEY_F19;
  13820. int KEY_F2;
  13821. int KEY_F20;
  13822. int KEY_F21;
  13823. int KEY_F22;
  13824. int KEY_F23;
  13825. int KEY_F24;
  13826. int KEY_F3;
  13827. int KEY_F4;
  13828. int KEY_F5;
  13829. int KEY_F6;
  13830. int KEY_F7;
  13831. int KEY_F8;
  13832. int KEY_F9;
  13833. int KEY_G;
  13834. int KEY_GUI;
  13835. int KEY_H;
  13836. int KEY_HOME;
  13837. int KEY_I;
  13838. int KEY_INSERT;
  13839. int KEY_J;
  13840. int KEY_K;
  13841. int KEY_KP_0;
  13842. int KEY_KP_1;
  13843. int KEY_KP_2;
  13844. int KEY_KP_3;
  13845. int KEY_KP_4;
  13846. int KEY_KP_5;
  13847. int KEY_KP_6;
  13848. int KEY_KP_7;
  13849. int KEY_KP_8;
  13850. int KEY_KP_9;
  13851. int KEY_KP_DIVIDE;
  13852. int KEY_KP_ENTER;
  13853. int KEY_KP_MINUS;
  13854. int KEY_KP_MULTIPLY;
  13855. int KEY_KP_PERIOD;
  13856. int KEY_KP_PLUS;
  13857. int KEY_L;
  13858. int KEY_LALT;
  13859. int KEY_LCTRL;
  13860. int KEY_LEFT;
  13861. int KEY_LGUI;
  13862. int KEY_LSHIFT;
  13863. int KEY_M;
  13864. int KEY_N;
  13865. int KEY_NUMLOCKCLEAR;
  13866. int KEY_O;
  13867. int KEY_P;
  13868. int KEY_PAGEDOWN;
  13869. int KEY_PAGEUP;
  13870. int KEY_PAUSE;
  13871. int KEY_PRINTSCREEN;
  13872. int KEY_Q;
  13873. int KEY_R;
  13874. int KEY_RALT;
  13875. int KEY_RCTRL;
  13876. int KEY_RETURN;
  13877. int KEY_RETURN2;
  13878. int KEY_RGUI;
  13879. int KEY_RIGHT;
  13880. int KEY_RSHIFT;
  13881. int KEY_S;
  13882. int KEY_SCROLLLOCK;
  13883. int KEY_SELECT;
  13884. int KEY_SHIFT;
  13885. int KEY_SPACE;
  13886. int KEY_T;
  13887. int KEY_TAB;
  13888. int KEY_U;
  13889. int KEY_UP;
  13890. int KEY_V;
  13891. int KEY_W;
  13892. int KEY_X;
  13893. int KEY_Y;
  13894. int KEY_Z;
  13895. uint LAST_LOCAL_ID;
  13896. uint LAST_REPLICATED_ID;
  13897. int LOG_DEBUG;
  13898. int LOG_ERROR;
  13899. int LOG_INFO;
  13900. int LOG_NONE;
  13901. int LOG_WARNING;
  13902. Color MAGENTA;
  13903. uint MASK_BLENDINDICES;
  13904. uint MASK_BLENDWEIGHTS;
  13905. uint MASK_COLOR;
  13906. uint MASK_CUBETEXCOORD1;
  13907. uint MASK_CUBETEXCOORD2;
  13908. uint MASK_DEFAULT;
  13909. uint MASK_INSTANCEMATRIX1;
  13910. uint MASK_INSTANCEMATRIX2;
  13911. uint MASK_INSTANCEMATRIX3;
  13912. uint MASK_NONE;
  13913. uint MASK_NORMAL;
  13914. uint MASK_OBJECTINDEX;
  13915. uint MASK_POSITION;
  13916. uint MASK_TANGENT;
  13917. uint MASK_TEXCOORD1;
  13918. uint MASK_TEXCOORD2;
  13919. int MOUSEB_LEFT;
  13920. int MOUSEB_MIDDLE;
  13921. int MOUSEB_RIGHT;
  13922. float M_DEGTORAD;
  13923. float M_DEGTORAD_2;
  13924. float M_EPSILON;
  13925. float M_HALF_PI;
  13926. float M_INFINITY;
  13927. float M_LARGE_EPSILON;
  13928. float M_LARGE_VALUE;
  13929. int M_MAX_INT;
  13930. uint M_MAX_UNSIGNED;
  13931. int M_MIN_INT;
  13932. uint M_MIN_UNSIGNED;
  13933. float M_PI;
  13934. float M_RADTODEG;
  13935. float PIXEL_SIZE;
  13936. int QUALITY_HIGH;
  13937. int QUALITY_LOW;
  13938. int QUALITY_MAX;
  13939. int QUALITY_MEDIUM;
  13940. int QUAL_ALT;
  13941. int QUAL_ANY;
  13942. int QUAL_CTRL;
  13943. int QUAL_SHIFT;
  13944. Color RED;
  13945. int SCANCODE_0;
  13946. int SCANCODE_1;
  13947. int SCANCODE_2;
  13948. int SCANCODE_3;
  13949. int SCANCODE_4;
  13950. int SCANCODE_5;
  13951. int SCANCODE_6;
  13952. int SCANCODE_7;
  13953. int SCANCODE_8;
  13954. int SCANCODE_9;
  13955. int SCANCODE_A;
  13956. int SCANCODE_AC_BACK;
  13957. int SCANCODE_AC_BOOKMARKS;
  13958. int SCANCODE_AC_FORWARD;
  13959. int SCANCODE_AC_HOME;
  13960. int SCANCODE_AC_REFRESH;
  13961. int SCANCODE_AC_SEARCH;
  13962. int SCANCODE_AC_STOP;
  13963. int SCANCODE_AGAIN;
  13964. int SCANCODE_ALT;
  13965. int SCANCODE_ALTERASE;
  13966. int SCANCODE_APOSTROPHE;
  13967. int SCANCODE_APP1;
  13968. int SCANCODE_APP2;
  13969. int SCANCODE_APPLICATION;
  13970. int SCANCODE_AUDIOMUTE;
  13971. int SCANCODE_AUDIONEXT;
  13972. int SCANCODE_AUDIOPLAY;
  13973. int SCANCODE_AUDIOPREV;
  13974. int SCANCODE_AUDIOSTOP;
  13975. int SCANCODE_B;
  13976. int SCANCODE_BACKSLASH;
  13977. int SCANCODE_BACKSPACE;
  13978. int SCANCODE_BRIGHTNESSDOWN;
  13979. int SCANCODE_BRIGHTNESSUP;
  13980. int SCANCODE_C;
  13981. int SCANCODE_CALCULATOR;
  13982. int SCANCODE_CANCEL;
  13983. int SCANCODE_CAPSLOCK;
  13984. int SCANCODE_CLEAR;
  13985. int SCANCODE_CLEARAGAIN;
  13986. int SCANCODE_COMMA;
  13987. int SCANCODE_COMPUTER;
  13988. int SCANCODE_COPY;
  13989. int SCANCODE_CRSEL;
  13990. int SCANCODE_CTRL;
  13991. int SCANCODE_CURRENCYSUBUNIT;
  13992. int SCANCODE_CURRENCYUNIT;
  13993. int SCANCODE_CUT;
  13994. int SCANCODE_D;
  13995. int SCANCODE_DECIMALSEPARATOR;
  13996. int SCANCODE_DELETE;
  13997. int SCANCODE_DISPLAYSWITCH;
  13998. int SCANCODE_DOWN;
  13999. int SCANCODE_E;
  14000. int SCANCODE_EJECT;
  14001. int SCANCODE_END;
  14002. int SCANCODE_EQUALS;
  14003. int SCANCODE_ESCAPE;
  14004. int SCANCODE_EXECUTE;
  14005. int SCANCODE_EXSEL;
  14006. int SCANCODE_F;
  14007. int SCANCODE_F1;
  14008. int SCANCODE_F10;
  14009. int SCANCODE_F11;
  14010. int SCANCODE_F12;
  14011. int SCANCODE_F13;
  14012. int SCANCODE_F14;
  14013. int SCANCODE_F15;
  14014. int SCANCODE_F16;
  14015. int SCANCODE_F17;
  14016. int SCANCODE_F18;
  14017. int SCANCODE_F19;
  14018. int SCANCODE_F2;
  14019. int SCANCODE_F20;
  14020. int SCANCODE_F21;
  14021. int SCANCODE_F22;
  14022. int SCANCODE_F23;
  14023. int SCANCODE_F24;
  14024. int SCANCODE_F3;
  14025. int SCANCODE_F4;
  14026. int SCANCODE_F5;
  14027. int SCANCODE_F6;
  14028. int SCANCODE_F7;
  14029. int SCANCODE_F8;
  14030. int SCANCODE_F9;
  14031. int SCANCODE_FIND;
  14032. int SCANCODE_G;
  14033. int SCANCODE_GRAVE;
  14034. int SCANCODE_GUI;
  14035. int SCANCODE_H;
  14036. int SCANCODE_HELP;
  14037. int SCANCODE_HOME;
  14038. int SCANCODE_I;
  14039. int SCANCODE_INSERT;
  14040. int SCANCODE_INTERNATIONAL1;
  14041. int SCANCODE_INTERNATIONAL2;
  14042. int SCANCODE_INTERNATIONAL3;
  14043. int SCANCODE_INTERNATIONAL4;
  14044. int SCANCODE_INTERNATIONAL5;
  14045. int SCANCODE_INTERNATIONAL6;
  14046. int SCANCODE_INTERNATIONAL7;
  14047. int SCANCODE_INTERNATIONAL8;
  14048. int SCANCODE_INTERNATIONAL9;
  14049. int SCANCODE_J;
  14050. int SCANCODE_K;
  14051. int SCANCODE_KBDILLUMDOWN;
  14052. int SCANCODE_KBDILLUMTOGGLE;
  14053. int SCANCODE_KBDILLUMUP;
  14054. int SCANCODE_KP_0;
  14055. int SCANCODE_KP_00;
  14056. int SCANCODE_KP_000;
  14057. int SCANCODE_KP_1;
  14058. int SCANCODE_KP_2;
  14059. int SCANCODE_KP_3;
  14060. int SCANCODE_KP_4;
  14061. int SCANCODE_KP_5;
  14062. int SCANCODE_KP_6;
  14063. int SCANCODE_KP_7;
  14064. int SCANCODE_KP_8;
  14065. int SCANCODE_KP_9;
  14066. int SCANCODE_KP_A;
  14067. int SCANCODE_KP_AMPERSAND;
  14068. int SCANCODE_KP_AT;
  14069. int SCANCODE_KP_B;
  14070. int SCANCODE_KP_BACKSPACE;
  14071. int SCANCODE_KP_BINARY;
  14072. int SCANCODE_KP_C;
  14073. int SCANCODE_KP_CLEAR;
  14074. int SCANCODE_KP_CLEARENTRY;
  14075. int SCANCODE_KP_COLON;
  14076. int SCANCODE_KP_COMMA;
  14077. int SCANCODE_KP_D;
  14078. int SCANCODE_KP_DBLAMPERSAND;
  14079. int SCANCODE_KP_DBLVERTICALBAR;
  14080. int SCANCODE_KP_DECIMAL;
  14081. int SCANCODE_KP_DIVIDE;
  14082. int SCANCODE_KP_E;
  14083. int SCANCODE_KP_ENTER;
  14084. int SCANCODE_KP_EQUALS;
  14085. int SCANCODE_KP_EQUALSAS400;
  14086. int SCANCODE_KP_EXCLAM;
  14087. int SCANCODE_KP_F;
  14088. int SCANCODE_KP_GREATER;
  14089. int SCANCODE_KP_HASH;
  14090. int SCANCODE_KP_HEXADECIMAL;
  14091. int SCANCODE_KP_LEFTBRACE;
  14092. int SCANCODE_KP_LEFTPAREN;
  14093. int SCANCODE_KP_LESS;
  14094. int SCANCODE_KP_MEMADD;
  14095. int SCANCODE_KP_MEMCLEAR;
  14096. int SCANCODE_KP_MEMDIVIDE;
  14097. int SCANCODE_KP_MEMMULTIPLY;
  14098. int SCANCODE_KP_MEMRECALL;
  14099. int SCANCODE_KP_MEMSTORE;
  14100. int SCANCODE_KP_MEMSUBTRACT;
  14101. int SCANCODE_KP_MINUS;
  14102. int SCANCODE_KP_MULTIPLY;
  14103. int SCANCODE_KP_OCTAL;
  14104. int SCANCODE_KP_PERCENT;
  14105. int SCANCODE_KP_PERIOD;
  14106. int SCANCODE_KP_PLUS;
  14107. int SCANCODE_KP_PLUSMINUS;
  14108. int SCANCODE_KP_POWER;
  14109. int SCANCODE_KP_RIGHTBRACE;
  14110. int SCANCODE_KP_RIGHTPAREN;
  14111. int SCANCODE_KP_SPACE;
  14112. int SCANCODE_KP_TAB;
  14113. int SCANCODE_KP_VERTICALBAR;
  14114. int SCANCODE_KP_XOR;
  14115. int SCANCODE_L;
  14116. int SCANCODE_LALT;
  14117. int SCANCODE_LANG1;
  14118. int SCANCODE_LANG2;
  14119. int SCANCODE_LANG3;
  14120. int SCANCODE_LANG4;
  14121. int SCANCODE_LANG5;
  14122. int SCANCODE_LANG6;
  14123. int SCANCODE_LANG7;
  14124. int SCANCODE_LANG8;
  14125. int SCANCODE_LANG9;
  14126. int SCANCODE_LCTRL;
  14127. int SCANCODE_LEFT;
  14128. int SCANCODE_LEFTBRACKET;
  14129. int SCANCODE_LGUI;
  14130. int SCANCODE_LSHIFT;
  14131. int SCANCODE_M;
  14132. int SCANCODE_MAIL;
  14133. int SCANCODE_MEDIASELECT;
  14134. int SCANCODE_MENU;
  14135. int SCANCODE_MINUS;
  14136. int SCANCODE_MODE;
  14137. int SCANCODE_MUTE;
  14138. int SCANCODE_N;
  14139. int SCANCODE_NONUSBACKSLASH;
  14140. int SCANCODE_NONUSHASH;
  14141. int SCANCODE_NUMLOCKCLEAR;
  14142. int SCANCODE_O;
  14143. int SCANCODE_OPER;
  14144. int SCANCODE_OUT;
  14145. int SCANCODE_P;
  14146. int SCANCODE_PAGEDOWN;
  14147. int SCANCODE_PAGEUP;
  14148. int SCANCODE_PASTE;
  14149. int SCANCODE_PAUSE;
  14150. int SCANCODE_PERIOD;
  14151. int SCANCODE_POWER;
  14152. int SCANCODE_PRINTSCREEN;
  14153. int SCANCODE_PRIOR;
  14154. int SCANCODE_Q;
  14155. int SCANCODE_R;
  14156. int SCANCODE_RALT;
  14157. int SCANCODE_RCTRL;
  14158. int SCANCODE_RETURN;
  14159. int SCANCODE_RETURN2;
  14160. int SCANCODE_RGUI;
  14161. int SCANCODE_RIGHT;
  14162. int SCANCODE_RIGHTBRACKET;
  14163. int SCANCODE_RSHIFT;
  14164. int SCANCODE_S;
  14165. int SCANCODE_SCROLLLOCK;
  14166. int SCANCODE_SELECT;
  14167. int SCANCODE_SEMICOLON;
  14168. int SCANCODE_SEPARATOR;
  14169. int SCANCODE_SHIFT;
  14170. int SCANCODE_SLASH;
  14171. int SCANCODE_SLEEP;
  14172. int SCANCODE_SPACE;
  14173. int SCANCODE_STOP;
  14174. int SCANCODE_SYSREQ;
  14175. int SCANCODE_T;
  14176. int SCANCODE_TAB;
  14177. int SCANCODE_THOUSANDSSEPARATOR;
  14178. int SCANCODE_U;
  14179. int SCANCODE_UNDO;
  14180. int SCANCODE_UNKNOWN;
  14181. int SCANCODE_UP;
  14182. int SCANCODE_V;
  14183. int SCANCODE_VOLUMEDOWN;
  14184. int SCANCODE_VOLUMEUP;
  14185. int SCANCODE_W;
  14186. int SCANCODE_WWW;
  14187. int SCANCODE_X;
  14188. int SCANCODE_Y;
  14189. int SCANCODE_Z;
  14190. uint SCAN_DIRS;
  14191. uint SCAN_FILES;
  14192. uint SCAN_HIDDEN;
  14193. String SOUND_AMBIENT;
  14194. String SOUND_EFFECT;
  14195. String SOUND_MASTER;
  14196. String SOUND_MUSIC;
  14197. String SOUND_VOICE;
  14198. Color TRANSPARENT;
  14199. uint VO_DISABLE_OCCLUSION;
  14200. uint VO_DISABLE_SHADOWS;
  14201. uint VO_LOW_MATERIAL_QUALITY;
  14202. uint VO_NONE;
  14203. Color WHITE;
  14204. Color YELLOW;
  14205. VariantMap globalVars;