AngelScriptAPI.h 368 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. // Classes
  10. class Animatable
  11. {
  12. // Methods:
  13. void ApplyAttributes();
  14. Variant GetAttribute(const String&) const;
  15. ValueAnimation GetAttributeAnimation(const String&) const;
  16. float GetAttributeAnimationSpeed(const String&) const;
  17. float GetAttributeAnimationTime(const String&) const;
  18. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19. Variant GetAttributeDefault(const String&) const;
  20. bool GetInterceptNetworkUpdate(const String&) const;
  21. bool HasSubscribedToEvent(Object, const String&);
  22. bool HasSubscribedToEvent(const String&);
  23. bool Load(File, bool = false);
  24. bool Load(VectorBuffer&, bool = false);
  25. bool LoadJSON(const JSONValue&, bool = false);
  26. bool LoadXML(const XMLElement&, bool = false);
  27. void MarkNetworkUpdate() const;
  28. void RemoveAttributeAnimation(const String&);
  29. void RemoveInstanceDefault();
  30. void RemoveObjectAnimation();
  31. void ResetToDefault();
  32. bool Save(File) const;
  33. bool Save(VectorBuffer&) const;
  34. bool SaveJSON(JSONValue&) const;
  35. bool SaveXML(XMLElement&) const;
  36. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  37. void SetAnimationTime(float);
  38. bool SetAttribute(const String&, const Variant&);
  39. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  40. void SetAttributeAnimationSpeed(const String&, float);
  41. void SetAttributeAnimationTime(const String&, float);
  42. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  43. void SetInterceptNetworkUpdate(const String&, bool);
  44. // Properties:
  45. bool animationEnabled;
  46. /* readonly */
  47. Array<Variant> attributeDefaults;
  48. /* readonly */
  49. Array<AttributeInfo> attributeInfos;
  50. Array<Variant> attributes;
  51. /* readonly */
  52. String category;
  53. /* readonly */
  54. uint numAttributes;
  55. ObjectAnimation objectAnimation;
  56. /* readonly */
  57. int refs;
  58. bool temporary;
  59. /* readonly */
  60. StringHash type;
  61. /* readonly */
  62. String typeName;
  63. /* readonly */
  64. int weakRefs;
  65. };
  66. class AnimatedModel
  67. {
  68. // Methods:
  69. AnimationState AddAnimationState(Animation);
  70. void ApplyAttributes();
  71. void ApplyMaterialList(const String& = String ( ));
  72. void DrawDebugGeometry(DebugRenderer, bool);
  73. AnimationState GetAnimationState(Animation) const;
  74. AnimationState GetAnimationState(uint) const;
  75. Variant GetAttribute(const String&) const;
  76. ValueAnimation GetAttributeAnimation(const String&) const;
  77. float GetAttributeAnimationSpeed(const String&) const;
  78. float GetAttributeAnimationTime(const String&) const;
  79. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  80. Variant GetAttributeDefault(const String&) const;
  81. bool GetInterceptNetworkUpdate(const String&) const;
  82. float GetMorphWeight(uint) const;
  83. bool HasSubscribedToEvent(Object, const String&);
  84. bool HasSubscribedToEvent(const String&);
  85. bool IsInView(Camera) const;
  86. bool Load(File, bool = false);
  87. bool Load(VectorBuffer&, bool = false);
  88. bool LoadJSON(const JSONValue&, bool = false);
  89. bool LoadXML(const XMLElement&, bool = false);
  90. void MarkNetworkUpdate() const;
  91. void Remove();
  92. void RemoveAllAnimationStates();
  93. void RemoveAnimationState(Animation);
  94. void RemoveAnimationState(AnimationState);
  95. void RemoveAnimationState(const String&);
  96. void RemoveAnimationState(uint);
  97. void RemoveAttributeAnimation(const String&);
  98. void RemoveInstanceDefault();
  99. void RemoveObjectAnimation();
  100. void ResetMorphWeights();
  101. void ResetToDefault();
  102. bool Save(File) const;
  103. bool Save(VectorBuffer&) const;
  104. bool SaveJSON(JSONValue&) const;
  105. bool SaveXML(XMLElement&) const;
  106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  107. void SetAnimationTime(float);
  108. bool SetAttribute(const String&, const Variant&);
  109. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  110. void SetAttributeAnimationSpeed(const String&, float);
  111. void SetAttributeAnimationTime(const String&, float);
  112. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  113. void SetInterceptNetworkUpdate(const String&, bool);
  114. void SetMorphWeight(uint, float);
  115. void UpdateBoneBoundingBox();
  116. // Properties:
  117. bool animationEnabled;
  118. float animationLodBias;
  119. /* readonly */
  120. Array<AnimationState> animationStates;
  121. /* readonly */
  122. Array<Variant> attributeDefaults;
  123. /* readonly */
  124. Array<AttributeInfo> attributeInfos;
  125. Array<Variant> attributes;
  126. /* readonly */
  127. BoundingBox boundingBox;
  128. bool castShadows;
  129. /* readonly */
  130. String category;
  131. float drawDistance;
  132. bool enabled;
  133. /* readonly */
  134. bool enabledEffective;
  135. /* readonly */
  136. uint id;
  137. /* readonly */
  138. bool inView;
  139. uint lightMask;
  140. float lodBias;
  141. /* writeonly */
  142. Material material;
  143. Array<Material> materials;
  144. uint maxLights;
  145. Model model;
  146. /* readonly */
  147. Array<String> morphNames;
  148. Array<float> morphWeights;
  149. /* readonly */
  150. Node node;
  151. /* readonly */
  152. uint numAnimationStates;
  153. /* readonly */
  154. uint numAttributes;
  155. /* readonly */
  156. uint numGeometries;
  157. /* readonly */
  158. uint numMorphs;
  159. ObjectAnimation objectAnimation;
  160. bool occludee;
  161. bool occluder;
  162. /* readonly */
  163. int refs;
  164. float shadowDistance;
  165. uint shadowMask;
  166. /* readonly */
  167. Skeleton skeleton;
  168. bool temporary;
  169. /* readonly */
  170. StringHash type;
  171. /* readonly */
  172. String typeName;
  173. bool updateInvisible;
  174. uint viewMask;
  175. /* readonly */
  176. int weakRefs;
  177. /* readonly */
  178. BoundingBox worldBoundingBox;
  179. /* readonly */
  180. Zone zone;
  181. uint zoneMask;
  182. };
  183. class AnimatedSprite2D
  184. {
  185. // Methods:
  186. void ApplyAttributes();
  187. void DrawDebugGeometry(DebugRenderer, bool);
  188. Variant GetAttribute(const String&) const;
  189. ValueAnimation GetAttributeAnimation(const String&) const;
  190. float GetAttributeAnimationSpeed(const String&) const;
  191. float GetAttributeAnimationTime(const String&) const;
  192. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  193. Variant GetAttributeDefault(const String&) const;
  194. bool GetInterceptNetworkUpdate(const String&) const;
  195. bool HasSubscribedToEvent(Object, const String&);
  196. bool HasSubscribedToEvent(const String&);
  197. bool IsInView(Camera) const;
  198. bool Load(File, bool = false);
  199. bool Load(VectorBuffer&, bool = false);
  200. bool LoadJSON(const JSONValue&, bool = false);
  201. bool LoadXML(const XMLElement&, bool = false);
  202. void MarkNetworkUpdate() const;
  203. void Remove();
  204. void RemoveAttributeAnimation(const String&);
  205. void RemoveInstanceDefault();
  206. void RemoveObjectAnimation();
  207. void ResetToDefault();
  208. bool Save(File) const;
  209. bool Save(VectorBuffer&) const;
  210. bool SaveJSON(JSONValue&) const;
  211. bool SaveXML(XMLElement&) const;
  212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  213. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  214. void SetAnimationTime(float);
  215. bool SetAttribute(const String&, const Variant&);
  216. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  217. void SetAttributeAnimationSpeed(const String&, float);
  218. void SetAttributeAnimationTime(const String&, float);
  219. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  220. void SetFlip(bool, bool);
  221. void SetInterceptNetworkUpdate(const String&, bool);
  222. // Properties:
  223. float alpha;
  224. String animation;
  225. bool animationEnabled;
  226. AnimationSet2D animationSet;
  227. /* readonly */
  228. Array<Variant> attributeDefaults;
  229. /* readonly */
  230. Array<AttributeInfo> attributeInfos;
  231. Array<Variant> attributes;
  232. BlendMode blendMode;
  233. /* readonly */
  234. BoundingBox boundingBox;
  235. bool castShadows;
  236. /* readonly */
  237. String category;
  238. Color color;
  239. Material customMaterial;
  240. float drawDistance;
  241. bool enabled;
  242. /* readonly */
  243. bool enabledEffective;
  244. String entity;
  245. bool flipX;
  246. bool flipY;
  247. Vector2 hotSpot;
  248. /* readonly */
  249. uint id;
  250. /* readonly */
  251. bool inView;
  252. int layer;
  253. uint lightMask;
  254. float lodBias;
  255. LoopMode2D loopMode;
  256. uint maxLights;
  257. /* readonly */
  258. Node node;
  259. /* readonly */
  260. uint numAttributes;
  261. ObjectAnimation objectAnimation;
  262. bool occludee;
  263. bool occluder;
  264. int orderInLayer;
  265. /* readonly */
  266. int refs;
  267. float shadowDistance;
  268. uint shadowMask;
  269. float speed;
  270. Sprite2D sprite;
  271. bool temporary;
  272. /* readonly */
  273. StringHash type;
  274. /* readonly */
  275. String typeName;
  276. bool useHotSpot;
  277. uint viewMask;
  278. /* readonly */
  279. int weakRefs;
  280. /* readonly */
  281. BoundingBox worldBoundingBox;
  282. uint zoneMask;
  283. };
  284. class Animation
  285. {
  286. // Methods:
  287. void AddTrigger(const AnimationTriggerPoint&);
  288. void AddTrigger(float, bool, const Variant&);
  289. Animation Clone(const String& = String ( )) const;
  290. AnimationTrack CreateTrack(const String&);
  291. bool HasSubscribedToEvent(Object, const String&);
  292. bool HasSubscribedToEvent(const String&);
  293. bool Load(File);
  294. bool Load(VectorBuffer&);
  295. bool RemoveAllTracks();
  296. void RemoveAllTriggers();
  297. bool RemoveTrack(const String&);
  298. void RemoveTrigger(uint);
  299. bool Save(File) const;
  300. bool Save(VectorBuffer&) const;
  301. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  302. // Properties:
  303. String animationName;
  304. /* readonly */
  305. String category;
  306. float length;
  307. /* readonly */
  308. uint memoryUse;
  309. String name;
  310. /* readonly */
  311. uint numTracks;
  312. uint numTriggers;
  313. /* readonly */
  314. int refs;
  315. /* readonly */
  316. Array<AnimationTrack> tracks;
  317. Array<AnimationTriggerPoint> triggers;
  318. /* readonly */
  319. StringHash type;
  320. /* readonly */
  321. String typeName;
  322. /* readonly */
  323. uint useTimer;
  324. /* readonly */
  325. int weakRefs;
  326. };
  327. class AnimationController
  328. {
  329. // Methods:
  330. void ApplyAttributes();
  331. void DrawDebugGeometry(DebugRenderer, bool);
  332. bool Fade(const String&, float, float);
  333. bool FadeOthers(const String&, float, float);
  334. AnimationState GetAnimationState(StringHash) const;
  335. AnimationState GetAnimationState(const String&) const;
  336. Variant GetAttribute(const String&) const;
  337. ValueAnimation GetAttributeAnimation(const String&) const;
  338. float GetAttributeAnimationSpeed(const String&) const;
  339. float GetAttributeAnimationTime(const String&) const;
  340. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  341. Variant GetAttributeDefault(const String&) const;
  342. float GetAutoFade(const String&) const;
  343. AnimationBlendMode GetBlendMode(const String&) const;
  344. float GetFadeTarget(const String&) const;
  345. float GetFadeTime(const String&) const;
  346. bool GetInterceptNetworkUpdate(const String&) const;
  347. uint8 GetLayer(const String&) const;
  348. float GetLength(const String&) const;
  349. bool GetLooped(const String&) const;
  350. bool GetRemoveOnCompletion(const String&);
  351. float GetSpeed(const String&) const;
  352. float GetTime(const String&) const;
  353. float GetWeight(const String&) const;
  354. bool HasSubscribedToEvent(Object, const String&);
  355. bool HasSubscribedToEvent(const String&);
  356. bool IsAtEnd(const String&) const;
  357. bool IsFadingIn(const String&) const;
  358. bool IsFadingOut(const String&) const;
  359. bool IsPlaying(const String&) const;
  360. bool Load(File, bool = false);
  361. bool Load(VectorBuffer&, bool = false);
  362. bool LoadJSON(const JSONValue&, bool = false);
  363. bool LoadXML(const XMLElement&, bool = false);
  364. void MarkNetworkUpdate() const;
  365. bool Play(const String&, uint8, bool, float = 0.0f);
  366. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  367. void Remove();
  368. void RemoveAttributeAnimation(const String&);
  369. void RemoveInstanceDefault();
  370. void RemoveObjectAnimation();
  371. void ResetToDefault();
  372. bool Save(File) const;
  373. bool Save(VectorBuffer&) const;
  374. bool SaveJSON(JSONValue&) const;
  375. bool SaveXML(XMLElement&) const;
  376. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  377. void SetAnimationTime(float);
  378. bool SetAttribute(const String&, const Variant&);
  379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  380. void SetAttributeAnimationSpeed(const String&, float);
  381. void SetAttributeAnimationTime(const String&, float);
  382. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  383. bool SetAutoFade(const String&, float);
  384. bool SetBlendMode(const String&, AnimationBlendMode);
  385. void SetInterceptNetworkUpdate(const String&, bool);
  386. bool SetLayer(const String&, uint8);
  387. bool SetLooped(const String&, bool);
  388. bool SetRemoveOnCompletion(const String&, bool);
  389. bool SetSpeed(const String&, float);
  390. bool SetStartBone(const String&, const String&);
  391. bool SetTime(const String&, float);
  392. bool SetWeight(const String&, float);
  393. void Stop(const String&, float = 0.0f);
  394. void StopAll(float = 0.0f);
  395. void StopLayer(uint8, float = 0.0f);
  396. const String& GetStartBone(const String&) const;
  397. // Properties:
  398. bool animationEnabled;
  399. /* readonly */
  400. Array<Variant> attributeDefaults;
  401. /* readonly */
  402. Array<AttributeInfo> attributeInfos;
  403. Array<Variant> attributes;
  404. /* readonly */
  405. String category;
  406. bool enabled;
  407. /* readonly */
  408. bool enabledEffective;
  409. /* readonly */
  410. uint id;
  411. /* readonly */
  412. Node node;
  413. /* readonly */
  414. uint numAttributes;
  415. ObjectAnimation objectAnimation;
  416. /* readonly */
  417. int refs;
  418. bool temporary;
  419. /* readonly */
  420. StringHash type;
  421. /* readonly */
  422. String typeName;
  423. /* readonly */
  424. int weakRefs;
  425. };
  426. class AnimationKeyFrame
  427. {
  428. // Properties:
  429. Vector3 position;
  430. Quaternion rotation;
  431. Vector3 scale;
  432. float time;
  433. };
  434. class AnimationSet2D
  435. {
  436. // Methods:
  437. String GetAnimation(uint) const;
  438. bool HasSubscribedToEvent(Object, const String&);
  439. bool HasSubscribedToEvent(const String&);
  440. bool Load(File);
  441. bool Load(VectorBuffer&);
  442. bool Save(File) const;
  443. bool Save(VectorBuffer&) const;
  444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  445. // Properties:
  446. /* readonly */
  447. String category;
  448. /* readonly */
  449. uint memoryUse;
  450. String name;
  451. /* readonly */
  452. uint numAnimations;
  453. /* readonly */
  454. int refs;
  455. /* readonly */
  456. StringHash type;
  457. /* readonly */
  458. String typeName;
  459. /* readonly */
  460. uint useTimer;
  461. /* readonly */
  462. int weakRefs;
  463. };
  464. class AnimationState
  465. {
  466. // Methods:
  467. void AddTime(float);
  468. void AddWeight(float);
  469. void Apply();
  470. float GetBoneWeight(StringHash) const;
  471. float GetBoneWeight(uint) const;
  472. uint GetTrackIndex(StringHash) const;
  473. uint GetTrackIndex(const String&) const;
  474. void SetBoneWeight(StringHash, float, bool = false);
  475. void SetBoneWeight(const String&, float, bool = false);
  476. void SetBoneWeight(uint, float, bool = false);
  477. // Properties:
  478. /* readonly */
  479. Animation animation;
  480. AnimationBlendMode blendMode;
  481. Array<float> boneWeights;
  482. /* readonly */
  483. bool enabled;
  484. uint8 layer;
  485. /* readonly */
  486. float length;
  487. bool looped;
  488. /* readonly */
  489. AnimatedModel model;
  490. /* readonly */
  491. Node node;
  492. /* readonly */
  493. int refs;
  494. Bone startBone;
  495. float time;
  496. /* readonly */
  497. int weakRefs;
  498. float weight;
  499. };
  500. class AnimationTrack
  501. {
  502. // Methods:
  503. void AddKeyFrame(const AnimationKeyFrame&);
  504. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  505. void RemoveAllKeyFrames();
  506. void RemoveKeyFrame(uint);
  507. // Properties:
  508. uint8 channelMask;
  509. Array<AnimationKeyFrame> keyFrames;
  510. String name;
  511. StringHash nameHash;
  512. /* readonly */
  513. uint numKeyFrames;
  514. };
  515. class AnimationTriggerPoint
  516. {
  517. // Properties:
  518. Variant data;
  519. float time;
  520. };
  521. template <class T> class Array
  522. {
  523. // Methods:
  524. void Clear();
  525. void Erase(uint);
  526. int Find(const T&) const;
  527. int Find(uint, const T&) const;
  528. int FindByRef(const T&) const;
  529. int FindByRef(uint, const T&) const;
  530. void Insert(uint, const T&);
  531. void Pop();
  532. void Push(const T&);
  533. void Reserve(uint);
  534. void Resize(uint);
  535. void Reverse();
  536. void Sort();
  537. void Sort(uint, uint);
  538. void SortReverse();
  539. void SortReverse(uint, uint);
  540. // Properties:
  541. /* readonly */
  542. bool empty;
  543. uint length;
  544. };
  545. class AttributeInfo
  546. {
  547. // Properties:
  548. Variant defaultValue;
  549. /* readonly */
  550. Array<String> enumNames;
  551. uint mode;
  552. String name;
  553. VariantType type;
  554. };
  555. class Audio
  556. {
  557. // Methods:
  558. bool HasMasterGain(const String&) const;
  559. bool HasSubscribedToEvent(Object, const String&);
  560. bool HasSubscribedToEvent(const String&);
  561. bool IsSoundTypePaused(const String&);
  562. void PauseSoundType(const String&);
  563. bool Play();
  564. void ResumeAll();
  565. void ResumeSoundType(const String&);
  566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  567. void SetMode(int, int, bool, bool = true);
  568. void Stop();
  569. // Properties:
  570. /* readonly */
  571. String category;
  572. /* readonly */
  573. bool initialized;
  574. /* readonly */
  575. bool interpolation;
  576. SoundListener listener;
  577. Array<float> masterGain;
  578. /* readonly */
  579. int mixRate;
  580. /* readonly */
  581. bool playing;
  582. /* readonly */
  583. int refs;
  584. /* readonly */
  585. uint sampleSize;
  586. /* readonly */
  587. bool stereo;
  588. /* readonly */
  589. StringHash type;
  590. /* readonly */
  591. String typeName;
  592. /* readonly */
  593. int weakRefs;
  594. };
  595. class BiasParameters
  596. {
  597. // Properties:
  598. float constantBias;
  599. float slopeScaledBias;
  600. };
  601. class Billboard
  602. {
  603. // Properties:
  604. Color color;
  605. Vector3 direction;
  606. bool enabled;
  607. Vector3 position;
  608. float rotation;
  609. Vector2 size;
  610. Rect uv;
  611. };
  612. class BillboardSet
  613. {
  614. // Methods:
  615. void ApplyAttributes();
  616. void Commit();
  617. void DrawDebugGeometry(DebugRenderer, bool);
  618. Variant GetAttribute(const String&) const;
  619. ValueAnimation GetAttributeAnimation(const String&) const;
  620. float GetAttributeAnimationSpeed(const String&) const;
  621. float GetAttributeAnimationTime(const String&) const;
  622. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  623. Variant GetAttributeDefault(const String&) const;
  624. bool GetInterceptNetworkUpdate(const String&) const;
  625. bool HasSubscribedToEvent(Object, const String&);
  626. bool HasSubscribedToEvent(const String&);
  627. bool IsInView(Camera) const;
  628. bool Load(File, bool = false);
  629. bool Load(VectorBuffer&, bool = false);
  630. bool LoadJSON(const JSONValue&, bool = false);
  631. bool LoadXML(const XMLElement&, bool = false);
  632. void MarkNetworkUpdate() const;
  633. void Remove();
  634. void RemoveAttributeAnimation(const String&);
  635. void RemoveInstanceDefault();
  636. void RemoveObjectAnimation();
  637. void ResetToDefault();
  638. bool Save(File) const;
  639. bool Save(VectorBuffer&) const;
  640. bool SaveJSON(JSONValue&) const;
  641. bool SaveXML(XMLElement&) const;
  642. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  643. void SetAnimationTime(float);
  644. bool SetAttribute(const String&, const Variant&);
  645. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  646. void SetAttributeAnimationSpeed(const String&, float);
  647. void SetAttributeAnimationTime(const String&, float);
  648. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  649. void SetInterceptNetworkUpdate(const String&, bool);
  650. // Properties:
  651. bool animationEnabled;
  652. float animationLodBias;
  653. /* readonly */
  654. Array<Variant> attributeDefaults;
  655. /* readonly */
  656. Array<AttributeInfo> attributeInfos;
  657. Array<Variant> attributes;
  658. /* readonly */
  659. Array<Billboard> billboards;
  660. /* readonly */
  661. BoundingBox boundingBox;
  662. bool castShadows;
  663. /* readonly */
  664. String category;
  665. float drawDistance;
  666. bool enabled;
  667. /* readonly */
  668. bool enabledEffective;
  669. FaceCameraMode faceCameraMode;
  670. /* readonly */
  671. uint id;
  672. /* readonly */
  673. bool inView;
  674. uint lightMask;
  675. float lodBias;
  676. Material material;
  677. uint maxLights;
  678. /* readonly */
  679. Node node;
  680. /* readonly */
  681. uint numAttributes;
  682. uint numBillboards;
  683. ObjectAnimation objectAnimation;
  684. bool occludee;
  685. bool occluder;
  686. /* readonly */
  687. int refs;
  688. bool relative;
  689. bool scaled;
  690. float shadowDistance;
  691. uint shadowMask;
  692. bool sorted;
  693. bool temporary;
  694. /* readonly */
  695. StringHash type;
  696. /* readonly */
  697. String typeName;
  698. uint viewMask;
  699. /* readonly */
  700. int weakRefs;
  701. /* readonly */
  702. BoundingBox worldBoundingBox;
  703. /* readonly */
  704. Zone zone;
  705. uint zoneMask;
  706. };
  707. class Bone
  708. {
  709. // Properties:
  710. bool animated;
  711. BoundingBox boundingBox;
  712. Vector3 initialPosition;
  713. Quaternion initialRotation;
  714. Vector3 initialScale;
  715. String name;
  716. Node node;
  717. float radius;
  718. };
  719. class BorderImage
  720. {
  721. // Methods:
  722. void AddChild(UIElement);
  723. void AddTag(const String&);
  724. void AddTags(const String&, int8 = ';');
  725. void ApplyAttributes();
  726. void BringToFront();
  727. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  728. void DisableLayoutUpdate();
  729. IntVector2 ElementToScreen(const IntVector2&);
  730. void EnableLayoutUpdate();
  731. uint FindChild(UIElement) const;
  732. Variant GetAttribute(const String&) const;
  733. ValueAnimation GetAttributeAnimation(const String&) const;
  734. float GetAttributeAnimationSpeed(const String&) const;
  735. float GetAttributeAnimationTime(const String&) const;
  736. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  737. Variant GetAttributeDefault(const String&) const;
  738. UIElement GetChild(const String&, bool = false) const;
  739. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  740. Array<UIElement> GetChildren(bool = false) const;
  741. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  742. UIElement GetElementEventSender() const;
  743. bool GetInterceptNetworkUpdate(const String&) const;
  744. uint GetNumChildren(bool) const;
  745. bool HasSubscribedToEvent(Object, const String&);
  746. bool HasSubscribedToEvent(const String&);
  747. bool HasTag(const String&) const;
  748. void InsertChild(uint, UIElement);
  749. bool IsInside(IntVector2, bool);
  750. bool IsInsideCombined(IntVector2, bool);
  751. bool Load(File, bool = false);
  752. bool Load(VectorBuffer&, bool = false);
  753. bool LoadChildXML(XMLFile, XMLFile = null);
  754. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  755. bool LoadJSON(const JSONValue&, bool = false);
  756. bool LoadXML(File);
  757. bool LoadXML(VectorBuffer&);
  758. bool LoadXML(XMLFile, XMLFile);
  759. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  760. bool LoadXML(const XMLElement&, bool = false);
  761. void MarkNetworkUpdate() const;
  762. void Remove();
  763. void RemoveAllChildren();
  764. void RemoveAllTags();
  765. void RemoveAttributeAnimation(const String&);
  766. void RemoveChild(UIElement, uint = 0);
  767. void RemoveChild(uint);
  768. void RemoveInstanceDefault();
  769. void RemoveObjectAnimation();
  770. bool RemoveTag(const String&);
  771. void ResetDeepEnabled();
  772. void ResetToDefault();
  773. bool Save(File) const;
  774. bool Save(VectorBuffer&) const;
  775. bool SaveJSON(JSONValue&) const;
  776. bool SaveXML(File, const String& = "\t");
  777. bool SaveXML(VectorBuffer&, const String& = "\t");
  778. bool SaveXML(XMLElement&) const;
  779. IntVector2 ScreenToElement(const IntVector2&);
  780. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  781. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  782. void SetAnimationTime(float);
  783. bool SetAttribute(const String&, const Variant&);
  784. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  785. void SetAttributeAnimationSpeed(const String&, float);
  786. void SetAttributeAnimationTime(const String&, float);
  787. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  788. void SetDeepEnabled(bool);
  789. void SetEnabledRecursive(bool);
  790. void SetFixedHeight(int);
  791. void SetFixedSize(int, int);
  792. void SetFixedWidth(int);
  793. void SetFullImageRect();
  794. void SetHoverOffset(int, int);
  795. void SetInterceptNetworkUpdate(const String&, bool);
  796. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  797. void SetMaxSize(int, int);
  798. void SetMinSize(int, int);
  799. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  800. void SetPosition(int, int);
  801. void SetSize(int, int);
  802. bool SetStyle(const String&, XMLFile = null);
  803. bool SetStyle(const XMLElement&);
  804. bool SetStyleAuto(XMLFile = null);
  805. void UpdateLayout();
  806. const Variant& GetVar(const StringHash&);
  807. // Properties:
  808. bool animationEnabled;
  809. /* readonly */
  810. Array<Variant> attributeDefaults;
  811. /* readonly */
  812. Array<AttributeInfo> attributeInfos;
  813. Array<Variant> attributes;
  814. BlendMode blendMode;
  815. IntRect border;
  816. bool bringToBack;
  817. bool bringToFront;
  818. /* readonly */
  819. String category;
  820. /* readonly */
  821. IntVector2 childOffset;
  822. /* readonly */
  823. Array<UIElement> children;
  824. IntRect clipBorder;
  825. bool clipChildren;
  826. /* writeonly */
  827. Color color;
  828. /* readonly */
  829. bool colorGradient;
  830. Array<Color> colors;
  831. /* readonly */
  832. IntRect combinedScreenRect;
  833. XMLFile defaultStyle;
  834. /* readonly */
  835. float derivedOpacity;
  836. /* readonly */
  837. uint dragButtonCombo;
  838. /* readonly */
  839. int dragButtonCount;
  840. uint dragDropMode;
  841. bool editable;
  842. bool elementEventSender;
  843. bool enabled;
  844. /* readonly */
  845. bool enabledSelf;
  846. /* readonly */
  847. bool fixedHeight;
  848. /* readonly */
  849. bool fixedSize;
  850. /* readonly */
  851. bool fixedWidth;
  852. bool focus;
  853. FocusMode focusMode;
  854. int height;
  855. HorizontalAlignment horizontalAlignment;
  856. IntVector2 hoverOffset;
  857. /* readonly */
  858. bool hovering;
  859. IntRect imageBorder;
  860. IntRect imageRect;
  861. int indent;
  862. int indentSpacing;
  863. /* readonly */
  864. int indentWidth;
  865. bool internal;
  866. IntRect layoutBorder;
  867. Vector2 layoutFlexScale;
  868. LayoutMode layoutMode;
  869. int layoutSpacing;
  870. int maxHeight;
  871. IntVector2 maxSize;
  872. int maxWidth;
  873. int minHeight;
  874. IntVector2 minSize;
  875. int minWidth;
  876. String name;
  877. /* readonly */
  878. uint numAllChildren;
  879. /* readonly */
  880. uint numAttributes;
  881. /* readonly */
  882. uint numChildren;
  883. ObjectAnimation objectAnimation;
  884. float opacity;
  885. UIElement parent;
  886. IntVector2 position;
  887. int priority;
  888. /* readonly */
  889. int refs;
  890. /* readonly */
  891. UIElement root;
  892. /* readonly */
  893. IntVector2 screenPosition;
  894. bool selected;
  895. IntVector2 size;
  896. bool sortChildren;
  897. String style;
  898. /* readonly */
  899. Array<String> tags;
  900. bool temporary;
  901. Texture texture;
  902. bool tiled;
  903. TraversalMode traversalMode;
  904. /* readonly */
  905. StringHash type;
  906. /* readonly */
  907. String typeName;
  908. bool useDerivedOpacity;
  909. /* readonly */
  910. VariantMap vars;
  911. VerticalAlignment verticalAlignment;
  912. bool visible;
  913. /* readonly */
  914. bool visibleEffective;
  915. /* readonly */
  916. int weakRefs;
  917. int width;
  918. };
  919. class BoundingBox
  920. {
  921. // Methods:
  922. void Clear();
  923. void Clip(const BoundingBox&);
  924. void Define(const BoundingBox&);
  925. void Define(const Frustum&);
  926. void Define(const Polyhedron&);
  927. void Define(const Sphere&);
  928. void Define(const Vector3&);
  929. void Define(const Vector3&, const Vector3&);
  930. void Define(float, float);
  931. bool Defined() const;
  932. Intersection IsInside(const BoundingBox&) const;
  933. Intersection IsInside(const Sphere&) const;
  934. Intersection IsInside(const Vector3&) const;
  935. Intersection IsInsideFast(const BoundingBox&) const;
  936. Intersection IsInsideFast(const Sphere&) const;
  937. void Merge(const BoundingBox&);
  938. void Merge(const Frustum&);
  939. void Merge(const Polyhedron&);
  940. void Merge(const Sphere&);
  941. void Merge(const Vector3&);
  942. Rect Projected(const Matrix4&) const;
  943. String ToString() const;
  944. void Transform(const Matrix3&);
  945. void Transform(const Matrix3x4&);
  946. BoundingBox Transformed(const Matrix3&) const;
  947. BoundingBox Transformed(const Matrix3x4&) const;
  948. // Properties:
  949. /* readonly */
  950. Vector3 center;
  951. /* readonly */
  952. Vector3 halfSize;
  953. Vector3 max;
  954. Vector3 min;
  955. /* readonly */
  956. Vector3 size;
  957. };
  958. class Button
  959. {
  960. // Methods:
  961. void AddChild(UIElement);
  962. void AddTag(const String&);
  963. void AddTags(const String&, int8 = ';');
  964. void ApplyAttributes();
  965. void BringToFront();
  966. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  967. void DisableLayoutUpdate();
  968. IntVector2 ElementToScreen(const IntVector2&);
  969. void EnableLayoutUpdate();
  970. uint FindChild(UIElement) const;
  971. Variant GetAttribute(const String&) const;
  972. ValueAnimation GetAttributeAnimation(const String&) const;
  973. float GetAttributeAnimationSpeed(const String&) const;
  974. float GetAttributeAnimationTime(const String&) const;
  975. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  976. Variant GetAttributeDefault(const String&) const;
  977. UIElement GetChild(const String&, bool = false) const;
  978. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  979. Array<UIElement> GetChildren(bool = false) const;
  980. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  981. UIElement GetElementEventSender() const;
  982. bool GetInterceptNetworkUpdate(const String&) const;
  983. uint GetNumChildren(bool) const;
  984. bool HasSubscribedToEvent(Object, const String&);
  985. bool HasSubscribedToEvent(const String&);
  986. bool HasTag(const String&) const;
  987. void InsertChild(uint, UIElement);
  988. bool IsInside(IntVector2, bool);
  989. bool IsInsideCombined(IntVector2, bool);
  990. bool Load(File, bool = false);
  991. bool Load(VectorBuffer&, bool = false);
  992. bool LoadChildXML(XMLFile, XMLFile = null);
  993. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  994. bool LoadJSON(const JSONValue&, bool = false);
  995. bool LoadXML(File);
  996. bool LoadXML(VectorBuffer&);
  997. bool LoadXML(XMLFile, XMLFile);
  998. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  999. bool LoadXML(const XMLElement&, bool = false);
  1000. void MarkNetworkUpdate() const;
  1001. void Remove();
  1002. void RemoveAllChildren();
  1003. void RemoveAllTags();
  1004. void RemoveAttributeAnimation(const String&);
  1005. void RemoveChild(UIElement, uint = 0);
  1006. void RemoveChild(uint);
  1007. void RemoveInstanceDefault();
  1008. void RemoveObjectAnimation();
  1009. bool RemoveTag(const String&);
  1010. void ResetDeepEnabled();
  1011. void ResetToDefault();
  1012. bool Save(File) const;
  1013. bool Save(VectorBuffer&) const;
  1014. bool SaveJSON(JSONValue&) const;
  1015. bool SaveXML(File, const String& = "\t");
  1016. bool SaveXML(VectorBuffer&, const String& = "\t");
  1017. bool SaveXML(XMLElement&) const;
  1018. IntVector2 ScreenToElement(const IntVector2&);
  1019. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1020. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1021. void SetAnimationTime(float);
  1022. bool SetAttribute(const String&, const Variant&);
  1023. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1024. void SetAttributeAnimationSpeed(const String&, float);
  1025. void SetAttributeAnimationTime(const String&, float);
  1026. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1027. void SetDeepEnabled(bool);
  1028. void SetEnabledRecursive(bool);
  1029. void SetFixedHeight(int);
  1030. void SetFixedSize(int, int);
  1031. void SetFixedWidth(int);
  1032. void SetFullImageRect();
  1033. void SetHoverOffset(int, int);
  1034. void SetInterceptNetworkUpdate(const String&, bool);
  1035. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1036. void SetMaxSize(int, int);
  1037. void SetMinSize(int, int);
  1038. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1039. void SetPosition(int, int);
  1040. void SetPressedChildOffset(int, int);
  1041. void SetPressedOffset(int, int);
  1042. void SetRepeat(float, float);
  1043. void SetSize(int, int);
  1044. bool SetStyle(const String&, XMLFile = null);
  1045. bool SetStyle(const XMLElement&);
  1046. bool SetStyleAuto(XMLFile = null);
  1047. void UpdateLayout();
  1048. const Variant& GetVar(const StringHash&);
  1049. // Properties:
  1050. bool animationEnabled;
  1051. /* readonly */
  1052. Array<Variant> attributeDefaults;
  1053. /* readonly */
  1054. Array<AttributeInfo> attributeInfos;
  1055. Array<Variant> attributes;
  1056. BlendMode blendMode;
  1057. IntRect border;
  1058. bool bringToBack;
  1059. bool bringToFront;
  1060. /* readonly */
  1061. String category;
  1062. /* readonly */
  1063. IntVector2 childOffset;
  1064. /* readonly */
  1065. Array<UIElement> children;
  1066. IntRect clipBorder;
  1067. bool clipChildren;
  1068. /* writeonly */
  1069. Color color;
  1070. /* readonly */
  1071. bool colorGradient;
  1072. Array<Color> colors;
  1073. /* readonly */
  1074. IntRect combinedScreenRect;
  1075. XMLFile defaultStyle;
  1076. /* readonly */
  1077. float derivedOpacity;
  1078. /* readonly */
  1079. uint dragButtonCombo;
  1080. /* readonly */
  1081. int dragButtonCount;
  1082. uint dragDropMode;
  1083. bool editable;
  1084. bool elementEventSender;
  1085. bool enabled;
  1086. /* readonly */
  1087. bool enabledSelf;
  1088. /* readonly */
  1089. bool fixedHeight;
  1090. /* readonly */
  1091. bool fixedSize;
  1092. /* readonly */
  1093. bool fixedWidth;
  1094. bool focus;
  1095. FocusMode focusMode;
  1096. int height;
  1097. HorizontalAlignment horizontalAlignment;
  1098. IntVector2 hoverOffset;
  1099. /* readonly */
  1100. bool hovering;
  1101. IntRect imageBorder;
  1102. IntRect imageRect;
  1103. int indent;
  1104. int indentSpacing;
  1105. /* readonly */
  1106. int indentWidth;
  1107. bool internal;
  1108. IntRect layoutBorder;
  1109. Vector2 layoutFlexScale;
  1110. LayoutMode layoutMode;
  1111. int layoutSpacing;
  1112. int maxHeight;
  1113. IntVector2 maxSize;
  1114. int maxWidth;
  1115. int minHeight;
  1116. IntVector2 minSize;
  1117. int minWidth;
  1118. String name;
  1119. /* readonly */
  1120. uint numAllChildren;
  1121. /* readonly */
  1122. uint numAttributes;
  1123. /* readonly */
  1124. uint numChildren;
  1125. ObjectAnimation objectAnimation;
  1126. float opacity;
  1127. UIElement parent;
  1128. IntVector2 position;
  1129. /* readonly */
  1130. bool pressed;
  1131. IntVector2 pressedChildOffset;
  1132. IntVector2 pressedOffset;
  1133. int priority;
  1134. /* readonly */
  1135. int refs;
  1136. float repeatDelay;
  1137. float repeatRate;
  1138. /* readonly */
  1139. UIElement root;
  1140. /* readonly */
  1141. IntVector2 screenPosition;
  1142. bool selected;
  1143. IntVector2 size;
  1144. bool sortChildren;
  1145. String style;
  1146. /* readonly */
  1147. Array<String> tags;
  1148. bool temporary;
  1149. Texture texture;
  1150. bool tiled;
  1151. TraversalMode traversalMode;
  1152. /* readonly */
  1153. StringHash type;
  1154. /* readonly */
  1155. String typeName;
  1156. bool useDerivedOpacity;
  1157. /* readonly */
  1158. VariantMap vars;
  1159. VerticalAlignment verticalAlignment;
  1160. bool visible;
  1161. /* readonly */
  1162. bool visibleEffective;
  1163. /* readonly */
  1164. int weakRefs;
  1165. int width;
  1166. };
  1167. class Camera
  1168. {
  1169. // Methods:
  1170. void ApplyAttributes();
  1171. void DrawDebugGeometry(DebugRenderer, bool);
  1172. Variant GetAttribute(const String&) const;
  1173. ValueAnimation GetAttributeAnimation(const String&) const;
  1174. float GetAttributeAnimationSpeed(const String&) const;
  1175. float GetAttributeAnimationTime(const String&) const;
  1176. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1177. Variant GetAttributeDefault(const String&) const;
  1178. float GetDistance(const Vector3&) const;
  1179. float GetDistanceSquared(const Vector3&) const;
  1180. bool GetInterceptNetworkUpdate(const String&) const;
  1181. Ray GetScreenRay(float, float) const;
  1182. Frustum GetSplitFrustum(float, float) const;
  1183. bool HasSubscribedToEvent(Object, const String&);
  1184. bool HasSubscribedToEvent(const String&);
  1185. bool Load(File, bool = false);
  1186. bool Load(VectorBuffer&, bool = false);
  1187. bool LoadJSON(const JSONValue&, bool = false);
  1188. bool LoadXML(const XMLElement&, bool = false);
  1189. void MarkNetworkUpdate() const;
  1190. void Remove();
  1191. void RemoveAttributeAnimation(const String&);
  1192. void RemoveInstanceDefault();
  1193. void RemoveObjectAnimation();
  1194. void ResetToDefault();
  1195. bool Save(File) const;
  1196. bool Save(VectorBuffer&) const;
  1197. bool SaveJSON(JSONValue&) const;
  1198. bool SaveXML(XMLElement&) const;
  1199. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1200. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1201. void SetAnimationTime(float);
  1202. bool SetAttribute(const String&, const Variant&);
  1203. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1204. void SetAttributeAnimationSpeed(const String&, float);
  1205. void SetAttributeAnimationTime(const String&, float);
  1206. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1207. void SetInterceptNetworkUpdate(const String&, bool);
  1208. void SetOrthoSize(const Vector2&);
  1209. Vector2 WorldToScreenPoint(const Vector3&) const;
  1210. // Properties:
  1211. bool animationEnabled;
  1212. float aspectRatio;
  1213. /* readonly */
  1214. Array<Variant> attributeDefaults;
  1215. /* readonly */
  1216. Array<AttributeInfo> attributeInfos;
  1217. Array<Variant> attributes;
  1218. bool autoAspectRatio;
  1219. /* readonly */
  1220. String category;
  1221. Plane clipPlane;
  1222. /* readonly */
  1223. Matrix3x4 effectiveWorldTransform;
  1224. bool enabled;
  1225. /* readonly */
  1226. bool enabledEffective;
  1227. float farClip;
  1228. FillMode fillMode;
  1229. float fov;
  1230. /* readonly */
  1231. Frustum frustum;
  1232. /* readonly */
  1233. float halfViewSize;
  1234. /* readonly */
  1235. uint id;
  1236. float lodBias;
  1237. float nearClip;
  1238. /* readonly */
  1239. Node node;
  1240. /* readonly */
  1241. uint numAttributes;
  1242. ObjectAnimation objectAnimation;
  1243. float orthoSize;
  1244. bool orthographic;
  1245. /* readonly */
  1246. Matrix4 projection;
  1247. Vector2 projectionOffset;
  1248. Plane reflectionPlane;
  1249. /* readonly */
  1250. int refs;
  1251. bool temporary;
  1252. /* readonly */
  1253. StringHash type;
  1254. /* readonly */
  1255. String typeName;
  1256. bool useClipping;
  1257. bool useReflection;
  1258. /* readonly */
  1259. Matrix3x4 view;
  1260. uint viewMask;
  1261. uint viewOverrideFlags;
  1262. /* readonly */
  1263. Frustum viewSpaceFrustum;
  1264. /* readonly */
  1265. int weakRefs;
  1266. float zoom;
  1267. };
  1268. class CascadeParameters
  1269. {
  1270. // Properties:
  1271. float biasAutoAdjust;
  1272. float fadeStart;
  1273. float split1;
  1274. float split2;
  1275. float split3;
  1276. float split4;
  1277. };
  1278. class CheckBox
  1279. {
  1280. // Methods:
  1281. void AddChild(UIElement);
  1282. void AddTag(const String&);
  1283. void AddTags(const String&, int8 = ';');
  1284. void ApplyAttributes();
  1285. void BringToFront();
  1286. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1287. void DisableLayoutUpdate();
  1288. IntVector2 ElementToScreen(const IntVector2&);
  1289. void EnableLayoutUpdate();
  1290. uint FindChild(UIElement) const;
  1291. Variant GetAttribute(const String&) const;
  1292. ValueAnimation GetAttributeAnimation(const String&) const;
  1293. float GetAttributeAnimationSpeed(const String&) const;
  1294. float GetAttributeAnimationTime(const String&) const;
  1295. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1296. Variant GetAttributeDefault(const String&) const;
  1297. UIElement GetChild(const String&, bool = false) const;
  1298. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1299. Array<UIElement> GetChildren(bool = false) const;
  1300. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1301. UIElement GetElementEventSender() const;
  1302. bool GetInterceptNetworkUpdate(const String&) const;
  1303. uint GetNumChildren(bool) const;
  1304. bool HasSubscribedToEvent(Object, const String&);
  1305. bool HasSubscribedToEvent(const String&);
  1306. bool HasTag(const String&) const;
  1307. void InsertChild(uint, UIElement);
  1308. bool IsInside(IntVector2, bool);
  1309. bool IsInsideCombined(IntVector2, bool);
  1310. bool Load(File, bool = false);
  1311. bool Load(VectorBuffer&, bool = false);
  1312. bool LoadChildXML(XMLFile, XMLFile = null);
  1313. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1314. bool LoadJSON(const JSONValue&, bool = false);
  1315. bool LoadXML(File);
  1316. bool LoadXML(VectorBuffer&);
  1317. bool LoadXML(XMLFile, XMLFile);
  1318. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1319. bool LoadXML(const XMLElement&, bool = false);
  1320. void MarkNetworkUpdate() const;
  1321. void Remove();
  1322. void RemoveAllChildren();
  1323. void RemoveAllTags();
  1324. void RemoveAttributeAnimation(const String&);
  1325. void RemoveChild(UIElement, uint = 0);
  1326. void RemoveChild(uint);
  1327. void RemoveInstanceDefault();
  1328. void RemoveObjectAnimation();
  1329. bool RemoveTag(const String&);
  1330. void ResetDeepEnabled();
  1331. void ResetToDefault();
  1332. bool Save(File) const;
  1333. bool Save(VectorBuffer&) const;
  1334. bool SaveJSON(JSONValue&) const;
  1335. bool SaveXML(File, const String& = "\t");
  1336. bool SaveXML(VectorBuffer&, const String& = "\t");
  1337. bool SaveXML(XMLElement&) const;
  1338. IntVector2 ScreenToElement(const IntVector2&);
  1339. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1340. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1341. void SetAnimationTime(float);
  1342. bool SetAttribute(const String&, const Variant&);
  1343. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1344. void SetAttributeAnimationSpeed(const String&, float);
  1345. void SetAttributeAnimationTime(const String&, float);
  1346. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1347. void SetCheckedOffset(int, int);
  1348. void SetDeepEnabled(bool);
  1349. void SetEnabledRecursive(bool);
  1350. void SetFixedHeight(int);
  1351. void SetFixedSize(int, int);
  1352. void SetFixedWidth(int);
  1353. void SetFullImageRect();
  1354. void SetHoverOffset(int, int);
  1355. void SetInterceptNetworkUpdate(const String&, bool);
  1356. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1357. void SetMaxSize(int, int);
  1358. void SetMinSize(int, int);
  1359. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1360. void SetPosition(int, int);
  1361. void SetSize(int, int);
  1362. bool SetStyle(const String&, XMLFile = null);
  1363. bool SetStyle(const XMLElement&);
  1364. bool SetStyleAuto(XMLFile = null);
  1365. void UpdateLayout();
  1366. const Variant& GetVar(const StringHash&);
  1367. // Properties:
  1368. bool animationEnabled;
  1369. /* readonly */
  1370. Array<Variant> attributeDefaults;
  1371. /* readonly */
  1372. Array<AttributeInfo> attributeInfos;
  1373. Array<Variant> attributes;
  1374. BlendMode blendMode;
  1375. IntRect border;
  1376. bool bringToBack;
  1377. bool bringToFront;
  1378. /* readonly */
  1379. String category;
  1380. bool checked;
  1381. IntVector2 checkedOffset;
  1382. /* readonly */
  1383. IntVector2 childOffset;
  1384. /* readonly */
  1385. Array<UIElement> children;
  1386. IntRect clipBorder;
  1387. bool clipChildren;
  1388. /* writeonly */
  1389. Color color;
  1390. /* readonly */
  1391. bool colorGradient;
  1392. Array<Color> colors;
  1393. /* readonly */
  1394. IntRect combinedScreenRect;
  1395. XMLFile defaultStyle;
  1396. /* readonly */
  1397. float derivedOpacity;
  1398. /* readonly */
  1399. uint dragButtonCombo;
  1400. /* readonly */
  1401. int dragButtonCount;
  1402. uint dragDropMode;
  1403. bool editable;
  1404. bool elementEventSender;
  1405. bool enabled;
  1406. /* readonly */
  1407. bool enabledSelf;
  1408. /* readonly */
  1409. bool fixedHeight;
  1410. /* readonly */
  1411. bool fixedSize;
  1412. /* readonly */
  1413. bool fixedWidth;
  1414. bool focus;
  1415. FocusMode focusMode;
  1416. int height;
  1417. HorizontalAlignment horizontalAlignment;
  1418. IntVector2 hoverOffset;
  1419. /* readonly */
  1420. bool hovering;
  1421. IntRect imageBorder;
  1422. IntRect imageRect;
  1423. int indent;
  1424. int indentSpacing;
  1425. /* readonly */
  1426. int indentWidth;
  1427. bool internal;
  1428. IntRect layoutBorder;
  1429. Vector2 layoutFlexScale;
  1430. LayoutMode layoutMode;
  1431. int layoutSpacing;
  1432. int maxHeight;
  1433. IntVector2 maxSize;
  1434. int maxWidth;
  1435. int minHeight;
  1436. IntVector2 minSize;
  1437. int minWidth;
  1438. String name;
  1439. /* readonly */
  1440. uint numAllChildren;
  1441. /* readonly */
  1442. uint numAttributes;
  1443. /* readonly */
  1444. uint numChildren;
  1445. ObjectAnimation objectAnimation;
  1446. float opacity;
  1447. UIElement parent;
  1448. IntVector2 position;
  1449. int priority;
  1450. /* readonly */
  1451. int refs;
  1452. /* readonly */
  1453. UIElement root;
  1454. /* readonly */
  1455. IntVector2 screenPosition;
  1456. bool selected;
  1457. IntVector2 size;
  1458. bool sortChildren;
  1459. String style;
  1460. /* readonly */
  1461. Array<String> tags;
  1462. bool temporary;
  1463. Texture texture;
  1464. bool tiled;
  1465. TraversalMode traversalMode;
  1466. /* readonly */
  1467. StringHash type;
  1468. /* readonly */
  1469. String typeName;
  1470. bool useDerivedOpacity;
  1471. /* readonly */
  1472. VariantMap vars;
  1473. VerticalAlignment verticalAlignment;
  1474. bool visible;
  1475. /* readonly */
  1476. bool visibleEffective;
  1477. /* readonly */
  1478. int weakRefs;
  1479. int width;
  1480. };
  1481. class CollisionBox2D
  1482. {
  1483. // Methods:
  1484. void ApplyAttributes();
  1485. void DrawDebugGeometry(DebugRenderer, bool);
  1486. Variant GetAttribute(const String&) const;
  1487. ValueAnimation GetAttributeAnimation(const String&) const;
  1488. float GetAttributeAnimationSpeed(const String&) const;
  1489. float GetAttributeAnimationTime(const String&) const;
  1490. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1491. Variant GetAttributeDefault(const String&) const;
  1492. bool GetInterceptNetworkUpdate(const String&) const;
  1493. bool HasSubscribedToEvent(Object, const String&);
  1494. bool HasSubscribedToEvent(const String&);
  1495. bool Load(File, bool = false);
  1496. bool Load(VectorBuffer&, bool = false);
  1497. bool LoadJSON(const JSONValue&, bool = false);
  1498. bool LoadXML(const XMLElement&, bool = false);
  1499. void MarkNetworkUpdate() const;
  1500. void Remove();
  1501. void RemoveAttributeAnimation(const String&);
  1502. void RemoveInstanceDefault();
  1503. void RemoveObjectAnimation();
  1504. void ResetToDefault();
  1505. bool Save(File) const;
  1506. bool Save(VectorBuffer&) const;
  1507. bool SaveJSON(JSONValue&) const;
  1508. bool SaveXML(XMLElement&) const;
  1509. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1510. void SetAnimationTime(float);
  1511. bool SetAttribute(const String&, const Variant&);
  1512. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1513. void SetAttributeAnimationSpeed(const String&, float);
  1514. void SetAttributeAnimationTime(const String&, float);
  1515. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1516. void SetCenter(float, float);
  1517. void SetInterceptNetworkUpdate(const String&, bool);
  1518. void SetSize(float, float);
  1519. // Properties:
  1520. float angle;
  1521. bool animationEnabled;
  1522. /* readonly */
  1523. Array<Variant> attributeDefaults;
  1524. /* readonly */
  1525. Array<AttributeInfo> attributeInfos;
  1526. Array<Variant> attributes;
  1527. /* readonly */
  1528. String category;
  1529. int categoryBits;
  1530. Vector2 center;
  1531. float density;
  1532. bool enabled;
  1533. /* readonly */
  1534. bool enabledEffective;
  1535. float friction;
  1536. int groupIndex;
  1537. /* readonly */
  1538. uint id;
  1539. /* readonly */
  1540. float inertia;
  1541. int maskBits;
  1542. /* readonly */
  1543. float mass;
  1544. /* readonly */
  1545. Vector2 massCenter;
  1546. /* readonly */
  1547. Node node;
  1548. /* readonly */
  1549. uint numAttributes;
  1550. ObjectAnimation objectAnimation;
  1551. /* readonly */
  1552. int refs;
  1553. float restitution;
  1554. Vector2 size;
  1555. bool temporary;
  1556. bool trigger;
  1557. /* readonly */
  1558. StringHash type;
  1559. /* readonly */
  1560. String typeName;
  1561. /* readonly */
  1562. int weakRefs;
  1563. };
  1564. class CollisionChain2D
  1565. {
  1566. // Methods:
  1567. void ApplyAttributes();
  1568. void DrawDebugGeometry(DebugRenderer, bool);
  1569. Variant GetAttribute(const String&) const;
  1570. ValueAnimation GetAttributeAnimation(const String&) const;
  1571. float GetAttributeAnimationSpeed(const String&) const;
  1572. float GetAttributeAnimationTime(const String&) const;
  1573. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1574. Variant GetAttributeDefault(const String&) const;
  1575. bool GetInterceptNetworkUpdate(const String&) const;
  1576. Array<Vector2> GetVertices() const;
  1577. bool HasSubscribedToEvent(Object, const String&);
  1578. bool HasSubscribedToEvent(const String&);
  1579. bool Load(File, bool = false);
  1580. bool Load(VectorBuffer&, bool = false);
  1581. bool LoadJSON(const JSONValue&, bool = false);
  1582. bool LoadXML(const XMLElement&, bool = false);
  1583. void MarkNetworkUpdate() const;
  1584. void Remove();
  1585. void RemoveAttributeAnimation(const String&);
  1586. void RemoveInstanceDefault();
  1587. void RemoveObjectAnimation();
  1588. void ResetToDefault();
  1589. bool Save(File) const;
  1590. bool Save(VectorBuffer&) const;
  1591. bool SaveJSON(JSONValue&) const;
  1592. bool SaveXML(XMLElement&) const;
  1593. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1594. void SetAnimationTime(float);
  1595. bool SetAttribute(const String&, const Variant&);
  1596. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1597. void SetAttributeAnimationSpeed(const String&, float);
  1598. void SetAttributeAnimationTime(const String&, float);
  1599. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1600. void SetInterceptNetworkUpdate(const String&, bool);
  1601. void SetVertex(uint, const Vector2&);
  1602. void SetVertices(Array<Vector2>);
  1603. const Vector2& GetVertex(uint) const;
  1604. // Properties:
  1605. bool animationEnabled;
  1606. /* readonly */
  1607. Array<Variant> attributeDefaults;
  1608. /* readonly */
  1609. Array<AttributeInfo> attributeInfos;
  1610. Array<Variant> attributes;
  1611. /* readonly */
  1612. String category;
  1613. int categoryBits;
  1614. float density;
  1615. bool enabled;
  1616. /* readonly */
  1617. bool enabledEffective;
  1618. float friction;
  1619. int groupIndex;
  1620. /* readonly */
  1621. uint id;
  1622. /* readonly */
  1623. float inertia;
  1624. bool loop;
  1625. int maskBits;
  1626. /* readonly */
  1627. float mass;
  1628. /* readonly */
  1629. Vector2 massCenter;
  1630. /* readonly */
  1631. Node node;
  1632. /* readonly */
  1633. uint numAttributes;
  1634. ObjectAnimation objectAnimation;
  1635. /* readonly */
  1636. int refs;
  1637. float restitution;
  1638. bool temporary;
  1639. bool trigger;
  1640. /* readonly */
  1641. StringHash type;
  1642. /* readonly */
  1643. String typeName;
  1644. uint vertexCount;
  1645. /* readonly */
  1646. int weakRefs;
  1647. };
  1648. class CollisionCircle2D
  1649. {
  1650. // Methods:
  1651. void ApplyAttributes();
  1652. void DrawDebugGeometry(DebugRenderer, bool);
  1653. Variant GetAttribute(const String&) const;
  1654. ValueAnimation GetAttributeAnimation(const String&) const;
  1655. float GetAttributeAnimationSpeed(const String&) const;
  1656. float GetAttributeAnimationTime(const String&) const;
  1657. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1658. Variant GetAttributeDefault(const String&) const;
  1659. bool GetInterceptNetworkUpdate(const String&) const;
  1660. bool HasSubscribedToEvent(Object, const String&);
  1661. bool HasSubscribedToEvent(const String&);
  1662. bool Load(File, bool = false);
  1663. bool Load(VectorBuffer&, bool = false);
  1664. bool LoadJSON(const JSONValue&, bool = false);
  1665. bool LoadXML(const XMLElement&, bool = false);
  1666. void MarkNetworkUpdate() const;
  1667. void Remove();
  1668. void RemoveAttributeAnimation(const String&);
  1669. void RemoveInstanceDefault();
  1670. void RemoveObjectAnimation();
  1671. void ResetToDefault();
  1672. bool Save(File) const;
  1673. bool Save(VectorBuffer&) const;
  1674. bool SaveJSON(JSONValue&) const;
  1675. bool SaveXML(XMLElement&) const;
  1676. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1677. void SetAnimationTime(float);
  1678. bool SetAttribute(const String&, const Variant&);
  1679. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1680. void SetAttributeAnimationSpeed(const String&, float);
  1681. void SetAttributeAnimationTime(const String&, float);
  1682. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1683. void SetCenter(float, float);
  1684. void SetInterceptNetworkUpdate(const String&, bool);
  1685. // Properties:
  1686. bool animationEnabled;
  1687. /* readonly */
  1688. Array<Variant> attributeDefaults;
  1689. /* readonly */
  1690. Array<AttributeInfo> attributeInfos;
  1691. Array<Variant> attributes;
  1692. /* readonly */
  1693. String category;
  1694. int categoryBits;
  1695. Vector2 center;
  1696. float density;
  1697. bool enabled;
  1698. /* readonly */
  1699. bool enabledEffective;
  1700. float friction;
  1701. int groupIndex;
  1702. /* readonly */
  1703. uint id;
  1704. /* readonly */
  1705. float inertia;
  1706. int maskBits;
  1707. /* readonly */
  1708. float mass;
  1709. /* readonly */
  1710. Vector2 massCenter;
  1711. /* readonly */
  1712. Node node;
  1713. /* readonly */
  1714. uint numAttributes;
  1715. ObjectAnimation objectAnimation;
  1716. float radius;
  1717. /* readonly */
  1718. int refs;
  1719. float restitution;
  1720. bool temporary;
  1721. bool trigger;
  1722. /* readonly */
  1723. StringHash type;
  1724. /* readonly */
  1725. String typeName;
  1726. /* readonly */
  1727. int weakRefs;
  1728. };
  1729. class CollisionEdge2D
  1730. {
  1731. // Methods:
  1732. void ApplyAttributes();
  1733. void DrawDebugGeometry(DebugRenderer, bool);
  1734. Variant GetAttribute(const String&) const;
  1735. ValueAnimation GetAttributeAnimation(const String&) const;
  1736. float GetAttributeAnimationSpeed(const String&) const;
  1737. float GetAttributeAnimationTime(const String&) const;
  1738. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1739. Variant GetAttributeDefault(const String&) const;
  1740. bool GetInterceptNetworkUpdate(const String&) const;
  1741. bool HasSubscribedToEvent(Object, const String&);
  1742. bool HasSubscribedToEvent(const String&);
  1743. bool Load(File, bool = false);
  1744. bool Load(VectorBuffer&, bool = false);
  1745. bool LoadJSON(const JSONValue&, bool = false);
  1746. bool LoadXML(const XMLElement&, bool = false);
  1747. void MarkNetworkUpdate() const;
  1748. void Remove();
  1749. void RemoveAttributeAnimation(const String&);
  1750. void RemoveInstanceDefault();
  1751. void RemoveObjectAnimation();
  1752. void ResetToDefault();
  1753. bool Save(File) const;
  1754. bool Save(VectorBuffer&) const;
  1755. bool SaveJSON(JSONValue&) const;
  1756. bool SaveXML(XMLElement&) const;
  1757. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1758. void SetAnimationTime(float);
  1759. bool SetAttribute(const String&, const Variant&);
  1760. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1761. void SetAttributeAnimationSpeed(const String&, float);
  1762. void SetAttributeAnimationTime(const String&, float);
  1763. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1764. void SetInterceptNetworkUpdate(const String&, bool);
  1765. void SetVertices(const Vector2&, const Vector2&);
  1766. // Properties:
  1767. bool animationEnabled;
  1768. /* readonly */
  1769. Array<Variant> attributeDefaults;
  1770. /* readonly */
  1771. Array<AttributeInfo> attributeInfos;
  1772. Array<Variant> attributes;
  1773. /* readonly */
  1774. String category;
  1775. int categoryBits;
  1776. float density;
  1777. bool enabled;
  1778. /* readonly */
  1779. bool enabledEffective;
  1780. float friction;
  1781. int groupIndex;
  1782. /* readonly */
  1783. uint id;
  1784. /* readonly */
  1785. float inertia;
  1786. int maskBits;
  1787. /* readonly */
  1788. float mass;
  1789. /* readonly */
  1790. Vector2 massCenter;
  1791. /* readonly */
  1792. Node node;
  1793. /* readonly */
  1794. uint numAttributes;
  1795. ObjectAnimation objectAnimation;
  1796. /* readonly */
  1797. int refs;
  1798. float restitution;
  1799. bool temporary;
  1800. bool trigger;
  1801. /* readonly */
  1802. StringHash type;
  1803. /* readonly */
  1804. String typeName;
  1805. Vector2 vertex1;
  1806. Vector2 vertex2;
  1807. /* readonly */
  1808. int weakRefs;
  1809. };
  1810. class CollisionPolygon2D
  1811. {
  1812. // Methods:
  1813. void ApplyAttributes();
  1814. void DrawDebugGeometry(DebugRenderer, bool);
  1815. Variant GetAttribute(const String&) const;
  1816. ValueAnimation GetAttributeAnimation(const String&) const;
  1817. float GetAttributeAnimationSpeed(const String&) const;
  1818. float GetAttributeAnimationTime(const String&) const;
  1819. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1820. Variant GetAttributeDefault(const String&) const;
  1821. bool GetInterceptNetworkUpdate(const String&) const;
  1822. Array<Vector2> GetVertices() const;
  1823. bool HasSubscribedToEvent(Object, const String&);
  1824. bool HasSubscribedToEvent(const String&);
  1825. bool Load(File, bool = false);
  1826. bool Load(VectorBuffer&, bool = false);
  1827. bool LoadJSON(const JSONValue&, bool = false);
  1828. bool LoadXML(const XMLElement&, bool = false);
  1829. void MarkNetworkUpdate() const;
  1830. void Remove();
  1831. void RemoveAttributeAnimation(const String&);
  1832. void RemoveInstanceDefault();
  1833. void RemoveObjectAnimation();
  1834. void ResetToDefault();
  1835. bool Save(File) const;
  1836. bool Save(VectorBuffer&) const;
  1837. bool SaveJSON(JSONValue&) const;
  1838. bool SaveXML(XMLElement&) const;
  1839. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1840. void SetAnimationTime(float);
  1841. bool SetAttribute(const String&, const Variant&);
  1842. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1843. void SetAttributeAnimationSpeed(const String&, float);
  1844. void SetAttributeAnimationTime(const String&, float);
  1845. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1846. void SetInterceptNetworkUpdate(const String&, bool);
  1847. void SetVertex(uint, const Vector2&);
  1848. void SetVertices(Array<Vector2>);
  1849. const Vector2& GetVertex(uint) const;
  1850. // Properties:
  1851. bool animationEnabled;
  1852. /* readonly */
  1853. Array<Variant> attributeDefaults;
  1854. /* readonly */
  1855. Array<AttributeInfo> attributeInfos;
  1856. Array<Variant> attributes;
  1857. /* readonly */
  1858. String category;
  1859. int categoryBits;
  1860. float density;
  1861. bool enabled;
  1862. /* readonly */
  1863. bool enabledEffective;
  1864. float friction;
  1865. int groupIndex;
  1866. /* readonly */
  1867. uint id;
  1868. /* readonly */
  1869. float inertia;
  1870. int maskBits;
  1871. /* readonly */
  1872. float mass;
  1873. /* readonly */
  1874. Vector2 massCenter;
  1875. /* readonly */
  1876. Node node;
  1877. /* readonly */
  1878. uint numAttributes;
  1879. ObjectAnimation objectAnimation;
  1880. /* readonly */
  1881. int refs;
  1882. float restitution;
  1883. bool temporary;
  1884. bool trigger;
  1885. /* readonly */
  1886. StringHash type;
  1887. /* readonly */
  1888. String typeName;
  1889. uint vertexCount;
  1890. /* readonly */
  1891. int weakRefs;
  1892. };
  1893. class CollisionShape
  1894. {
  1895. // Methods:
  1896. void ApplyAttributes();
  1897. void DrawDebugGeometry(DebugRenderer, bool);
  1898. Variant GetAttribute(const String&) const;
  1899. ValueAnimation GetAttributeAnimation(const String&) const;
  1900. float GetAttributeAnimationSpeed(const String&) const;
  1901. float GetAttributeAnimationTime(const String&) const;
  1902. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1903. Variant GetAttributeDefault(const String&) const;
  1904. bool GetInterceptNetworkUpdate(const String&) const;
  1905. bool HasSubscribedToEvent(Object, const String&);
  1906. bool HasSubscribedToEvent(const String&);
  1907. bool Load(File, bool = false);
  1908. bool Load(VectorBuffer&, bool = false);
  1909. bool LoadJSON(const JSONValue&, bool = false);
  1910. bool LoadXML(const XMLElement&, bool = false);
  1911. void MarkNetworkUpdate() const;
  1912. void Remove();
  1913. void RemoveAttributeAnimation(const String&);
  1914. void RemoveInstanceDefault();
  1915. void RemoveObjectAnimation();
  1916. void ResetToDefault();
  1917. bool Save(File) const;
  1918. bool Save(VectorBuffer&) const;
  1919. bool SaveJSON(JSONValue&) const;
  1920. bool SaveXML(XMLElement&) const;
  1921. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1922. void SetAnimationTime(float);
  1923. bool SetAttribute(const String&, const Variant&);
  1924. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1925. void SetAttributeAnimationSpeed(const String&, float);
  1926. void SetAttributeAnimationTime(const String&, float);
  1927. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1928. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1929. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1930. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1931. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1932. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1934. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1935. void SetInterceptNetworkUpdate(const String&, bool);
  1936. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1937. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1938. void SetTerrain(uint = 0);
  1939. void SetTransform(const Vector3&, const Quaternion&);
  1940. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1941. // Properties:
  1942. bool animationEnabled;
  1943. /* readonly */
  1944. Array<Variant> attributeDefaults;
  1945. /* readonly */
  1946. Array<AttributeInfo> attributeInfos;
  1947. Array<Variant> attributes;
  1948. /* readonly */
  1949. String category;
  1950. bool enabled;
  1951. /* readonly */
  1952. bool enabledEffective;
  1953. /* readonly */
  1954. uint id;
  1955. uint lodLevel;
  1956. float margin;
  1957. Model model;
  1958. /* readonly */
  1959. Node node;
  1960. /* readonly */
  1961. uint numAttributes;
  1962. ObjectAnimation objectAnimation;
  1963. Vector3 position;
  1964. /* readonly */
  1965. int refs;
  1966. Quaternion rotation;
  1967. ShapeType shapeType;
  1968. Vector3 size;
  1969. bool temporary;
  1970. /* readonly */
  1971. StringHash type;
  1972. /* readonly */
  1973. String typeName;
  1974. /* readonly */
  1975. int weakRefs;
  1976. /* readonly */
  1977. BoundingBox worldBoundingBox;
  1978. };
  1979. class CollisionShape2D
  1980. {
  1981. // Methods:
  1982. void ApplyAttributes();
  1983. void DrawDebugGeometry(DebugRenderer, bool);
  1984. Variant GetAttribute(const String&) const;
  1985. ValueAnimation GetAttributeAnimation(const String&) const;
  1986. float GetAttributeAnimationSpeed(const String&) const;
  1987. float GetAttributeAnimationTime(const String&) const;
  1988. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1989. Variant GetAttributeDefault(const String&) const;
  1990. bool GetInterceptNetworkUpdate(const String&) const;
  1991. bool HasSubscribedToEvent(Object, const String&);
  1992. bool HasSubscribedToEvent(const String&);
  1993. bool Load(File, bool = false);
  1994. bool Load(VectorBuffer&, bool = false);
  1995. bool LoadJSON(const JSONValue&, bool = false);
  1996. bool LoadXML(const XMLElement&, bool = false);
  1997. void MarkNetworkUpdate() const;
  1998. void Remove();
  1999. void RemoveAttributeAnimation(const String&);
  2000. void RemoveInstanceDefault();
  2001. void RemoveObjectAnimation();
  2002. void ResetToDefault();
  2003. bool Save(File) const;
  2004. bool Save(VectorBuffer&) const;
  2005. bool SaveJSON(JSONValue&) const;
  2006. bool SaveXML(XMLElement&) const;
  2007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2008. void SetAnimationTime(float);
  2009. bool SetAttribute(const String&, const Variant&);
  2010. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2011. void SetAttributeAnimationSpeed(const String&, float);
  2012. void SetAttributeAnimationTime(const String&, float);
  2013. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2014. void SetInterceptNetworkUpdate(const String&, bool);
  2015. // Properties:
  2016. bool animationEnabled;
  2017. /* readonly */
  2018. Array<Variant> attributeDefaults;
  2019. /* readonly */
  2020. Array<AttributeInfo> attributeInfos;
  2021. Array<Variant> attributes;
  2022. /* readonly */
  2023. String category;
  2024. int categoryBits;
  2025. float density;
  2026. bool enabled;
  2027. /* readonly */
  2028. bool enabledEffective;
  2029. float friction;
  2030. int groupIndex;
  2031. /* readonly */
  2032. uint id;
  2033. /* readonly */
  2034. float inertia;
  2035. int maskBits;
  2036. /* readonly */
  2037. float mass;
  2038. /* readonly */
  2039. Vector2 massCenter;
  2040. /* readonly */
  2041. Node node;
  2042. /* readonly */
  2043. uint numAttributes;
  2044. ObjectAnimation objectAnimation;
  2045. /* readonly */
  2046. int refs;
  2047. float restitution;
  2048. bool temporary;
  2049. bool trigger;
  2050. /* readonly */
  2051. StringHash type;
  2052. /* readonly */
  2053. String typeName;
  2054. /* readonly */
  2055. int weakRefs;
  2056. };
  2057. class Color
  2058. {
  2059. // Methods:
  2060. Color Abs() const;
  2061. float Average() const;
  2062. float Chroma() const;
  2063. void Clip(bool);
  2064. bool Equals() const;
  2065. void FromHSL(float, float, float, float);
  2066. void FromHSV(float, float, float, float);
  2067. float Hue() const;
  2068. void Invert(bool);
  2069. Color Lerp(const Color&, float) const;
  2070. float Lightness() const;
  2071. float Luma() const;
  2072. float MaxRGB() const;
  2073. float MinRGB() const;
  2074. float Range() const;
  2075. float SaturationHSL() const;
  2076. float SaturationHSV() const;
  2077. float SumRGB() const;
  2078. Vector3 ToHSL() const;
  2079. Vector3 ToHSV() const;
  2080. String ToString() const;
  2081. uint ToUInt() const;
  2082. float Value() const;
  2083. // Properties:
  2084. float a;
  2085. float b;
  2086. /* readonly */
  2087. Array<float> data;
  2088. float g;
  2089. float r;
  2090. /* readonly */
  2091. Vector3 rgb;
  2092. /* readonly */
  2093. Vector4 rgba;
  2094. };
  2095. class ColorFrame
  2096. {
  2097. // Properties:
  2098. Color color;
  2099. float time;
  2100. };
  2101. class Component
  2102. {
  2103. // Methods:
  2104. void ApplyAttributes();
  2105. void DrawDebugGeometry(DebugRenderer, bool);
  2106. Variant GetAttribute(const String&) const;
  2107. ValueAnimation GetAttributeAnimation(const String&) const;
  2108. float GetAttributeAnimationSpeed(const String&) const;
  2109. float GetAttributeAnimationTime(const String&) const;
  2110. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2111. Variant GetAttributeDefault(const String&) const;
  2112. bool GetInterceptNetworkUpdate(const String&) const;
  2113. bool HasSubscribedToEvent(Object, const String&);
  2114. bool HasSubscribedToEvent(const String&);
  2115. bool Load(File, bool = false);
  2116. bool Load(VectorBuffer&, bool = false);
  2117. bool LoadJSON(const JSONValue&, bool = false);
  2118. bool LoadXML(const XMLElement&, bool = false);
  2119. void MarkNetworkUpdate() const;
  2120. void Remove();
  2121. void RemoveAttributeAnimation(const String&);
  2122. void RemoveInstanceDefault();
  2123. void RemoveObjectAnimation();
  2124. void ResetToDefault();
  2125. bool Save(File) const;
  2126. bool Save(VectorBuffer&) const;
  2127. bool SaveJSON(JSONValue&) const;
  2128. bool SaveXML(XMLElement&) const;
  2129. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2130. void SetAnimationTime(float);
  2131. bool SetAttribute(const String&, const Variant&);
  2132. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2133. void SetAttributeAnimationSpeed(const String&, float);
  2134. void SetAttributeAnimationTime(const String&, float);
  2135. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2136. void SetInterceptNetworkUpdate(const String&, bool);
  2137. // Properties:
  2138. bool animationEnabled;
  2139. /* readonly */
  2140. Array<Variant> attributeDefaults;
  2141. /* readonly */
  2142. Array<AttributeInfo> attributeInfos;
  2143. Array<Variant> attributes;
  2144. /* readonly */
  2145. String category;
  2146. bool enabled;
  2147. /* readonly */
  2148. bool enabledEffective;
  2149. /* readonly */
  2150. uint id;
  2151. /* readonly */
  2152. Node node;
  2153. /* readonly */
  2154. uint numAttributes;
  2155. ObjectAnimation objectAnimation;
  2156. /* readonly */
  2157. int refs;
  2158. bool temporary;
  2159. /* readonly */
  2160. StringHash type;
  2161. /* readonly */
  2162. String typeName;
  2163. /* readonly */
  2164. int weakRefs;
  2165. };
  2166. class Connection
  2167. {
  2168. // Methods:
  2169. void Disconnect(int = 0);
  2170. bool HasSubscribedToEvent(Object, const String&);
  2171. bool HasSubscribedToEvent(const String&);
  2172. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2173. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2174. void SendPackageToClient(PackageFile);
  2175. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2176. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2177. String ToString() const;
  2178. // Properties:
  2179. /* readonly */
  2180. String address;
  2181. /* readonly */
  2182. float bytesInPerSec;
  2183. /* readonly */
  2184. float bytesOutPerSec;
  2185. /* readonly */
  2186. String category;
  2187. /* readonly */
  2188. bool client;
  2189. /* readonly */
  2190. bool connectPending;
  2191. /* readonly */
  2192. bool connected;
  2193. Controls controls;
  2194. /* readonly */
  2195. String downloadName;
  2196. /* readonly */
  2197. float downloadProgress;
  2198. VariantMap identity;
  2199. /* readonly */
  2200. float lastHeardTime;
  2201. bool logStatistics;
  2202. /* readonly */
  2203. uint numDownloads;
  2204. /* readonly */
  2205. float packetsInPerSec;
  2206. /* readonly */
  2207. float packetsOutPerSec;
  2208. /* readonly */
  2209. uint16 port;
  2210. Vector3 position;
  2211. /* readonly */
  2212. int refs;
  2213. Quaternion rotation;
  2214. /* readonly */
  2215. float roundTripTime;
  2216. Scene scene;
  2217. /* readonly */
  2218. bool sceneLoaded;
  2219. uint8 timeStamp;
  2220. /* readonly */
  2221. StringHash type;
  2222. /* readonly */
  2223. String typeName;
  2224. /* readonly */
  2225. int weakRefs;
  2226. };
  2227. class Console
  2228. {
  2229. // Methods:
  2230. void CopySelectedRows() const;
  2231. bool HasSubscribedToEvent(Object, const String&);
  2232. bool HasSubscribedToEvent(const String&);
  2233. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2234. void Toggle();
  2235. void UpdateElements();
  2236. // Properties:
  2237. bool autoVisibleOnError;
  2238. /* readonly */
  2239. BorderImage background;
  2240. /* readonly */
  2241. String category;
  2242. /* readonly */
  2243. Button closeButton;
  2244. String commandInterpreter;
  2245. XMLFile defaultStyle;
  2246. bool focusOnShow;
  2247. /* readonly */
  2248. uint historyPosition;
  2249. /* readonly */
  2250. Array<String> historyRow;
  2251. /* readonly */
  2252. LineEdit lineEdit;
  2253. uint numBufferedRows;
  2254. uint numHistoryRows;
  2255. uint numRows;
  2256. /* readonly */
  2257. int refs;
  2258. /* readonly */
  2259. StringHash type;
  2260. /* readonly */
  2261. String typeName;
  2262. bool visible;
  2263. /* readonly */
  2264. int weakRefs;
  2265. };
  2266. class Constraint
  2267. {
  2268. // Methods:
  2269. void ApplyAttributes();
  2270. void DrawDebugGeometry(DebugRenderer, bool);
  2271. Variant GetAttribute(const String&) const;
  2272. ValueAnimation GetAttributeAnimation(const String&) const;
  2273. float GetAttributeAnimationSpeed(const String&) const;
  2274. float GetAttributeAnimationTime(const String&) const;
  2275. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2276. Variant GetAttributeDefault(const String&) const;
  2277. bool GetInterceptNetworkUpdate(const String&) const;
  2278. bool HasSubscribedToEvent(Object, const String&);
  2279. bool HasSubscribedToEvent(const String&);
  2280. bool Load(File, bool = false);
  2281. bool Load(VectorBuffer&, bool = false);
  2282. bool LoadJSON(const JSONValue&, bool = false);
  2283. bool LoadXML(const XMLElement&, bool = false);
  2284. void MarkNetworkUpdate() const;
  2285. void Remove();
  2286. void RemoveAttributeAnimation(const String&);
  2287. void RemoveInstanceDefault();
  2288. void RemoveObjectAnimation();
  2289. void ResetToDefault();
  2290. bool Save(File) const;
  2291. bool Save(VectorBuffer&) const;
  2292. bool SaveJSON(JSONValue&) const;
  2293. bool SaveXML(XMLElement&) const;
  2294. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2295. void SetAnimationTime(float);
  2296. bool SetAttribute(const String&, const Variant&);
  2297. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2298. void SetAttributeAnimationSpeed(const String&, float);
  2299. void SetAttributeAnimationTime(const String&, float);
  2300. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2301. void SetInterceptNetworkUpdate(const String&, bool);
  2302. // Properties:
  2303. bool animationEnabled;
  2304. /* readonly */
  2305. Array<Variant> attributeDefaults;
  2306. /* readonly */
  2307. Array<AttributeInfo> attributeInfos;
  2308. Array<Variant> attributes;
  2309. /* writeonly */
  2310. Vector3 axis;
  2311. /* readonly */
  2312. String category;
  2313. float cfm;
  2314. ConstraintType constraintType;
  2315. bool disableCollision;
  2316. bool enabled;
  2317. /* readonly */
  2318. bool enabledEffective;
  2319. float erp;
  2320. Vector2 highLimit;
  2321. /* readonly */
  2322. uint id;
  2323. Vector2 lowLimit;
  2324. /* readonly */
  2325. Node node;
  2326. /* readonly */
  2327. uint numAttributes;
  2328. ObjectAnimation objectAnimation;
  2329. /* writeonly */
  2330. Vector3 otherAxis;
  2331. RigidBody otherBody;
  2332. Vector3 otherPosition;
  2333. Quaternion otherRotation;
  2334. /* readonly */
  2335. RigidBody ownBody;
  2336. Vector3 position;
  2337. /* readonly */
  2338. int refs;
  2339. Quaternion rotation;
  2340. bool temporary;
  2341. /* readonly */
  2342. StringHash type;
  2343. /* readonly */
  2344. String typeName;
  2345. /* readonly */
  2346. int weakRefs;
  2347. Vector3 worldPosition;
  2348. };
  2349. class Constraint2D
  2350. {
  2351. // Methods:
  2352. void ApplyAttributes();
  2353. void DrawDebugGeometry(DebugRenderer, bool);
  2354. Variant GetAttribute(const String&) const;
  2355. ValueAnimation GetAttributeAnimation(const String&) const;
  2356. float GetAttributeAnimationSpeed(const String&) const;
  2357. float GetAttributeAnimationTime(const String&) const;
  2358. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2359. Variant GetAttributeDefault(const String&) const;
  2360. bool GetInterceptNetworkUpdate(const String&) const;
  2361. bool HasSubscribedToEvent(Object, const String&);
  2362. bool HasSubscribedToEvent(const String&);
  2363. bool Load(File, bool = false);
  2364. bool Load(VectorBuffer&, bool = false);
  2365. bool LoadJSON(const JSONValue&, bool = false);
  2366. bool LoadXML(const XMLElement&, bool = false);
  2367. void MarkNetworkUpdate() const;
  2368. void Remove();
  2369. void RemoveAttributeAnimation(const String&);
  2370. void RemoveInstanceDefault();
  2371. void RemoveObjectAnimation();
  2372. void ResetToDefault();
  2373. bool Save(File) const;
  2374. bool Save(VectorBuffer&) const;
  2375. bool SaveJSON(JSONValue&) const;
  2376. bool SaveXML(XMLElement&) const;
  2377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2378. void SetAnimationTime(float);
  2379. bool SetAttribute(const String&, const Variant&);
  2380. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2381. void SetAttributeAnimationSpeed(const String&, float);
  2382. void SetAttributeAnimationTime(const String&, float);
  2383. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2384. void SetInterceptNetworkUpdate(const String&, bool);
  2385. // Properties:
  2386. bool animationEnabled;
  2387. /* readonly */
  2388. Array<Variant> attributeDefaults;
  2389. /* readonly */
  2390. Array<AttributeInfo> attributeInfos;
  2391. Array<Variant> attributes;
  2392. /* readonly */
  2393. String category;
  2394. bool collideConnected;
  2395. bool enabled;
  2396. /* readonly */
  2397. bool enabledEffective;
  2398. /* readonly */
  2399. uint id;
  2400. /* readonly */
  2401. Node node;
  2402. /* readonly */
  2403. uint numAttributes;
  2404. ObjectAnimation objectAnimation;
  2405. RigidBody2D otherBody;
  2406. /* readonly */
  2407. RigidBody2D ownerBody;
  2408. /* readonly */
  2409. int refs;
  2410. bool temporary;
  2411. /* readonly */
  2412. StringHash type;
  2413. /* readonly */
  2414. String typeName;
  2415. /* readonly */
  2416. int weakRefs;
  2417. };
  2418. class ConstraintDistance2D
  2419. {
  2420. // Methods:
  2421. void ApplyAttributes();
  2422. void DrawDebugGeometry(DebugRenderer, bool);
  2423. Variant GetAttribute(const String&) const;
  2424. ValueAnimation GetAttributeAnimation(const String&) const;
  2425. float GetAttributeAnimationSpeed(const String&) const;
  2426. float GetAttributeAnimationTime(const String&) const;
  2427. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2428. Variant GetAttributeDefault(const String&) const;
  2429. bool GetInterceptNetworkUpdate(const String&) const;
  2430. bool HasSubscribedToEvent(Object, const String&);
  2431. bool HasSubscribedToEvent(const String&);
  2432. bool Load(File, bool = false);
  2433. bool Load(VectorBuffer&, bool = false);
  2434. bool LoadJSON(const JSONValue&, bool = false);
  2435. bool LoadXML(const XMLElement&, bool = false);
  2436. void MarkNetworkUpdate() const;
  2437. void Remove();
  2438. void RemoveAttributeAnimation(const String&);
  2439. void RemoveInstanceDefault();
  2440. void RemoveObjectAnimation();
  2441. void ResetToDefault();
  2442. bool Save(File) const;
  2443. bool Save(VectorBuffer&) const;
  2444. bool SaveJSON(JSONValue&) const;
  2445. bool SaveXML(XMLElement&) const;
  2446. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2447. void SetAnimationTime(float);
  2448. bool SetAttribute(const String&, const Variant&);
  2449. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2450. void SetAttributeAnimationSpeed(const String&, float);
  2451. void SetAttributeAnimationTime(const String&, float);
  2452. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2453. void SetInterceptNetworkUpdate(const String&, bool);
  2454. // Properties:
  2455. bool animationEnabled;
  2456. /* readonly */
  2457. Array<Variant> attributeDefaults;
  2458. /* readonly */
  2459. Array<AttributeInfo> attributeInfos;
  2460. Array<Variant> attributes;
  2461. /* readonly */
  2462. String category;
  2463. bool collideConnected;
  2464. float dampingRatio;
  2465. bool enabled;
  2466. /* readonly */
  2467. bool enabledEffective;
  2468. float frequencyHz;
  2469. /* readonly */
  2470. uint id;
  2471. /* readonly */
  2472. Node node;
  2473. /* readonly */
  2474. uint numAttributes;
  2475. ObjectAnimation objectAnimation;
  2476. RigidBody2D otherBody;
  2477. Vector2 otherBodyAnchor;
  2478. /* readonly */
  2479. RigidBody2D ownerBody;
  2480. Vector2 ownerBodyAnchor;
  2481. /* readonly */
  2482. int refs;
  2483. bool temporary;
  2484. /* readonly */
  2485. StringHash type;
  2486. /* readonly */
  2487. String typeName;
  2488. /* readonly */
  2489. int weakRefs;
  2490. };
  2491. class ConstraintFriction2D
  2492. {
  2493. // Methods:
  2494. void ApplyAttributes();
  2495. void DrawDebugGeometry(DebugRenderer, bool);
  2496. Variant GetAttribute(const String&) const;
  2497. ValueAnimation GetAttributeAnimation(const String&) const;
  2498. float GetAttributeAnimationSpeed(const String&) const;
  2499. float GetAttributeAnimationTime(const String&) const;
  2500. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2501. Variant GetAttributeDefault(const String&) const;
  2502. bool GetInterceptNetworkUpdate(const String&) const;
  2503. bool HasSubscribedToEvent(Object, const String&);
  2504. bool HasSubscribedToEvent(const String&);
  2505. bool Load(File, bool = false);
  2506. bool Load(VectorBuffer&, bool = false);
  2507. bool LoadJSON(const JSONValue&, bool = false);
  2508. bool LoadXML(const XMLElement&, bool = false);
  2509. void MarkNetworkUpdate() const;
  2510. void Remove();
  2511. void RemoveAttributeAnimation(const String&);
  2512. void RemoveInstanceDefault();
  2513. void RemoveObjectAnimation();
  2514. void ResetToDefault();
  2515. bool Save(File) const;
  2516. bool Save(VectorBuffer&) const;
  2517. bool SaveJSON(JSONValue&) const;
  2518. bool SaveXML(XMLElement&) const;
  2519. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2520. void SetAnimationTime(float);
  2521. bool SetAttribute(const String&, const Variant&);
  2522. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2523. void SetAttributeAnimationSpeed(const String&, float);
  2524. void SetAttributeAnimationTime(const String&, float);
  2525. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2526. void SetInterceptNetworkUpdate(const String&, bool);
  2527. // Properties:
  2528. Vector2 anchor;
  2529. bool animationEnabled;
  2530. /* readonly */
  2531. Array<Variant> attributeDefaults;
  2532. /* readonly */
  2533. Array<AttributeInfo> attributeInfos;
  2534. Array<Variant> attributes;
  2535. /* readonly */
  2536. String category;
  2537. bool collideConnected;
  2538. bool enabled;
  2539. /* readonly */
  2540. bool enabledEffective;
  2541. /* readonly */
  2542. uint id;
  2543. float maxForce;
  2544. float maxTorque;
  2545. /* readonly */
  2546. Node node;
  2547. /* readonly */
  2548. uint numAttributes;
  2549. ObjectAnimation objectAnimation;
  2550. RigidBody2D otherBody;
  2551. /* readonly */
  2552. RigidBody2D ownerBody;
  2553. /* readonly */
  2554. int refs;
  2555. bool temporary;
  2556. /* readonly */
  2557. StringHash type;
  2558. /* readonly */
  2559. String typeName;
  2560. /* readonly */
  2561. int weakRefs;
  2562. };
  2563. class ConstraintGear2D
  2564. {
  2565. // Methods:
  2566. void ApplyAttributes();
  2567. void DrawDebugGeometry(DebugRenderer, bool);
  2568. Variant GetAttribute(const String&) const;
  2569. ValueAnimation GetAttributeAnimation(const String&) const;
  2570. float GetAttributeAnimationSpeed(const String&) const;
  2571. float GetAttributeAnimationTime(const String&) const;
  2572. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2573. Variant GetAttributeDefault(const String&) const;
  2574. bool GetInterceptNetworkUpdate(const String&) const;
  2575. bool HasSubscribedToEvent(Object, const String&);
  2576. bool HasSubscribedToEvent(const String&);
  2577. bool Load(File, bool = false);
  2578. bool Load(VectorBuffer&, bool = false);
  2579. bool LoadJSON(const JSONValue&, bool = false);
  2580. bool LoadXML(const XMLElement&, bool = false);
  2581. void MarkNetworkUpdate() const;
  2582. void Remove();
  2583. void RemoveAttributeAnimation(const String&);
  2584. void RemoveInstanceDefault();
  2585. void RemoveObjectAnimation();
  2586. void ResetToDefault();
  2587. bool Save(File) const;
  2588. bool Save(VectorBuffer&) const;
  2589. bool SaveJSON(JSONValue&) const;
  2590. bool SaveXML(XMLElement&) const;
  2591. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2592. void SetAnimationTime(float);
  2593. bool SetAttribute(const String&, const Variant&);
  2594. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2595. void SetAttributeAnimationSpeed(const String&, float);
  2596. void SetAttributeAnimationTime(const String&, float);
  2597. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2598. void SetInterceptNetworkUpdate(const String&, bool);
  2599. // Properties:
  2600. bool animationEnabled;
  2601. /* readonly */
  2602. Array<Variant> attributeDefaults;
  2603. /* readonly */
  2604. Array<AttributeInfo> attributeInfos;
  2605. Array<Variant> attributes;
  2606. /* readonly */
  2607. String category;
  2608. bool collideConnected;
  2609. bool enabled;
  2610. /* readonly */
  2611. bool enabledEffective;
  2612. /* readonly */
  2613. uint id;
  2614. /* readonly */
  2615. Node node;
  2616. /* readonly */
  2617. uint numAttributes;
  2618. ObjectAnimation objectAnimation;
  2619. RigidBody2D otherBody;
  2620. Constraint2D otherConstraint;
  2621. /* readonly */
  2622. RigidBody2D ownerBody;
  2623. Constraint2D ownerConstraint;
  2624. float ratio;
  2625. /* readonly */
  2626. int refs;
  2627. bool temporary;
  2628. /* readonly */
  2629. StringHash type;
  2630. /* readonly */
  2631. String typeName;
  2632. /* readonly */
  2633. int weakRefs;
  2634. };
  2635. class ConstraintMotor2D
  2636. {
  2637. // Methods:
  2638. void ApplyAttributes();
  2639. void DrawDebugGeometry(DebugRenderer, bool);
  2640. Variant GetAttribute(const String&) const;
  2641. ValueAnimation GetAttributeAnimation(const String&) const;
  2642. float GetAttributeAnimationSpeed(const String&) const;
  2643. float GetAttributeAnimationTime(const String&) const;
  2644. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2645. Variant GetAttributeDefault(const String&) const;
  2646. bool GetInterceptNetworkUpdate(const String&) const;
  2647. bool HasSubscribedToEvent(Object, const String&);
  2648. bool HasSubscribedToEvent(const String&);
  2649. bool Load(File, bool = false);
  2650. bool Load(VectorBuffer&, bool = false);
  2651. bool LoadJSON(const JSONValue&, bool = false);
  2652. bool LoadXML(const XMLElement&, bool = false);
  2653. void MarkNetworkUpdate() const;
  2654. void Remove();
  2655. void RemoveAttributeAnimation(const String&);
  2656. void RemoveInstanceDefault();
  2657. void RemoveObjectAnimation();
  2658. void ResetToDefault();
  2659. bool Save(File) const;
  2660. bool Save(VectorBuffer&) const;
  2661. bool SaveJSON(JSONValue&) const;
  2662. bool SaveXML(XMLElement&) const;
  2663. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2664. void SetAnimationTime(float);
  2665. bool SetAttribute(const String&, const Variant&);
  2666. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2667. void SetAttributeAnimationSpeed(const String&, float);
  2668. void SetAttributeAnimationTime(const String&, float);
  2669. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2670. void SetInterceptNetworkUpdate(const String&, bool);
  2671. // Properties:
  2672. float angularOffset;
  2673. bool animationEnabled;
  2674. /* readonly */
  2675. Array<Variant> attributeDefaults;
  2676. /* readonly */
  2677. Array<AttributeInfo> attributeInfos;
  2678. Array<Variant> attributes;
  2679. /* readonly */
  2680. String category;
  2681. bool collideConnected;
  2682. float correctionFactor;
  2683. bool enabled;
  2684. /* readonly */
  2685. bool enabledEffective;
  2686. /* readonly */
  2687. uint id;
  2688. Vector2 linearOffset;
  2689. float maxForce;
  2690. float maxTorque;
  2691. /* readonly */
  2692. Node node;
  2693. /* readonly */
  2694. uint numAttributes;
  2695. ObjectAnimation objectAnimation;
  2696. RigidBody2D otherBody;
  2697. /* readonly */
  2698. RigidBody2D ownerBody;
  2699. /* readonly */
  2700. int refs;
  2701. bool temporary;
  2702. /* readonly */
  2703. StringHash type;
  2704. /* readonly */
  2705. String typeName;
  2706. /* readonly */
  2707. int weakRefs;
  2708. };
  2709. class ConstraintMouse2D
  2710. {
  2711. // Methods:
  2712. void ApplyAttributes();
  2713. void DrawDebugGeometry(DebugRenderer, bool);
  2714. Variant GetAttribute(const String&) const;
  2715. ValueAnimation GetAttributeAnimation(const String&) const;
  2716. float GetAttributeAnimationSpeed(const String&) const;
  2717. float GetAttributeAnimationTime(const String&) const;
  2718. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2719. Variant GetAttributeDefault(const String&) const;
  2720. bool GetInterceptNetworkUpdate(const String&) const;
  2721. bool HasSubscribedToEvent(Object, const String&);
  2722. bool HasSubscribedToEvent(const String&);
  2723. bool Load(File, bool = false);
  2724. bool Load(VectorBuffer&, bool = false);
  2725. bool LoadJSON(const JSONValue&, bool = false);
  2726. bool LoadXML(const XMLElement&, bool = false);
  2727. void MarkNetworkUpdate() const;
  2728. void Remove();
  2729. void RemoveAttributeAnimation(const String&);
  2730. void RemoveInstanceDefault();
  2731. void RemoveObjectAnimation();
  2732. void ResetToDefault();
  2733. bool Save(File) const;
  2734. bool Save(VectorBuffer&) const;
  2735. bool SaveJSON(JSONValue&) const;
  2736. bool SaveXML(XMLElement&) const;
  2737. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2738. void SetAnimationTime(float);
  2739. bool SetAttribute(const String&, const Variant&);
  2740. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2741. void SetAttributeAnimationSpeed(const String&, float);
  2742. void SetAttributeAnimationTime(const String&, float);
  2743. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2744. void SetInterceptNetworkUpdate(const String&, bool);
  2745. // Properties:
  2746. bool animationEnabled;
  2747. /* readonly */
  2748. Array<Variant> attributeDefaults;
  2749. /* readonly */
  2750. Array<AttributeInfo> attributeInfos;
  2751. Array<Variant> attributes;
  2752. /* readonly */
  2753. String category;
  2754. bool collideConnected;
  2755. float dampingRatio;
  2756. bool enabled;
  2757. /* readonly */
  2758. bool enabledEffective;
  2759. float frequencyHz;
  2760. /* readonly */
  2761. uint id;
  2762. float maxForce;
  2763. /* readonly */
  2764. Node node;
  2765. /* readonly */
  2766. uint numAttributes;
  2767. ObjectAnimation objectAnimation;
  2768. RigidBody2D otherBody;
  2769. /* readonly */
  2770. RigidBody2D ownerBody;
  2771. /* readonly */
  2772. int refs;
  2773. Vector2 target;
  2774. bool temporary;
  2775. /* readonly */
  2776. StringHash type;
  2777. /* readonly */
  2778. String typeName;
  2779. /* readonly */
  2780. int weakRefs;
  2781. };
  2782. class ConstraintPrismatic2D
  2783. {
  2784. // Methods:
  2785. void ApplyAttributes();
  2786. void DrawDebugGeometry(DebugRenderer, bool);
  2787. Variant GetAttribute(const String&) const;
  2788. ValueAnimation GetAttributeAnimation(const String&) const;
  2789. float GetAttributeAnimationSpeed(const String&) const;
  2790. float GetAttributeAnimationTime(const String&) const;
  2791. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2792. Variant GetAttributeDefault(const String&) const;
  2793. bool GetInterceptNetworkUpdate(const String&) const;
  2794. bool HasSubscribedToEvent(Object, const String&);
  2795. bool HasSubscribedToEvent(const String&);
  2796. bool Load(File, bool = false);
  2797. bool Load(VectorBuffer&, bool = false);
  2798. bool LoadJSON(const JSONValue&, bool = false);
  2799. bool LoadXML(const XMLElement&, bool = false);
  2800. void MarkNetworkUpdate() const;
  2801. void Remove();
  2802. void RemoveAttributeAnimation(const String&);
  2803. void RemoveInstanceDefault();
  2804. void RemoveObjectAnimation();
  2805. void ResetToDefault();
  2806. bool Save(File) const;
  2807. bool Save(VectorBuffer&) const;
  2808. bool SaveJSON(JSONValue&) const;
  2809. bool SaveXML(XMLElement&) const;
  2810. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2811. void SetAnimationTime(float);
  2812. bool SetAttribute(const String&, const Variant&);
  2813. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2814. void SetAttributeAnimationSpeed(const String&, float);
  2815. void SetAttributeAnimationTime(const String&, float);
  2816. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2817. void SetInterceptNetworkUpdate(const String&, bool);
  2818. // Properties:
  2819. Vector2 anchor;
  2820. bool animationEnabled;
  2821. /* readonly */
  2822. Array<Variant> attributeDefaults;
  2823. /* readonly */
  2824. Array<AttributeInfo> attributeInfos;
  2825. Array<Variant> attributes;
  2826. Vector2 axis;
  2827. /* readonly */
  2828. String category;
  2829. bool collideConnected;
  2830. bool enableLimit;
  2831. bool enableMotor;
  2832. bool enabled;
  2833. /* readonly */
  2834. bool enabledEffective;
  2835. /* readonly */
  2836. uint id;
  2837. float lowerTranslation;
  2838. float maxMotorForce;
  2839. float motorSpeed;
  2840. /* readonly */
  2841. Node node;
  2842. /* readonly */
  2843. uint numAttributes;
  2844. ObjectAnimation objectAnimation;
  2845. RigidBody2D otherBody;
  2846. /* readonly */
  2847. RigidBody2D ownerBody;
  2848. /* readonly */
  2849. int refs;
  2850. bool temporary;
  2851. /* readonly */
  2852. StringHash type;
  2853. /* readonly */
  2854. String typeName;
  2855. float upperTranslation;
  2856. /* readonly */
  2857. int weakRefs;
  2858. };
  2859. class ConstraintPulley2D
  2860. {
  2861. // Methods:
  2862. void ApplyAttributes();
  2863. void DrawDebugGeometry(DebugRenderer, bool);
  2864. Variant GetAttribute(const String&) const;
  2865. ValueAnimation GetAttributeAnimation(const String&) const;
  2866. float GetAttributeAnimationSpeed(const String&) const;
  2867. float GetAttributeAnimationTime(const String&) const;
  2868. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2869. Variant GetAttributeDefault(const String&) const;
  2870. bool GetInterceptNetworkUpdate(const String&) const;
  2871. bool HasSubscribedToEvent(Object, const String&);
  2872. bool HasSubscribedToEvent(const String&);
  2873. bool Load(File, bool = false);
  2874. bool Load(VectorBuffer&, bool = false);
  2875. bool LoadJSON(const JSONValue&, bool = false);
  2876. bool LoadXML(const XMLElement&, bool = false);
  2877. void MarkNetworkUpdate() const;
  2878. void Remove();
  2879. void RemoveAttributeAnimation(const String&);
  2880. void RemoveInstanceDefault();
  2881. void RemoveObjectAnimation();
  2882. void ResetToDefault();
  2883. bool Save(File) const;
  2884. bool Save(VectorBuffer&) const;
  2885. bool SaveJSON(JSONValue&) const;
  2886. bool SaveXML(XMLElement&) const;
  2887. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2888. void SetAnimationTime(float);
  2889. bool SetAttribute(const String&, const Variant&);
  2890. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2891. void SetAttributeAnimationSpeed(const String&, float);
  2892. void SetAttributeAnimationTime(const String&, float);
  2893. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2894. void SetInterceptNetworkUpdate(const String&, bool);
  2895. // Properties:
  2896. bool animationEnabled;
  2897. /* readonly */
  2898. Array<Variant> attributeDefaults;
  2899. /* readonly */
  2900. Array<AttributeInfo> attributeInfos;
  2901. Array<Variant> attributes;
  2902. /* readonly */
  2903. String category;
  2904. bool collideConnected;
  2905. bool enabled;
  2906. /* readonly */
  2907. bool enabledEffective;
  2908. /* readonly */
  2909. uint id;
  2910. /* readonly */
  2911. Node node;
  2912. /* readonly */
  2913. uint numAttributes;
  2914. ObjectAnimation objectAnimation;
  2915. RigidBody2D otherBody;
  2916. Vector2 otherBodyAnchor;
  2917. Vector2 otherBodyGroundAnchor;
  2918. /* readonly */
  2919. RigidBody2D ownerBody;
  2920. Vector2 ownerBodyAnchor;
  2921. Vector2 ownerBodyGroundAnchor;
  2922. float ratio;
  2923. /* readonly */
  2924. int refs;
  2925. bool temporary;
  2926. /* readonly */
  2927. StringHash type;
  2928. /* readonly */
  2929. String typeName;
  2930. /* readonly */
  2931. int weakRefs;
  2932. };
  2933. class ConstraintRevolute2D
  2934. {
  2935. // Methods:
  2936. void ApplyAttributes();
  2937. void DrawDebugGeometry(DebugRenderer, bool);
  2938. Variant GetAttribute(const String&) const;
  2939. ValueAnimation GetAttributeAnimation(const String&) const;
  2940. float GetAttributeAnimationSpeed(const String&) const;
  2941. float GetAttributeAnimationTime(const String&) const;
  2942. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2943. Variant GetAttributeDefault(const String&) const;
  2944. bool GetInterceptNetworkUpdate(const String&) const;
  2945. bool HasSubscribedToEvent(Object, const String&);
  2946. bool HasSubscribedToEvent(const String&);
  2947. bool Load(File, bool = false);
  2948. bool Load(VectorBuffer&, bool = false);
  2949. bool LoadJSON(const JSONValue&, bool = false);
  2950. bool LoadXML(const XMLElement&, bool = false);
  2951. void MarkNetworkUpdate() const;
  2952. void Remove();
  2953. void RemoveAttributeAnimation(const String&);
  2954. void RemoveInstanceDefault();
  2955. void RemoveObjectAnimation();
  2956. void ResetToDefault();
  2957. bool Save(File) const;
  2958. bool Save(VectorBuffer&) const;
  2959. bool SaveJSON(JSONValue&) const;
  2960. bool SaveXML(XMLElement&) const;
  2961. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2962. void SetAnimationTime(float);
  2963. bool SetAttribute(const String&, const Variant&);
  2964. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2965. void SetAttributeAnimationSpeed(const String&, float);
  2966. void SetAttributeAnimationTime(const String&, float);
  2967. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2968. void SetInterceptNetworkUpdate(const String&, bool);
  2969. // Properties:
  2970. Vector2 anchor;
  2971. bool animationEnabled;
  2972. /* readonly */
  2973. Array<Variant> attributeDefaults;
  2974. /* readonly */
  2975. Array<AttributeInfo> attributeInfos;
  2976. Array<Variant> attributes;
  2977. /* readonly */
  2978. String category;
  2979. bool collideConnected;
  2980. bool enableLimit;
  2981. bool enableMotor;
  2982. bool enabled;
  2983. /* readonly */
  2984. bool enabledEffective;
  2985. /* readonly */
  2986. uint id;
  2987. float lowerAngle;
  2988. float maxMotorTorque;
  2989. float motorSpeed;
  2990. /* readonly */
  2991. Node node;
  2992. /* readonly */
  2993. uint numAttributes;
  2994. ObjectAnimation objectAnimation;
  2995. RigidBody2D otherBody;
  2996. /* readonly */
  2997. RigidBody2D ownerBody;
  2998. /* readonly */
  2999. int refs;
  3000. bool temporary;
  3001. /* readonly */
  3002. StringHash type;
  3003. /* readonly */
  3004. String typeName;
  3005. float upperAngle;
  3006. /* readonly */
  3007. int weakRefs;
  3008. };
  3009. class ConstraintRope2D
  3010. {
  3011. // Methods:
  3012. void ApplyAttributes();
  3013. void DrawDebugGeometry(DebugRenderer, bool);
  3014. Variant GetAttribute(const String&) const;
  3015. ValueAnimation GetAttributeAnimation(const String&) const;
  3016. float GetAttributeAnimationSpeed(const String&) const;
  3017. float GetAttributeAnimationTime(const String&) const;
  3018. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3019. Variant GetAttributeDefault(const String&) const;
  3020. bool GetInterceptNetworkUpdate(const String&) const;
  3021. bool HasSubscribedToEvent(Object, const String&);
  3022. bool HasSubscribedToEvent(const String&);
  3023. bool Load(File, bool = false);
  3024. bool Load(VectorBuffer&, bool = false);
  3025. bool LoadJSON(const JSONValue&, bool = false);
  3026. bool LoadXML(const XMLElement&, bool = false);
  3027. void MarkNetworkUpdate() const;
  3028. void Remove();
  3029. void RemoveAttributeAnimation(const String&);
  3030. void RemoveInstanceDefault();
  3031. void RemoveObjectAnimation();
  3032. void ResetToDefault();
  3033. bool Save(File) const;
  3034. bool Save(VectorBuffer&) const;
  3035. bool SaveJSON(JSONValue&) const;
  3036. bool SaveXML(XMLElement&) const;
  3037. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3038. void SetAnimationTime(float);
  3039. bool SetAttribute(const String&, const Variant&);
  3040. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3041. void SetAttributeAnimationSpeed(const String&, float);
  3042. void SetAttributeAnimationTime(const String&, float);
  3043. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3044. void SetInterceptNetworkUpdate(const String&, bool);
  3045. // Properties:
  3046. bool animationEnabled;
  3047. /* readonly */
  3048. Array<Variant> attributeDefaults;
  3049. /* readonly */
  3050. Array<AttributeInfo> attributeInfos;
  3051. Array<Variant> attributes;
  3052. /* readonly */
  3053. String category;
  3054. bool collideConnected;
  3055. bool enabled;
  3056. /* readonly */
  3057. bool enabledEffective;
  3058. /* readonly */
  3059. uint id;
  3060. float maxLength;
  3061. /* readonly */
  3062. Node node;
  3063. /* readonly */
  3064. uint numAttributes;
  3065. ObjectAnimation objectAnimation;
  3066. RigidBody2D otherBody;
  3067. Vector2 otherBodyAnchor;
  3068. /* readonly */
  3069. RigidBody2D ownerBody;
  3070. Vector2 ownerBodyAnchor;
  3071. /* readonly */
  3072. int refs;
  3073. bool temporary;
  3074. /* readonly */
  3075. StringHash type;
  3076. /* readonly */
  3077. String typeName;
  3078. /* readonly */
  3079. int weakRefs;
  3080. };
  3081. class ConstraintWeld2D
  3082. {
  3083. // Methods:
  3084. void ApplyAttributes();
  3085. void DrawDebugGeometry(DebugRenderer, bool);
  3086. Variant GetAttribute(const String&) const;
  3087. ValueAnimation GetAttributeAnimation(const String&) const;
  3088. float GetAttributeAnimationSpeed(const String&) const;
  3089. float GetAttributeAnimationTime(const String&) const;
  3090. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3091. Variant GetAttributeDefault(const String&) const;
  3092. bool GetInterceptNetworkUpdate(const String&) const;
  3093. bool HasSubscribedToEvent(Object, const String&);
  3094. bool HasSubscribedToEvent(const String&);
  3095. bool Load(File, bool = false);
  3096. bool Load(VectorBuffer&, bool = false);
  3097. bool LoadJSON(const JSONValue&, bool = false);
  3098. bool LoadXML(const XMLElement&, bool = false);
  3099. void MarkNetworkUpdate() const;
  3100. void Remove();
  3101. void RemoveAttributeAnimation(const String&);
  3102. void RemoveInstanceDefault();
  3103. void RemoveObjectAnimation();
  3104. void ResetToDefault();
  3105. bool Save(File) const;
  3106. bool Save(VectorBuffer&) const;
  3107. bool SaveJSON(JSONValue&) const;
  3108. bool SaveXML(XMLElement&) const;
  3109. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3110. void SetAnimationTime(float);
  3111. bool SetAttribute(const String&, const Variant&);
  3112. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3113. void SetAttributeAnimationSpeed(const String&, float);
  3114. void SetAttributeAnimationTime(const String&, float);
  3115. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3116. void SetInterceptNetworkUpdate(const String&, bool);
  3117. // Properties:
  3118. Vector2 anchor;
  3119. bool animationEnabled;
  3120. /* readonly */
  3121. Array<Variant> attributeDefaults;
  3122. /* readonly */
  3123. Array<AttributeInfo> attributeInfos;
  3124. Array<Variant> attributes;
  3125. /* readonly */
  3126. String category;
  3127. bool collideConnected;
  3128. float dampingRatio;
  3129. bool enabled;
  3130. /* readonly */
  3131. bool enabledEffective;
  3132. float frequencyHz;
  3133. /* readonly */
  3134. uint id;
  3135. /* readonly */
  3136. Node node;
  3137. /* readonly */
  3138. uint numAttributes;
  3139. ObjectAnimation objectAnimation;
  3140. RigidBody2D otherBody;
  3141. /* readonly */
  3142. RigidBody2D ownerBody;
  3143. /* readonly */
  3144. int refs;
  3145. bool temporary;
  3146. /* readonly */
  3147. StringHash type;
  3148. /* readonly */
  3149. String typeName;
  3150. /* readonly */
  3151. int weakRefs;
  3152. };
  3153. class ConstraintWheel2D
  3154. {
  3155. // Methods:
  3156. void ApplyAttributes();
  3157. void DrawDebugGeometry(DebugRenderer, bool);
  3158. Variant GetAttribute(const String&) const;
  3159. ValueAnimation GetAttributeAnimation(const String&) const;
  3160. float GetAttributeAnimationSpeed(const String&) const;
  3161. float GetAttributeAnimationTime(const String&) const;
  3162. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3163. Variant GetAttributeDefault(const String&) const;
  3164. bool GetInterceptNetworkUpdate(const String&) const;
  3165. bool HasSubscribedToEvent(Object, const String&);
  3166. bool HasSubscribedToEvent(const String&);
  3167. bool Load(File, bool = false);
  3168. bool Load(VectorBuffer&, bool = false);
  3169. bool LoadJSON(const JSONValue&, bool = false);
  3170. bool LoadXML(const XMLElement&, bool = false);
  3171. void MarkNetworkUpdate() const;
  3172. void Remove();
  3173. void RemoveAttributeAnimation(const String&);
  3174. void RemoveInstanceDefault();
  3175. void RemoveObjectAnimation();
  3176. void ResetToDefault();
  3177. bool Save(File) const;
  3178. bool Save(VectorBuffer&) const;
  3179. bool SaveJSON(JSONValue&) const;
  3180. bool SaveXML(XMLElement&) const;
  3181. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3182. void SetAnimationTime(float);
  3183. bool SetAttribute(const String&, const Variant&);
  3184. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3185. void SetAttributeAnimationSpeed(const String&, float);
  3186. void SetAttributeAnimationTime(const String&, float);
  3187. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3188. void SetInterceptNetworkUpdate(const String&, bool);
  3189. // Properties:
  3190. Vector2 anchor;
  3191. bool animationEnabled;
  3192. /* readonly */
  3193. Array<Variant> attributeDefaults;
  3194. /* readonly */
  3195. Array<AttributeInfo> attributeInfos;
  3196. Array<Variant> attributes;
  3197. Vector2 axis;
  3198. /* readonly */
  3199. String category;
  3200. bool collideConnected;
  3201. float dampingRatio;
  3202. bool enableMotor;
  3203. bool enabled;
  3204. /* readonly */
  3205. bool enabledEffective;
  3206. float frequencyHz;
  3207. /* readonly */
  3208. uint id;
  3209. float maxMotorTorque;
  3210. float motorSpeed;
  3211. /* readonly */
  3212. Node node;
  3213. /* readonly */
  3214. uint numAttributes;
  3215. ObjectAnimation objectAnimation;
  3216. RigidBody2D otherBody;
  3217. /* readonly */
  3218. RigidBody2D ownerBody;
  3219. /* readonly */
  3220. int refs;
  3221. bool temporary;
  3222. /* readonly */
  3223. StringHash type;
  3224. /* readonly */
  3225. String typeName;
  3226. /* readonly */
  3227. int weakRefs;
  3228. };
  3229. class Controls
  3230. {
  3231. // Methods:
  3232. bool IsDown(uint) const;
  3233. bool IsPressed(uint, const Controls&) const;
  3234. void Reset();
  3235. void Set(uint, bool);
  3236. // Properties:
  3237. uint buttons;
  3238. VariantMap extraData;
  3239. float pitch;
  3240. float yaw;
  3241. };
  3242. class CrowdAgent
  3243. {
  3244. // Methods:
  3245. void ApplyAttributes();
  3246. void DrawDebugGeometry(DebugRenderer, bool);
  3247. void DrawDebugGeometry(bool);
  3248. Variant GetAttribute(const String&) const;
  3249. ValueAnimation GetAttributeAnimation(const String&) const;
  3250. float GetAttributeAnimationSpeed(const String&) const;
  3251. float GetAttributeAnimationTime(const String&) const;
  3252. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3253. Variant GetAttributeDefault(const String&) const;
  3254. bool GetInterceptNetworkUpdate(const String&) const;
  3255. bool HasSubscribedToEvent(Object, const String&);
  3256. bool HasSubscribedToEvent(const String&);
  3257. bool Load(File, bool = false);
  3258. bool Load(VectorBuffer&, bool = false);
  3259. bool LoadJSON(const JSONValue&, bool = false);
  3260. bool LoadXML(const XMLElement&, bool = false);
  3261. void MarkNetworkUpdate() const;
  3262. void Remove();
  3263. void RemoveAttributeAnimation(const String&);
  3264. void RemoveInstanceDefault();
  3265. void RemoveObjectAnimation();
  3266. void ResetTarget();
  3267. void ResetToDefault();
  3268. bool Save(File) const;
  3269. bool Save(VectorBuffer&) const;
  3270. bool SaveJSON(JSONValue&) const;
  3271. bool SaveXML(XMLElement&) const;
  3272. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3273. void SetAnimationTime(float);
  3274. bool SetAttribute(const String&, const Variant&);
  3275. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3276. void SetAttributeAnimationSpeed(const String&, float);
  3277. void SetAttributeAnimationTime(const String&, float);
  3278. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3279. void SetInterceptNetworkUpdate(const String&, bool);
  3280. // Properties:
  3281. /* readonly */
  3282. Vector3 actualVelocity;
  3283. /* readonly */
  3284. CrowdAgentState agentState;
  3285. bool animationEnabled;
  3286. /* readonly */
  3287. bool arrived;
  3288. /* readonly */
  3289. Array<Variant> attributeDefaults;
  3290. /* readonly */
  3291. Array<AttributeInfo> attributeInfos;
  3292. Array<Variant> attributes;
  3293. /* readonly */
  3294. String category;
  3295. /* readonly */
  3296. Vector3 desiredVelocity;
  3297. bool enabled;
  3298. /* readonly */
  3299. bool enabledEffective;
  3300. float height;
  3301. /* readonly */
  3302. uint id;
  3303. /* readonly */
  3304. bool inCrowd;
  3305. float maxAccel;
  3306. float maxSpeed;
  3307. NavigationPushiness navigationPushiness;
  3308. NavigationQuality navigationQuality;
  3309. /* readonly */
  3310. Node node;
  3311. /* readonly */
  3312. uint numAttributes;
  3313. ObjectAnimation objectAnimation;
  3314. uint obstacleAvoidanceType;
  3315. /* readonly */
  3316. Vector3 position;
  3317. uint queryFilterType;
  3318. float radius;
  3319. /* readonly */
  3320. int refs;
  3321. /* readonly */
  3322. bool requestedTarget;
  3323. /* readonly */
  3324. CrowdAgentRequestedTarget requestedTargetType;
  3325. Vector3 targetPosition;
  3326. /* readonly */
  3327. CrowdAgentTargetState targetState;
  3328. Vector3 targetVelocity;
  3329. bool temporary;
  3330. /* readonly */
  3331. StringHash type;
  3332. /* readonly */
  3333. String typeName;
  3334. bool updateNodePosition;
  3335. /* readonly */
  3336. int weakRefs;
  3337. };
  3338. class CrowdManager
  3339. {
  3340. // Methods:
  3341. void ApplyAttributes();
  3342. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3343. void DrawDebugGeometry(DebugRenderer, bool);
  3344. void DrawDebugGeometry(bool);
  3345. Vector3 FindNearestPoint(const Vector3&, int);
  3346. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3347. float GetAreaCost(uint, uint);
  3348. Variant GetAttribute(const String&) const;
  3349. ValueAnimation GetAttributeAnimation(const String&) const;
  3350. float GetAttributeAnimationSpeed(const String&) const;
  3351. float GetAttributeAnimationTime(const String&) const;
  3352. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3353. Variant GetAttributeDefault(const String&) const;
  3354. float GetDistanceToWall(const Vector3&, float, int);
  3355. uint16 GetExcludeFlags(uint);
  3356. uint16 GetIncludeFlags(uint);
  3357. bool GetInterceptNetworkUpdate(const String&) const;
  3358. Vector3 GetRandomPoint(int);
  3359. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3360. bool HasSubscribedToEvent(Object, const String&);
  3361. bool HasSubscribedToEvent(const String&);
  3362. bool Load(File, bool = false);
  3363. bool Load(VectorBuffer&, bool = false);
  3364. bool LoadJSON(const JSONValue&, bool = false);
  3365. bool LoadXML(const XMLElement&, bool = false);
  3366. void MarkNetworkUpdate() const;
  3367. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3368. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3369. void Remove();
  3370. void RemoveAttributeAnimation(const String&);
  3371. void RemoveInstanceDefault();
  3372. void RemoveObjectAnimation();
  3373. void ResetCrowdTarget(Node = null);
  3374. void ResetToDefault();
  3375. bool Save(File) const;
  3376. bool Save(VectorBuffer&) const;
  3377. bool SaveJSON(JSONValue&) const;
  3378. bool SaveXML(XMLElement&) const;
  3379. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3380. void SetAnimationTime(float);
  3381. void SetAreaCost(uint, uint, float);
  3382. bool SetAttribute(const String&, const Variant&);
  3383. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3384. void SetAttributeAnimationSpeed(const String&, float);
  3385. void SetAttributeAnimationTime(const String&, float);
  3386. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3387. void SetCrowdTarget(const Vector3&, Node = null);
  3388. void SetCrowdVelocity(const Vector3&, Node = null);
  3389. void SetExcludeFlags(uint, uint16);
  3390. void SetIncludeFlags(uint, uint16);
  3391. void SetInterceptNetworkUpdate(const String&, bool);
  3392. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3393. // Properties:
  3394. bool animationEnabled;
  3395. /* readonly */
  3396. Array<Variant> attributeDefaults;
  3397. /* readonly */
  3398. Array<AttributeInfo> attributeInfos;
  3399. Array<Variant> attributes;
  3400. /* readonly */
  3401. String category;
  3402. bool enabled;
  3403. /* readonly */
  3404. bool enabledEffective;
  3405. /* readonly */
  3406. uint id;
  3407. float maxAgentRadius;
  3408. int maxAgents;
  3409. NavigationMesh navMesh;
  3410. /* readonly */
  3411. Node node;
  3412. /* readonly */
  3413. Array<uint> numAreas;
  3414. /* readonly */
  3415. uint numAttributes;
  3416. /* readonly */
  3417. uint numObstacleAvoidanceTypes;
  3418. /* readonly */
  3419. uint numQueryFilterTypes;
  3420. ObjectAnimation objectAnimation;
  3421. /* readonly */
  3422. int refs;
  3423. bool temporary;
  3424. /* readonly */
  3425. StringHash type;
  3426. /* readonly */
  3427. String typeName;
  3428. /* readonly */
  3429. int weakRefs;
  3430. };
  3431. class CrowdObstacleAvoidanceParams
  3432. {
  3433. // Properties:
  3434. uint8 adaptiveDepth;
  3435. uint8 adaptiveDivs;
  3436. uint8 adaptiveRings;
  3437. uint8 gridSize;
  3438. float horizTime;
  3439. float velBias;
  3440. float weightCurVel;
  3441. float weightDesVel;
  3442. float weightSide;
  3443. float weightToi;
  3444. };
  3445. class Cursor
  3446. {
  3447. // Methods:
  3448. void AddChild(UIElement);
  3449. void AddTag(const String&);
  3450. void AddTags(const String&, int8 = ';');
  3451. void ApplyAttributes();
  3452. void BringToFront();
  3453. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3454. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3455. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3456. void DisableLayoutUpdate();
  3457. IntVector2 ElementToScreen(const IntVector2&);
  3458. void EnableLayoutUpdate();
  3459. uint FindChild(UIElement) const;
  3460. Variant GetAttribute(const String&) const;
  3461. ValueAnimation GetAttributeAnimation(const String&) const;
  3462. float GetAttributeAnimationSpeed(const String&) const;
  3463. float GetAttributeAnimationTime(const String&) const;
  3464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3465. Variant GetAttributeDefault(const String&) const;
  3466. UIElement GetChild(const String&, bool = false) const;
  3467. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3468. Array<UIElement> GetChildren(bool = false) const;
  3469. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3470. UIElement GetElementEventSender() const;
  3471. bool GetInterceptNetworkUpdate(const String&) const;
  3472. uint GetNumChildren(bool) const;
  3473. bool HasSubscribedToEvent(Object, const String&);
  3474. bool HasSubscribedToEvent(const String&);
  3475. bool HasTag(const String&) const;
  3476. void InsertChild(uint, UIElement);
  3477. bool IsInside(IntVector2, bool);
  3478. bool IsInsideCombined(IntVector2, bool);
  3479. bool Load(File, bool = false);
  3480. bool Load(VectorBuffer&, bool = false);
  3481. bool LoadChildXML(XMLFile, XMLFile = null);
  3482. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3483. bool LoadJSON(const JSONValue&, bool = false);
  3484. bool LoadXML(File);
  3485. bool LoadXML(VectorBuffer&);
  3486. bool LoadXML(XMLFile, XMLFile);
  3487. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3488. bool LoadXML(const XMLElement&, bool = false);
  3489. void MarkNetworkUpdate() const;
  3490. void Remove();
  3491. void RemoveAllChildren();
  3492. void RemoveAllTags();
  3493. void RemoveAttributeAnimation(const String&);
  3494. void RemoveChild(UIElement, uint = 0);
  3495. void RemoveChild(uint);
  3496. void RemoveInstanceDefault();
  3497. void RemoveObjectAnimation();
  3498. bool RemoveTag(const String&);
  3499. void ResetDeepEnabled();
  3500. void ResetToDefault();
  3501. bool Save(File) const;
  3502. bool Save(VectorBuffer&) const;
  3503. bool SaveJSON(JSONValue&) const;
  3504. bool SaveXML(File, const String& = "\t");
  3505. bool SaveXML(VectorBuffer&, const String& = "\t");
  3506. bool SaveXML(XMLElement&) const;
  3507. IntVector2 ScreenToElement(const IntVector2&);
  3508. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3509. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3510. void SetAnimationTime(float);
  3511. bool SetAttribute(const String&, const Variant&);
  3512. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3513. void SetAttributeAnimationSpeed(const String&, float);
  3514. void SetAttributeAnimationTime(const String&, float);
  3515. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3516. void SetDeepEnabled(bool);
  3517. void SetEnabledRecursive(bool);
  3518. void SetFixedHeight(int);
  3519. void SetFixedSize(int, int);
  3520. void SetFixedWidth(int);
  3521. void SetFullImageRect();
  3522. void SetHoverOffset(int, int);
  3523. void SetInterceptNetworkUpdate(const String&, bool);
  3524. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3525. void SetMaxSize(int, int);
  3526. void SetMinSize(int, int);
  3527. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3528. void SetPosition(int, int);
  3529. void SetShape(CursorShape);
  3530. void SetShape(const String&);
  3531. void SetSize(int, int);
  3532. bool SetStyle(const String&, XMLFile = null);
  3533. bool SetStyle(const XMLElement&);
  3534. bool SetStyleAuto(XMLFile = null);
  3535. void UpdateLayout();
  3536. const Variant& GetVar(const StringHash&);
  3537. // Properties:
  3538. bool animationEnabled;
  3539. /* readonly */
  3540. Array<Variant> attributeDefaults;
  3541. /* readonly */
  3542. Array<AttributeInfo> attributeInfos;
  3543. Array<Variant> attributes;
  3544. BlendMode blendMode;
  3545. IntRect border;
  3546. bool bringToBack;
  3547. bool bringToFront;
  3548. /* readonly */
  3549. String category;
  3550. /* readonly */
  3551. IntVector2 childOffset;
  3552. /* readonly */
  3553. Array<UIElement> children;
  3554. IntRect clipBorder;
  3555. bool clipChildren;
  3556. /* writeonly */
  3557. Color color;
  3558. /* readonly */
  3559. bool colorGradient;
  3560. Array<Color> colors;
  3561. /* readonly */
  3562. IntRect combinedScreenRect;
  3563. XMLFile defaultStyle;
  3564. /* readonly */
  3565. float derivedOpacity;
  3566. /* readonly */
  3567. uint dragButtonCombo;
  3568. /* readonly */
  3569. int dragButtonCount;
  3570. uint dragDropMode;
  3571. bool editable;
  3572. bool elementEventSender;
  3573. bool enabled;
  3574. /* readonly */
  3575. bool enabledSelf;
  3576. /* readonly */
  3577. bool fixedHeight;
  3578. /* readonly */
  3579. bool fixedSize;
  3580. /* readonly */
  3581. bool fixedWidth;
  3582. bool focus;
  3583. FocusMode focusMode;
  3584. int height;
  3585. HorizontalAlignment horizontalAlignment;
  3586. IntVector2 hoverOffset;
  3587. /* readonly */
  3588. bool hovering;
  3589. IntRect imageBorder;
  3590. IntRect imageRect;
  3591. int indent;
  3592. int indentSpacing;
  3593. /* readonly */
  3594. int indentWidth;
  3595. bool internal;
  3596. IntRect layoutBorder;
  3597. Vector2 layoutFlexScale;
  3598. LayoutMode layoutMode;
  3599. int layoutSpacing;
  3600. int maxHeight;
  3601. IntVector2 maxSize;
  3602. int maxWidth;
  3603. int minHeight;
  3604. IntVector2 minSize;
  3605. int minWidth;
  3606. String name;
  3607. /* readonly */
  3608. uint numAllChildren;
  3609. /* readonly */
  3610. uint numAttributes;
  3611. /* readonly */
  3612. uint numChildren;
  3613. ObjectAnimation objectAnimation;
  3614. float opacity;
  3615. UIElement parent;
  3616. IntVector2 position;
  3617. int priority;
  3618. /* readonly */
  3619. int refs;
  3620. /* readonly */
  3621. UIElement root;
  3622. /* readonly */
  3623. IntVector2 screenPosition;
  3624. bool selected;
  3625. String shape;
  3626. IntVector2 size;
  3627. bool sortChildren;
  3628. String style;
  3629. /* readonly */
  3630. Array<String> tags;
  3631. bool temporary;
  3632. Texture texture;
  3633. bool tiled;
  3634. TraversalMode traversalMode;
  3635. /* readonly */
  3636. StringHash type;
  3637. /* readonly */
  3638. String typeName;
  3639. bool useDerivedOpacity;
  3640. bool useSystemShapes;
  3641. /* readonly */
  3642. VariantMap vars;
  3643. VerticalAlignment verticalAlignment;
  3644. bool visible;
  3645. /* readonly */
  3646. bool visibleEffective;
  3647. /* readonly */
  3648. int weakRefs;
  3649. int width;
  3650. };
  3651. class CustomGeometry
  3652. {
  3653. // Methods:
  3654. void ApplyAttributes();
  3655. void BeginGeometry(uint, PrimitiveType);
  3656. void Clear();
  3657. void Commit();
  3658. void DefineColor(const Color&);
  3659. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3660. void DefineNormal(const Vector3&);
  3661. void DefineTangent(const Vector4&);
  3662. void DefineTexCoord(const Vector2&);
  3663. void DefineVertex(const Vector3&);
  3664. void DrawDebugGeometry(DebugRenderer, bool);
  3665. Variant GetAttribute(const String&) const;
  3666. ValueAnimation GetAttributeAnimation(const String&) const;
  3667. float GetAttributeAnimationSpeed(const String&) const;
  3668. float GetAttributeAnimationTime(const String&) const;
  3669. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3670. Variant GetAttributeDefault(const String&) const;
  3671. bool GetInterceptNetworkUpdate(const String&) const;
  3672. CustomGeometryVertex GetVertex(uint, uint);
  3673. bool HasSubscribedToEvent(Object, const String&);
  3674. bool HasSubscribedToEvent(const String&);
  3675. bool IsInView(Camera) const;
  3676. bool Load(File, bool = false);
  3677. bool Load(VectorBuffer&, bool = false);
  3678. bool LoadJSON(const JSONValue&, bool = false);
  3679. bool LoadXML(const XMLElement&, bool = false);
  3680. void MarkNetworkUpdate() const;
  3681. void Remove();
  3682. void RemoveAttributeAnimation(const String&);
  3683. void RemoveInstanceDefault();
  3684. void RemoveObjectAnimation();
  3685. void ResetToDefault();
  3686. bool Save(File) const;
  3687. bool Save(VectorBuffer&) const;
  3688. bool SaveJSON(JSONValue&) const;
  3689. bool SaveXML(XMLElement&) const;
  3690. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3691. void SetAnimationTime(float);
  3692. bool SetAttribute(const String&, const Variant&);
  3693. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3694. void SetAttributeAnimationSpeed(const String&, float);
  3695. void SetAttributeAnimationTime(const String&, float);
  3696. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3697. void SetInterceptNetworkUpdate(const String&, bool);
  3698. // Properties:
  3699. bool animationEnabled;
  3700. /* readonly */
  3701. Array<Variant> attributeDefaults;
  3702. /* readonly */
  3703. Array<AttributeInfo> attributeInfos;
  3704. Array<Variant> attributes;
  3705. /* readonly */
  3706. BoundingBox boundingBox;
  3707. bool castShadows;
  3708. /* readonly */
  3709. String category;
  3710. float drawDistance;
  3711. bool dynamic;
  3712. bool enabled;
  3713. /* readonly */
  3714. bool enabledEffective;
  3715. /* readonly */
  3716. uint id;
  3717. /* readonly */
  3718. bool inView;
  3719. uint lightMask;
  3720. float lodBias;
  3721. /* writeonly */
  3722. Material material;
  3723. Array<Material> materials;
  3724. uint maxLights;
  3725. /* readonly */
  3726. Node node;
  3727. /* readonly */
  3728. uint numAttributes;
  3729. uint numGeometries;
  3730. /* readonly */
  3731. Array<uint> numVertices;
  3732. ObjectAnimation objectAnimation;
  3733. bool occludee;
  3734. bool occluder;
  3735. /* readonly */
  3736. int refs;
  3737. float shadowDistance;
  3738. uint shadowMask;
  3739. bool temporary;
  3740. /* readonly */
  3741. StringHash type;
  3742. /* readonly */
  3743. String typeName;
  3744. uint viewMask;
  3745. /* readonly */
  3746. int weakRefs;
  3747. /* readonly */
  3748. BoundingBox worldBoundingBox;
  3749. /* readonly */
  3750. Zone zone;
  3751. uint zoneMask;
  3752. };
  3753. class CustomGeometryVertex
  3754. {
  3755. // Properties:
  3756. uint color;
  3757. Vector3 normal;
  3758. Vector3 position;
  3759. Vector4 tangent;
  3760. Vector2 texCoord;
  3761. };
  3762. class Database
  3763. {
  3764. // Methods:
  3765. DbConnection Connect(const String&);
  3766. void Disconnect(DbConnection);
  3767. bool HasSubscribedToEvent(Object, const String&);
  3768. bool HasSubscribedToEvent(const String&);
  3769. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3770. // Properties:
  3771. /* readonly */
  3772. String category;
  3773. uint poolSize;
  3774. /* readonly */
  3775. bool pooling;
  3776. /* readonly */
  3777. int refs;
  3778. /* readonly */
  3779. StringHash type;
  3780. /* readonly */
  3781. String typeName;
  3782. /* readonly */
  3783. int weakRefs;
  3784. };
  3785. class DbConnection
  3786. {
  3787. // Methods:
  3788. DbResult Execute(const String&, bool = false);
  3789. bool HasSubscribedToEvent(Object, const String&);
  3790. bool HasSubscribedToEvent(const String&);
  3791. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3792. // Properties:
  3793. /* readonly */
  3794. String category;
  3795. /* readonly */
  3796. bool connected;
  3797. /* readonly */
  3798. String connectionString;
  3799. /* readonly */
  3800. int refs;
  3801. /* readonly */
  3802. StringHash type;
  3803. /* readonly */
  3804. String typeName;
  3805. /* readonly */
  3806. int weakRefs;
  3807. };
  3808. class DbResult
  3809. {
  3810. // Properties:
  3811. /* readonly */
  3812. Array<String> columns;
  3813. /* readonly */
  3814. int64 numAffectedRows;
  3815. /* readonly */
  3816. uint numColumns;
  3817. /* readonly */
  3818. uint numRows;
  3819. /* readonly */
  3820. Array<Array<Variant>> row;
  3821. };
  3822. class DebugHud
  3823. {
  3824. // Methods:
  3825. void ClearAppStats();
  3826. bool HasSubscribedToEvent(Object, const String&);
  3827. bool HasSubscribedToEvent(const String&);
  3828. void ResetAppStats(const String&);
  3829. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3830. void SetAppStats(const String&, const String&);
  3831. void SetAppStats(const String&, const Variant&);
  3832. void Toggle(uint);
  3833. void ToggleAll();
  3834. void Update();
  3835. // Properties:
  3836. /* readonly */
  3837. String category;
  3838. XMLFile defaultStyle;
  3839. /* readonly */
  3840. Text memoryText;
  3841. uint mode;
  3842. /* readonly */
  3843. Text modeText;
  3844. float profilerInterval;
  3845. uint profilerMaxDepth;
  3846. /* readonly */
  3847. Text profilerText;
  3848. /* readonly */
  3849. int refs;
  3850. /* readonly */
  3851. Text statsText;
  3852. /* readonly */
  3853. StringHash type;
  3854. /* readonly */
  3855. String typeName;
  3856. bool useRendererStats;
  3857. /* readonly */
  3858. int weakRefs;
  3859. };
  3860. class DebugRenderer
  3861. {
  3862. // Methods:
  3863. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3864. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3865. void AddCross(const Vector3&, float, const Color&, bool = true);
  3866. void AddFrustum(const Frustum&, const Color&, bool = true);
  3867. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3868. void AddNode(Node, float = 1.0, bool = true);
  3869. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3870. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3871. void AddSkeleton(Skeleton, const Color&, bool = true);
  3872. void AddSphere(const Sphere&, const Color&, bool = true);
  3873. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3874. void ApplyAttributes();
  3875. void DrawDebugGeometry(DebugRenderer, bool);
  3876. Variant GetAttribute(const String&) const;
  3877. ValueAnimation GetAttributeAnimation(const String&) const;
  3878. float GetAttributeAnimationSpeed(const String&) const;
  3879. float GetAttributeAnimationTime(const String&) const;
  3880. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3881. Variant GetAttributeDefault(const String&) const;
  3882. bool GetInterceptNetworkUpdate(const String&) const;
  3883. bool HasSubscribedToEvent(Object, const String&);
  3884. bool HasSubscribedToEvent(const String&);
  3885. bool Load(File, bool = false);
  3886. bool Load(VectorBuffer&, bool = false);
  3887. bool LoadJSON(const JSONValue&, bool = false);
  3888. bool LoadXML(const XMLElement&, bool = false);
  3889. void MarkNetworkUpdate() const;
  3890. void Remove();
  3891. void RemoveAttributeAnimation(const String&);
  3892. void RemoveInstanceDefault();
  3893. void RemoveObjectAnimation();
  3894. void ResetToDefault();
  3895. bool Save(File) const;
  3896. bool Save(VectorBuffer&) const;
  3897. bool SaveJSON(JSONValue&) const;
  3898. bool SaveXML(XMLElement&) const;
  3899. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3900. void SetAnimationTime(float);
  3901. bool SetAttribute(const String&, const Variant&);
  3902. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3903. void SetAttributeAnimationSpeed(const String&, float);
  3904. void SetAttributeAnimationTime(const String&, float);
  3905. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3906. void SetInterceptNetworkUpdate(const String&, bool);
  3907. // Properties:
  3908. bool animationEnabled;
  3909. /* readonly */
  3910. Array<Variant> attributeDefaults;
  3911. /* readonly */
  3912. Array<AttributeInfo> attributeInfos;
  3913. Array<Variant> attributes;
  3914. /* readonly */
  3915. String category;
  3916. bool enabled;
  3917. /* readonly */
  3918. bool enabledEffective;
  3919. /* readonly */
  3920. uint id;
  3921. /* readonly */
  3922. Node node;
  3923. /* readonly */
  3924. uint numAttributes;
  3925. ObjectAnimation objectAnimation;
  3926. /* readonly */
  3927. int refs;
  3928. bool temporary;
  3929. /* readonly */
  3930. StringHash type;
  3931. /* readonly */
  3932. String typeName;
  3933. /* readonly */
  3934. int weakRefs;
  3935. };
  3936. class DecalSet
  3937. {
  3938. // Methods:
  3939. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3940. void ApplyAttributes();
  3941. void DrawDebugGeometry(DebugRenderer, bool);
  3942. Variant GetAttribute(const String&) const;
  3943. ValueAnimation GetAttributeAnimation(const String&) const;
  3944. float GetAttributeAnimationSpeed(const String&) const;
  3945. float GetAttributeAnimationTime(const String&) const;
  3946. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3947. Variant GetAttributeDefault(const String&) const;
  3948. bool GetInterceptNetworkUpdate(const String&) const;
  3949. bool HasSubscribedToEvent(Object, const String&);
  3950. bool HasSubscribedToEvent(const String&);
  3951. bool IsInView(Camera) const;
  3952. bool Load(File, bool = false);
  3953. bool Load(VectorBuffer&, bool = false);
  3954. bool LoadJSON(const JSONValue&, bool = false);
  3955. bool LoadXML(const XMLElement&, bool = false);
  3956. void MarkNetworkUpdate() const;
  3957. void Remove();
  3958. void RemoveAllDecals();
  3959. void RemoveAttributeAnimation(const String&);
  3960. void RemoveDecals(uint);
  3961. void RemoveInstanceDefault();
  3962. void RemoveObjectAnimation();
  3963. void ResetToDefault();
  3964. bool Save(File) const;
  3965. bool Save(VectorBuffer&) const;
  3966. bool SaveJSON(JSONValue&) const;
  3967. bool SaveXML(XMLElement&) const;
  3968. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3969. void SetAnimationTime(float);
  3970. bool SetAttribute(const String&, const Variant&);
  3971. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3972. void SetAttributeAnimationSpeed(const String&, float);
  3973. void SetAttributeAnimationTime(const String&, float);
  3974. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3975. void SetInterceptNetworkUpdate(const String&, bool);
  3976. // Properties:
  3977. bool animationEnabled;
  3978. /* readonly */
  3979. Array<Variant> attributeDefaults;
  3980. /* readonly */
  3981. Array<AttributeInfo> attributeInfos;
  3982. Array<Variant> attributes;
  3983. /* readonly */
  3984. BoundingBox boundingBox;
  3985. bool castShadows;
  3986. /* readonly */
  3987. String category;
  3988. float drawDistance;
  3989. bool enabled;
  3990. /* readonly */
  3991. bool enabledEffective;
  3992. /* readonly */
  3993. uint id;
  3994. /* readonly */
  3995. bool inView;
  3996. uint lightMask;
  3997. float lodBias;
  3998. Material material;
  3999. uint maxIndices;
  4000. uint maxLights;
  4001. uint maxVertices;
  4002. /* readonly */
  4003. Node node;
  4004. /* readonly */
  4005. uint numAttributes;
  4006. /* readonly */
  4007. uint numDecals;
  4008. /* readonly */
  4009. uint numIndices;
  4010. /* readonly */
  4011. uint numVertices;
  4012. ObjectAnimation objectAnimation;
  4013. bool occludee;
  4014. bool occluder;
  4015. /* readonly */
  4016. int refs;
  4017. float shadowDistance;
  4018. uint shadowMask;
  4019. bool temporary;
  4020. /* readonly */
  4021. StringHash type;
  4022. /* readonly */
  4023. String typeName;
  4024. uint viewMask;
  4025. /* readonly */
  4026. int weakRefs;
  4027. /* readonly */
  4028. BoundingBox worldBoundingBox;
  4029. /* readonly */
  4030. Zone zone;
  4031. uint zoneMask;
  4032. };
  4033. class Deserializer
  4034. {
  4035. // Methods:
  4036. Array<uint8> Read(uint);
  4037. bool ReadBool();
  4038. BoundingBox ReadBoundingBox();
  4039. int8 ReadByte();
  4040. Color ReadColor();
  4041. double ReadDouble();
  4042. String ReadFileID();
  4043. float ReadFloat();
  4044. int ReadInt();
  4045. IntRect ReadIntRect();
  4046. IntVector2 ReadIntVector2();
  4047. String ReadLine();
  4048. Matrix3 ReadMatrix3();
  4049. Matrix3x4 ReadMatrix3x4();
  4050. Matrix4 ReadMatrix4();
  4051. uint ReadNetID();
  4052. Quaternion ReadPackedQuaternion();
  4053. Vector3 ReadPackedVector3(float);
  4054. Quaternion ReadQuaternion();
  4055. int16 ReadShort();
  4056. String ReadString();
  4057. StringHash ReadStringHash();
  4058. uint8 ReadUByte();
  4059. uint ReadUInt();
  4060. uint16 ReadUShort();
  4061. uint ReadVLE();
  4062. Variant ReadVariant();
  4063. VariantMap ReadVariantMap();
  4064. Vector2 ReadVector2();
  4065. Vector3 ReadVector3();
  4066. Vector4 ReadVector4();
  4067. VectorBuffer ReadVectorBuffer(uint);
  4068. uint Seek(uint);
  4069. // Properties:
  4070. /* readonly */
  4071. uint checksum;
  4072. /* readonly */
  4073. bool eof;
  4074. /* readonly */
  4075. String name;
  4076. /* readonly */
  4077. uint position;
  4078. /* readonly */
  4079. uint size;
  4080. };
  4081. class Dictionary
  4082. {
  4083. // Methods:
  4084. void Clear();
  4085. void Erase(const String&);
  4086. bool Exists(const String&) const;
  4087. bool Get(const String&, void*) const;
  4088. bool Get(const String&, double&) const;
  4089. bool Get(const String&, int64&) const;
  4090. void Set(const String&, const void*);
  4091. void Set(const String&, const double&);
  4092. void Set(const String&, const int64&);
  4093. // Properties:
  4094. /* readonly */
  4095. bool empty;
  4096. /* readonly */
  4097. Array<String> keys;
  4098. /* readonly */
  4099. uint length;
  4100. };
  4101. class DictionaryValue
  4102. {
  4103. };
  4104. class Drawable
  4105. {
  4106. // Methods:
  4107. void ApplyAttributes();
  4108. void DrawDebugGeometry(DebugRenderer, bool);
  4109. Variant GetAttribute(const String&) const;
  4110. ValueAnimation GetAttributeAnimation(const String&) const;
  4111. float GetAttributeAnimationSpeed(const String&) const;
  4112. float GetAttributeAnimationTime(const String&) const;
  4113. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4114. Variant GetAttributeDefault(const String&) const;
  4115. bool GetInterceptNetworkUpdate(const String&) const;
  4116. bool HasSubscribedToEvent(Object, const String&);
  4117. bool HasSubscribedToEvent(const String&);
  4118. bool IsInView(Camera) const;
  4119. bool Load(File, bool = false);
  4120. bool Load(VectorBuffer&, bool = false);
  4121. bool LoadJSON(const JSONValue&, bool = false);
  4122. bool LoadXML(const XMLElement&, bool = false);
  4123. void MarkNetworkUpdate() const;
  4124. void Remove();
  4125. void RemoveAttributeAnimation(const String&);
  4126. void RemoveInstanceDefault();
  4127. void RemoveObjectAnimation();
  4128. void ResetToDefault();
  4129. bool Save(File) const;
  4130. bool Save(VectorBuffer&) const;
  4131. bool SaveJSON(JSONValue&) const;
  4132. bool SaveXML(XMLElement&) const;
  4133. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4134. void SetAnimationTime(float);
  4135. bool SetAttribute(const String&, const Variant&);
  4136. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4137. void SetAttributeAnimationSpeed(const String&, float);
  4138. void SetAttributeAnimationTime(const String&, float);
  4139. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4140. void SetInterceptNetworkUpdate(const String&, bool);
  4141. // Properties:
  4142. bool animationEnabled;
  4143. /* readonly */
  4144. Array<Variant> attributeDefaults;
  4145. /* readonly */
  4146. Array<AttributeInfo> attributeInfos;
  4147. Array<Variant> attributes;
  4148. /* readonly */
  4149. BoundingBox boundingBox;
  4150. bool castShadows;
  4151. /* readonly */
  4152. String category;
  4153. float drawDistance;
  4154. bool enabled;
  4155. /* readonly */
  4156. bool enabledEffective;
  4157. /* readonly */
  4158. uint id;
  4159. /* readonly */
  4160. bool inView;
  4161. uint lightMask;
  4162. float lodBias;
  4163. uint maxLights;
  4164. /* readonly */
  4165. Node node;
  4166. /* readonly */
  4167. uint numAttributes;
  4168. ObjectAnimation objectAnimation;
  4169. bool occludee;
  4170. bool occluder;
  4171. /* readonly */
  4172. int refs;
  4173. float shadowDistance;
  4174. uint shadowMask;
  4175. bool temporary;
  4176. /* readonly */
  4177. StringHash type;
  4178. /* readonly */
  4179. String typeName;
  4180. uint viewMask;
  4181. /* readonly */
  4182. int weakRefs;
  4183. /* readonly */
  4184. BoundingBox worldBoundingBox;
  4185. uint zoneMask;
  4186. };
  4187. class Drawable2D
  4188. {
  4189. // Methods:
  4190. void ApplyAttributes();
  4191. void DrawDebugGeometry(DebugRenderer, bool);
  4192. Variant GetAttribute(const String&) const;
  4193. ValueAnimation GetAttributeAnimation(const String&) const;
  4194. float GetAttributeAnimationSpeed(const String&) const;
  4195. float GetAttributeAnimationTime(const String&) const;
  4196. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4197. Variant GetAttributeDefault(const String&) const;
  4198. bool GetInterceptNetworkUpdate(const String&) const;
  4199. bool HasSubscribedToEvent(Object, const String&);
  4200. bool HasSubscribedToEvent(const String&);
  4201. bool IsInView(Camera) const;
  4202. bool Load(File, bool = false);
  4203. bool Load(VectorBuffer&, bool = false);
  4204. bool LoadJSON(const JSONValue&, bool = false);
  4205. bool LoadXML(const XMLElement&, bool = false);
  4206. void MarkNetworkUpdate() const;
  4207. void Remove();
  4208. void RemoveAttributeAnimation(const String&);
  4209. void RemoveInstanceDefault();
  4210. void RemoveObjectAnimation();
  4211. void ResetToDefault();
  4212. bool Save(File) const;
  4213. bool Save(VectorBuffer&) const;
  4214. bool SaveJSON(JSONValue&) const;
  4215. bool SaveXML(XMLElement&) const;
  4216. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4217. void SetAnimationTime(float);
  4218. bool SetAttribute(const String&, const Variant&);
  4219. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4220. void SetAttributeAnimationSpeed(const String&, float);
  4221. void SetAttributeAnimationTime(const String&, float);
  4222. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4223. void SetInterceptNetworkUpdate(const String&, bool);
  4224. // Properties:
  4225. bool animationEnabled;
  4226. /* readonly */
  4227. Array<Variant> attributeDefaults;
  4228. /* readonly */
  4229. Array<AttributeInfo> attributeInfos;
  4230. Array<Variant> attributes;
  4231. /* readonly */
  4232. BoundingBox boundingBox;
  4233. bool castShadows;
  4234. /* readonly */
  4235. String category;
  4236. float drawDistance;
  4237. bool enabled;
  4238. /* readonly */
  4239. bool enabledEffective;
  4240. /* readonly */
  4241. uint id;
  4242. /* readonly */
  4243. bool inView;
  4244. int layer;
  4245. uint lightMask;
  4246. float lodBias;
  4247. uint maxLights;
  4248. /* readonly */
  4249. Node node;
  4250. /* readonly */
  4251. uint numAttributes;
  4252. ObjectAnimation objectAnimation;
  4253. bool occludee;
  4254. bool occluder;
  4255. int orderInLayer;
  4256. /* readonly */
  4257. int refs;
  4258. float shadowDistance;
  4259. uint shadowMask;
  4260. bool temporary;
  4261. /* readonly */
  4262. StringHash type;
  4263. /* readonly */
  4264. String typeName;
  4265. uint viewMask;
  4266. /* readonly */
  4267. int weakRefs;
  4268. /* readonly */
  4269. BoundingBox worldBoundingBox;
  4270. uint zoneMask;
  4271. };
  4272. class DropDownList
  4273. {
  4274. // Methods:
  4275. void AddChild(UIElement);
  4276. void AddItem(UIElement);
  4277. void AddTag(const String&);
  4278. void AddTags(const String&, int8 = ';');
  4279. void ApplyAttributes();
  4280. void BringToFront();
  4281. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4282. void DisableLayoutUpdate();
  4283. IntVector2 ElementToScreen(const IntVector2&);
  4284. void EnableLayoutUpdate();
  4285. uint FindChild(UIElement) const;
  4286. Variant GetAttribute(const String&) const;
  4287. ValueAnimation GetAttributeAnimation(const String&) const;
  4288. float GetAttributeAnimationSpeed(const String&) const;
  4289. float GetAttributeAnimationTime(const String&) const;
  4290. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4291. Variant GetAttributeDefault(const String&) const;
  4292. UIElement GetChild(const String&, bool = false) const;
  4293. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4294. Array<UIElement> GetChildren(bool = false) const;
  4295. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4296. UIElement GetElementEventSender() const;
  4297. bool GetInterceptNetworkUpdate(const String&) const;
  4298. Array<UIElement> GetItems() const;
  4299. uint GetNumChildren(bool) const;
  4300. bool HasSubscribedToEvent(Object, const String&);
  4301. bool HasSubscribedToEvent(const String&);
  4302. bool HasTag(const String&) const;
  4303. void InsertChild(uint, UIElement);
  4304. void InsertItem(uint, UIElement);
  4305. bool IsInside(IntVector2, bool);
  4306. bool IsInsideCombined(IntVector2, bool);
  4307. bool Load(File, bool = false);
  4308. bool Load(VectorBuffer&, bool = false);
  4309. bool LoadChildXML(XMLFile, XMLFile = null);
  4310. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4311. bool LoadJSON(const JSONValue&, bool = false);
  4312. bool LoadXML(File);
  4313. bool LoadXML(VectorBuffer&);
  4314. bool LoadXML(XMLFile, XMLFile);
  4315. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4316. bool LoadXML(const XMLElement&, bool = false);
  4317. void MarkNetworkUpdate() const;
  4318. void Remove();
  4319. void RemoveAllChildren();
  4320. void RemoveAllItems();
  4321. void RemoveAllTags();
  4322. void RemoveAttributeAnimation(const String&);
  4323. void RemoveChild(UIElement, uint = 0);
  4324. void RemoveChild(uint);
  4325. void RemoveInstanceDefault();
  4326. void RemoveItem(UIElement);
  4327. void RemoveItem(uint);
  4328. void RemoveObjectAnimation();
  4329. bool RemoveTag(const String&);
  4330. void ResetDeepEnabled();
  4331. void ResetToDefault();
  4332. bool Save(File) const;
  4333. bool Save(VectorBuffer&) const;
  4334. bool SaveJSON(JSONValue&) const;
  4335. bool SaveXML(File, const String& = "\t");
  4336. bool SaveXML(VectorBuffer&, const String& = "\t");
  4337. bool SaveXML(XMLElement&) const;
  4338. IntVector2 ScreenToElement(const IntVector2&);
  4339. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4340. void SetAccelerator(int, int);
  4341. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4342. void SetAnimationTime(float);
  4343. bool SetAttribute(const String&, const Variant&);
  4344. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4345. void SetAttributeAnimationSpeed(const String&, float);
  4346. void SetAttributeAnimationTime(const String&, float);
  4347. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4348. void SetDeepEnabled(bool);
  4349. void SetEnabledRecursive(bool);
  4350. void SetFixedHeight(int);
  4351. void SetFixedSize(int, int);
  4352. void SetFixedWidth(int);
  4353. void SetFullImageRect();
  4354. void SetHoverOffset(int, int);
  4355. void SetInterceptNetworkUpdate(const String&, bool);
  4356. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4357. void SetMaxSize(int, int);
  4358. void SetMinSize(int, int);
  4359. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4360. void SetPosition(int, int);
  4361. void SetPressedChildOffset(int, int);
  4362. void SetPressedOffset(int, int);
  4363. void SetRepeat(float, float);
  4364. void SetSize(int, int);
  4365. bool SetStyle(const String&, XMLFile = null);
  4366. bool SetStyle(const XMLElement&);
  4367. bool SetStyleAuto(XMLFile = null);
  4368. void UpdateLayout();
  4369. const Variant& GetVar(const StringHash&);
  4370. UIElement getPopup() const;
  4371. // Properties:
  4372. /* readonly */
  4373. int acceleratorKey;
  4374. /* readonly */
  4375. int acceleratorQualifiers;
  4376. bool animationEnabled;
  4377. /* readonly */
  4378. Array<Variant> attributeDefaults;
  4379. /* readonly */
  4380. Array<AttributeInfo> attributeInfos;
  4381. Array<Variant> attributes;
  4382. BlendMode blendMode;
  4383. IntRect border;
  4384. bool bringToBack;
  4385. bool bringToFront;
  4386. /* readonly */
  4387. String category;
  4388. /* readonly */
  4389. IntVector2 childOffset;
  4390. /* readonly */
  4391. Array<UIElement> children;
  4392. IntRect clipBorder;
  4393. bool clipChildren;
  4394. /* writeonly */
  4395. Color color;
  4396. /* readonly */
  4397. bool colorGradient;
  4398. Array<Color> colors;
  4399. /* readonly */
  4400. IntRect combinedScreenRect;
  4401. XMLFile defaultStyle;
  4402. /* readonly */
  4403. float derivedOpacity;
  4404. /* readonly */
  4405. uint dragButtonCombo;
  4406. /* readonly */
  4407. int dragButtonCount;
  4408. uint dragDropMode;
  4409. bool editable;
  4410. bool elementEventSender;
  4411. bool enabled;
  4412. /* readonly */
  4413. bool enabledSelf;
  4414. /* readonly */
  4415. bool fixedHeight;
  4416. /* readonly */
  4417. bool fixedSize;
  4418. /* readonly */
  4419. bool fixedWidth;
  4420. bool focus;
  4421. FocusMode focusMode;
  4422. int height;
  4423. HorizontalAlignment horizontalAlignment;
  4424. IntVector2 hoverOffset;
  4425. /* readonly */
  4426. bool hovering;
  4427. IntRect imageBorder;
  4428. IntRect imageRect;
  4429. int indent;
  4430. int indentSpacing;
  4431. /* readonly */
  4432. int indentWidth;
  4433. bool internal;
  4434. /* readonly */
  4435. Array<UIElement> items;
  4436. IntRect layoutBorder;
  4437. Vector2 layoutFlexScale;
  4438. LayoutMode layoutMode;
  4439. int layoutSpacing;
  4440. /* readonly */
  4441. ListView listView;
  4442. int maxHeight;
  4443. IntVector2 maxSize;
  4444. int maxWidth;
  4445. int minHeight;
  4446. IntVector2 minSize;
  4447. int minWidth;
  4448. String name;
  4449. /* readonly */
  4450. uint numAllChildren;
  4451. /* readonly */
  4452. uint numAttributes;
  4453. /* readonly */
  4454. uint numChildren;
  4455. /* readonly */
  4456. uint numItems;
  4457. ObjectAnimation objectAnimation;
  4458. float opacity;
  4459. UIElement parent;
  4460. /* readonly */
  4461. UIElement placeholder;
  4462. String placeholderText;
  4463. IntVector2 position;
  4464. /* readonly */
  4465. bool pressed;
  4466. IntVector2 pressedChildOffset;
  4467. IntVector2 pressedOffset;
  4468. int priority;
  4469. /* readonly */
  4470. int refs;
  4471. float repeatDelay;
  4472. float repeatRate;
  4473. bool resizePopup;
  4474. /* readonly */
  4475. UIElement root;
  4476. /* readonly */
  4477. IntVector2 screenPosition;
  4478. bool selected;
  4479. /* readonly */
  4480. UIElement selectedItem;
  4481. uint selection;
  4482. bool showPopup;
  4483. IntVector2 size;
  4484. bool sortChildren;
  4485. String style;
  4486. /* readonly */
  4487. Array<String> tags;
  4488. bool temporary;
  4489. Texture texture;
  4490. bool tiled;
  4491. TraversalMode traversalMode;
  4492. /* readonly */
  4493. StringHash type;
  4494. /* readonly */
  4495. String typeName;
  4496. bool useDerivedOpacity;
  4497. /* readonly */
  4498. VariantMap vars;
  4499. VerticalAlignment verticalAlignment;
  4500. bool visible;
  4501. /* readonly */
  4502. bool visibleEffective;
  4503. /* readonly */
  4504. int weakRefs;
  4505. int width;
  4506. };
  4507. class DynamicNavigationMesh
  4508. {
  4509. // Methods:
  4510. void ApplyAttributes();
  4511. bool Build();
  4512. bool Build(const BoundingBox&);
  4513. void DrawDebugGeometry(DebugRenderer, bool);
  4514. void DrawDebugGeometry(bool);
  4515. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4516. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4517. float GetAreaCost(uint) const;
  4518. Variant GetAttribute(const String&) const;
  4519. ValueAnimation GetAttributeAnimation(const String&) const;
  4520. float GetAttributeAnimationSpeed(const String&) const;
  4521. float GetAttributeAnimationTime(const String&) const;
  4522. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4523. Variant GetAttributeDefault(const String&) const;
  4524. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4525. bool GetInterceptNetworkUpdate(const String&) const;
  4526. Vector3 GetRandomPoint();
  4527. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4528. bool HasSubscribedToEvent(Object, const String&);
  4529. bool HasSubscribedToEvent(const String&);
  4530. bool Load(File, bool = false);
  4531. bool Load(VectorBuffer&, bool = false);
  4532. bool LoadJSON(const JSONValue&, bool = false);
  4533. bool LoadXML(const XMLElement&, bool = false);
  4534. void MarkNetworkUpdate() const;
  4535. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4536. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4537. void Remove();
  4538. void RemoveAttributeAnimation(const String&);
  4539. void RemoveInstanceDefault();
  4540. void RemoveObjectAnimation();
  4541. void ResetToDefault();
  4542. bool Save(File) const;
  4543. bool Save(VectorBuffer&) const;
  4544. bool SaveJSON(JSONValue&) const;
  4545. bool SaveXML(XMLElement&) const;
  4546. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4547. void SetAnimationTime(float);
  4548. void SetAreaCost(uint, float);
  4549. bool SetAttribute(const String&, const Variant&);
  4550. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4551. void SetAttributeAnimationSpeed(const String&, float);
  4552. void SetAttributeAnimationTime(const String&, float);
  4553. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4554. void SetInterceptNetworkUpdate(const String&, bool);
  4555. // Properties:
  4556. float agentHeight;
  4557. float agentMaxClimb;
  4558. float agentMaxSlope;
  4559. float agentRadius;
  4560. bool animationEnabled;
  4561. /* readonly */
  4562. Array<Variant> attributeDefaults;
  4563. /* readonly */
  4564. Array<AttributeInfo> attributeInfos;
  4565. Array<Variant> attributes;
  4566. /* readonly */
  4567. BoundingBox boundingBox;
  4568. /* readonly */
  4569. String category;
  4570. float cellHeight;
  4571. float cellSize;
  4572. float detailSampleDistance;
  4573. float detailSampleMaxError;
  4574. bool drawNavAreas;
  4575. bool drawObstacles;
  4576. bool drawOffMeshConnections;
  4577. float edgeMaxError;
  4578. float edgeMaxLength;
  4579. bool enabled;
  4580. /* readonly */
  4581. bool enabledEffective;
  4582. /* readonly */
  4583. uint id;
  4584. /* readonly */
  4585. bool initialized;
  4586. bool maxLayers;
  4587. uint maxObstacles;
  4588. /* readonly */
  4589. Node node;
  4590. /* readonly */
  4591. uint numAttributes;
  4592. /* readonly */
  4593. IntVector2 numTiles;
  4594. ObjectAnimation objectAnimation;
  4595. Vector3 padding;
  4596. NavmeshPartitionType partitionType;
  4597. /* readonly */
  4598. int refs;
  4599. float regionMergeSize;
  4600. float regionMinSize;
  4601. bool temporary;
  4602. int tileSize;
  4603. /* readonly */
  4604. StringHash type;
  4605. /* readonly */
  4606. String typeName;
  4607. /* readonly */
  4608. int weakRefs;
  4609. /* readonly */
  4610. BoundingBox worldBoundingBox;
  4611. };
  4612. class Engine
  4613. {
  4614. // Methods:
  4615. Console CreateConsole();
  4616. DebugHud CreateDebugHud();
  4617. void DumpMemory();
  4618. void DumpProfiler();
  4619. void DumpResources(bool = false);
  4620. void Exit();
  4621. bool HasSubscribedToEvent(Object, const String&);
  4622. bool HasSubscribedToEvent(const String&);
  4623. void RunFrame();
  4624. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4625. // Properties:
  4626. bool autoExit;
  4627. /* readonly */
  4628. String category;
  4629. /* readonly */
  4630. bool exiting;
  4631. /* readonly */
  4632. bool headless;
  4633. /* readonly */
  4634. bool initialized;
  4635. int maxFps;
  4636. int maxInactiveFps;
  4637. int minFps;
  4638. bool pauseMinimized;
  4639. /* readonly */
  4640. int refs;
  4641. int timeStepSmoothing;
  4642. /* readonly */
  4643. StringHash type;
  4644. /* readonly */
  4645. String typeName;
  4646. /* readonly */
  4647. int weakRefs;
  4648. };
  4649. class File
  4650. {
  4651. // Methods:
  4652. void Close();
  4653. bool HasSubscribedToEvent(Object, const String&);
  4654. bool HasSubscribedToEvent(const String&);
  4655. bool Open(const String&, FileMode = FILE_READ);
  4656. Array<uint8> Read(uint);
  4657. bool ReadBool();
  4658. BoundingBox ReadBoundingBox();
  4659. int8 ReadByte();
  4660. Color ReadColor();
  4661. double ReadDouble();
  4662. String ReadFileID();
  4663. float ReadFloat();
  4664. int ReadInt();
  4665. IntRect ReadIntRect();
  4666. IntVector2 ReadIntVector2();
  4667. String ReadLine();
  4668. Matrix3 ReadMatrix3();
  4669. Matrix3x4 ReadMatrix3x4();
  4670. Matrix4 ReadMatrix4();
  4671. uint ReadNetID();
  4672. Quaternion ReadPackedQuaternion();
  4673. Vector3 ReadPackedVector3(float);
  4674. Quaternion ReadQuaternion();
  4675. int16 ReadShort();
  4676. String ReadString();
  4677. StringHash ReadStringHash();
  4678. uint8 ReadUByte();
  4679. uint ReadUInt();
  4680. uint16 ReadUShort();
  4681. uint ReadVLE();
  4682. Variant ReadVariant();
  4683. VariantMap ReadVariantMap();
  4684. Vector2 ReadVector2();
  4685. Vector3 ReadVector3();
  4686. Vector4 ReadVector4();
  4687. VectorBuffer ReadVectorBuffer(uint);
  4688. uint Seek(uint);
  4689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4690. uint Write(Array<uint8>);
  4691. bool WriteBool(bool);
  4692. bool WriteBoundingBox(const BoundingBox&);
  4693. bool WriteByte(int8);
  4694. bool WriteColor(const Color&);
  4695. bool WriteDouble(double);
  4696. bool WriteFileID(const String&);
  4697. bool WriteFloat(float);
  4698. bool WriteInt(int);
  4699. bool WriteIntRect(const IntRect&);
  4700. bool WriteIntVector2(const IntVector2&);
  4701. bool WriteLine(const String&);
  4702. bool WriteMatrix3(const Matrix3&);
  4703. bool WriteMatrix3x4(const Matrix3x4&);
  4704. bool WriteMatrix4(const Matrix4&);
  4705. bool WriteNetID(uint);
  4706. bool WritePackedQuaternion(const Quaternion&);
  4707. bool WritePackedVector3(const Vector3&, float);
  4708. bool WriteQuaternion(const Quaternion&);
  4709. bool WriteShort(int16);
  4710. bool WriteString(const String&);
  4711. bool WriteStringHash(const StringHash&);
  4712. bool WriteUByte(uint8);
  4713. bool WriteUInt(uint);
  4714. bool WriteUShort(uint16);
  4715. bool WriteVLE(uint);
  4716. bool WriteVariant(const Variant&);
  4717. bool WriteVariantMap(const VariantMap&);
  4718. bool WriteVector2(const Vector2&);
  4719. bool WriteVector3(const Vector3&);
  4720. bool WriteVector4(const Vector4&);
  4721. bool WriteVectorBuffer(const VectorBuffer&);
  4722. // Properties:
  4723. /* readonly */
  4724. String category;
  4725. /* readonly */
  4726. uint checksum;
  4727. /* readonly */
  4728. bool eof;
  4729. /* readonly */
  4730. FileMode mode;
  4731. /* readonly */
  4732. String name;
  4733. /* readonly */
  4734. bool open;
  4735. /* readonly */
  4736. bool packaged;
  4737. /* readonly */
  4738. uint position;
  4739. /* readonly */
  4740. int refs;
  4741. /* readonly */
  4742. uint size;
  4743. /* readonly */
  4744. StringHash type;
  4745. /* readonly */
  4746. String typeName;
  4747. /* readonly */
  4748. int weakRefs;
  4749. };
  4750. class FileSelector
  4751. {
  4752. // Methods:
  4753. bool HasSubscribedToEvent(Object, const String&);
  4754. bool HasSubscribedToEvent(const String&);
  4755. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4756. void SetButtonTexts(const String&, const String&);
  4757. void SetFilters(Array<String>, uint);
  4758. void UpdateElements();
  4759. // Properties:
  4760. /* readonly */
  4761. Button cancelButton;
  4762. /* readonly */
  4763. String category;
  4764. XMLFile defaultStyle;
  4765. bool directoryMode;
  4766. /* readonly */
  4767. ListView fileList;
  4768. String fileName;
  4769. /* readonly */
  4770. LineEdit fileNameEdit;
  4771. /* readonly */
  4772. String filter;
  4773. /* readonly */
  4774. uint filterIndex;
  4775. /* readonly */
  4776. DropDownList filterList;
  4777. /* readonly */
  4778. Button okButton;
  4779. String path;
  4780. /* readonly */
  4781. LineEdit pathEdit;
  4782. /* readonly */
  4783. int refs;
  4784. String title;
  4785. /* readonly */
  4786. Text titleText;
  4787. /* readonly */
  4788. StringHash type;
  4789. /* readonly */
  4790. String typeName;
  4791. /* readonly */
  4792. int weakRefs;
  4793. /* readonly */
  4794. Window window;
  4795. };
  4796. class FileSystem
  4797. {
  4798. // Methods:
  4799. bool Copy(const String&, const String&);
  4800. bool CreateDir(const String&);
  4801. bool Delete(const String&);
  4802. bool DirExists(const String&) const;
  4803. bool FileExists(const String&) const;
  4804. String GetAppPreferencesDir(const String&, const String&) const;
  4805. uint GetLastModifiedTime(const String&) const;
  4806. bool HasSubscribedToEvent(Object, const String&);
  4807. bool HasSubscribedToEvent(const String&);
  4808. bool Rename(const String&, const String&);
  4809. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4810. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4811. bool SetLastModifiedTime(const String&, uint);
  4812. int SystemCommand(const String&, bool = false);
  4813. uint SystemCommandAsync(const String&);
  4814. bool SystemOpen(const String&, const String&);
  4815. int SystemRun(const String&, Array<String>);
  4816. uint SystemRunAsync(const String&, Array<String>);
  4817. // Properties:
  4818. /* readonly */
  4819. String category;
  4820. String currentDir;
  4821. bool executeConsoleCommands;
  4822. /* readonly */
  4823. String programDir;
  4824. /* readonly */
  4825. int refs;
  4826. /* readonly */
  4827. StringHash type;
  4828. /* readonly */
  4829. String typeName;
  4830. /* readonly */
  4831. String userDocumentsDir;
  4832. /* readonly */
  4833. int weakRefs;
  4834. };
  4835. class FocusParameters
  4836. {
  4837. // Properties:
  4838. bool autoSize;
  4839. bool focus;
  4840. float minView;
  4841. bool nonUniform;
  4842. float quantize;
  4843. };
  4844. class Font
  4845. {
  4846. // Methods:
  4847. IntVector2 GetTotalGlyphOffset(int) const;
  4848. bool HasSubscribedToEvent(Object, const String&);
  4849. bool HasSubscribedToEvent(const String&);
  4850. bool Load(File);
  4851. bool Load(VectorBuffer&);
  4852. bool Save(File) const;
  4853. bool Save(VectorBuffer&) const;
  4854. bool SaveXML(File, int, bool = false, const String& = "\t");
  4855. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4856. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4857. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4858. // Properties:
  4859. IntVector2 absoluteGlyphOffset;
  4860. /* readonly */
  4861. String category;
  4862. /* readonly */
  4863. uint memoryUse;
  4864. String name;
  4865. /* readonly */
  4866. int refs;
  4867. Vector2 scaledGlyphOffset;
  4868. /* readonly */
  4869. StringHash type;
  4870. /* readonly */
  4871. String typeName;
  4872. /* readonly */
  4873. uint useTimer;
  4874. /* readonly */
  4875. int weakRefs;
  4876. };
  4877. class Frustum
  4878. {
  4879. // Methods:
  4880. void Define(const BoundingBox&, const Matrix3x4&);
  4881. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4882. void Define(float, float, float, float, float, const Matrix3x4&);
  4883. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4884. float Distance(const Vector3&) const;
  4885. Intersection IsInside(const BoundingBox&);
  4886. Intersection IsInside(const Sphere&);
  4887. Intersection IsInside(const Vector3&);
  4888. Intersection IsInsideFast(const BoundingBox&) const;
  4889. Intersection IsInsideFast(const Sphere&) const;
  4890. void Transform(const Matrix3&);
  4891. void Transform(const Matrix3x4&);
  4892. Frustum Transformed(const Matrix3&) const;
  4893. Frustum Transformed(const Matrix3x4&) const;
  4894. // Properties:
  4895. /* readonly */
  4896. Array<Vector3> vertices;
  4897. };
  4898. class Geometry
  4899. {
  4900. // Methods:
  4901. bool HasSubscribedToEvent(Object, const String&);
  4902. bool HasSubscribedToEvent(const String&);
  4903. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4904. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4905. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4906. void SetIndexBuffer(IndexBuffer);
  4907. bool SetVertexBuffer(uint, VertexBuffer);
  4908. // Properties:
  4909. /* readonly */
  4910. String category;
  4911. /* readonly */
  4912. bool empty;
  4913. IndexBuffer indexBuffer;
  4914. /* readonly */
  4915. uint indexCount;
  4916. /* readonly */
  4917. uint indexStart;
  4918. float lodDistance;
  4919. uint numVertexBuffers;
  4920. /* readonly */
  4921. PrimitiveType primitiveType;
  4922. /* readonly */
  4923. int refs;
  4924. /* readonly */
  4925. StringHash type;
  4926. /* readonly */
  4927. String typeName;
  4928. /* readonly */
  4929. Array<VertexBuffer> vertexBuffers;
  4930. /* readonly */
  4931. uint vertexCount;
  4932. /* readonly */
  4933. uint vertexStart;
  4934. /* readonly */
  4935. int weakRefs;
  4936. };
  4937. class Graphics
  4938. {
  4939. // Methods:
  4940. void BeginDumpShaders(const String&);
  4941. void Close();
  4942. void EndDumpShaders();
  4943. bool HasSubscribedToEvent(Object, const String&);
  4944. bool HasSubscribedToEvent(const String&);
  4945. void Maximize();
  4946. void Minimize();
  4947. void PrecacheShaders(File);
  4948. void PrecacheShaders(VectorBuffer&);
  4949. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4950. bool SetMode(int, int);
  4951. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  4952. void SetWindowPosition(int, int);
  4953. bool TakeScreenShot(Image);
  4954. bool ToggleFullscreen();
  4955. // Properties:
  4956. /* readonly */
  4957. String apiName;
  4958. /* readonly */
  4959. bool borderless;
  4960. /* readonly */
  4961. String category;
  4962. /* readonly */
  4963. bool deferredSupport;
  4964. /* readonly */
  4965. IntVector2 desktopResolution;
  4966. /* readonly */
  4967. bool deviceLost;
  4968. bool flushGPU;
  4969. /* readonly */
  4970. bool fullscreen;
  4971. /* readonly */
  4972. bool hardwareShadowSupport;
  4973. /* readonly */
  4974. int height;
  4975. /* readonly */
  4976. bool initialized;
  4977. /* readonly */
  4978. bool instancingSupport;
  4979. /* readonly */
  4980. bool lightPrepassSupport;
  4981. /* readonly */
  4982. int multiSample;
  4983. /* readonly */
  4984. Array<int> multiSampleLevels;
  4985. /* readonly */
  4986. uint numBatches;
  4987. /* readonly */
  4988. uint numPrimitives;
  4989. String orientations;
  4990. /* readonly */
  4991. bool readableDepthSupport;
  4992. /* readonly */
  4993. int refs;
  4994. /* readonly */
  4995. bool resizable;
  4996. /* readonly */
  4997. Array<IntVector2> resolutions;
  4998. bool sRGB;
  4999. /* readonly */
  5000. bool sRGBSupport;
  5001. /* readonly */
  5002. bool sRGBWriteSupport;
  5003. /* readonly */
  5004. bool tripleBuffer;
  5005. /* readonly */
  5006. StringHash type;
  5007. /* readonly */
  5008. String typeName;
  5009. /* readonly */
  5010. bool vsync;
  5011. /* readonly */
  5012. int weakRefs;
  5013. /* readonly */
  5014. int width;
  5015. /* writeonly */
  5016. Image windowIcon;
  5017. IntVector2 windowPosition;
  5018. String windowTitle;
  5019. };
  5020. class HttpRequest
  5021. {
  5022. // Methods:
  5023. Array<uint8> Read(uint);
  5024. bool ReadBool();
  5025. BoundingBox ReadBoundingBox();
  5026. int8 ReadByte();
  5027. Color ReadColor();
  5028. double ReadDouble();
  5029. String ReadFileID();
  5030. float ReadFloat();
  5031. int ReadInt();
  5032. IntRect ReadIntRect();
  5033. IntVector2 ReadIntVector2();
  5034. String ReadLine();
  5035. Matrix3 ReadMatrix3();
  5036. Matrix3x4 ReadMatrix3x4();
  5037. Matrix4 ReadMatrix4();
  5038. uint ReadNetID();
  5039. Quaternion ReadPackedQuaternion();
  5040. Vector3 ReadPackedVector3(float);
  5041. Quaternion ReadQuaternion();
  5042. int16 ReadShort();
  5043. String ReadString();
  5044. StringHash ReadStringHash();
  5045. uint8 ReadUByte();
  5046. uint ReadUInt();
  5047. uint16 ReadUShort();
  5048. uint ReadVLE();
  5049. Variant ReadVariant();
  5050. VariantMap ReadVariantMap();
  5051. Vector2 ReadVector2();
  5052. Vector3 ReadVector3();
  5053. Vector4 ReadVector4();
  5054. VectorBuffer ReadVectorBuffer(uint);
  5055. uint Seek(uint);
  5056. // Properties:
  5057. /* readonly */
  5058. uint availableSize;
  5059. /* readonly */
  5060. uint checksum;
  5061. /* readonly */
  5062. bool eof;
  5063. /* readonly */
  5064. String error;
  5065. /* readonly */
  5066. String name;
  5067. /* readonly */
  5068. bool open;
  5069. /* readonly */
  5070. uint position;
  5071. /* readonly */
  5072. int refs;
  5073. /* readonly */
  5074. uint size;
  5075. /* readonly */
  5076. HttpRequestState state;
  5077. /* readonly */
  5078. String url;
  5079. /* readonly */
  5080. String verb;
  5081. /* readonly */
  5082. int weakRefs;
  5083. };
  5084. class Image
  5085. {
  5086. // Methods:
  5087. void Clear(const Color&);
  5088. void ClearInt(uint);
  5089. bool FlipHorizontal();
  5090. bool FlipVertical();
  5091. Color GetPixel(int, int) const;
  5092. Color GetPixel(int, int, int) const;
  5093. Color GetPixelBilinear(float, float) const;
  5094. uint GetPixelInt(int, int) const;
  5095. uint GetPixelInt(int, int, int) const;
  5096. Color GetPixelTrilinear(float, float, float) const;
  5097. Image GetSubimage(const IntRect&) const;
  5098. bool HasSubscribedToEvent(Object, const String&);
  5099. bool HasSubscribedToEvent(const String&);
  5100. bool Load(File);
  5101. bool Load(VectorBuffer&);
  5102. bool LoadColorLUT(File);
  5103. bool LoadColorLUT(VectorBuffer&);
  5104. bool Resize(int, int);
  5105. bool Save(File) const;
  5106. bool Save(VectorBuffer&) const;
  5107. bool SaveBMP(const String&) const;
  5108. bool SaveJPG(const String&, int) const;
  5109. bool SavePNG(const String&) const;
  5110. bool SaveTGA(const String&) const;
  5111. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5112. void SetPixel(int, int, const Color&);
  5113. void SetPixel(int, int, int, const Color&);
  5114. void SetPixelInt(int, int, int, uint);
  5115. void SetPixelInt(int, int, uint);
  5116. bool SetSize(int, int, int, uint);
  5117. bool SetSize(int, int, uint);
  5118. // Properties:
  5119. /* readonly */
  5120. bool array;
  5121. /* readonly */
  5122. String category;
  5123. /* readonly */
  5124. uint components;
  5125. /* readonly */
  5126. bool compressed;
  5127. /* readonly */
  5128. CompressedFormat compressedFormat;
  5129. /* readonly */
  5130. bool cubemap;
  5131. /* readonly */
  5132. int depth;
  5133. /* readonly */
  5134. int height;
  5135. /* readonly */
  5136. uint memoryUse;
  5137. String name;
  5138. /* readonly */
  5139. uint numCompressedLevels;
  5140. /* readonly */
  5141. int refs;
  5142. /* readonly */
  5143. bool sRGB;
  5144. /* readonly */
  5145. StringHash type;
  5146. /* readonly */
  5147. String typeName;
  5148. /* readonly */
  5149. uint useTimer;
  5150. /* readonly */
  5151. int weakRefs;
  5152. /* readonly */
  5153. int width;
  5154. };
  5155. class IndexBuffer
  5156. {
  5157. // Methods:
  5158. VectorBuffer GetData();
  5159. bool HasSubscribedToEvent(Object, const String&);
  5160. bool HasSubscribedToEvent(const String&);
  5161. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5162. bool SetData(VectorBuffer&);
  5163. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5164. void SetSize(uint, bool, bool = false);
  5165. // Properties:
  5166. /* readonly */
  5167. String category;
  5168. /* readonly */
  5169. bool dynamic;
  5170. /* readonly */
  5171. uint indexCount;
  5172. /* readonly */
  5173. uint indexSize;
  5174. /* readonly */
  5175. int refs;
  5176. bool shadowed;
  5177. /* readonly */
  5178. StringHash type;
  5179. /* readonly */
  5180. String typeName;
  5181. /* readonly */
  5182. int weakRefs;
  5183. };
  5184. class Input
  5185. {
  5186. // Methods:
  5187. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5188. int GetKeyFromName(const String&) const;
  5189. int GetKeyFromScancode(int) const;
  5190. String GetKeyName(int) const;
  5191. int GetScancodeFromKey(int) const;
  5192. int GetScancodeFromName(const String&) const;
  5193. String GetScancodeName(int) const;
  5194. bool HasSubscribedToEvent(Object, const String&);
  5195. bool HasSubscribedToEvent(const String&);
  5196. uint LoadGestures(File);
  5197. uint LoadGestures(VectorBuffer&);
  5198. bool RecordGesture();
  5199. void RemoveAllGestures();
  5200. bool RemoveGesture(uint);
  5201. bool RemoveScreenJoystick(int);
  5202. void ResetMouseGrabbed();
  5203. void ResetMouseMode();
  5204. void ResetMouseVisible();
  5205. bool SaveGesture(File, uint);
  5206. bool SaveGesture(VectorBuffer&, uint);
  5207. bool SaveGestures(File);
  5208. bool SaveGestures(VectorBuffer&);
  5209. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5210. void SetMouseGrabbed(bool, bool = false);
  5211. void SetMouseMode(MouseMode, bool = false);
  5212. void SetMouseVisible(bool, bool = false);
  5213. // Properties:
  5214. /* readonly */
  5215. String category;
  5216. /* readonly */
  5217. bool focus;
  5218. /* readonly */
  5219. Array<JoystickState> joysticks;
  5220. /* readonly */
  5221. Array<JoystickState> joysticksByIndex;
  5222. /* readonly */
  5223. Array<JoystickState> joysticksByName;
  5224. /* readonly */
  5225. Array<bool> keyDown;
  5226. /* readonly */
  5227. Array<bool> keyPress;
  5228. /* readonly */
  5229. bool minimized;
  5230. /* readonly */
  5231. Array<bool> mouseButtonDown;
  5232. /* readonly */
  5233. Array<bool> mouseButtonPress;
  5234. bool mouseGrabbed;
  5235. /* readonly */
  5236. bool mouseLocked;
  5237. MouseMode mouseMode;
  5238. /* readonly */
  5239. IntVector2 mouseMove;
  5240. /* readonly */
  5241. int mouseMoveWheel;
  5242. /* readonly */
  5243. int mouseMoveX;
  5244. /* readonly */
  5245. int mouseMoveY;
  5246. /* readonly */
  5247. IntVector2 mousePosition;
  5248. bool mouseVisible;
  5249. /* readonly */
  5250. uint numJoysticks;
  5251. /* readonly */
  5252. uint numTouches;
  5253. /* readonly */
  5254. Array<bool> qualifierDown;
  5255. /* readonly */
  5256. Array<bool> qualifierPress;
  5257. /* readonly */
  5258. int qualifiers;
  5259. /* readonly */
  5260. int refs;
  5261. /* readonly */
  5262. Array<bool> scancodeDown;
  5263. /* readonly */
  5264. Array<bool> scancodePress;
  5265. Array<bool> screenJoystickVisible;
  5266. /* readonly */
  5267. bool screenKeyboardSupport;
  5268. bool screenKeyboardVisible;
  5269. bool toggleFullscreen;
  5270. bool touchEmulation;
  5271. /* readonly */
  5272. Array<TouchState> touches;
  5273. /* readonly */
  5274. StringHash type;
  5275. /* readonly */
  5276. String typeName;
  5277. /* readonly */
  5278. int weakRefs;
  5279. };
  5280. class IntRect
  5281. {
  5282. // Methods:
  5283. Intersection IsInside(const IntVector2&) const;
  5284. // Properties:
  5285. int bottom;
  5286. /* readonly */
  5287. Array<int> data;
  5288. /* readonly */
  5289. int height;
  5290. int left;
  5291. int right;
  5292. /* readonly */
  5293. IntVector2 size;
  5294. int top;
  5295. /* readonly */
  5296. int width;
  5297. };
  5298. class IntVector2
  5299. {
  5300. // Methods:
  5301. String ToString() const;
  5302. // Properties:
  5303. /* readonly */
  5304. Array<int> data;
  5305. int x;
  5306. int y;
  5307. };
  5308. class JSONFile
  5309. {
  5310. // Methods:
  5311. JSONValue& GetRoot();
  5312. bool HasSubscribedToEvent(Object, const String&);
  5313. bool HasSubscribedToEvent(const String&);
  5314. bool Load(File);
  5315. bool Load(VectorBuffer&);
  5316. bool Save(File) const;
  5317. bool Save(File, const String&) const;
  5318. bool Save(VectorBuffer&) const;
  5319. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5320. // Properties:
  5321. /* readonly */
  5322. String category;
  5323. /* readonly */
  5324. uint memoryUse;
  5325. String name;
  5326. /* readonly */
  5327. int refs;
  5328. /* readonly */
  5329. JSONValue root;
  5330. /* readonly */
  5331. StringHash type;
  5332. /* readonly */
  5333. String typeName;
  5334. /* readonly */
  5335. uint useTimer;
  5336. /* readonly */
  5337. int weakRefs;
  5338. };
  5339. class JSONValue
  5340. {
  5341. // Methods:
  5342. void Clear();
  5343. bool Contains(const String&) const;
  5344. void Erase(const String&);
  5345. void Erase(uint, uint = 1);
  5346. bool GetBool() const;
  5347. double GetDouble() const;
  5348. float GetFloat() const;
  5349. int GetInt() const;
  5350. uint GetUInt() const;
  5351. void Insert(uint, const JSONValue&);
  5352. const JSONValue& Get(const String&) const;
  5353. void Pop();
  5354. void Push(const JSONValue&);
  5355. void Resize(uint);
  5356. void Set(const String&, const JSONValue&);
  5357. const String& GetString() const;
  5358. // Properties:
  5359. /* readonly */
  5360. bool isArray;
  5361. /* readonly */
  5362. bool isBool;
  5363. /* readonly */
  5364. bool isNull;
  5365. /* readonly */
  5366. bool isNumber;
  5367. /* readonly */
  5368. bool isObject;
  5369. /* readonly */
  5370. bool isString;
  5371. /* readonly */
  5372. uint size;
  5373. /* readonly */
  5374. JSONValueType valueType;
  5375. };
  5376. class JoystickState
  5377. {
  5378. // Properties:
  5379. /* readonly */
  5380. Array<float> axisPosition;
  5381. /* readonly */
  5382. Array<bool> buttonDown;
  5383. /* readonly */
  5384. Array<bool> buttonPress;
  5385. /* readonly */
  5386. bool controller;
  5387. /* readonly */
  5388. Array<int> hatPosition;
  5389. int joystickID;
  5390. String name;
  5391. /* readonly */
  5392. uint numAxes;
  5393. /* readonly */
  5394. uint numButtons;
  5395. /* readonly */
  5396. uint numHats;
  5397. };
  5398. class Light
  5399. {
  5400. // Methods:
  5401. void ApplyAttributes();
  5402. void DrawDebugGeometry(DebugRenderer, bool);
  5403. Variant GetAttribute(const String&) const;
  5404. ValueAnimation GetAttributeAnimation(const String&) const;
  5405. float GetAttributeAnimationSpeed(const String&) const;
  5406. float GetAttributeAnimationTime(const String&) const;
  5407. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5408. Variant GetAttributeDefault(const String&) const;
  5409. bool GetInterceptNetworkUpdate(const String&) const;
  5410. bool HasSubscribedToEvent(Object, const String&);
  5411. bool HasSubscribedToEvent(const String&);
  5412. bool IsInView(Camera) const;
  5413. bool Load(File, bool = false);
  5414. bool Load(VectorBuffer&, bool = false);
  5415. bool LoadJSON(const JSONValue&, bool = false);
  5416. bool LoadXML(const XMLElement&, bool = false);
  5417. void MarkNetworkUpdate() const;
  5418. void Remove();
  5419. void RemoveAttributeAnimation(const String&);
  5420. void RemoveInstanceDefault();
  5421. void RemoveObjectAnimation();
  5422. void ResetToDefault();
  5423. bool Save(File) const;
  5424. bool Save(VectorBuffer&) const;
  5425. bool SaveJSON(JSONValue&) const;
  5426. bool SaveXML(XMLElement&) const;
  5427. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5428. void SetAnimationTime(float);
  5429. bool SetAttribute(const String&, const Variant&);
  5430. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5431. void SetAttributeAnimationSpeed(const String&, float);
  5432. void SetAttributeAnimationTime(const String&, float);
  5433. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5434. void SetInterceptNetworkUpdate(const String&, bool);
  5435. // Properties:
  5436. bool animationEnabled;
  5437. float aspectRatio;
  5438. /* readonly */
  5439. Array<Variant> attributeDefaults;
  5440. /* readonly */
  5441. Array<AttributeInfo> attributeInfos;
  5442. Array<Variant> attributes;
  5443. /* readonly */
  5444. BoundingBox boundingBox;
  5445. float brightness;
  5446. bool castShadows;
  5447. /* readonly */
  5448. String category;
  5449. Color color;
  5450. float drawDistance;
  5451. /* readonly */
  5452. Color effectiveColor;
  5453. /* readonly */
  5454. float effectiveSpecularIntensity;
  5455. bool enabled;
  5456. /* readonly */
  5457. bool enabledEffective;
  5458. float fadeDistance;
  5459. float fov;
  5460. /* readonly */
  5461. Frustum frustum;
  5462. /* readonly */
  5463. uint id;
  5464. /* readonly */
  5465. bool inView;
  5466. uint lightMask;
  5467. LightType lightType;
  5468. float lodBias;
  5469. uint maxLights;
  5470. /* readonly */
  5471. bool negative;
  5472. /* readonly */
  5473. Node node;
  5474. /* readonly */
  5475. uint numAttributes;
  5476. /* readonly */
  5477. int numShadowSplits;
  5478. ObjectAnimation objectAnimation;
  5479. bool occludee;
  5480. bool occluder;
  5481. bool perVertex;
  5482. Texture rampTexture;
  5483. float range;
  5484. /* readonly */
  5485. int refs;
  5486. BiasParameters shadowBias;
  5487. CascadeParameters shadowCascade;
  5488. float shadowDistance;
  5489. float shadowFadeDistance;
  5490. FocusParameters shadowFocus;
  5491. float shadowIntensity;
  5492. uint shadowMask;
  5493. float shadowNearFarRatio;
  5494. float shadowResolution;
  5495. Texture shapeTexture;
  5496. float specularIntensity;
  5497. bool temporary;
  5498. /* readonly */
  5499. StringHash type;
  5500. /* readonly */
  5501. String typeName;
  5502. uint viewMask;
  5503. /* readonly */
  5504. int weakRefs;
  5505. /* readonly */
  5506. BoundingBox worldBoundingBox;
  5507. uint zoneMask;
  5508. };
  5509. class LineEdit
  5510. {
  5511. // Methods:
  5512. void AddChild(UIElement);
  5513. void AddTag(const String&);
  5514. void AddTags(const String&, int8 = ';');
  5515. void ApplyAttributes();
  5516. void BringToFront();
  5517. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5518. void DisableLayoutUpdate();
  5519. IntVector2 ElementToScreen(const IntVector2&);
  5520. void EnableLayoutUpdate();
  5521. uint FindChild(UIElement) const;
  5522. Variant GetAttribute(const String&) const;
  5523. ValueAnimation GetAttributeAnimation(const String&) const;
  5524. float GetAttributeAnimationSpeed(const String&) const;
  5525. float GetAttributeAnimationTime(const String&) const;
  5526. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5527. Variant GetAttributeDefault(const String&) const;
  5528. UIElement GetChild(const String&, bool = false) const;
  5529. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5530. Array<UIElement> GetChildren(bool = false) const;
  5531. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5532. UIElement GetElementEventSender() const;
  5533. bool GetInterceptNetworkUpdate(const String&) const;
  5534. uint GetNumChildren(bool) const;
  5535. bool HasSubscribedToEvent(Object, const String&);
  5536. bool HasSubscribedToEvent(const String&);
  5537. bool HasTag(const String&) const;
  5538. void InsertChild(uint, UIElement);
  5539. bool IsInside(IntVector2, bool);
  5540. bool IsInsideCombined(IntVector2, bool);
  5541. bool Load(File, bool = false);
  5542. bool Load(VectorBuffer&, bool = false);
  5543. bool LoadChildXML(XMLFile, XMLFile = null);
  5544. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5545. bool LoadJSON(const JSONValue&, bool = false);
  5546. bool LoadXML(File);
  5547. bool LoadXML(VectorBuffer&);
  5548. bool LoadXML(XMLFile, XMLFile);
  5549. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5550. bool LoadXML(const XMLElement&, bool = false);
  5551. void MarkNetworkUpdate() const;
  5552. void Remove();
  5553. void RemoveAllChildren();
  5554. void RemoveAllTags();
  5555. void RemoveAttributeAnimation(const String&);
  5556. void RemoveChild(UIElement, uint = 0);
  5557. void RemoveChild(uint);
  5558. void RemoveInstanceDefault();
  5559. void RemoveObjectAnimation();
  5560. bool RemoveTag(const String&);
  5561. void ResetDeepEnabled();
  5562. void ResetToDefault();
  5563. bool Save(File) const;
  5564. bool Save(VectorBuffer&) const;
  5565. bool SaveJSON(JSONValue&) const;
  5566. bool SaveXML(File, const String& = "\t");
  5567. bool SaveXML(VectorBuffer&, const String& = "\t");
  5568. bool SaveXML(XMLElement&) const;
  5569. IntVector2 ScreenToElement(const IntVector2&);
  5570. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5571. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5572. void SetAnimationTime(float);
  5573. bool SetAttribute(const String&, const Variant&);
  5574. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5575. void SetAttributeAnimationSpeed(const String&, float);
  5576. void SetAttributeAnimationTime(const String&, float);
  5577. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5578. void SetDeepEnabled(bool);
  5579. void SetEnabledRecursive(bool);
  5580. void SetFixedHeight(int);
  5581. void SetFixedSize(int, int);
  5582. void SetFixedWidth(int);
  5583. void SetFullImageRect();
  5584. void SetHoverOffset(int, int);
  5585. void SetInterceptNetworkUpdate(const String&, bool);
  5586. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5587. void SetMaxSize(int, int);
  5588. void SetMinSize(int, int);
  5589. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5590. void SetPosition(int, int);
  5591. void SetSize(int, int);
  5592. bool SetStyle(const String&, XMLFile = null);
  5593. bool SetStyle(const XMLElement&);
  5594. bool SetStyleAuto(XMLFile = null);
  5595. void UpdateLayout();
  5596. const Variant& GetVar(const StringHash&);
  5597. // Properties:
  5598. bool animationEnabled;
  5599. /* readonly */
  5600. Array<Variant> attributeDefaults;
  5601. /* readonly */
  5602. Array<AttributeInfo> attributeInfos;
  5603. Array<Variant> attributes;
  5604. BlendMode blendMode;
  5605. IntRect border;
  5606. bool bringToBack;
  5607. bool bringToFront;
  5608. /* readonly */
  5609. String category;
  5610. /* readonly */
  5611. IntVector2 childOffset;
  5612. /* readonly */
  5613. Array<UIElement> children;
  5614. IntRect clipBorder;
  5615. bool clipChildren;
  5616. /* writeonly */
  5617. Color color;
  5618. /* readonly */
  5619. bool colorGradient;
  5620. Array<Color> colors;
  5621. /* readonly */
  5622. IntRect combinedScreenRect;
  5623. /* readonly */
  5624. BorderImage cursor;
  5625. float cursorBlinkRate;
  5626. bool cursorMovable;
  5627. uint cursorPosition;
  5628. XMLFile defaultStyle;
  5629. /* readonly */
  5630. float derivedOpacity;
  5631. /* readonly */
  5632. uint dragButtonCombo;
  5633. /* readonly */
  5634. int dragButtonCount;
  5635. uint dragDropMode;
  5636. uint echoCharacter;
  5637. bool editable;
  5638. bool elementEventSender;
  5639. bool enabled;
  5640. /* readonly */
  5641. bool enabledSelf;
  5642. /* readonly */
  5643. bool fixedHeight;
  5644. /* readonly */
  5645. bool fixedSize;
  5646. /* readonly */
  5647. bool fixedWidth;
  5648. bool focus;
  5649. FocusMode focusMode;
  5650. int height;
  5651. HorizontalAlignment horizontalAlignment;
  5652. IntVector2 hoverOffset;
  5653. /* readonly */
  5654. bool hovering;
  5655. IntRect imageBorder;
  5656. IntRect imageRect;
  5657. int indent;
  5658. int indentSpacing;
  5659. /* readonly */
  5660. int indentWidth;
  5661. bool internal;
  5662. IntRect layoutBorder;
  5663. Vector2 layoutFlexScale;
  5664. LayoutMode layoutMode;
  5665. int layoutSpacing;
  5666. int maxHeight;
  5667. uint maxLength;
  5668. IntVector2 maxSize;
  5669. int maxWidth;
  5670. int minHeight;
  5671. IntVector2 minSize;
  5672. int minWidth;
  5673. String name;
  5674. /* readonly */
  5675. uint numAllChildren;
  5676. /* readonly */
  5677. uint numAttributes;
  5678. /* readonly */
  5679. uint numChildren;
  5680. ObjectAnimation objectAnimation;
  5681. float opacity;
  5682. UIElement parent;
  5683. IntVector2 position;
  5684. int priority;
  5685. /* readonly */
  5686. int refs;
  5687. /* readonly */
  5688. UIElement root;
  5689. /* readonly */
  5690. IntVector2 screenPosition;
  5691. bool selected;
  5692. IntVector2 size;
  5693. bool sortChildren;
  5694. String style;
  5695. /* readonly */
  5696. Array<String> tags;
  5697. bool temporary;
  5698. String text;
  5699. bool textCopyable;
  5700. /* readonly */
  5701. Text textElement;
  5702. bool textSelectable;
  5703. Texture texture;
  5704. bool tiled;
  5705. TraversalMode traversalMode;
  5706. /* readonly */
  5707. StringHash type;
  5708. /* readonly */
  5709. String typeName;
  5710. bool useDerivedOpacity;
  5711. /* readonly */
  5712. VariantMap vars;
  5713. VerticalAlignment verticalAlignment;
  5714. bool visible;
  5715. /* readonly */
  5716. bool visibleEffective;
  5717. /* readonly */
  5718. int weakRefs;
  5719. int width;
  5720. };
  5721. class ListView
  5722. {
  5723. // Methods:
  5724. void AddChild(UIElement);
  5725. void AddItem(UIElement);
  5726. void AddSelection(uint);
  5727. void AddTag(const String&);
  5728. void AddTags(const String&, int8 = ';');
  5729. void ApplyAttributes();
  5730. void BringToFront();
  5731. void ChangeSelection(int, bool);
  5732. void ClearSelection();
  5733. void CopySelectedItemsToClipboard();
  5734. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5735. void DisableLayoutUpdate();
  5736. IntVector2 ElementToScreen(const IntVector2&);
  5737. void EnableLayoutUpdate();
  5738. void Expand(uint, bool, bool = false);
  5739. uint FindChild(UIElement) const;
  5740. uint FindItem(UIElement);
  5741. Variant GetAttribute(const String&) const;
  5742. ValueAnimation GetAttributeAnimation(const String&) const;
  5743. float GetAttributeAnimationSpeed(const String&) const;
  5744. float GetAttributeAnimationTime(const String&) const;
  5745. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5746. Variant GetAttributeDefault(const String&) const;
  5747. UIElement GetChild(const String&, bool = false) const;
  5748. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5749. Array<UIElement> GetChildren(bool = false) const;
  5750. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5751. UIElement GetElementEventSender() const;
  5752. bool GetInterceptNetworkUpdate(const String&) const;
  5753. Array<UIElement> GetItems() const;
  5754. uint GetNumChildren(bool) const;
  5755. bool HasSubscribedToEvent(Object, const String&);
  5756. bool HasSubscribedToEvent(const String&);
  5757. bool HasTag(const String&) const;
  5758. void InsertChild(uint, UIElement);
  5759. void InsertItem(uint, UIElement, UIElement = null);
  5760. bool IsExpanded(uint) const;
  5761. bool IsInside(IntVector2, bool);
  5762. bool IsInsideCombined(IntVector2, bool);
  5763. bool IsSelected(uint) const;
  5764. bool Load(File, bool = false);
  5765. bool Load(VectorBuffer&, bool = false);
  5766. bool LoadChildXML(XMLFile, XMLFile = null);
  5767. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5768. bool LoadJSON(const JSONValue&, bool = false);
  5769. bool LoadXML(File);
  5770. bool LoadXML(VectorBuffer&);
  5771. bool LoadXML(XMLFile, XMLFile);
  5772. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5773. bool LoadXML(const XMLElement&, bool = false);
  5774. void MarkNetworkUpdate() const;
  5775. void Remove();
  5776. void RemoveAllChildren();
  5777. void RemoveAllItems();
  5778. void RemoveAllTags();
  5779. void RemoveAttributeAnimation(const String&);
  5780. void RemoveChild(UIElement, uint = 0);
  5781. void RemoveChild(uint);
  5782. void RemoveInstanceDefault();
  5783. void RemoveItem(UIElement, uint = 0);
  5784. void RemoveItem(uint);
  5785. void RemoveObjectAnimation();
  5786. void RemoveSelection(uint);
  5787. bool RemoveTag(const String&);
  5788. void ResetDeepEnabled();
  5789. void ResetToDefault();
  5790. bool Save(File) const;
  5791. bool Save(VectorBuffer&) const;
  5792. bool SaveJSON(JSONValue&) const;
  5793. bool SaveXML(File, const String& = "\t");
  5794. bool SaveXML(VectorBuffer&, const String& = "\t");
  5795. bool SaveXML(XMLElement&) const;
  5796. IntVector2 ScreenToElement(const IntVector2&);
  5797. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5798. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5799. void SetAnimationTime(float);
  5800. bool SetAttribute(const String&, const Variant&);
  5801. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5802. void SetAttributeAnimationSpeed(const String&, float);
  5803. void SetAttributeAnimationTime(const String&, float);
  5804. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5805. void SetDeepEnabled(bool);
  5806. void SetEnabledRecursive(bool);
  5807. void SetFixedHeight(int);
  5808. void SetFixedSize(int, int);
  5809. void SetFixedWidth(int);
  5810. void SetInterceptNetworkUpdate(const String&, bool);
  5811. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5812. void SetMaxSize(int, int);
  5813. void SetMinSize(int, int);
  5814. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5815. void SetPosition(int, int);
  5816. void SetScrollBarsVisible(bool, bool);
  5817. void SetSelections(Array<uint>);
  5818. void SetSize(int, int);
  5819. bool SetStyle(const String&, XMLFile = null);
  5820. bool SetStyle(const XMLElement&);
  5821. bool SetStyleAuto(XMLFile = null);
  5822. void SetViewPosition(int, int);
  5823. void ToggleExpand(uint, bool = false);
  5824. void ToggleSelection(uint);
  5825. void UpdateLayout();
  5826. const Variant& GetVar(const StringHash&);
  5827. // Properties:
  5828. bool animationEnabled;
  5829. /* readonly */
  5830. Array<Variant> attributeDefaults;
  5831. /* readonly */
  5832. Array<AttributeInfo> attributeInfos;
  5833. Array<Variant> attributes;
  5834. bool autoDisableChildren;
  5835. float autoDisableThreshold;
  5836. int baseIndent;
  5837. bool bringToBack;
  5838. bool bringToFront;
  5839. /* readonly */
  5840. String category;
  5841. /* readonly */
  5842. IntVector2 childOffset;
  5843. /* readonly */
  5844. Array<UIElement> children;
  5845. bool clearSelectionOnDefocus;
  5846. IntRect clipBorder;
  5847. bool clipChildren;
  5848. /* writeonly */
  5849. Color color;
  5850. /* readonly */
  5851. bool colorGradient;
  5852. Array<Color> colors;
  5853. /* readonly */
  5854. IntRect combinedScreenRect;
  5855. /* readonly */
  5856. UIElement contentElement;
  5857. XMLFile defaultStyle;
  5858. /* readonly */
  5859. float derivedOpacity;
  5860. /* readonly */
  5861. uint dragButtonCombo;
  5862. /* readonly */
  5863. int dragButtonCount;
  5864. uint dragDropMode;
  5865. bool editable;
  5866. bool elementEventSender;
  5867. bool enabled;
  5868. /* readonly */
  5869. bool enabledSelf;
  5870. /* readonly */
  5871. bool fixedHeight;
  5872. /* readonly */
  5873. bool fixedSize;
  5874. /* readonly */
  5875. bool fixedWidth;
  5876. bool focus;
  5877. FocusMode focusMode;
  5878. int height;
  5879. bool hierarchyMode;
  5880. HighlightMode highlightMode;
  5881. HorizontalAlignment horizontalAlignment;
  5882. /* readonly */
  5883. ScrollBar horizontalScrollBar;
  5884. /* readonly */
  5885. bool hovering;
  5886. int indent;
  5887. int indentSpacing;
  5888. /* readonly */
  5889. int indentWidth;
  5890. bool internal;
  5891. /* readonly */
  5892. Array<UIElement> items;
  5893. IntRect layoutBorder;
  5894. Vector2 layoutFlexScale;
  5895. LayoutMode layoutMode;
  5896. int layoutSpacing;
  5897. int maxHeight;
  5898. IntVector2 maxSize;
  5899. int maxWidth;
  5900. int minHeight;
  5901. IntVector2 minSize;
  5902. int minWidth;
  5903. bool multiselect;
  5904. String name;
  5905. /* readonly */
  5906. uint numAllChildren;
  5907. /* readonly */
  5908. uint numAttributes;
  5909. /* readonly */
  5910. uint numChildren;
  5911. /* readonly */
  5912. uint numItems;
  5913. ObjectAnimation objectAnimation;
  5914. float opacity;
  5915. float pageStep;
  5916. UIElement parent;
  5917. IntVector2 position;
  5918. int priority;
  5919. /* readonly */
  5920. int refs;
  5921. /* readonly */
  5922. UIElement root;
  5923. /* readonly */
  5924. IntVector2 screenPosition;
  5925. bool scrollBarsAutoVisible;
  5926. float scrollDeceleration;
  5927. /* readonly */
  5928. BorderImage scrollPanel;
  5929. float scrollSnapEpsilon;
  5930. float scrollStep;
  5931. bool selectOnClickEnd;
  5932. bool selected;
  5933. /* readonly */
  5934. UIElement selectedItem;
  5935. /* readonly */
  5936. Array<UIElement> selectedItems;
  5937. uint selection;
  5938. /* readonly */
  5939. Array<uint> selections;
  5940. IntVector2 size;
  5941. bool sortChildren;
  5942. String style;
  5943. /* readonly */
  5944. Array<String> tags;
  5945. bool temporary;
  5946. TraversalMode traversalMode;
  5947. /* readonly */
  5948. StringHash type;
  5949. /* readonly */
  5950. String typeName;
  5951. bool useDerivedOpacity;
  5952. /* readonly */
  5953. VariantMap vars;
  5954. VerticalAlignment verticalAlignment;
  5955. /* readonly */
  5956. ScrollBar verticalScrollBar;
  5957. IntVector2 viewPosition;
  5958. bool visible;
  5959. /* readonly */
  5960. bool visibleEffective;
  5961. /* readonly */
  5962. int weakRefs;
  5963. int width;
  5964. };
  5965. class Localization
  5966. {
  5967. // Methods:
  5968. String Get(const String&);
  5969. String GetLanguage(int);
  5970. int GetLanguageIndex(const String&);
  5971. bool HasSubscribedToEvent(Object, const String&);
  5972. bool HasSubscribedToEvent(const String&);
  5973. void LoadJSON(const JSONValue&);
  5974. void LoadJSONFile(const String&);
  5975. void Reset();
  5976. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5977. void SetLanguage(const String&);
  5978. void SetLanguage(int);
  5979. // Properties:
  5980. /* readonly */
  5981. String category;
  5982. /* readonly */
  5983. String language;
  5984. /* readonly */
  5985. int languageIndex;
  5986. /* readonly */
  5987. int numLanguages;
  5988. /* readonly */
  5989. int refs;
  5990. /* readonly */
  5991. StringHash type;
  5992. /* readonly */
  5993. String typeName;
  5994. /* readonly */
  5995. int weakRefs;
  5996. };
  5997. class Log
  5998. {
  5999. // Methods:
  6000. void Close();
  6001. void Debug(const String&);
  6002. void Error(const String&);
  6003. bool HasSubscribedToEvent(Object, const String&);
  6004. bool HasSubscribedToEvent(const String&);
  6005. void Info(const String&);
  6006. void Open(const String&);
  6007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6008. void Warning(const String&);
  6009. void Write(const String&, bool = false);
  6010. // Properties:
  6011. /* readonly */
  6012. String category;
  6013. /* readonly */
  6014. String lastMessage;
  6015. int level;
  6016. bool quiet;
  6017. /* readonly */
  6018. int refs;
  6019. bool timeStamp;
  6020. /* readonly */
  6021. StringHash type;
  6022. /* readonly */
  6023. String typeName;
  6024. /* readonly */
  6025. int weakRefs;
  6026. };
  6027. class Material
  6028. {
  6029. // Methods:
  6030. Material Clone(const String& = String ( )) const;
  6031. Pass GetPass(uint, const String&);
  6032. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6033. float GetShaderParameterAnimationSpeed(const String&) const;
  6034. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6035. bool HasSubscribedToEvent(Object, const String&);
  6036. bool HasSubscribedToEvent(const String&);
  6037. bool Load(File);
  6038. bool Load(VectorBuffer&);
  6039. bool Load(const JSONValue&);
  6040. bool Load(const XMLElement&);
  6041. void RemoveShaderParameter(const String&);
  6042. bool Save(File) const;
  6043. bool Save(JSONValue&) const;
  6044. bool Save(VectorBuffer&) const;
  6045. bool Save(XMLElement&) const;
  6046. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6047. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6048. void SetShaderParameterAnimationSpeed(const String&, float);
  6049. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6050. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6051. void SetUVTransform(const Vector2&, float, const Vector2&);
  6052. void SetUVTransform(const Vector2&, float, float);
  6053. void SortTechniques();
  6054. // Properties:
  6055. /* readonly */
  6056. String category;
  6057. CullMode cullMode;
  6058. BiasParameters depthBias;
  6059. FillMode fillMode;
  6060. /* readonly */
  6061. uint memoryUse;
  6062. String name;
  6063. uint numTechniques;
  6064. /* readonly */
  6065. bool occlusion;
  6066. /* readonly */
  6067. int refs;
  6068. uint8 renderOrder;
  6069. Scene scene;
  6070. /* readonly */
  6071. Array<String> shaderParameterNames;
  6072. Array<Variant> shaderParameters;
  6073. CullMode shadowCullMode;
  6074. /* readonly */
  6075. Array<TechniqueEntry> techniqueEntries;
  6076. /* readonly */
  6077. Array<Technique> techniques;
  6078. Array<Texture> textures;
  6079. /* readonly */
  6080. StringHash type;
  6081. /* readonly */
  6082. String typeName;
  6083. /* readonly */
  6084. uint useTimer;
  6085. /* readonly */
  6086. int weakRefs;
  6087. };
  6088. class Matrix2
  6089. {
  6090. // Methods:
  6091. bool Equals(const Matrix2&) const;
  6092. Matrix2 Inverse() const;
  6093. Vector2 Scale() const;
  6094. Matrix2 Scaled(const Vector2&) const;
  6095. void SetScale(const Vector2&);
  6096. void SetScale(float);
  6097. String ToString() const;
  6098. Matrix2 Transpose() const;
  6099. // Properties:
  6100. float m00;
  6101. float m01;
  6102. float m10;
  6103. float m11;
  6104. };
  6105. class Matrix3
  6106. {
  6107. // Methods:
  6108. bool Equals(const Matrix3&) const;
  6109. Matrix3 Inverse() const;
  6110. Vector3 Scale() const;
  6111. Matrix3 Scaled(const Vector3&) const;
  6112. void SetScale(const Vector3&);
  6113. void SetScale(float);
  6114. String ToString() const;
  6115. Matrix3 Transpose() const;
  6116. // Properties:
  6117. float m00;
  6118. float m01;
  6119. float m02;
  6120. float m10;
  6121. float m11;
  6122. float m12;
  6123. float m20;
  6124. float m21;
  6125. float m22;
  6126. };
  6127. class Matrix3x4
  6128. {
  6129. // Methods:
  6130. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6131. bool Equals(const Matrix3x4&) const;
  6132. Matrix3x4 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. Matrix4 ToMatrix4() const;
  6142. String ToString() const;
  6143. Vector3 Translation() 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. };
  6158. class Matrix4
  6159. {
  6160. // Methods:
  6161. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6162. bool Equals(const Matrix4&) const;
  6163. Matrix4 Inverse() const;
  6164. Quaternion Rotation() const;
  6165. Matrix3 RotationMatrix() const;
  6166. Vector3 Scale() const;
  6167. void SetRotation(const Matrix3&);
  6168. void SetScale(const Vector3&);
  6169. void SetScale(float);
  6170. void SetTranslation(const Vector3&);
  6171. Matrix3 ToMatrix3() const;
  6172. String ToString() const;
  6173. Vector3 Translation() const;
  6174. Matrix4 Transpose() const;
  6175. // Properties:
  6176. float m00;
  6177. float m01;
  6178. float m02;
  6179. float m03;
  6180. float m10;
  6181. float m11;
  6182. float m12;
  6183. float m13;
  6184. float m20;
  6185. float m21;
  6186. float m22;
  6187. float m23;
  6188. float m30;
  6189. float m31;
  6190. float m32;
  6191. float m33;
  6192. };
  6193. class Menu
  6194. {
  6195. // Methods:
  6196. void AddChild(UIElement);
  6197. void AddTag(const String&);
  6198. void AddTags(const String&, int8 = ';');
  6199. void ApplyAttributes();
  6200. void BringToFront();
  6201. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6202. void DisableLayoutUpdate();
  6203. IntVector2 ElementToScreen(const IntVector2&);
  6204. void EnableLayoutUpdate();
  6205. uint FindChild(UIElement) const;
  6206. Variant GetAttribute(const String&) const;
  6207. ValueAnimation GetAttributeAnimation(const String&) const;
  6208. float GetAttributeAnimationSpeed(const String&) const;
  6209. float GetAttributeAnimationTime(const String&) const;
  6210. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6211. Variant GetAttributeDefault(const String&) const;
  6212. UIElement GetChild(const String&, bool = false) const;
  6213. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6214. Array<UIElement> GetChildren(bool = false) const;
  6215. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6216. UIElement GetElementEventSender() const;
  6217. bool GetInterceptNetworkUpdate(const String&) const;
  6218. uint GetNumChildren(bool) const;
  6219. bool HasSubscribedToEvent(Object, const String&);
  6220. bool HasSubscribedToEvent(const String&);
  6221. bool HasTag(const String&) const;
  6222. void InsertChild(uint, UIElement);
  6223. bool IsInside(IntVector2, bool);
  6224. bool IsInsideCombined(IntVector2, bool);
  6225. bool Load(File, bool = false);
  6226. bool Load(VectorBuffer&, bool = false);
  6227. bool LoadChildXML(XMLFile, XMLFile = null);
  6228. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6229. bool LoadJSON(const JSONValue&, bool = false);
  6230. bool LoadXML(File);
  6231. bool LoadXML(VectorBuffer&);
  6232. bool LoadXML(XMLFile, XMLFile);
  6233. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6234. bool LoadXML(const XMLElement&, bool = false);
  6235. void MarkNetworkUpdate() const;
  6236. void Remove();
  6237. void RemoveAllChildren();
  6238. void RemoveAllTags();
  6239. void RemoveAttributeAnimation(const String&);
  6240. void RemoveChild(UIElement, uint = 0);
  6241. void RemoveChild(uint);
  6242. void RemoveInstanceDefault();
  6243. void RemoveObjectAnimation();
  6244. bool RemoveTag(const String&);
  6245. void ResetDeepEnabled();
  6246. void ResetToDefault();
  6247. bool Save(File) const;
  6248. bool Save(VectorBuffer&) const;
  6249. bool SaveJSON(JSONValue&) const;
  6250. bool SaveXML(File, const String& = "\t");
  6251. bool SaveXML(VectorBuffer&, const String& = "\t");
  6252. bool SaveXML(XMLElement&) const;
  6253. IntVector2 ScreenToElement(const IntVector2&);
  6254. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6255. void SetAccelerator(int, int);
  6256. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6257. void SetAnimationTime(float);
  6258. bool SetAttribute(const String&, const Variant&);
  6259. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6260. void SetAttributeAnimationSpeed(const String&, float);
  6261. void SetAttributeAnimationTime(const String&, float);
  6262. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6263. void SetDeepEnabled(bool);
  6264. void SetEnabledRecursive(bool);
  6265. void SetFixedHeight(int);
  6266. void SetFixedSize(int, int);
  6267. void SetFixedWidth(int);
  6268. void SetFullImageRect();
  6269. void SetHoverOffset(int, int);
  6270. void SetInterceptNetworkUpdate(const String&, bool);
  6271. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6272. void SetMaxSize(int, int);
  6273. void SetMinSize(int, int);
  6274. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6275. void SetPopupOffset(int, int);
  6276. void SetPosition(int, int);
  6277. void SetPressedChildOffset(int, int);
  6278. void SetPressedOffset(int, int);
  6279. void SetRepeat(float, float);
  6280. void SetSize(int, int);
  6281. bool SetStyle(const String&, XMLFile = null);
  6282. bool SetStyle(const XMLElement&);
  6283. bool SetStyleAuto(XMLFile = null);
  6284. void UpdateLayout();
  6285. const Variant& GetVar(const StringHash&);
  6286. // Properties:
  6287. /* readonly */
  6288. int acceleratorKey;
  6289. /* readonly */
  6290. int acceleratorQualifiers;
  6291. bool animationEnabled;
  6292. /* readonly */
  6293. Array<Variant> attributeDefaults;
  6294. /* readonly */
  6295. Array<AttributeInfo> attributeInfos;
  6296. Array<Variant> attributes;
  6297. BlendMode blendMode;
  6298. IntRect border;
  6299. bool bringToBack;
  6300. bool bringToFront;
  6301. /* readonly */
  6302. String category;
  6303. /* readonly */
  6304. IntVector2 childOffset;
  6305. /* readonly */
  6306. Array<UIElement> children;
  6307. IntRect clipBorder;
  6308. bool clipChildren;
  6309. /* writeonly */
  6310. Color color;
  6311. /* readonly */
  6312. bool colorGradient;
  6313. Array<Color> colors;
  6314. /* readonly */
  6315. IntRect combinedScreenRect;
  6316. XMLFile defaultStyle;
  6317. /* readonly */
  6318. float derivedOpacity;
  6319. /* readonly */
  6320. uint dragButtonCombo;
  6321. /* readonly */
  6322. int dragButtonCount;
  6323. uint dragDropMode;
  6324. bool editable;
  6325. bool elementEventSender;
  6326. bool enabled;
  6327. /* readonly */
  6328. bool enabledSelf;
  6329. /* readonly */
  6330. bool fixedHeight;
  6331. /* readonly */
  6332. bool fixedSize;
  6333. /* readonly */
  6334. bool fixedWidth;
  6335. bool focus;
  6336. FocusMode focusMode;
  6337. int height;
  6338. HorizontalAlignment horizontalAlignment;
  6339. IntVector2 hoverOffset;
  6340. /* readonly */
  6341. bool hovering;
  6342. IntRect imageBorder;
  6343. IntRect imageRect;
  6344. int indent;
  6345. int indentSpacing;
  6346. /* readonly */
  6347. int indentWidth;
  6348. bool internal;
  6349. IntRect layoutBorder;
  6350. Vector2 layoutFlexScale;
  6351. LayoutMode layoutMode;
  6352. int layoutSpacing;
  6353. int maxHeight;
  6354. IntVector2 maxSize;
  6355. int maxWidth;
  6356. int minHeight;
  6357. IntVector2 minSize;
  6358. int minWidth;
  6359. String name;
  6360. /* readonly */
  6361. uint numAllChildren;
  6362. /* readonly */
  6363. uint numAttributes;
  6364. /* readonly */
  6365. uint numChildren;
  6366. ObjectAnimation objectAnimation;
  6367. float opacity;
  6368. UIElement parent;
  6369. UIElement popup;
  6370. IntVector2 popupOffset;
  6371. IntVector2 position;
  6372. /* readonly */
  6373. bool pressed;
  6374. IntVector2 pressedChildOffset;
  6375. IntVector2 pressedOffset;
  6376. int priority;
  6377. /* readonly */
  6378. int refs;
  6379. float repeatDelay;
  6380. float repeatRate;
  6381. /* readonly */
  6382. UIElement root;
  6383. /* readonly */
  6384. IntVector2 screenPosition;
  6385. bool selected;
  6386. bool showPopup;
  6387. IntVector2 size;
  6388. bool sortChildren;
  6389. String style;
  6390. /* readonly */
  6391. Array<String> tags;
  6392. bool temporary;
  6393. Texture texture;
  6394. bool tiled;
  6395. TraversalMode traversalMode;
  6396. /* readonly */
  6397. StringHash type;
  6398. /* readonly */
  6399. String typeName;
  6400. bool useDerivedOpacity;
  6401. /* readonly */
  6402. VariantMap vars;
  6403. VerticalAlignment verticalAlignment;
  6404. bool visible;
  6405. /* readonly */
  6406. bool visibleEffective;
  6407. /* readonly */
  6408. int weakRefs;
  6409. int width;
  6410. };
  6411. class MessageBox
  6412. {
  6413. // Methods:
  6414. bool HasSubscribedToEvent(Object, const String&);
  6415. bool HasSubscribedToEvent(const String&);
  6416. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6417. // Properties:
  6418. /* readonly */
  6419. String category;
  6420. String message;
  6421. /* readonly */
  6422. int refs;
  6423. String title;
  6424. /* readonly */
  6425. StringHash type;
  6426. /* readonly */
  6427. String typeName;
  6428. /* readonly */
  6429. int weakRefs;
  6430. /* readonly */
  6431. UIElement window;
  6432. };
  6433. class Model
  6434. {
  6435. // Methods:
  6436. Model Clone(const String& = String ( )) const;
  6437. Geometry GetGeometry(uint, uint) const;
  6438. bool HasSubscribedToEvent(Object, const String&);
  6439. bool HasSubscribedToEvent(const String&);
  6440. bool Load(File);
  6441. bool Load(VectorBuffer&);
  6442. bool Save(File) const;
  6443. bool Save(VectorBuffer&) const;
  6444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6445. bool SetGeometry(uint, uint, Geometry);
  6446. // Properties:
  6447. BoundingBox boundingBox;
  6448. /* readonly */
  6449. String category;
  6450. Array<Vector3> geometryCenters;
  6451. /* readonly */
  6452. uint memoryUse;
  6453. String name;
  6454. uint numGeometries;
  6455. Array<uint> numGeometryLodLevels;
  6456. /* readonly */
  6457. uint numMorphs;
  6458. /* readonly */
  6459. int refs;
  6460. /* readonly */
  6461. Skeleton skeleton;
  6462. /* readonly */
  6463. StringHash type;
  6464. /* readonly */
  6465. String typeName;
  6466. /* readonly */
  6467. uint useTimer;
  6468. /* readonly */
  6469. int weakRefs;
  6470. };
  6471. class NavArea
  6472. {
  6473. // Methods:
  6474. void ApplyAttributes();
  6475. void DrawDebugGeometry(DebugRenderer, bool);
  6476. Variant GetAttribute(const String&) const;
  6477. ValueAnimation GetAttributeAnimation(const String&) const;
  6478. float GetAttributeAnimationSpeed(const String&) const;
  6479. float GetAttributeAnimationTime(const String&) const;
  6480. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6481. Variant GetAttributeDefault(const String&) const;
  6482. bool GetInterceptNetworkUpdate(const String&) const;
  6483. bool HasSubscribedToEvent(Object, const String&);
  6484. bool HasSubscribedToEvent(const String&);
  6485. bool Load(File, bool = false);
  6486. bool Load(VectorBuffer&, bool = false);
  6487. bool LoadJSON(const JSONValue&, bool = false);
  6488. bool LoadXML(const XMLElement&, bool = false);
  6489. void MarkNetworkUpdate() const;
  6490. void Remove();
  6491. void RemoveAttributeAnimation(const String&);
  6492. void RemoveInstanceDefault();
  6493. void RemoveObjectAnimation();
  6494. void ResetToDefault();
  6495. bool Save(File) const;
  6496. bool Save(VectorBuffer&) const;
  6497. bool SaveJSON(JSONValue&) const;
  6498. bool SaveXML(XMLElement&) const;
  6499. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6500. void SetAnimationTime(float);
  6501. bool SetAttribute(const String&, const Variant&);
  6502. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6503. void SetAttributeAnimationSpeed(const String&, float);
  6504. void SetAttributeAnimationTime(const String&, float);
  6505. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6506. void SetInterceptNetworkUpdate(const String&, bool);
  6507. // Properties:
  6508. bool animationEnabled;
  6509. uint areaID;
  6510. /* readonly */
  6511. Array<Variant> attributeDefaults;
  6512. /* readonly */
  6513. Array<AttributeInfo> attributeInfos;
  6514. Array<Variant> attributes;
  6515. BoundingBox boundingBox;
  6516. /* readonly */
  6517. String category;
  6518. bool enabled;
  6519. /* readonly */
  6520. bool enabledEffective;
  6521. /* readonly */
  6522. uint id;
  6523. /* readonly */
  6524. Node node;
  6525. /* readonly */
  6526. uint numAttributes;
  6527. ObjectAnimation objectAnimation;
  6528. /* readonly */
  6529. int refs;
  6530. bool temporary;
  6531. /* readonly */
  6532. StringHash type;
  6533. /* readonly */
  6534. String typeName;
  6535. /* readonly */
  6536. int weakRefs;
  6537. /* readonly */
  6538. BoundingBox worldBoundingBox;
  6539. };
  6540. class Navigable
  6541. {
  6542. // Methods:
  6543. void ApplyAttributes();
  6544. void DrawDebugGeometry(DebugRenderer, bool);
  6545. Variant GetAttribute(const String&) const;
  6546. ValueAnimation GetAttributeAnimation(const String&) const;
  6547. float GetAttributeAnimationSpeed(const String&) const;
  6548. float GetAttributeAnimationTime(const String&) const;
  6549. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6550. Variant GetAttributeDefault(const String&) const;
  6551. bool GetInterceptNetworkUpdate(const String&) const;
  6552. bool HasSubscribedToEvent(Object, const String&);
  6553. bool HasSubscribedToEvent(const String&);
  6554. bool Load(File, bool = false);
  6555. bool Load(VectorBuffer&, bool = false);
  6556. bool LoadJSON(const JSONValue&, bool = false);
  6557. bool LoadXML(const XMLElement&, bool = false);
  6558. void MarkNetworkUpdate() const;
  6559. void Remove();
  6560. void RemoveAttributeAnimation(const String&);
  6561. void RemoveInstanceDefault();
  6562. void RemoveObjectAnimation();
  6563. void ResetToDefault();
  6564. bool Save(File) const;
  6565. bool Save(VectorBuffer&) const;
  6566. bool SaveJSON(JSONValue&) const;
  6567. bool SaveXML(XMLElement&) const;
  6568. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6569. void SetAnimationTime(float);
  6570. bool SetAttribute(const String&, const Variant&);
  6571. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6572. void SetAttributeAnimationSpeed(const String&, float);
  6573. void SetAttributeAnimationTime(const String&, float);
  6574. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6575. void SetInterceptNetworkUpdate(const String&, bool);
  6576. // Properties:
  6577. bool animationEnabled;
  6578. /* readonly */
  6579. Array<Variant> attributeDefaults;
  6580. /* readonly */
  6581. Array<AttributeInfo> attributeInfos;
  6582. Array<Variant> attributes;
  6583. /* readonly */
  6584. String category;
  6585. bool enabled;
  6586. /* readonly */
  6587. bool enabledEffective;
  6588. /* readonly */
  6589. uint id;
  6590. /* readonly */
  6591. Node node;
  6592. /* readonly */
  6593. uint numAttributes;
  6594. ObjectAnimation objectAnimation;
  6595. bool recursive;
  6596. /* readonly */
  6597. int refs;
  6598. bool temporary;
  6599. /* readonly */
  6600. StringHash type;
  6601. /* readonly */
  6602. String typeName;
  6603. /* readonly */
  6604. int weakRefs;
  6605. };
  6606. class NavigationMesh
  6607. {
  6608. // Methods:
  6609. void ApplyAttributes();
  6610. bool Build();
  6611. bool Build(const BoundingBox&);
  6612. void DrawDebugGeometry(DebugRenderer, bool);
  6613. void DrawDebugGeometry(bool);
  6614. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6615. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6616. float GetAreaCost(uint) const;
  6617. Variant GetAttribute(const String&) const;
  6618. ValueAnimation GetAttributeAnimation(const String&) const;
  6619. float GetAttributeAnimationSpeed(const String&) const;
  6620. float GetAttributeAnimationTime(const String&) const;
  6621. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6622. Variant GetAttributeDefault(const String&) const;
  6623. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6624. bool GetInterceptNetworkUpdate(const String&) const;
  6625. Vector3 GetRandomPoint();
  6626. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6627. bool HasSubscribedToEvent(Object, const String&);
  6628. bool HasSubscribedToEvent(const String&);
  6629. bool Load(File, bool = false);
  6630. bool Load(VectorBuffer&, bool = false);
  6631. bool LoadJSON(const JSONValue&, bool = false);
  6632. bool LoadXML(const XMLElement&, bool = false);
  6633. void MarkNetworkUpdate() const;
  6634. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6635. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6636. void Remove();
  6637. void RemoveAttributeAnimation(const String&);
  6638. void RemoveInstanceDefault();
  6639. void RemoveObjectAnimation();
  6640. void ResetToDefault();
  6641. bool Save(File) const;
  6642. bool Save(VectorBuffer&) const;
  6643. bool SaveJSON(JSONValue&) const;
  6644. bool SaveXML(XMLElement&) const;
  6645. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6646. void SetAnimationTime(float);
  6647. void SetAreaCost(uint, float);
  6648. bool SetAttribute(const String&, const Variant&);
  6649. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6650. void SetAttributeAnimationSpeed(const String&, float);
  6651. void SetAttributeAnimationTime(const String&, float);
  6652. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6653. void SetInterceptNetworkUpdate(const String&, bool);
  6654. // Properties:
  6655. float agentHeight;
  6656. float agentMaxClimb;
  6657. float agentMaxSlope;
  6658. float agentRadius;
  6659. bool animationEnabled;
  6660. /* readonly */
  6661. Array<Variant> attributeDefaults;
  6662. /* readonly */
  6663. Array<AttributeInfo> attributeInfos;
  6664. Array<Variant> attributes;
  6665. /* readonly */
  6666. BoundingBox boundingBox;
  6667. /* readonly */
  6668. String category;
  6669. float cellHeight;
  6670. float cellSize;
  6671. float detailSampleDistance;
  6672. float detailSampleMaxError;
  6673. bool drawNavAreas;
  6674. bool drawOffMeshConnections;
  6675. float edgeMaxError;
  6676. float edgeMaxLength;
  6677. bool enabled;
  6678. /* readonly */
  6679. bool enabledEffective;
  6680. /* readonly */
  6681. uint id;
  6682. /* readonly */
  6683. bool initialized;
  6684. /* readonly */
  6685. Node node;
  6686. /* readonly */
  6687. uint numAttributes;
  6688. /* readonly */
  6689. IntVector2 numTiles;
  6690. ObjectAnimation objectAnimation;
  6691. Vector3 padding;
  6692. NavmeshPartitionType partitionType;
  6693. /* readonly */
  6694. int refs;
  6695. float regionMergeSize;
  6696. float regionMinSize;
  6697. bool temporary;
  6698. int tileSize;
  6699. /* readonly */
  6700. StringHash type;
  6701. /* readonly */
  6702. String typeName;
  6703. /* readonly */
  6704. int weakRefs;
  6705. /* readonly */
  6706. BoundingBox worldBoundingBox;
  6707. };
  6708. class Network
  6709. {
  6710. // Methods:
  6711. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6712. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6713. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6714. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6715. bool CheckRemoteEvent(const String&) const;
  6716. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6717. void Disconnect(int = 0);
  6718. bool HasSubscribedToEvent(Object, const String&);
  6719. bool HasSubscribedToEvent(const String&);
  6720. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6721. void RegisterRemoteEvent(const String&) const;
  6722. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6723. void SendPackageToClients(Scene, PackageFile);
  6724. bool StartServer(uint16);
  6725. void StopServer();
  6726. void UnregisterAllRemoteEvents();
  6727. void UnregisterRemoteEvent(const String&) const;
  6728. // Properties:
  6729. /* readonly */
  6730. String category;
  6731. /* readonly */
  6732. Array<Connection> clientConnections;
  6733. String packageCacheDir;
  6734. /* readonly */
  6735. int refs;
  6736. /* readonly */
  6737. Connection serverConnection;
  6738. /* readonly */
  6739. bool serverRunning;
  6740. int simulatedLatency;
  6741. float simulatedPacketLoss;
  6742. /* readonly */
  6743. StringHash type;
  6744. /* readonly */
  6745. String typeName;
  6746. int updateFps;
  6747. /* readonly */
  6748. int weakRefs;
  6749. };
  6750. class NetworkPriority
  6751. {
  6752. // Methods:
  6753. void ApplyAttributes();
  6754. void DrawDebugGeometry(DebugRenderer, bool);
  6755. Variant GetAttribute(const String&) const;
  6756. ValueAnimation GetAttributeAnimation(const String&) const;
  6757. float GetAttributeAnimationSpeed(const String&) const;
  6758. float GetAttributeAnimationTime(const String&) const;
  6759. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6760. Variant GetAttributeDefault(const String&) const;
  6761. bool GetInterceptNetworkUpdate(const String&) const;
  6762. bool HasSubscribedToEvent(Object, const String&);
  6763. bool HasSubscribedToEvent(const String&);
  6764. bool Load(File, bool = false);
  6765. bool Load(VectorBuffer&, bool = false);
  6766. bool LoadJSON(const JSONValue&, bool = false);
  6767. bool LoadXML(const XMLElement&, bool = false);
  6768. void MarkNetworkUpdate() const;
  6769. void Remove();
  6770. void RemoveAttributeAnimation(const String&);
  6771. void RemoveInstanceDefault();
  6772. void RemoveObjectAnimation();
  6773. void ResetToDefault();
  6774. bool Save(File) const;
  6775. bool Save(VectorBuffer&) const;
  6776. bool SaveJSON(JSONValue&) const;
  6777. bool SaveXML(XMLElement&) const;
  6778. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6779. void SetAnimationTime(float);
  6780. bool SetAttribute(const String&, const Variant&);
  6781. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6782. void SetAttributeAnimationSpeed(const String&, float);
  6783. void SetAttributeAnimationTime(const String&, float);
  6784. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6785. void SetInterceptNetworkUpdate(const String&, bool);
  6786. // Properties:
  6787. bool alwaysUpdateOwner;
  6788. bool animationEnabled;
  6789. /* readonly */
  6790. Array<Variant> attributeDefaults;
  6791. /* readonly */
  6792. Array<AttributeInfo> attributeInfos;
  6793. Array<Variant> attributes;
  6794. float basePriority;
  6795. /* readonly */
  6796. String category;
  6797. float distanceFactor;
  6798. bool enabled;
  6799. /* readonly */
  6800. bool enabledEffective;
  6801. /* readonly */
  6802. uint id;
  6803. float minPriority;
  6804. /* readonly */
  6805. Node node;
  6806. /* readonly */
  6807. uint numAttributes;
  6808. ObjectAnimation objectAnimation;
  6809. /* readonly */
  6810. int refs;
  6811. bool temporary;
  6812. /* readonly */
  6813. StringHash type;
  6814. /* readonly */
  6815. String typeName;
  6816. /* readonly */
  6817. int weakRefs;
  6818. };
  6819. class Node
  6820. {
  6821. // Methods:
  6822. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6823. void AddTag(const String&);
  6824. void AddTags(const String&, int8 = ';');
  6825. void ApplyAttributes();
  6826. Node Clone(CreateMode = REPLICATED);
  6827. Component CloneComponent(Component, CreateMode, uint = 0);
  6828. Component CloneComponent(Component, uint = 0);
  6829. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6830. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6831. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6832. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6833. Variant GetAttribute(const String&) const;
  6834. ValueAnimation GetAttributeAnimation(const String&) const;
  6835. float GetAttributeAnimationSpeed(const String&) const;
  6836. float GetAttributeAnimationTime(const String&) const;
  6837. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6838. Variant GetAttributeDefault(const String&) const;
  6839. Node GetChild(const String&, bool = false) const;
  6840. Array<Node> GetChildren(bool = false) const;
  6841. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6842. Array<Node> GetChildrenWithScript(bool = false) const;
  6843. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6844. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6845. Component GetComponent(const String&, bool = false) const;
  6846. Array<Component> GetComponents() const;
  6847. Array<Component> GetComponents(const String&, bool = false) const;
  6848. bool GetInterceptNetworkUpdate(const String&) const;
  6849. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6850. Component GetParentComponent(const String&, bool = false) const;
  6851. ScriptObject GetScriptObject() const;
  6852. ScriptObject GetScriptObject(const String&) const;
  6853. bool HasComponent(const String&) const;
  6854. bool HasSubscribedToEvent(Object, const String&);
  6855. bool HasSubscribedToEvent(const String&);
  6856. bool HasTag(const String&);
  6857. bool Load(File, bool = false);
  6858. bool Load(VectorBuffer&, bool = false);
  6859. bool LoadJSON(const JSONValue&, bool = false);
  6860. bool LoadXML(const XMLElement&, bool = false);
  6861. Vector3 LocalToWorld(const Vector3&) const;
  6862. Vector3 LocalToWorld(const Vector4&) const;
  6863. Vector2 LocalToWorld2D(const Vector2&) const;
  6864. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6865. void MarkDirty();
  6866. void MarkNetworkUpdate() const;
  6867. void Pitch(float, TransformSpace = TS_LOCAL);
  6868. void Remove();
  6869. void RemoveAllChildren();
  6870. void RemoveAllComponents();
  6871. void RemoveAllTags();
  6872. void RemoveAttributeAnimation(const String&);
  6873. void RemoveChild(Node);
  6874. void RemoveChildren(bool, bool, bool);
  6875. void RemoveComponent(Component);
  6876. void RemoveComponent(const String&);
  6877. void RemoveComponents(bool, bool);
  6878. void RemoveComponents(const String&);
  6879. void RemoveInstanceDefault();
  6880. void RemoveObjectAnimation();
  6881. bool RemoveTag(const String&);
  6882. void ResetDeepEnabled();
  6883. void ResetToDefault();
  6884. void Roll(float, TransformSpace = TS_LOCAL);
  6885. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6886. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6887. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6888. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6889. bool Save(File) const;
  6890. bool Save(VectorBuffer&) const;
  6891. bool SaveJSON(File);
  6892. bool SaveJSON(JSONValue&) const;
  6893. bool SaveJSON(VectorBuffer&);
  6894. bool SaveXML(File, const String& = "\t");
  6895. bool SaveXML(VectorBuffer&, const String& = "\t");
  6896. bool SaveXML(XMLElement&) const;
  6897. void Scale(const Vector3&);
  6898. void Scale(float);
  6899. void Scale2D(const Vector2&);
  6900. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6901. void SetAnimationTime(float);
  6902. bool SetAttribute(const String&, const Variant&);
  6903. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6904. void SetAttributeAnimationSpeed(const String&, float);
  6905. void SetAttributeAnimationTime(const String&, float);
  6906. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6907. void SetDeepEnabled(bool);
  6908. void SetEnabledRecursive(bool);
  6909. void SetInterceptNetworkUpdate(const String&, bool);
  6910. void SetPosition2D(float, float);
  6911. void SetScale(float);
  6912. void SetScale2D(float, float);
  6913. void SetTransform(const Vector3&, const Quaternion&);
  6914. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6915. void SetTransform(const Vector3&, const Quaternion&, float);
  6916. void SetTransform2D(const Vector2&, float);
  6917. void SetTransform2D(const Vector2&, float, const Vector2&);
  6918. void SetTransform2D(const Vector2&, float, float);
  6919. void SetWorldTransform(const Vector3&, const Quaternion&);
  6920. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6921. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6922. void SetWorldTransform2D(const Vector2&, float);
  6923. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6924. void SetWorldTransform2D(const Vector2&, float, float);
  6925. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6926. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6927. Vector3 WorldToLocal(const Vector3&) const;
  6928. Vector3 WorldToLocal(const Vector4&) const;
  6929. Vector2 WorldToLocal2D(const Vector2&) const;
  6930. void Yaw(float, TransformSpace = TS_LOCAL);
  6931. // Properties:
  6932. bool animationEnabled;
  6933. /* readonly */
  6934. Array<Variant> attributeDefaults;
  6935. /* readonly */
  6936. Array<AttributeInfo> attributeInfos;
  6937. Array<Variant> attributes;
  6938. /* readonly */
  6939. String category;
  6940. /* readonly */
  6941. Array<Node> children;
  6942. /* readonly */
  6943. Array<Component> components;
  6944. Vector3 direction;
  6945. bool enabled;
  6946. /* readonly */
  6947. bool enabledSelf;
  6948. /* readonly */
  6949. uint id;
  6950. String name;
  6951. /* readonly */
  6952. uint numAllChildren;
  6953. /* readonly */
  6954. uint numAttributes;
  6955. /* readonly */
  6956. uint numChildren;
  6957. /* readonly */
  6958. uint numComponents;
  6959. ObjectAnimation objectAnimation;
  6960. Connection owner;
  6961. Node parent;
  6962. Vector3 position;
  6963. Vector2 position2D;
  6964. /* readonly */
  6965. int refs;
  6966. /* readonly */
  6967. Vector3 right;
  6968. Quaternion rotation;
  6969. float rotation2D;
  6970. Vector3 scale;
  6971. Vector2 scale2D;
  6972. /* readonly */
  6973. Scene scene;
  6974. /* readonly */
  6975. ScriptObject scriptObject;
  6976. /* readonly */
  6977. Array<String> tags;
  6978. bool temporary;
  6979. /* readonly */
  6980. Matrix3x4 transform;
  6981. /* readonly */
  6982. StringHash type;
  6983. /* readonly */
  6984. String typeName;
  6985. /* readonly */
  6986. Vector3 up;
  6987. /* readonly */
  6988. VariantMap vars;
  6989. /* readonly */
  6990. int weakRefs;
  6991. Vector3 worldDirection;
  6992. Vector3 worldPosition;
  6993. Vector2 worldPosition2D;
  6994. /* readonly */
  6995. Vector3 worldRight;
  6996. Quaternion worldRotation;
  6997. float worldRotation2D;
  6998. Vector3 worldScale;
  6999. Vector2 worldScale2D;
  7000. /* readonly */
  7001. Matrix3x4 worldTransform;
  7002. /* readonly */
  7003. Vector3 worldUp;
  7004. };
  7005. class Object
  7006. {
  7007. // Methods:
  7008. bool HasSubscribedToEvent(Object, const String&);
  7009. bool HasSubscribedToEvent(const String&);
  7010. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7011. // Properties:
  7012. /* readonly */
  7013. String category;
  7014. /* readonly */
  7015. int refs;
  7016. /* readonly */
  7017. StringHash type;
  7018. /* readonly */
  7019. String typeName;
  7020. /* readonly */
  7021. int weakRefs;
  7022. };
  7023. class ObjectAnimation
  7024. {
  7025. // Methods:
  7026. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7027. ValueAnimation GetAttributeAnimation(const String&) const;
  7028. float GetAttributeAnimationSpeed(const String&) const;
  7029. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7030. bool HasSubscribedToEvent(Object, const String&);
  7031. bool HasSubscribedToEvent(const String&);
  7032. bool Load(File);
  7033. bool Load(VectorBuffer&);
  7034. void RemoveAttributeAnimation(ValueAnimation);
  7035. void RemoveAttributeAnimation(const String&);
  7036. bool Save(File) const;
  7037. bool Save(VectorBuffer&) const;
  7038. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7039. // Properties:
  7040. /* readonly */
  7041. Array<Variant> attributeAnimations;
  7042. /* readonly */
  7043. String category;
  7044. /* readonly */
  7045. uint memoryUse;
  7046. String name;
  7047. /* readonly */
  7048. int refs;
  7049. /* readonly */
  7050. Array<Variant> speeds;
  7051. /* readonly */
  7052. StringHash type;
  7053. /* readonly */
  7054. String typeName;
  7055. /* readonly */
  7056. uint useTimer;
  7057. /* readonly */
  7058. int weakRefs;
  7059. /* readonly */
  7060. Array<Variant> wrapModes;
  7061. };
  7062. class Obstacle
  7063. {
  7064. // Methods:
  7065. void ApplyAttributes();
  7066. void DrawDebugGeometry(DebugRenderer, bool);
  7067. void DrawDebugGeometry(bool);
  7068. Variant GetAttribute(const String&) const;
  7069. ValueAnimation GetAttributeAnimation(const String&) const;
  7070. float GetAttributeAnimationSpeed(const String&) const;
  7071. float GetAttributeAnimationTime(const String&) const;
  7072. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7073. Variant GetAttributeDefault(const String&) const;
  7074. bool GetInterceptNetworkUpdate(const String&) const;
  7075. bool HasSubscribedToEvent(Object, const String&);
  7076. bool HasSubscribedToEvent(const String&);
  7077. bool Load(File, bool = false);
  7078. bool Load(VectorBuffer&, bool = false);
  7079. bool LoadJSON(const JSONValue&, bool = false);
  7080. bool LoadXML(const XMLElement&, bool = false);
  7081. void MarkNetworkUpdate() const;
  7082. void Remove();
  7083. void RemoveAttributeAnimation(const String&);
  7084. void RemoveInstanceDefault();
  7085. void RemoveObjectAnimation();
  7086. void ResetToDefault();
  7087. bool Save(File) const;
  7088. bool Save(VectorBuffer&) const;
  7089. bool SaveJSON(JSONValue&) const;
  7090. bool SaveXML(XMLElement&) const;
  7091. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7092. void SetAnimationTime(float);
  7093. bool SetAttribute(const String&, const Variant&);
  7094. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7095. void SetAttributeAnimationSpeed(const String&, float);
  7096. void SetAttributeAnimationTime(const String&, float);
  7097. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7098. void SetInterceptNetworkUpdate(const String&, bool);
  7099. // Properties:
  7100. bool animationEnabled;
  7101. /* readonly */
  7102. Array<Variant> attributeDefaults;
  7103. /* readonly */
  7104. Array<AttributeInfo> attributeInfos;
  7105. Array<Variant> attributes;
  7106. /* readonly */
  7107. String category;
  7108. bool enabled;
  7109. /* readonly */
  7110. bool enabledEffective;
  7111. float height;
  7112. /* readonly */
  7113. uint id;
  7114. /* readonly */
  7115. Node node;
  7116. /* readonly */
  7117. uint numAttributes;
  7118. ObjectAnimation objectAnimation;
  7119. /* readonly */
  7120. uint obstacleId;
  7121. float radius;
  7122. /* readonly */
  7123. int refs;
  7124. bool temporary;
  7125. /* readonly */
  7126. StringHash type;
  7127. /* readonly */
  7128. String typeName;
  7129. /* readonly */
  7130. int weakRefs;
  7131. };
  7132. class Octree
  7133. {
  7134. // Methods:
  7135. void AddManualDrawable(Drawable);
  7136. void ApplyAttributes();
  7137. void DrawDebugGeometry(DebugRenderer, bool);
  7138. void DrawDebugGeometry(bool) const;
  7139. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7140. Variant GetAttribute(const String&) const;
  7141. ValueAnimation GetAttributeAnimation(const String&) const;
  7142. float GetAttributeAnimationSpeed(const String&) const;
  7143. float GetAttributeAnimationTime(const String&) const;
  7144. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7145. Variant GetAttributeDefault(const String&) const;
  7146. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7147. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7148. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7149. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7150. bool GetInterceptNetworkUpdate(const String&) const;
  7151. bool HasSubscribedToEvent(Object, const String&);
  7152. bool HasSubscribedToEvent(const String&);
  7153. bool Load(File, bool = false);
  7154. bool Load(VectorBuffer&, bool = false);
  7155. bool LoadJSON(const JSONValue&, bool = false);
  7156. bool LoadXML(const XMLElement&, bool = false);
  7157. void MarkNetworkUpdate() const;
  7158. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7159. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7160. void Remove();
  7161. void RemoveAttributeAnimation(const String&);
  7162. void RemoveInstanceDefault();
  7163. void RemoveManualDrawable(Drawable);
  7164. void RemoveObjectAnimation();
  7165. void ResetToDefault();
  7166. bool Save(File) const;
  7167. bool Save(VectorBuffer&) const;
  7168. bool SaveJSON(JSONValue&) const;
  7169. bool SaveXML(XMLElement&) const;
  7170. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7171. void SetAnimationTime(float);
  7172. bool SetAttribute(const String&, const Variant&);
  7173. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7174. void SetAttributeAnimationSpeed(const String&, float);
  7175. void SetAttributeAnimationTime(const String&, float);
  7176. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7177. void SetInterceptNetworkUpdate(const String&, bool);
  7178. void SetSize(const BoundingBox&, uint);
  7179. // Properties:
  7180. bool animationEnabled;
  7181. /* readonly */
  7182. Array<Variant> attributeDefaults;
  7183. /* readonly */
  7184. Array<AttributeInfo> attributeInfos;
  7185. Array<Variant> attributes;
  7186. /* readonly */
  7187. String category;
  7188. bool enabled;
  7189. /* readonly */
  7190. bool enabledEffective;
  7191. /* readonly */
  7192. uint id;
  7193. /* readonly */
  7194. Node node;
  7195. /* readonly */
  7196. uint numAttributes;
  7197. /* readonly */
  7198. uint numLevels;
  7199. ObjectAnimation objectAnimation;
  7200. /* readonly */
  7201. int refs;
  7202. bool temporary;
  7203. /* readonly */
  7204. StringHash type;
  7205. /* readonly */
  7206. String typeName;
  7207. /* readonly */
  7208. int weakRefs;
  7209. /* readonly */
  7210. BoundingBox worldBoundingBox;
  7211. };
  7212. class OffMeshConnection
  7213. {
  7214. // Methods:
  7215. void ApplyAttributes();
  7216. void DrawDebugGeometry(DebugRenderer, bool);
  7217. Variant GetAttribute(const String&) const;
  7218. ValueAnimation GetAttributeAnimation(const String&) const;
  7219. float GetAttributeAnimationSpeed(const String&) const;
  7220. float GetAttributeAnimationTime(const String&) const;
  7221. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7222. Variant GetAttributeDefault(const String&) const;
  7223. bool GetInterceptNetworkUpdate(const String&) const;
  7224. bool HasSubscribedToEvent(Object, const String&);
  7225. bool HasSubscribedToEvent(const String&);
  7226. bool Load(File, bool = false);
  7227. bool Load(VectorBuffer&, bool = false);
  7228. bool LoadJSON(const JSONValue&, bool = false);
  7229. bool LoadXML(const XMLElement&, bool = false);
  7230. void MarkNetworkUpdate() const;
  7231. void Remove();
  7232. void RemoveAttributeAnimation(const String&);
  7233. void RemoveInstanceDefault();
  7234. void RemoveObjectAnimation();
  7235. void ResetToDefault();
  7236. bool Save(File) const;
  7237. bool Save(VectorBuffer&) const;
  7238. bool SaveJSON(JSONValue&) const;
  7239. bool SaveXML(XMLElement&) const;
  7240. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7241. void SetAnimationTime(float);
  7242. bool SetAttribute(const String&, const Variant&);
  7243. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7244. void SetAttributeAnimationSpeed(const String&, float);
  7245. void SetAttributeAnimationTime(const String&, float);
  7246. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7247. void SetInterceptNetworkUpdate(const String&, bool);
  7248. // Properties:
  7249. bool animationEnabled;
  7250. uint areaID;
  7251. /* readonly */
  7252. Array<Variant> attributeDefaults;
  7253. /* readonly */
  7254. Array<AttributeInfo> attributeInfos;
  7255. Array<Variant> attributes;
  7256. bool bidirectional;
  7257. /* readonly */
  7258. String category;
  7259. bool enabled;
  7260. /* readonly */
  7261. bool enabledEffective;
  7262. Node endPoint;
  7263. /* readonly */
  7264. uint id;
  7265. uint mask;
  7266. /* readonly */
  7267. Node node;
  7268. /* readonly */
  7269. uint numAttributes;
  7270. ObjectAnimation objectAnimation;
  7271. float radius;
  7272. /* readonly */
  7273. int refs;
  7274. bool temporary;
  7275. /* readonly */
  7276. StringHash type;
  7277. /* readonly */
  7278. String typeName;
  7279. /* readonly */
  7280. int weakRefs;
  7281. };
  7282. class PackageFile
  7283. {
  7284. // Methods:
  7285. bool Exists(const String&) const;
  7286. Array<String> GetEntryNames() const;
  7287. bool HasSubscribedToEvent(Object, const String&);
  7288. bool HasSubscribedToEvent(const String&);
  7289. bool Open(const String&, uint = 0) const;
  7290. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7291. bool compressed() const;
  7292. // Properties:
  7293. /* readonly */
  7294. String category;
  7295. /* readonly */
  7296. uint checksum;
  7297. /* readonly */
  7298. String name;
  7299. /* readonly */
  7300. uint numFiles;
  7301. /* readonly */
  7302. int refs;
  7303. /* readonly */
  7304. uint totalSize;
  7305. /* readonly */
  7306. StringHash type;
  7307. /* readonly */
  7308. String typeName;
  7309. /* readonly */
  7310. int weakRefs;
  7311. };
  7312. class ParticleEffect
  7313. {
  7314. // Methods:
  7315. void AddColorFrame(ColorFrame);
  7316. void AddColorTime(Color&, float);
  7317. void AddTextureFrame(TextureFrame);
  7318. void AddTextureTime(Rect&, float);
  7319. ColorFrame GetColorFrame(uint) const;
  7320. TextureFrame GetTextureFrame(uint) const;
  7321. bool HasSubscribedToEvent(Object, const String&);
  7322. bool HasSubscribedToEvent(const String&);
  7323. bool Load(File);
  7324. bool Load(VectorBuffer&);
  7325. bool Load(const XMLElement&);
  7326. void RemoveColorFrame(uint);
  7327. void RemoveTextureFrame(uint);
  7328. bool Save(File) const;
  7329. bool Save(VectorBuffer&) const;
  7330. bool Save(XMLElement&) const;
  7331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7332. void SetColorFrame(uint, ColorFrame);
  7333. void SetTextureFrame(uint, TextureFrame);
  7334. void SortColorFrames();
  7335. void SortTextureFrames();
  7336. // Properties:
  7337. float activeTime;
  7338. float animationLodBias;
  7339. /* readonly */
  7340. String category;
  7341. Vector3 constantForce;
  7342. float dampingForce;
  7343. Vector3 emitterSize;
  7344. EmitterType emitterType;
  7345. FaceCameraMode faceCameraMode;
  7346. float inactiveTime;
  7347. Material material;
  7348. Vector3 maxDirection;
  7349. float maxEmissionRate;
  7350. Vector2 maxParticleSize;
  7351. float maxRotation;
  7352. float maxRotationSpeed;
  7353. float maxTimeToLive;
  7354. float maxVelocity;
  7355. /* readonly */
  7356. uint memoryUse;
  7357. Vector3 minDirection;
  7358. float minEmissionRate;
  7359. Vector2 minParticleSize;
  7360. float minRotation;
  7361. float minRotationSpeed;
  7362. float minTimeToLive;
  7363. float minVelocity;
  7364. String name;
  7365. uint numColorFrames;
  7366. uint numParticles;
  7367. uint numTextureFrames;
  7368. /* readonly */
  7369. int refs;
  7370. bool relative;
  7371. bool scaled;
  7372. float sizeAdd;
  7373. float sizeMul;
  7374. bool sorted;
  7375. /* readonly */
  7376. StringHash type;
  7377. /* readonly */
  7378. String typeName;
  7379. bool updateInvisible;
  7380. /* readonly */
  7381. uint useTimer;
  7382. /* readonly */
  7383. int weakRefs;
  7384. };
  7385. class ParticleEffect2D
  7386. {
  7387. // Methods:
  7388. bool HasSubscribedToEvent(Object, const String&);
  7389. bool HasSubscribedToEvent(const String&);
  7390. bool Load(File);
  7391. bool Load(VectorBuffer&);
  7392. bool Save(File) const;
  7393. bool Save(VectorBuffer&) const;
  7394. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7395. // Properties:
  7396. /* readonly */
  7397. String category;
  7398. /* readonly */
  7399. uint memoryUse;
  7400. String name;
  7401. /* readonly */
  7402. int refs;
  7403. /* readonly */
  7404. StringHash type;
  7405. /* readonly */
  7406. String typeName;
  7407. /* readonly */
  7408. uint useTimer;
  7409. /* readonly */
  7410. int weakRefs;
  7411. };
  7412. class ParticleEmitter
  7413. {
  7414. // Methods:
  7415. void ApplyAttributes();
  7416. void ApplyEffect();
  7417. void Commit();
  7418. void DrawDebugGeometry(DebugRenderer, bool);
  7419. Variant GetAttribute(const String&) const;
  7420. ValueAnimation GetAttributeAnimation(const String&) const;
  7421. float GetAttributeAnimationSpeed(const String&) const;
  7422. float GetAttributeAnimationTime(const String&) const;
  7423. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7424. Variant GetAttributeDefault(const String&) const;
  7425. bool GetInterceptNetworkUpdate(const String&) const;
  7426. bool HasSubscribedToEvent(Object, const String&);
  7427. bool HasSubscribedToEvent(const String&);
  7428. bool IsInView(Camera) const;
  7429. bool Load(File, bool = false);
  7430. bool Load(VectorBuffer&, bool = false);
  7431. bool LoadJSON(const JSONValue&, bool = false);
  7432. bool LoadXML(const XMLElement&, bool = false);
  7433. void MarkNetworkUpdate() const;
  7434. void Remove();
  7435. void RemoveAllParticles();
  7436. void RemoveAttributeAnimation(const String&);
  7437. void RemoveInstanceDefault();
  7438. void RemoveObjectAnimation();
  7439. void Reset();
  7440. void ResetEmissionTimer();
  7441. void ResetToDefault();
  7442. bool Save(File) const;
  7443. bool Save(VectorBuffer&) const;
  7444. bool SaveJSON(JSONValue&) const;
  7445. bool SaveXML(XMLElement&) const;
  7446. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7447. void SetAnimationTime(float);
  7448. bool SetAttribute(const String&, const Variant&);
  7449. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7450. void SetAttributeAnimationSpeed(const String&, float);
  7451. void SetAttributeAnimationTime(const String&, float);
  7452. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7453. void SetInterceptNetworkUpdate(const String&, bool);
  7454. // Properties:
  7455. bool animationEnabled;
  7456. float animationLodBias;
  7457. /* readonly */
  7458. Array<Variant> attributeDefaults;
  7459. /* readonly */
  7460. Array<AttributeInfo> attributeInfos;
  7461. Array<Variant> attributes;
  7462. /* readonly */
  7463. Array<Billboard> billboards;
  7464. /* readonly */
  7465. BoundingBox boundingBox;
  7466. bool castShadows;
  7467. /* readonly */
  7468. String category;
  7469. float drawDistance;
  7470. ParticleEffect effect;
  7471. bool emitting;
  7472. bool enabled;
  7473. /* readonly */
  7474. bool enabledEffective;
  7475. FaceCameraMode faceCameraMode;
  7476. /* readonly */
  7477. uint id;
  7478. /* readonly */
  7479. bool inView;
  7480. uint lightMask;
  7481. float lodBias;
  7482. Material material;
  7483. uint maxLights;
  7484. /* readonly */
  7485. Node node;
  7486. /* readonly */
  7487. uint numAttributes;
  7488. uint numBillboards;
  7489. uint numParticles;
  7490. ObjectAnimation objectAnimation;
  7491. bool occludee;
  7492. bool occluder;
  7493. /* readonly */
  7494. int refs;
  7495. bool relative;
  7496. bool scaled;
  7497. bool serializeParticles;
  7498. float shadowDistance;
  7499. uint shadowMask;
  7500. bool sorted;
  7501. bool temporary;
  7502. /* readonly */
  7503. StringHash type;
  7504. /* readonly */
  7505. String typeName;
  7506. uint viewMask;
  7507. /* readonly */
  7508. int weakRefs;
  7509. /* readonly */
  7510. BoundingBox worldBoundingBox;
  7511. /* readonly */
  7512. Zone zone;
  7513. uint zoneMask;
  7514. };
  7515. class ParticleEmitter2D
  7516. {
  7517. // Methods:
  7518. void ApplyAttributes();
  7519. void DrawDebugGeometry(DebugRenderer, bool);
  7520. Variant GetAttribute(const String&) const;
  7521. ValueAnimation GetAttributeAnimation(const String&) const;
  7522. float GetAttributeAnimationSpeed(const String&) const;
  7523. float GetAttributeAnimationTime(const String&) const;
  7524. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7525. Variant GetAttributeDefault(const String&) const;
  7526. bool GetInterceptNetworkUpdate(const String&) const;
  7527. bool HasSubscribedToEvent(Object, const String&);
  7528. bool HasSubscribedToEvent(const String&);
  7529. bool IsInView(Camera) const;
  7530. bool Load(File, bool = false);
  7531. bool Load(VectorBuffer&, bool = false);
  7532. bool LoadJSON(const JSONValue&, bool = false);
  7533. bool LoadXML(const XMLElement&, bool = false);
  7534. void MarkNetworkUpdate() const;
  7535. void Remove();
  7536. void RemoveAttributeAnimation(const String&);
  7537. void RemoveInstanceDefault();
  7538. void RemoveObjectAnimation();
  7539. void ResetToDefault();
  7540. bool Save(File) const;
  7541. bool Save(VectorBuffer&) const;
  7542. bool SaveJSON(JSONValue&) const;
  7543. bool SaveXML(XMLElement&) const;
  7544. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7545. void SetAnimationTime(float);
  7546. bool SetAttribute(const String&, const Variant&);
  7547. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7548. void SetAttributeAnimationSpeed(const String&, float);
  7549. void SetAttributeAnimationTime(const String&, float);
  7550. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7551. void SetInterceptNetworkUpdate(const String&, bool);
  7552. // Properties:
  7553. bool animationEnabled;
  7554. /* readonly */
  7555. Array<Variant> attributeDefaults;
  7556. /* readonly */
  7557. Array<AttributeInfo> attributeInfos;
  7558. Array<Variant> attributes;
  7559. BlendMode blendMode;
  7560. /* readonly */
  7561. BoundingBox boundingBox;
  7562. bool castShadows;
  7563. /* readonly */
  7564. String category;
  7565. float drawDistance;
  7566. ParticleEffect2D effect;
  7567. bool enabled;
  7568. /* readonly */
  7569. bool enabledEffective;
  7570. /* readonly */
  7571. uint id;
  7572. /* readonly */
  7573. bool inView;
  7574. int layer;
  7575. uint lightMask;
  7576. float lodBias;
  7577. uint maxLights;
  7578. /* readonly */
  7579. Node node;
  7580. /* readonly */
  7581. uint numAttributes;
  7582. ObjectAnimation objectAnimation;
  7583. bool occludee;
  7584. bool occluder;
  7585. int orderInLayer;
  7586. /* readonly */
  7587. int refs;
  7588. float shadowDistance;
  7589. uint shadowMask;
  7590. Sprite2D sprite;
  7591. bool temporary;
  7592. /* readonly */
  7593. StringHash type;
  7594. /* readonly */
  7595. String typeName;
  7596. uint viewMask;
  7597. /* readonly */
  7598. int weakRefs;
  7599. /* readonly */
  7600. BoundingBox worldBoundingBox;
  7601. uint zoneMask;
  7602. };
  7603. class Pass
  7604. {
  7605. // Properties:
  7606. bool alphaMask;
  7607. BlendMode blendMode;
  7608. CompareMode depthTestMode;
  7609. bool depthWrite;
  7610. bool desktop;
  7611. PassLightingMode lightingMode;
  7612. String pixelShader;
  7613. String pixelShaderDefines;
  7614. /* readonly */
  7615. int refs;
  7616. String vertexShader;
  7617. String vertexShaderDefines;
  7618. /* readonly */
  7619. int weakRefs;
  7620. };
  7621. class PhysicsRaycastResult
  7622. {
  7623. // Properties:
  7624. /* readonly */
  7625. RigidBody body;
  7626. float distance;
  7627. float hitFraction;
  7628. Vector3 normal;
  7629. Vector3 position;
  7630. };
  7631. class PhysicsRaycastResult2D
  7632. {
  7633. // Properties:
  7634. /* readonly */
  7635. RigidBody2D body;
  7636. float distance;
  7637. Vector2 normal;
  7638. Vector2 position;
  7639. };
  7640. class PhysicsWorld
  7641. {
  7642. // Methods:
  7643. void ApplyAttributes();
  7644. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7645. void DrawDebugGeometry(DebugRenderer, bool);
  7646. void DrawDebugGeometry(bool);
  7647. Variant GetAttribute(const String&) const;
  7648. ValueAnimation GetAttributeAnimation(const String&) const;
  7649. float GetAttributeAnimationSpeed(const String&) const;
  7650. float GetAttributeAnimationTime(const String&) const;
  7651. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7652. Variant GetAttributeDefault(const String&) const;
  7653. Array<RigidBody> GetCollidingBodies(RigidBody);
  7654. bool GetInterceptNetworkUpdate(const String&) const;
  7655. Array<RigidBody> GetRigidBodies(RigidBody);
  7656. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7657. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7658. bool HasSubscribedToEvent(Object, const String&);
  7659. bool HasSubscribedToEvent(const String&);
  7660. bool Load(File, bool = false);
  7661. bool Load(VectorBuffer&, bool = false);
  7662. bool LoadJSON(const JSONValue&, bool = false);
  7663. bool LoadXML(const XMLElement&, bool = false);
  7664. void MarkNetworkUpdate() const;
  7665. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7666. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7667. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7668. void Remove();
  7669. void RemoveAttributeAnimation(const String&);
  7670. void RemoveCachedGeometry(Model);
  7671. void RemoveInstanceDefault();
  7672. void RemoveObjectAnimation();
  7673. void ResetToDefault();
  7674. bool Save(File) const;
  7675. bool Save(VectorBuffer&) const;
  7676. bool SaveJSON(JSONValue&) const;
  7677. bool SaveXML(XMLElement&) const;
  7678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7679. void SetAnimationTime(float);
  7680. bool SetAttribute(const String&, const Variant&);
  7681. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7682. void SetAttributeAnimationSpeed(const String&, float);
  7683. void SetAttributeAnimationTime(const String&, float);
  7684. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7685. void SetInterceptNetworkUpdate(const String&, bool);
  7686. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7687. void Update(float);
  7688. void UpdateCollisions();
  7689. // Properties:
  7690. bool animationEnabled;
  7691. /* readonly */
  7692. Array<Variant> attributeDefaults;
  7693. /* readonly */
  7694. Array<AttributeInfo> attributeInfos;
  7695. Array<Variant> attributes;
  7696. /* readonly */
  7697. String category;
  7698. bool enabled;
  7699. /* readonly */
  7700. bool enabledEffective;
  7701. int fps;
  7702. Vector3 gravity;
  7703. /* readonly */
  7704. uint id;
  7705. bool internalEdge;
  7706. bool interpolation;
  7707. int maxSubSteps;
  7708. /* readonly */
  7709. Node node;
  7710. /* readonly */
  7711. uint numAttributes;
  7712. int numIterations;
  7713. ObjectAnimation objectAnimation;
  7714. /* readonly */
  7715. int refs;
  7716. bool splitImpulse;
  7717. bool temporary;
  7718. /* readonly */
  7719. StringHash type;
  7720. /* readonly */
  7721. String typeName;
  7722. bool updateEnabled;
  7723. /* readonly */
  7724. int weakRefs;
  7725. };
  7726. class PhysicsWorld2D
  7727. {
  7728. // Methods:
  7729. void ApplyAttributes();
  7730. void DrawDebugGeometry() const;
  7731. void DrawDebugGeometry(DebugRenderer, bool);
  7732. Variant GetAttribute(const String&) const;
  7733. ValueAnimation GetAttributeAnimation(const String&) const;
  7734. float GetAttributeAnimationSpeed(const String&) const;
  7735. float GetAttributeAnimationTime(const String&) const;
  7736. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7737. Variant GetAttributeDefault(const String&) const;
  7738. bool GetInterceptNetworkUpdate(const String&) const;
  7739. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7740. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7741. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7742. bool HasSubscribedToEvent(Object, const String&);
  7743. bool HasSubscribedToEvent(const String&);
  7744. bool Load(File, bool = false);
  7745. bool Load(VectorBuffer&, bool = false);
  7746. bool LoadJSON(const JSONValue&, bool = false);
  7747. bool LoadXML(const XMLElement&, bool = false);
  7748. void MarkNetworkUpdate() const;
  7749. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7750. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7751. void Remove();
  7752. void RemoveAttributeAnimation(const String&);
  7753. void RemoveInstanceDefault();
  7754. void RemoveObjectAnimation();
  7755. void ResetToDefault();
  7756. bool Save(File) const;
  7757. bool Save(VectorBuffer&) const;
  7758. bool SaveJSON(JSONValue&) const;
  7759. bool SaveXML(XMLElement&) const;
  7760. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7761. void SetAnimationTime(float);
  7762. bool SetAttribute(const String&, const Variant&);
  7763. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7764. void SetAttributeAnimationSpeed(const String&, float);
  7765. void SetAttributeAnimationTime(const String&, float);
  7766. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7767. void SetInterceptNetworkUpdate(const String&, bool);
  7768. // Properties:
  7769. bool allowSleeping;
  7770. bool animationEnabled;
  7771. /* readonly */
  7772. Array<Variant> attributeDefaults;
  7773. /* readonly */
  7774. Array<AttributeInfo> attributeInfos;
  7775. Array<Variant> attributes;
  7776. bool autoClearForces;
  7777. /* readonly */
  7778. String category;
  7779. bool continuousPhysics;
  7780. bool drawAabb;
  7781. bool drawCenterOfMass;
  7782. bool drawJoint;
  7783. bool drawPair;
  7784. bool drawShape;
  7785. bool enabled;
  7786. /* readonly */
  7787. bool enabledEffective;
  7788. Vector2 gravity;
  7789. /* readonly */
  7790. uint id;
  7791. /* readonly */
  7792. Node node;
  7793. /* readonly */
  7794. uint numAttributes;
  7795. ObjectAnimation objectAnimation;
  7796. uint positionIterations;
  7797. /* readonly */
  7798. int refs;
  7799. bool subStepping;
  7800. bool temporary;
  7801. /* readonly */
  7802. StringHash type;
  7803. /* readonly */
  7804. String typeName;
  7805. bool updateEnabled;
  7806. uint velocityIterations;
  7807. bool warmStarting;
  7808. /* readonly */
  7809. int weakRefs;
  7810. };
  7811. class Plane
  7812. {
  7813. // Methods:
  7814. void Define(const Vector3&, const Vector3&);
  7815. void Define(const Vector3&, const Vector3&, const Vector3&);
  7816. void Define(const Vector4&);
  7817. float Distance(const Vector3&) const;
  7818. Vector3 Project(const Vector3&) const;
  7819. Vector3 Reflect(const Vector3&) const;
  7820. Vector4 ToVector4() const;
  7821. void Transform(const Matrix3&);
  7822. void Transform(const Matrix3x4&);
  7823. void Transform(const Matrix4&);
  7824. Plane Transformed(const Matrix3&) const;
  7825. Plane Transformed(const Matrix3x4&) const;
  7826. Plane Transformed(const Matrix4&) const;
  7827. // Properties:
  7828. Vector3 absNormal;
  7829. float d;
  7830. Vector3 normal;
  7831. /* readonly */
  7832. Matrix3x4 reflectionMatrix;
  7833. };
  7834. class Polyhedron
  7835. {
  7836. // Methods:
  7837. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7838. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7839. void AddFace(const Array<Vector3>);
  7840. void Clear();
  7841. void Clip(const BoundingBox&);
  7842. void Clip(const Frustum&);
  7843. void Define(const BoundingBox&);
  7844. void Define(const Frustum&);
  7845. void Transform(const Matrix3&);
  7846. void Transform(const Matrix3x4&);
  7847. Polyhedron Transformed(const Matrix3&) const;
  7848. Polyhedron Transformed(const Matrix3x4&) const;
  7849. // Properties:
  7850. /* readonly */
  7851. Array<Array<Vector3>> face;
  7852. /* readonly */
  7853. uint numFaces;
  7854. };
  7855. class PropertySet2D
  7856. {
  7857. // Methods:
  7858. bool HasProperty(const String&) const;
  7859. const String& GetProperty(const String&) const;
  7860. // Properties:
  7861. /* readonly */
  7862. int refs;
  7863. /* readonly */
  7864. int weakRefs;
  7865. };
  7866. class Quaternion
  7867. {
  7868. // Methods:
  7869. Quaternion Conjugate() const;
  7870. float DotProduct(const Quaternion&) const;
  7871. bool Equals(const Quaternion&) const;
  7872. void FromAngleAxis(float, const Vector3&);
  7873. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7874. void FromEulerAngles(float, float, float);
  7875. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  7876. void FromRotationMatrix(const Matrix3&);
  7877. void FromRotationTo(const Vector3&, const Vector3&);
  7878. Quaternion Inverse() const;
  7879. bool IsNaN() const;
  7880. float LengthSquared() const;
  7881. Quaternion Nlerp(Quaternion, float, bool) const;
  7882. void Normalize();
  7883. Quaternion Normalized() const;
  7884. Quaternion Slerp(Quaternion, float) const;
  7885. String ToString() const;
  7886. // Properties:
  7887. /* readonly */
  7888. Vector3 eulerAngles;
  7889. /* readonly */
  7890. float pitch;
  7891. /* readonly */
  7892. float roll;
  7893. /* readonly */
  7894. Matrix3 rotationMatrix;
  7895. float w;
  7896. float x;
  7897. float y;
  7898. /* readonly */
  7899. float yaw;
  7900. float z;
  7901. };
  7902. class Ray
  7903. {
  7904. // Methods:
  7905. Vector3 ClosestPoint(const Ray&) const;
  7906. void Define(const Vector3&, const Vector3&);
  7907. float Distance(const Vector3&) const;
  7908. float HitDistance(const BoundingBox&) const;
  7909. float HitDistance(const Frustum&, bool = true) const;
  7910. float HitDistance(const Plane&) const;
  7911. float HitDistance(const Sphere&) const;
  7912. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7913. Vector3 Project(const Vector3&) const;
  7914. Ray Transformed(const Matrix3x4&) const;
  7915. // Properties:
  7916. Vector3 direction;
  7917. Vector3 origin;
  7918. };
  7919. class RayQueryResult
  7920. {
  7921. // Properties:
  7922. float distance;
  7923. /* readonly */
  7924. Drawable drawable;
  7925. /* readonly */
  7926. Node node;
  7927. Vector3 normal;
  7928. Vector3 position;
  7929. uint subObject;
  7930. Vector2 textureUV;
  7931. };
  7932. class Rect
  7933. {
  7934. // Methods:
  7935. void Clear();
  7936. void Clip(const Rect&);
  7937. void Define(const Vector2&);
  7938. void Define(const Vector2&, const Vector2&);
  7939. bool Defined() const;
  7940. bool Equals(const Rect&) const;
  7941. Intersection IsInside(const Vector2&) const;
  7942. void Merge(const Rect&);
  7943. void Merge(const Vector2&);
  7944. Vector4 ToVector4() const;
  7945. // Properties:
  7946. float bottom;
  7947. /* readonly */
  7948. Vector2 center;
  7949. /* readonly */
  7950. Vector2 halfSize;
  7951. float left;
  7952. Vector2 max;
  7953. Vector2 min;
  7954. float right;
  7955. /* readonly */
  7956. Vector2 size;
  7957. float top;
  7958. };
  7959. class RefCounted
  7960. {
  7961. // Properties:
  7962. /* readonly */
  7963. int refs;
  7964. /* readonly */
  7965. int weakRefs;
  7966. };
  7967. class RenderPath
  7968. {
  7969. // Methods:
  7970. void AddCommand(const RenderPathCommand&);
  7971. void AddRenderTarget(const RenderTargetInfo&);
  7972. bool Append(XMLFile);
  7973. RenderPath Clone();
  7974. void InsertCommand(uint, const RenderPathCommand&);
  7975. bool Load(XMLFile);
  7976. void RemoveCommand(uint);
  7977. void RemoveCommands(const String&);
  7978. void RemoveRenderTarget(const String&);
  7979. void RemoveRenderTarget(uint);
  7980. void RemoveRenderTargts(const String&);
  7981. void SetEnabled(const String&, bool);
  7982. void ToggleEnabled(const String&);
  7983. // Properties:
  7984. Array<RenderPathCommand> commands;
  7985. /* readonly */
  7986. uint numCommands;
  7987. /* readonly */
  7988. uint numRenderTargets;
  7989. /* readonly */
  7990. int refs;
  7991. Array<RenderTargetInfo> renderTargets;
  7992. Array<Variant> shaderParameters;
  7993. /* readonly */
  7994. int weakRefs;
  7995. };
  7996. class RenderPathCommand
  7997. {
  7998. // Methods:
  7999. void RemoveShaderParameter(const String&);
  8000. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8001. // Properties:
  8002. BlendMode blendMode;
  8003. Color clearColor;
  8004. float clearDepth;
  8005. uint clearFlags;
  8006. uint clearStencil;
  8007. String depthStencilName;
  8008. bool enabled;
  8009. bool markToStencil;
  8010. String metadata;
  8011. uint numOutputs;
  8012. Array<CubeMapFace> outputFaces;
  8013. Array<String> outputNames;
  8014. String pass;
  8015. String pixelShaderDefines;
  8016. String pixelShaderName;
  8017. Array<Variant> shaderParameters;
  8018. RenderCommandSortMode sortMode;
  8019. String tag;
  8020. Array<String> textureNames;
  8021. RenderCommandType type;
  8022. bool useFogColor;
  8023. bool useLitBase;
  8024. bool vertexLights;
  8025. String vertexShaderDefines;
  8026. String vertexShaderName;
  8027. };
  8028. class RenderSurface
  8029. {
  8030. // Methods:
  8031. void QueueUpdate();
  8032. // Properties:
  8033. /* readonly */
  8034. int height;
  8035. RenderSurface linkedDepthStencil;
  8036. RenderSurface linkedRenderTarget;
  8037. uint numViewports;
  8038. /* readonly */
  8039. Texture parentTexture;
  8040. RenderSurfaceUpdateMode updateMode;
  8041. /* readonly */
  8042. TextureUsage usage;
  8043. Array<Viewport> viewports;
  8044. /* readonly */
  8045. int width;
  8046. };
  8047. class RenderTargetInfo
  8048. {
  8049. // Properties:
  8050. bool cubemap;
  8051. bool enabled;
  8052. bool filtered;
  8053. uint format;
  8054. String name;
  8055. bool persistent;
  8056. bool sRGB;
  8057. Vector2 size;
  8058. RenderTargetSizeMode sizeMode;
  8059. String tag;
  8060. };
  8061. class Renderer
  8062. {
  8063. // Methods:
  8064. void DrawDebugGeometry(bool) const;
  8065. bool HasSubscribedToEvent(Object, const String&);
  8066. bool HasSubscribedToEvent(const String&);
  8067. void ReloadShaders() const;
  8068. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8069. void SetDefaultRenderPath(XMLFile);
  8070. void SetVSMShadowParameters(float, float);
  8071. // Properties:
  8072. /* readonly */
  8073. String category;
  8074. /* readonly */
  8075. Material defaultLightRamp;
  8076. /* readonly */
  8077. Material defaultLightSpot;
  8078. /* readonly */
  8079. Material defaultMaterial;
  8080. RenderPath defaultRenderPath;
  8081. Technique defaultTechnique;
  8082. /* readonly */
  8083. Zone defaultZone;
  8084. bool drawShadows;
  8085. bool dynamicInstancing;
  8086. bool hdrRendering;
  8087. int materialQuality;
  8088. int maxOccluderTriangles;
  8089. int maxShadowMaps;
  8090. int maxSortedInstances;
  8091. int minInstances;
  8092. float mobileShadowBiasAdd;
  8093. float mobileShadowBiasMul;
  8094. /* readonly */
  8095. uint numBatches;
  8096. /* readonly */
  8097. Array<uint> numGeometries;
  8098. /* readonly */
  8099. Array<uint> numLights;
  8100. /* readonly */
  8101. Array<uint> numOccluders;
  8102. /* readonly */
  8103. uint numPrimitives;
  8104. /* readonly */
  8105. Array<uint> numShadowMaps;
  8106. uint numViewports;
  8107. /* readonly */
  8108. uint numViews;
  8109. float occluderSizeThreshold;
  8110. int occlusionBufferSize;
  8111. /* readonly */
  8112. int refs;
  8113. bool reuseShadowMaps;
  8114. int shadowMapSize;
  8115. ShadowQuality shadowQuality;
  8116. float shadowSoftness;
  8117. bool specularLighting;
  8118. int textureAnisotropy;
  8119. TextureFilterMode textureFilterMode;
  8120. int textureQuality;
  8121. bool threadedOcclusion;
  8122. /* readonly */
  8123. StringHash type;
  8124. /* readonly */
  8125. String typeName;
  8126. Array<Viewport> viewports;
  8127. Vector2 vsmShadowParameters;
  8128. /* readonly */
  8129. int weakRefs;
  8130. };
  8131. class Resource
  8132. {
  8133. // Methods:
  8134. bool HasSubscribedToEvent(Object, const String&);
  8135. bool HasSubscribedToEvent(const String&);
  8136. bool Load(File);
  8137. bool Load(VectorBuffer&);
  8138. bool Save(File) const;
  8139. bool Save(VectorBuffer&) const;
  8140. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8141. // Properties:
  8142. /* readonly */
  8143. String category;
  8144. /* readonly */
  8145. uint memoryUse;
  8146. String name;
  8147. /* readonly */
  8148. int refs;
  8149. /* readonly */
  8150. StringHash type;
  8151. /* readonly */
  8152. String typeName;
  8153. /* readonly */
  8154. uint useTimer;
  8155. /* readonly */
  8156. int weakRefs;
  8157. };
  8158. class ResourceCache
  8159. {
  8160. // Methods:
  8161. bool AddManualResource(Resource);
  8162. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8163. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8164. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8165. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8166. bool Exists(const String&) const;
  8167. Resource GetExistingResource(StringHash, const String&);
  8168. Resource GetExistingResource(const String&, const String&);
  8169. File GetFile(const String&);
  8170. String GetPreferredResourceDir(const String&) const;
  8171. Resource GetResource(StringHash, const String&, bool = true);
  8172. Resource GetResource(const String&, const String&, bool = true);
  8173. String GetResourceFileName(const String&) const;
  8174. bool HasSubscribedToEvent(Object, const String&);
  8175. bool HasSubscribedToEvent(const String&);
  8176. void ReleaseAllResources(bool = false);
  8177. void ReleaseResource(const String&, const String&, bool = false);
  8178. void ReleaseResources(StringHash, bool = false);
  8179. void ReleaseResources(const String&, bool = false);
  8180. void ReleaseResources(const String&, const String&, bool = false);
  8181. bool ReloadResource(Resource);
  8182. void ReloadResourceWithDependencies(const String&);
  8183. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8184. void RemovePackageFile(const String&, bool = true, bool = false);
  8185. void RemoveResourceDir(const String&);
  8186. String SanitateResourceDirName(const String&) const;
  8187. String SanitateResourceName(const String&) const;
  8188. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8189. // Properties:
  8190. bool autoReloadResources;
  8191. /* readonly */
  8192. String category;
  8193. int finishBackgroundResourcesMs;
  8194. Array<uint64> memoryBudget;
  8195. /* readonly */
  8196. Array<uint64> memoryUse;
  8197. /* readonly */
  8198. uint numBackgroundLoadResources;
  8199. /* readonly */
  8200. Array<PackageFile> packageFiles;
  8201. /* readonly */
  8202. int refs;
  8203. /* readonly */
  8204. Array<String> resourceDirs;
  8205. bool returnFailedResources;
  8206. /* readonly */
  8207. bool seachPackagesFirst;
  8208. /* writeonly */
  8209. bool searchPackagesFirst;
  8210. /* readonly */
  8211. uint64 totalMemoryUse;
  8212. /* readonly */
  8213. StringHash type;
  8214. /* readonly */
  8215. String typeName;
  8216. /* readonly */
  8217. int weakRefs;
  8218. };
  8219. class ResourceRef
  8220. {
  8221. // Properties:
  8222. String name;
  8223. StringHash type;
  8224. };
  8225. class ResourceRefList
  8226. {
  8227. // Methods:
  8228. void Resize(uint);
  8229. // Properties:
  8230. /* readonly */
  8231. bool empty;
  8232. /* readonly */
  8233. uint length;
  8234. Array<String> names;
  8235. StringHash type;
  8236. };
  8237. class RigidBody
  8238. {
  8239. // Methods:
  8240. void Activate();
  8241. void ApplyAttributes();
  8242. void ApplyForce(const Vector3&);
  8243. void ApplyForce(const Vector3&, const Vector3&);
  8244. void ApplyImpulse(const Vector3&);
  8245. void ApplyImpulse(const Vector3&, const Vector3&);
  8246. void ApplyTorque(const Vector3&);
  8247. void ApplyTorqueImpulse(const Vector3&);
  8248. void DisableMassUpdate();
  8249. void DrawDebugGeometry(DebugRenderer, bool);
  8250. void EnableMassUpdate();
  8251. Variant GetAttribute(const String&) const;
  8252. ValueAnimation GetAttributeAnimation(const String&) const;
  8253. float GetAttributeAnimationSpeed(const String&) const;
  8254. float GetAttributeAnimationTime(const String&) const;
  8255. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8256. Variant GetAttributeDefault(const String&) const;
  8257. bool GetInterceptNetworkUpdate(const String&) const;
  8258. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8259. bool HasSubscribedToEvent(Object, const String&);
  8260. bool HasSubscribedToEvent(const String&);
  8261. bool Load(File, bool = false);
  8262. bool Load(VectorBuffer&, bool = false);
  8263. bool LoadJSON(const JSONValue&, bool = false);
  8264. bool LoadXML(const XMLElement&, bool = false);
  8265. void MarkNetworkUpdate() const;
  8266. void ReAddBodyToWorld();
  8267. void Remove();
  8268. void RemoveAttributeAnimation(const String&);
  8269. void RemoveInstanceDefault();
  8270. void RemoveObjectAnimation();
  8271. void ResetForces();
  8272. void ResetToDefault();
  8273. bool Save(File) const;
  8274. bool Save(VectorBuffer&) const;
  8275. bool SaveJSON(JSONValue&) const;
  8276. bool SaveXML(XMLElement&) const;
  8277. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8278. void SetAnimationTime(float);
  8279. bool SetAttribute(const String&, const Variant&);
  8280. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8281. void SetAttributeAnimationSpeed(const String&, float);
  8282. void SetAttributeAnimationTime(const String&, float);
  8283. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8284. void SetCollisionLayerAndMask(uint, uint);
  8285. void SetInterceptNetworkUpdate(const String&, bool);
  8286. void SetTransform(const Vector3&, const Quaternion&);
  8287. // Properties:
  8288. /* readonly */
  8289. bool active;
  8290. float angularDamping;
  8291. Vector3 angularFactor;
  8292. float angularRestThreshold;
  8293. Vector3 angularVelocity;
  8294. bool animationEnabled;
  8295. Vector3 anisotropicFriction;
  8296. /* readonly */
  8297. Array<Variant> attributeDefaults;
  8298. /* readonly */
  8299. Array<AttributeInfo> attributeInfos;
  8300. Array<Variant> attributes;
  8301. /* readonly */
  8302. String category;
  8303. float ccdMotionThreshold;
  8304. float ccdRadius;
  8305. /* readonly */
  8306. Vector3 centerOfMass;
  8307. /* readonly */
  8308. Array<RigidBody> collidingBodies;
  8309. CollisionEventMode collisionEventMode;
  8310. uint collisionLayer;
  8311. uint collisionMask;
  8312. float contactProcessingThreshold;
  8313. bool enabled;
  8314. /* readonly */
  8315. bool enabledEffective;
  8316. float friction;
  8317. Vector3 gravityOverride;
  8318. /* readonly */
  8319. uint id;
  8320. bool kinematic;
  8321. float linearDamping;
  8322. Vector3 linearFactor;
  8323. float linearRestThreshold;
  8324. Vector3 linearVelocity;
  8325. float mass;
  8326. /* readonly */
  8327. Node node;
  8328. /* readonly */
  8329. uint numAttributes;
  8330. ObjectAnimation objectAnimation;
  8331. Vector3 position;
  8332. /* readonly */
  8333. int refs;
  8334. float restitution;
  8335. float rollingFriction;
  8336. Quaternion rotation;
  8337. bool temporary;
  8338. bool trigger;
  8339. /* readonly */
  8340. StringHash type;
  8341. /* readonly */
  8342. String typeName;
  8343. bool useGravity;
  8344. /* readonly */
  8345. int weakRefs;
  8346. };
  8347. class RigidBody2D
  8348. {
  8349. // Methods:
  8350. void ApplyAngularImpulse(float, bool);
  8351. void ApplyAttributes();
  8352. void ApplyForce(const Vector2&, const Vector2&, bool);
  8353. void ApplyForceToCenter(const Vector2&, bool);
  8354. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8355. void ApplyTorque(float, bool);
  8356. void DrawDebugGeometry(DebugRenderer, bool);
  8357. Variant GetAttribute(const String&) const;
  8358. ValueAnimation GetAttributeAnimation(const String&) const;
  8359. float GetAttributeAnimationSpeed(const String&) const;
  8360. float GetAttributeAnimationTime(const String&) const;
  8361. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8362. Variant GetAttributeDefault(const String&) const;
  8363. bool GetInterceptNetworkUpdate(const String&) const;
  8364. bool HasSubscribedToEvent(Object, const String&);
  8365. bool HasSubscribedToEvent(const String&);
  8366. bool Load(File, bool = false);
  8367. bool Load(VectorBuffer&, bool = false);
  8368. bool LoadJSON(const JSONValue&, bool = false);
  8369. bool LoadXML(const XMLElement&, bool = false);
  8370. void MarkNetworkUpdate() const;
  8371. void Remove();
  8372. void RemoveAttributeAnimation(const String&);
  8373. void RemoveInstanceDefault();
  8374. void RemoveObjectAnimation();
  8375. void ResetToDefault();
  8376. bool Save(File) const;
  8377. bool Save(VectorBuffer&) const;
  8378. bool SaveJSON(JSONValue&) const;
  8379. bool SaveXML(XMLElement&) const;
  8380. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8381. void SetAnimationTime(float);
  8382. bool SetAttribute(const String&, const Variant&);
  8383. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8384. void SetAttributeAnimationSpeed(const String&, float);
  8385. void SetAttributeAnimationTime(const String&, float);
  8386. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8387. void SetInterceptNetworkUpdate(const String&, bool);
  8388. // Properties:
  8389. bool allowSleep;
  8390. float angularDamping;
  8391. bool animationEnabled;
  8392. /* readonly */
  8393. Array<Variant> attributeDefaults;
  8394. /* readonly */
  8395. Array<AttributeInfo> attributeInfos;
  8396. Array<Variant> attributes;
  8397. bool awake;
  8398. BodyType2D bodyType;
  8399. bool bullet;
  8400. /* readonly */
  8401. String category;
  8402. bool enabled;
  8403. /* readonly */
  8404. bool enabledEffective;
  8405. bool fixedRotation;
  8406. float gravityScale;
  8407. /* readonly */
  8408. uint id;
  8409. float inertia;
  8410. float linearDamping;
  8411. Vector2 linearVelocity;
  8412. float mass;
  8413. Vector2 massCenter;
  8414. /* readonly */
  8415. Node node;
  8416. /* readonly */
  8417. uint numAttributes;
  8418. ObjectAnimation objectAnimation;
  8419. /* readonly */
  8420. int refs;
  8421. bool temporary;
  8422. /* readonly */
  8423. StringHash type;
  8424. /* readonly */
  8425. String typeName;
  8426. bool useFixtureMass;
  8427. /* readonly */
  8428. int weakRefs;
  8429. };
  8430. class Scene
  8431. {
  8432. // Methods:
  8433. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8434. void AddRequiredPackageFile(PackageFile);
  8435. void AddTag(const String&);
  8436. void AddTags(const String&, int8 = ';');
  8437. void ApplyAttributes();
  8438. void Clear(bool = true, bool = true);
  8439. void ClearRequiredPackageFiles();
  8440. Component CloneComponent(Component, CreateMode, uint = 0);
  8441. Component CloneComponent(Component, uint = 0);
  8442. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8443. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8444. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8445. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8446. Variant GetAttribute(const String&) const;
  8447. ValueAnimation GetAttributeAnimation(const String&) const;
  8448. float GetAttributeAnimationSpeed(const String&) const;
  8449. float GetAttributeAnimationTime(const String&) const;
  8450. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8451. Variant GetAttributeDefault(const String&) const;
  8452. Node GetChild(const String&, bool = false) const;
  8453. Array<Node> GetChildren(bool = false) const;
  8454. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8455. Array<Node> GetChildrenWithScript(bool = false) const;
  8456. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8457. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8458. Component GetComponent(const String&, bool = false) const;
  8459. Component GetComponent(uint) const;
  8460. Array<Component> GetComponents() const;
  8461. Array<Component> GetComponents(const String&, bool = false) const;
  8462. bool GetInterceptNetworkUpdate(const String&) const;
  8463. Node GetNode(uint) const;
  8464. Array<Node> GetNodesWithTag(const String&) const;
  8465. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8466. Component GetParentComponent(const String&, bool = false) const;
  8467. ScriptObject GetScriptObject() const;
  8468. ScriptObject GetScriptObject(const String&) const;
  8469. bool HasComponent(const String&) const;
  8470. bool HasSubscribedToEvent(Object, const String&);
  8471. bool HasSubscribedToEvent(const String&);
  8472. bool HasTag(const String&);
  8473. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8474. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8475. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8476. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8477. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8478. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8479. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8480. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8481. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8482. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8483. bool Load(File, bool = false);
  8484. bool Load(VectorBuffer&, bool = false);
  8485. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8486. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8487. bool LoadJSON(File);
  8488. bool LoadJSON(VectorBuffer&);
  8489. bool LoadJSON(const JSONValue&, bool = false);
  8490. bool LoadXML(File);
  8491. bool LoadXML(VectorBuffer&);
  8492. bool LoadXML(const XMLElement&, bool = false);
  8493. Vector3 LocalToWorld(const Vector3&) const;
  8494. Vector3 LocalToWorld(const Vector4&) const;
  8495. Vector2 LocalToWorld2D(const Vector2&) const;
  8496. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8497. void MarkNetworkUpdate() const;
  8498. void Pitch(float, TransformSpace = TS_LOCAL);
  8499. void RegisterVar(const String&);
  8500. void Remove();
  8501. void RemoveAllChildren();
  8502. void RemoveAllComponents();
  8503. void RemoveAllTags();
  8504. void RemoveAttributeAnimation(const String&);
  8505. void RemoveChild(Node);
  8506. void RemoveChildren(bool, bool, bool);
  8507. void RemoveComponent(Component);
  8508. void RemoveComponent(const String&);
  8509. void RemoveComponents(bool, bool);
  8510. void RemoveComponents(const String&);
  8511. void RemoveInstanceDefault();
  8512. void RemoveObjectAnimation();
  8513. bool RemoveTag(const String&);
  8514. void ResetToDefault();
  8515. void Roll(float, TransformSpace = TS_LOCAL);
  8516. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8517. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8518. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8519. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8520. bool Save(File) const;
  8521. bool Save(VectorBuffer&) const;
  8522. bool SaveJSON(File, const String& = "\t");
  8523. bool SaveJSON(JSONValue&) const;
  8524. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8525. bool SaveXML(File, const String& = "\t");
  8526. bool SaveXML(VectorBuffer&, const String& = "\t");
  8527. bool SaveXML(XMLElement&) const;
  8528. void Scale(const Vector3&);
  8529. void Scale(float);
  8530. void Scale2D(const Vector2&);
  8531. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8532. void SetAnimationTime(float);
  8533. bool SetAttribute(const String&, const Variant&);
  8534. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8535. void SetAttributeAnimationSpeed(const String&, float);
  8536. void SetAttributeAnimationTime(const String&, float);
  8537. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8538. void SetInterceptNetworkUpdate(const String&, bool);
  8539. void SetPosition2D(float, float);
  8540. void SetScale(float);
  8541. void SetScale2D(float, float);
  8542. void SetTransform(const Vector3&, const Quaternion&);
  8543. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8544. void SetTransform(const Vector3&, const Quaternion&, float);
  8545. void SetTransform2D(const Vector2&, float);
  8546. void SetTransform2D(const Vector2&, float, const Vector2&);
  8547. void SetTransform2D(const Vector2&, float, float);
  8548. void SetWorldTransform(const Vector3&, const Quaternion&);
  8549. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8550. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8551. void SetWorldTransform2D(const Vector2&, float);
  8552. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8553. void SetWorldTransform2D(const Vector2&, float, float);
  8554. void StopAsyncLoading();
  8555. const String& GetVarName(StringHash) const;
  8556. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8557. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8558. void UnregisterAllVars(const String&);
  8559. void UnregisterVar(const String&);
  8560. void Update(float);
  8561. Vector3 WorldToLocal(const Vector3&) const;
  8562. Vector3 WorldToLocal(const Vector4&) const;
  8563. Vector2 WorldToLocal2D(const Vector2&) const;
  8564. void Yaw(float, TransformSpace = TS_LOCAL);
  8565. // Properties:
  8566. bool animationEnabled;
  8567. /* readonly */
  8568. LoadMode asyncLoadMode;
  8569. /* readonly */
  8570. bool asyncLoading;
  8571. int asyncLoadingMs;
  8572. /* readonly */
  8573. float asyncProgress;
  8574. /* readonly */
  8575. Array<Variant> attributeDefaults;
  8576. /* readonly */
  8577. Array<AttributeInfo> attributeInfos;
  8578. Array<Variant> attributes;
  8579. /* readonly */
  8580. String category;
  8581. /* readonly */
  8582. uint checksum;
  8583. /* readonly */
  8584. Array<Node> children;
  8585. /* readonly */
  8586. Array<Component> components;
  8587. /* readonly */
  8588. DebugRenderer debugRenderer;
  8589. Vector3 direction;
  8590. float elapsedTime;
  8591. /* readonly */
  8592. String fileName;
  8593. /* readonly */
  8594. uint id;
  8595. String name;
  8596. /* readonly */
  8597. uint numAllChildren;
  8598. /* readonly */
  8599. uint numAttributes;
  8600. /* readonly */
  8601. uint numChildren;
  8602. /* readonly */
  8603. uint numComponents;
  8604. ObjectAnimation objectAnimation;
  8605. /* readonly */
  8606. Octree octree;
  8607. Node parent;
  8608. /* readonly */
  8609. PhysicsWorld physicsWorld;
  8610. /* readonly */
  8611. PhysicsWorld2D physicsWorld2D;
  8612. Vector3 position;
  8613. Vector2 position2D;
  8614. /* readonly */
  8615. int refs;
  8616. /* readonly */
  8617. Array<PackageFile> requiredPackageFiles;
  8618. /* readonly */
  8619. Vector3 right;
  8620. Quaternion rotation;
  8621. float rotation2D;
  8622. Vector3 scale;
  8623. Vector2 scale2D;
  8624. /* readonly */
  8625. ScriptObject scriptObject;
  8626. float smoothingConstant;
  8627. float snapThreshold;
  8628. /* readonly */
  8629. Array<String> tags;
  8630. bool temporary;
  8631. float timeScale;
  8632. /* readonly */
  8633. Matrix3x4 transform;
  8634. /* readonly */
  8635. StringHash type;
  8636. /* readonly */
  8637. String typeName;
  8638. /* readonly */
  8639. Vector3 up;
  8640. bool updateEnabled;
  8641. /* readonly */
  8642. VariantMap vars;
  8643. /* readonly */
  8644. int weakRefs;
  8645. Vector3 worldDirection;
  8646. Vector3 worldPosition;
  8647. Vector2 worldPosition2D;
  8648. /* readonly */
  8649. Vector3 worldRight;
  8650. Quaternion worldRotation;
  8651. float worldRotation2D;
  8652. Vector3 worldScale;
  8653. Vector2 worldScale2D;
  8654. /* readonly */
  8655. Matrix3x4 worldTransform;
  8656. /* readonly */
  8657. Vector3 worldUp;
  8658. };
  8659. class Script
  8660. {
  8661. // Methods:
  8662. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8663. bool Execute(const String&);
  8664. bool HasSubscribedToEvent(Object, const String&);
  8665. bool HasSubscribedToEvent(const String&);
  8666. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8667. // Properties:
  8668. /* readonly */
  8669. String category;
  8670. Scene defaultScene;
  8671. ScriptFile defaultScriptFile;
  8672. bool executeConsoleCommands;
  8673. /* readonly */
  8674. int refs;
  8675. /* readonly */
  8676. StringHash type;
  8677. /* readonly */
  8678. String typeName;
  8679. /* readonly */
  8680. int weakRefs;
  8681. };
  8682. class ScriptFile
  8683. {
  8684. // Methods:
  8685. void ClearDelayedExecute(const String& = String ( ));
  8686. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8687. bool Execute(const String&, const Array<Variant> = null);
  8688. bool HasSubscribedToEvent(Object, const String&);
  8689. bool HasSubscribedToEvent(const String&);
  8690. bool Load(File);
  8691. bool Load(VectorBuffer&);
  8692. bool Save(File) const;
  8693. bool Save(VectorBuffer&) const;
  8694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8695. // Properties:
  8696. /* readonly */
  8697. String category;
  8698. /* readonly */
  8699. bool compiled;
  8700. /* readonly */
  8701. uint memoryUse;
  8702. String name;
  8703. /* readonly */
  8704. int refs;
  8705. /* readonly */
  8706. StringHash type;
  8707. /* readonly */
  8708. String typeName;
  8709. /* readonly */
  8710. uint useTimer;
  8711. /* readonly */
  8712. int weakRefs;
  8713. };
  8714. class ScriptInstance
  8715. {
  8716. // Methods:
  8717. void ApplyAttributes();
  8718. void ClearDelayedExecute(const String& = String ( ));
  8719. bool CreateObject(ScriptFile, const String&);
  8720. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8721. void DrawDebugGeometry(DebugRenderer, bool);
  8722. bool Execute(const String&, const Array<Variant> = null);
  8723. Variant GetAttribute(const String&) const;
  8724. ValueAnimation GetAttributeAnimation(const String&) const;
  8725. float GetAttributeAnimationSpeed(const String&) const;
  8726. float GetAttributeAnimationTime(const String&) const;
  8727. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8728. Variant GetAttributeDefault(const String&) const;
  8729. bool GetInterceptNetworkUpdate(const String&) const;
  8730. bool HasMethod(const String&) const;
  8731. bool HasSubscribedToEvent(Object, const String&);
  8732. bool HasSubscribedToEvent(const String&);
  8733. bool IsA(const String&) const;
  8734. bool Load(File, bool = false);
  8735. bool Load(VectorBuffer&, bool = false);
  8736. bool LoadJSON(const JSONValue&, bool = false);
  8737. bool LoadXML(const XMLElement&, bool = false);
  8738. void MarkNetworkUpdate() const;
  8739. void Remove();
  8740. void RemoveAttributeAnimation(const String&);
  8741. void RemoveInstanceDefault();
  8742. void RemoveObjectAnimation();
  8743. void ResetToDefault();
  8744. bool Save(File) const;
  8745. bool Save(VectorBuffer&) const;
  8746. bool SaveJSON(JSONValue&) const;
  8747. bool SaveXML(XMLElement&) const;
  8748. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8749. void SetAnimationTime(float);
  8750. bool SetAttribute(const String&, const Variant&);
  8751. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8752. void SetAttributeAnimationSpeed(const String&, float);
  8753. void SetAttributeAnimationTime(const String&, float);
  8754. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8755. void SetInterceptNetworkUpdate(const String&, bool);
  8756. // Properties:
  8757. bool animationEnabled;
  8758. /* readonly */
  8759. Array<Variant> attributeDefaults;
  8760. /* readonly */
  8761. Array<AttributeInfo> attributeInfos;
  8762. Array<Variant> attributes;
  8763. /* readonly */
  8764. String category;
  8765. String className;
  8766. bool enabled;
  8767. /* readonly */
  8768. bool enabledEffective;
  8769. /* readonly */
  8770. uint id;
  8771. /* readonly */
  8772. Node node;
  8773. /* readonly */
  8774. uint numAttributes;
  8775. ObjectAnimation objectAnimation;
  8776. /* readonly */
  8777. int refs;
  8778. ScriptFile scriptFile;
  8779. /* readonly */
  8780. ScriptObject scriptObject;
  8781. bool temporary;
  8782. /* readonly */
  8783. StringHash type;
  8784. /* readonly */
  8785. String typeName;
  8786. /* readonly */
  8787. int weakRefs;
  8788. };
  8789. class ScriptObject
  8790. {
  8791. };
  8792. class ScrollBar
  8793. {
  8794. // Methods:
  8795. void AddChild(UIElement);
  8796. void AddTag(const String&);
  8797. void AddTags(const String&, int8 = ';');
  8798. void ApplyAttributes();
  8799. void BringToFront();
  8800. void ChangeValue(float);
  8801. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8802. void DisableLayoutUpdate();
  8803. IntVector2 ElementToScreen(const IntVector2&);
  8804. void EnableLayoutUpdate();
  8805. uint FindChild(UIElement) const;
  8806. Variant GetAttribute(const String&) const;
  8807. ValueAnimation GetAttributeAnimation(const String&) const;
  8808. float GetAttributeAnimationSpeed(const String&) const;
  8809. float GetAttributeAnimationTime(const String&) const;
  8810. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8811. Variant GetAttributeDefault(const String&) const;
  8812. UIElement GetChild(const String&, bool = false) const;
  8813. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8814. Array<UIElement> GetChildren(bool = false) const;
  8815. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8816. UIElement GetElementEventSender() const;
  8817. bool GetInterceptNetworkUpdate(const String&) const;
  8818. uint GetNumChildren(bool) const;
  8819. bool HasSubscribedToEvent(Object, const String&);
  8820. bool HasSubscribedToEvent(const String&);
  8821. bool HasTag(const String&) const;
  8822. void InsertChild(uint, UIElement);
  8823. bool IsInside(IntVector2, bool);
  8824. bool IsInsideCombined(IntVector2, bool);
  8825. bool Load(File, bool = false);
  8826. bool Load(VectorBuffer&, bool = false);
  8827. bool LoadChildXML(XMLFile, XMLFile = null);
  8828. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8829. bool LoadJSON(const JSONValue&, bool = false);
  8830. bool LoadXML(File);
  8831. bool LoadXML(VectorBuffer&);
  8832. bool LoadXML(XMLFile, XMLFile);
  8833. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8834. bool LoadXML(const XMLElement&, bool = false);
  8835. void MarkNetworkUpdate() const;
  8836. void Remove();
  8837. void RemoveAllChildren();
  8838. void RemoveAllTags();
  8839. void RemoveAttributeAnimation(const String&);
  8840. void RemoveChild(UIElement, uint = 0);
  8841. void RemoveChild(uint);
  8842. void RemoveInstanceDefault();
  8843. void RemoveObjectAnimation();
  8844. bool RemoveTag(const String&);
  8845. void ResetDeepEnabled();
  8846. void ResetToDefault();
  8847. bool Save(File) const;
  8848. bool Save(VectorBuffer&) const;
  8849. bool SaveJSON(JSONValue&) const;
  8850. bool SaveXML(File, const String& = "\t");
  8851. bool SaveXML(VectorBuffer&, const String& = "\t");
  8852. bool SaveXML(XMLElement&) const;
  8853. IntVector2 ScreenToElement(const IntVector2&);
  8854. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8855. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8856. void SetAnimationTime(float);
  8857. bool SetAttribute(const String&, const Variant&);
  8858. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8859. void SetAttributeAnimationSpeed(const String&, float);
  8860. void SetAttributeAnimationTime(const String&, float);
  8861. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8862. void SetDeepEnabled(bool);
  8863. void SetEnabledRecursive(bool);
  8864. void SetFixedHeight(int);
  8865. void SetFixedSize(int, int);
  8866. void SetFixedWidth(int);
  8867. void SetInterceptNetworkUpdate(const String&, bool);
  8868. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8869. void SetMaxSize(int, int);
  8870. void SetMinSize(int, int);
  8871. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8872. void SetPosition(int, int);
  8873. void SetSize(int, int);
  8874. bool SetStyle(const String&, XMLFile = null);
  8875. bool SetStyle(const XMLElement&);
  8876. bool SetStyleAuto(XMLFile = null);
  8877. void StepBack();
  8878. void StepForward();
  8879. void UpdateLayout();
  8880. const Variant& GetVar(const StringHash&);
  8881. // Properties:
  8882. bool animationEnabled;
  8883. /* readonly */
  8884. Array<Variant> attributeDefaults;
  8885. /* readonly */
  8886. Array<AttributeInfo> attributeInfos;
  8887. Array<Variant> attributes;
  8888. /* readonly */
  8889. Button backButton;
  8890. bool bringToBack;
  8891. bool bringToFront;
  8892. /* readonly */
  8893. String category;
  8894. /* readonly */
  8895. IntVector2 childOffset;
  8896. /* readonly */
  8897. Array<UIElement> children;
  8898. IntRect clipBorder;
  8899. bool clipChildren;
  8900. /* writeonly */
  8901. Color color;
  8902. /* readonly */
  8903. bool colorGradient;
  8904. Array<Color> colors;
  8905. /* readonly */
  8906. IntRect combinedScreenRect;
  8907. XMLFile defaultStyle;
  8908. /* readonly */
  8909. float derivedOpacity;
  8910. /* readonly */
  8911. uint dragButtonCombo;
  8912. /* readonly */
  8913. int dragButtonCount;
  8914. uint dragDropMode;
  8915. bool editable;
  8916. /* readonly */
  8917. float effectiveScrollStep;
  8918. bool elementEventSender;
  8919. bool enabled;
  8920. /* readonly */
  8921. bool enabledSelf;
  8922. /* readonly */
  8923. bool fixedHeight;
  8924. /* readonly */
  8925. bool fixedSize;
  8926. /* readonly */
  8927. bool fixedWidth;
  8928. bool focus;
  8929. FocusMode focusMode;
  8930. /* readonly */
  8931. Button forwardButton;
  8932. int height;
  8933. HorizontalAlignment horizontalAlignment;
  8934. /* readonly */
  8935. bool hovering;
  8936. int indent;
  8937. int indentSpacing;
  8938. /* readonly */
  8939. int indentWidth;
  8940. bool internal;
  8941. IntRect layoutBorder;
  8942. Vector2 layoutFlexScale;
  8943. LayoutMode layoutMode;
  8944. int layoutSpacing;
  8945. int maxHeight;
  8946. IntVector2 maxSize;
  8947. int maxWidth;
  8948. int minHeight;
  8949. IntVector2 minSize;
  8950. int minWidth;
  8951. String name;
  8952. /* readonly */
  8953. uint numAllChildren;
  8954. /* readonly */
  8955. uint numAttributes;
  8956. /* readonly */
  8957. uint numChildren;
  8958. ObjectAnimation objectAnimation;
  8959. float opacity;
  8960. Orientation orientation;
  8961. UIElement parent;
  8962. IntVector2 position;
  8963. int priority;
  8964. float range;
  8965. /* readonly */
  8966. int refs;
  8967. /* readonly */
  8968. UIElement root;
  8969. /* readonly */
  8970. IntVector2 screenPosition;
  8971. float scrollStep;
  8972. bool selected;
  8973. IntVector2 size;
  8974. /* readonly */
  8975. Slider slider;
  8976. bool sortChildren;
  8977. float stepFactor;
  8978. String style;
  8979. /* readonly */
  8980. Array<String> tags;
  8981. bool temporary;
  8982. TraversalMode traversalMode;
  8983. /* readonly */
  8984. StringHash type;
  8985. /* readonly */
  8986. String typeName;
  8987. bool useDerivedOpacity;
  8988. float value;
  8989. /* readonly */
  8990. VariantMap vars;
  8991. VerticalAlignment verticalAlignment;
  8992. bool visible;
  8993. /* readonly */
  8994. bool visibleEffective;
  8995. /* readonly */
  8996. int weakRefs;
  8997. int width;
  8998. };
  8999. class ScrollView
  9000. {
  9001. // Methods:
  9002. void AddChild(UIElement);
  9003. void AddTag(const String&);
  9004. void AddTags(const String&, int8 = ';');
  9005. void ApplyAttributes();
  9006. void BringToFront();
  9007. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9008. void DisableLayoutUpdate();
  9009. IntVector2 ElementToScreen(const IntVector2&);
  9010. void EnableLayoutUpdate();
  9011. uint FindChild(UIElement) const;
  9012. Variant GetAttribute(const String&) const;
  9013. ValueAnimation GetAttributeAnimation(const String&) const;
  9014. float GetAttributeAnimationSpeed(const String&) const;
  9015. float GetAttributeAnimationTime(const String&) const;
  9016. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9017. Variant GetAttributeDefault(const String&) const;
  9018. UIElement GetChild(const String&, bool = false) const;
  9019. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9020. Array<UIElement> GetChildren(bool = false) const;
  9021. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9022. UIElement GetElementEventSender() const;
  9023. bool GetInterceptNetworkUpdate(const String&) const;
  9024. uint GetNumChildren(bool) const;
  9025. bool HasSubscribedToEvent(Object, const String&);
  9026. bool HasSubscribedToEvent(const String&);
  9027. bool HasTag(const String&) const;
  9028. void InsertChild(uint, UIElement);
  9029. bool IsInside(IntVector2, bool);
  9030. bool IsInsideCombined(IntVector2, bool);
  9031. bool Load(File, bool = false);
  9032. bool Load(VectorBuffer&, bool = false);
  9033. bool LoadChildXML(XMLFile, XMLFile = null);
  9034. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9035. bool LoadJSON(const JSONValue&, bool = false);
  9036. bool LoadXML(File);
  9037. bool LoadXML(VectorBuffer&);
  9038. bool LoadXML(XMLFile, XMLFile);
  9039. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9040. bool LoadXML(const XMLElement&, bool = false);
  9041. void MarkNetworkUpdate() const;
  9042. void Remove();
  9043. void RemoveAllChildren();
  9044. void RemoveAllTags();
  9045. void RemoveAttributeAnimation(const String&);
  9046. void RemoveChild(UIElement, uint = 0);
  9047. void RemoveChild(uint);
  9048. void RemoveInstanceDefault();
  9049. void RemoveObjectAnimation();
  9050. bool RemoveTag(const String&);
  9051. void ResetDeepEnabled();
  9052. void ResetToDefault();
  9053. bool Save(File) const;
  9054. bool Save(VectorBuffer&) const;
  9055. bool SaveJSON(JSONValue&) const;
  9056. bool SaveXML(File, const String& = "\t");
  9057. bool SaveXML(VectorBuffer&, const String& = "\t");
  9058. bool SaveXML(XMLElement&) const;
  9059. IntVector2 ScreenToElement(const IntVector2&);
  9060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9061. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9062. void SetAnimationTime(float);
  9063. bool SetAttribute(const String&, const Variant&);
  9064. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9065. void SetAttributeAnimationSpeed(const String&, float);
  9066. void SetAttributeAnimationTime(const String&, float);
  9067. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9068. void SetDeepEnabled(bool);
  9069. void SetEnabledRecursive(bool);
  9070. void SetFixedHeight(int);
  9071. void SetFixedSize(int, int);
  9072. void SetFixedWidth(int);
  9073. void SetInterceptNetworkUpdate(const String&, bool);
  9074. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9075. void SetMaxSize(int, int);
  9076. void SetMinSize(int, int);
  9077. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9078. void SetPosition(int, int);
  9079. void SetScrollBarsVisible(bool, bool);
  9080. void SetSize(int, int);
  9081. bool SetStyle(const String&, XMLFile = null);
  9082. bool SetStyle(const XMLElement&);
  9083. bool SetStyleAuto(XMLFile = null);
  9084. void SetViewPosition(int, int);
  9085. void UpdateLayout();
  9086. const Variant& GetVar(const StringHash&);
  9087. // Properties:
  9088. bool animationEnabled;
  9089. /* readonly */
  9090. Array<Variant> attributeDefaults;
  9091. /* readonly */
  9092. Array<AttributeInfo> attributeInfos;
  9093. Array<Variant> attributes;
  9094. bool autoDisableChildren;
  9095. float autoDisableThreshold;
  9096. bool bringToBack;
  9097. bool bringToFront;
  9098. /* readonly */
  9099. String category;
  9100. /* readonly */
  9101. IntVector2 childOffset;
  9102. /* readonly */
  9103. Array<UIElement> children;
  9104. IntRect clipBorder;
  9105. bool clipChildren;
  9106. /* writeonly */
  9107. Color color;
  9108. /* readonly */
  9109. bool colorGradient;
  9110. Array<Color> colors;
  9111. /* readonly */
  9112. IntRect combinedScreenRect;
  9113. UIElement contentElement;
  9114. XMLFile defaultStyle;
  9115. /* readonly */
  9116. float derivedOpacity;
  9117. /* readonly */
  9118. uint dragButtonCombo;
  9119. /* readonly */
  9120. int dragButtonCount;
  9121. uint dragDropMode;
  9122. bool editable;
  9123. bool elementEventSender;
  9124. bool enabled;
  9125. /* readonly */
  9126. bool enabledSelf;
  9127. /* readonly */
  9128. bool fixedHeight;
  9129. /* readonly */
  9130. bool fixedSize;
  9131. /* readonly */
  9132. bool fixedWidth;
  9133. bool focus;
  9134. FocusMode focusMode;
  9135. int height;
  9136. HorizontalAlignment horizontalAlignment;
  9137. /* readonly */
  9138. ScrollBar horizontalScrollBar;
  9139. /* readonly */
  9140. bool hovering;
  9141. int indent;
  9142. int indentSpacing;
  9143. /* readonly */
  9144. int indentWidth;
  9145. bool internal;
  9146. IntRect layoutBorder;
  9147. Vector2 layoutFlexScale;
  9148. LayoutMode layoutMode;
  9149. int layoutSpacing;
  9150. int maxHeight;
  9151. IntVector2 maxSize;
  9152. int maxWidth;
  9153. int minHeight;
  9154. IntVector2 minSize;
  9155. int minWidth;
  9156. String name;
  9157. /* readonly */
  9158. uint numAllChildren;
  9159. /* readonly */
  9160. uint numAttributes;
  9161. /* readonly */
  9162. uint numChildren;
  9163. ObjectAnimation objectAnimation;
  9164. float opacity;
  9165. float pageStep;
  9166. UIElement parent;
  9167. IntVector2 position;
  9168. int priority;
  9169. /* readonly */
  9170. int refs;
  9171. /* readonly */
  9172. UIElement root;
  9173. /* readonly */
  9174. IntVector2 screenPosition;
  9175. bool scrollBarsAutoVisible;
  9176. float scrollDeceleration;
  9177. /* readonly */
  9178. BorderImage scrollPanel;
  9179. float scrollSnapEpsilon;
  9180. float scrollStep;
  9181. bool selected;
  9182. IntVector2 size;
  9183. bool sortChildren;
  9184. String style;
  9185. /* readonly */
  9186. Array<String> tags;
  9187. bool temporary;
  9188. TraversalMode traversalMode;
  9189. /* readonly */
  9190. StringHash type;
  9191. /* readonly */
  9192. String typeName;
  9193. bool useDerivedOpacity;
  9194. /* readonly */
  9195. VariantMap vars;
  9196. VerticalAlignment verticalAlignment;
  9197. /* readonly */
  9198. ScrollBar verticalScrollBar;
  9199. IntVector2 viewPosition;
  9200. bool visible;
  9201. /* readonly */
  9202. bool visibleEffective;
  9203. /* readonly */
  9204. int weakRefs;
  9205. int width;
  9206. };
  9207. class Serializable
  9208. {
  9209. // Methods:
  9210. void ApplyAttributes();
  9211. Variant GetAttribute(const String&) const;
  9212. Variant GetAttributeDefault(const String&) const;
  9213. bool GetInterceptNetworkUpdate(const String&) const;
  9214. bool HasSubscribedToEvent(Object, const String&);
  9215. bool HasSubscribedToEvent(const String&);
  9216. bool Load(File, bool = false);
  9217. bool Load(VectorBuffer&, bool = false);
  9218. bool LoadJSON(const JSONValue&, bool = false);
  9219. bool LoadXML(const XMLElement&, bool = false);
  9220. void MarkNetworkUpdate() const;
  9221. void RemoveInstanceDefault();
  9222. void ResetToDefault();
  9223. bool Save(File) const;
  9224. bool Save(VectorBuffer&) const;
  9225. bool SaveJSON(JSONValue&) const;
  9226. bool SaveXML(XMLElement&) const;
  9227. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9228. bool SetAttribute(const String&, const Variant&);
  9229. void SetInterceptNetworkUpdate(const String&, bool);
  9230. // Properties:
  9231. /* readonly */
  9232. Array<Variant> attributeDefaults;
  9233. /* readonly */
  9234. Array<AttributeInfo> attributeInfos;
  9235. Array<Variant> attributes;
  9236. /* readonly */
  9237. String category;
  9238. /* readonly */
  9239. uint numAttributes;
  9240. /* readonly */
  9241. int refs;
  9242. bool temporary;
  9243. /* readonly */
  9244. StringHash type;
  9245. /* readonly */
  9246. String typeName;
  9247. /* readonly */
  9248. int weakRefs;
  9249. };
  9250. class Serializer
  9251. {
  9252. // Methods:
  9253. uint Write(Array<uint8>);
  9254. bool WriteBool(bool);
  9255. bool WriteBoundingBox(const BoundingBox&);
  9256. bool WriteByte(int8);
  9257. bool WriteColor(const Color&);
  9258. bool WriteDouble(double);
  9259. bool WriteFileID(const String&);
  9260. bool WriteFloat(float);
  9261. bool WriteInt(int);
  9262. bool WriteIntRect(const IntRect&);
  9263. bool WriteIntVector2(const IntVector2&);
  9264. bool WriteLine(const String&);
  9265. bool WriteMatrix3(const Matrix3&);
  9266. bool WriteMatrix3x4(const Matrix3x4&);
  9267. bool WriteMatrix4(const Matrix4&);
  9268. bool WriteNetID(uint);
  9269. bool WritePackedQuaternion(const Quaternion&);
  9270. bool WritePackedVector3(const Vector3&, float);
  9271. bool WriteQuaternion(const Quaternion&);
  9272. bool WriteShort(int16);
  9273. bool WriteString(const String&);
  9274. bool WriteStringHash(const StringHash&);
  9275. bool WriteUByte(uint8);
  9276. bool WriteUInt(uint);
  9277. bool WriteUShort(uint16);
  9278. bool WriteVLE(uint);
  9279. bool WriteVariant(const Variant&);
  9280. bool WriteVariantMap(const VariantMap&);
  9281. bool WriteVector2(const Vector2&);
  9282. bool WriteVector3(const Vector3&);
  9283. bool WriteVector4(const Vector4&);
  9284. bool WriteVectorBuffer(const VectorBuffer&);
  9285. };
  9286. class Skeleton
  9287. {
  9288. // Methods:
  9289. Bone GetBone(const String&) const;
  9290. void Reset();
  9291. // Properties:
  9292. /* readonly */
  9293. Array<Bone> bones;
  9294. /* readonly */
  9295. uint numBones;
  9296. /* readonly */
  9297. Bone rootBone;
  9298. };
  9299. class Skybox
  9300. {
  9301. // Methods:
  9302. void ApplyAttributes();
  9303. void ApplyMaterialList(const String& = String ( ));
  9304. void DrawDebugGeometry(DebugRenderer, bool);
  9305. Variant GetAttribute(const String&) const;
  9306. ValueAnimation GetAttributeAnimation(const String&) const;
  9307. float GetAttributeAnimationSpeed(const String&) const;
  9308. float GetAttributeAnimationTime(const String&) const;
  9309. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9310. Variant GetAttributeDefault(const String&) const;
  9311. bool GetInterceptNetworkUpdate(const String&) const;
  9312. bool HasSubscribedToEvent(Object, const String&);
  9313. bool HasSubscribedToEvent(const String&);
  9314. bool IsInView(Camera) const;
  9315. bool Load(File, bool = false);
  9316. bool Load(VectorBuffer&, bool = false);
  9317. bool LoadJSON(const JSONValue&, bool = false);
  9318. bool LoadXML(const XMLElement&, bool = false);
  9319. void MarkNetworkUpdate() const;
  9320. void Remove();
  9321. void RemoveAttributeAnimation(const String&);
  9322. void RemoveInstanceDefault();
  9323. void RemoveObjectAnimation();
  9324. void ResetToDefault();
  9325. bool Save(File) const;
  9326. bool Save(VectorBuffer&) const;
  9327. bool SaveJSON(JSONValue&) const;
  9328. bool SaveXML(XMLElement&) const;
  9329. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9330. void SetAnimationTime(float);
  9331. bool SetAttribute(const String&, const Variant&);
  9332. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9333. void SetAttributeAnimationSpeed(const String&, float);
  9334. void SetAttributeAnimationTime(const String&, float);
  9335. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9336. void SetInterceptNetworkUpdate(const String&, bool);
  9337. // Properties:
  9338. bool animationEnabled;
  9339. /* readonly */
  9340. Array<Variant> attributeDefaults;
  9341. /* readonly */
  9342. Array<AttributeInfo> attributeInfos;
  9343. Array<Variant> attributes;
  9344. /* readonly */
  9345. BoundingBox boundingBox;
  9346. bool castShadows;
  9347. /* readonly */
  9348. String category;
  9349. float drawDistance;
  9350. bool enabled;
  9351. /* readonly */
  9352. bool enabledEffective;
  9353. /* readonly */
  9354. uint id;
  9355. /* readonly */
  9356. bool inView;
  9357. uint lightMask;
  9358. float lodBias;
  9359. /* writeonly */
  9360. Material material;
  9361. Array<Material> materials;
  9362. uint maxLights;
  9363. Model model;
  9364. /* readonly */
  9365. Node node;
  9366. /* readonly */
  9367. uint numAttributes;
  9368. /* readonly */
  9369. uint numGeometries;
  9370. ObjectAnimation objectAnimation;
  9371. bool occludee;
  9372. bool occluder;
  9373. /* readonly */
  9374. int refs;
  9375. float shadowDistance;
  9376. uint shadowMask;
  9377. bool temporary;
  9378. /* readonly */
  9379. StringHash type;
  9380. /* readonly */
  9381. String typeName;
  9382. uint viewMask;
  9383. /* readonly */
  9384. int weakRefs;
  9385. /* readonly */
  9386. BoundingBox worldBoundingBox;
  9387. /* readonly */
  9388. Zone zone;
  9389. uint zoneMask;
  9390. };
  9391. class Slider
  9392. {
  9393. // Methods:
  9394. void AddChild(UIElement);
  9395. void AddTag(const String&);
  9396. void AddTags(const String&, int8 = ';');
  9397. void ApplyAttributes();
  9398. void BringToFront();
  9399. void ChangeValue(float);
  9400. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9401. void DisableLayoutUpdate();
  9402. IntVector2 ElementToScreen(const IntVector2&);
  9403. void EnableLayoutUpdate();
  9404. uint FindChild(UIElement) const;
  9405. Variant GetAttribute(const String&) const;
  9406. ValueAnimation GetAttributeAnimation(const String&) const;
  9407. float GetAttributeAnimationSpeed(const String&) const;
  9408. float GetAttributeAnimationTime(const String&) const;
  9409. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9410. Variant GetAttributeDefault(const String&) const;
  9411. UIElement GetChild(const String&, bool = false) const;
  9412. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9413. Array<UIElement> GetChildren(bool = false) const;
  9414. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9415. UIElement GetElementEventSender() const;
  9416. bool GetInterceptNetworkUpdate(const String&) const;
  9417. uint GetNumChildren(bool) const;
  9418. bool HasSubscribedToEvent(Object, const String&);
  9419. bool HasSubscribedToEvent(const String&);
  9420. bool HasTag(const String&) const;
  9421. void InsertChild(uint, UIElement);
  9422. bool IsInside(IntVector2, bool);
  9423. bool IsInsideCombined(IntVector2, bool);
  9424. bool Load(File, bool = false);
  9425. bool Load(VectorBuffer&, bool = false);
  9426. bool LoadChildXML(XMLFile, XMLFile = null);
  9427. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9428. bool LoadJSON(const JSONValue&, bool = false);
  9429. bool LoadXML(File);
  9430. bool LoadXML(VectorBuffer&);
  9431. bool LoadXML(XMLFile, XMLFile);
  9432. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9433. bool LoadXML(const XMLElement&, bool = false);
  9434. void MarkNetworkUpdate() const;
  9435. void Remove();
  9436. void RemoveAllChildren();
  9437. void RemoveAllTags();
  9438. void RemoveAttributeAnimation(const String&);
  9439. void RemoveChild(UIElement, uint = 0);
  9440. void RemoveChild(uint);
  9441. void RemoveInstanceDefault();
  9442. void RemoveObjectAnimation();
  9443. bool RemoveTag(const String&);
  9444. void ResetDeepEnabled();
  9445. void ResetToDefault();
  9446. bool Save(File) const;
  9447. bool Save(VectorBuffer&) const;
  9448. bool SaveJSON(JSONValue&) const;
  9449. bool SaveXML(File, const String& = "\t");
  9450. bool SaveXML(VectorBuffer&, const String& = "\t");
  9451. bool SaveXML(XMLElement&) const;
  9452. IntVector2 ScreenToElement(const IntVector2&);
  9453. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9454. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9455. void SetAnimationTime(float);
  9456. bool SetAttribute(const String&, const Variant&);
  9457. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9458. void SetAttributeAnimationSpeed(const String&, float);
  9459. void SetAttributeAnimationTime(const String&, float);
  9460. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9461. void SetDeepEnabled(bool);
  9462. void SetEnabledRecursive(bool);
  9463. void SetFixedHeight(int);
  9464. void SetFixedSize(int, int);
  9465. void SetFixedWidth(int);
  9466. void SetFullImageRect();
  9467. void SetHoverOffset(int, int);
  9468. void SetInterceptNetworkUpdate(const String&, bool);
  9469. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9470. void SetMaxSize(int, int);
  9471. void SetMinSize(int, int);
  9472. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9473. void SetPosition(int, int);
  9474. void SetSize(int, int);
  9475. bool SetStyle(const String&, XMLFile = null);
  9476. bool SetStyle(const XMLElement&);
  9477. bool SetStyleAuto(XMLFile = null);
  9478. void UpdateLayout();
  9479. const Variant& GetVar(const StringHash&);
  9480. // Properties:
  9481. bool animationEnabled;
  9482. /* readonly */
  9483. Array<Variant> attributeDefaults;
  9484. /* readonly */
  9485. Array<AttributeInfo> attributeInfos;
  9486. Array<Variant> attributes;
  9487. BlendMode blendMode;
  9488. IntRect border;
  9489. bool bringToBack;
  9490. bool bringToFront;
  9491. /* readonly */
  9492. String category;
  9493. /* readonly */
  9494. IntVector2 childOffset;
  9495. /* readonly */
  9496. Array<UIElement> children;
  9497. IntRect clipBorder;
  9498. bool clipChildren;
  9499. /* writeonly */
  9500. Color color;
  9501. /* readonly */
  9502. bool colorGradient;
  9503. Array<Color> colors;
  9504. /* readonly */
  9505. IntRect combinedScreenRect;
  9506. XMLFile defaultStyle;
  9507. /* readonly */
  9508. float derivedOpacity;
  9509. /* readonly */
  9510. uint dragButtonCombo;
  9511. /* readonly */
  9512. int dragButtonCount;
  9513. uint dragDropMode;
  9514. bool editable;
  9515. bool elementEventSender;
  9516. bool enabled;
  9517. /* readonly */
  9518. bool enabledSelf;
  9519. /* readonly */
  9520. bool fixedHeight;
  9521. /* readonly */
  9522. bool fixedSize;
  9523. /* readonly */
  9524. bool fixedWidth;
  9525. bool focus;
  9526. FocusMode focusMode;
  9527. int height;
  9528. HorizontalAlignment horizontalAlignment;
  9529. IntVector2 hoverOffset;
  9530. /* readonly */
  9531. bool hovering;
  9532. IntRect imageBorder;
  9533. IntRect imageRect;
  9534. int indent;
  9535. int indentSpacing;
  9536. /* readonly */
  9537. int indentWidth;
  9538. bool internal;
  9539. /* readonly */
  9540. BorderImage knob;
  9541. IntRect layoutBorder;
  9542. Vector2 layoutFlexScale;
  9543. LayoutMode layoutMode;
  9544. int layoutSpacing;
  9545. int maxHeight;
  9546. IntVector2 maxSize;
  9547. int maxWidth;
  9548. int minHeight;
  9549. IntVector2 minSize;
  9550. int minWidth;
  9551. String name;
  9552. /* readonly */
  9553. uint numAllChildren;
  9554. /* readonly */
  9555. uint numAttributes;
  9556. /* readonly */
  9557. uint numChildren;
  9558. ObjectAnimation objectAnimation;
  9559. float opacity;
  9560. Orientation orientation;
  9561. UIElement parent;
  9562. IntVector2 position;
  9563. int priority;
  9564. float range;
  9565. /* readonly */
  9566. int refs;
  9567. float repeatRate;
  9568. /* readonly */
  9569. UIElement root;
  9570. /* readonly */
  9571. IntVector2 screenPosition;
  9572. bool selected;
  9573. IntVector2 size;
  9574. bool sortChildren;
  9575. String style;
  9576. /* readonly */
  9577. Array<String> tags;
  9578. bool temporary;
  9579. Texture texture;
  9580. bool tiled;
  9581. TraversalMode traversalMode;
  9582. /* readonly */
  9583. StringHash type;
  9584. /* readonly */
  9585. String typeName;
  9586. bool useDerivedOpacity;
  9587. float value;
  9588. /* readonly */
  9589. VariantMap vars;
  9590. VerticalAlignment verticalAlignment;
  9591. bool visible;
  9592. /* readonly */
  9593. bool visibleEffective;
  9594. /* readonly */
  9595. int weakRefs;
  9596. int width;
  9597. };
  9598. class SmoothedTransform
  9599. {
  9600. // Methods:
  9601. void ApplyAttributes();
  9602. void DrawDebugGeometry(DebugRenderer, bool);
  9603. Variant GetAttribute(const String&) const;
  9604. ValueAnimation GetAttributeAnimation(const String&) const;
  9605. float GetAttributeAnimationSpeed(const String&) const;
  9606. float GetAttributeAnimationTime(const String&) const;
  9607. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9608. Variant GetAttributeDefault(const String&) const;
  9609. bool GetInterceptNetworkUpdate(const String&) const;
  9610. bool HasSubscribedToEvent(Object, const String&);
  9611. bool HasSubscribedToEvent(const String&);
  9612. bool Load(File, bool = false);
  9613. bool Load(VectorBuffer&, bool = false);
  9614. bool LoadJSON(const JSONValue&, bool = false);
  9615. bool LoadXML(const XMLElement&, bool = false);
  9616. void MarkNetworkUpdate() const;
  9617. void Remove();
  9618. void RemoveAttributeAnimation(const String&);
  9619. void RemoveInstanceDefault();
  9620. void RemoveObjectAnimation();
  9621. void ResetToDefault();
  9622. bool Save(File) const;
  9623. bool Save(VectorBuffer&) const;
  9624. bool SaveJSON(JSONValue&) const;
  9625. bool SaveXML(XMLElement&) const;
  9626. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9627. void SetAnimationTime(float);
  9628. bool SetAttribute(const String&, const Variant&);
  9629. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9630. void SetAttributeAnimationSpeed(const String&, float);
  9631. void SetAttributeAnimationTime(const String&, float);
  9632. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9633. void SetInterceptNetworkUpdate(const String&, bool);
  9634. void Update(float, float);
  9635. // Properties:
  9636. bool animationEnabled;
  9637. /* readonly */
  9638. Array<Variant> attributeDefaults;
  9639. /* readonly */
  9640. Array<AttributeInfo> attributeInfos;
  9641. Array<Variant> attributes;
  9642. /* readonly */
  9643. String category;
  9644. bool enabled;
  9645. /* readonly */
  9646. bool enabledEffective;
  9647. /* readonly */
  9648. uint id;
  9649. /* readonly */
  9650. bool inProgress;
  9651. /* readonly */
  9652. Node node;
  9653. /* readonly */
  9654. uint numAttributes;
  9655. ObjectAnimation objectAnimation;
  9656. /* readonly */
  9657. int refs;
  9658. Vector3 targetPosition;
  9659. Quaternion targetRotation;
  9660. Vector3 targetWorldPosition;
  9661. Quaternion targetWorldRotation;
  9662. bool temporary;
  9663. /* readonly */
  9664. StringHash type;
  9665. /* readonly */
  9666. String typeName;
  9667. /* readonly */
  9668. int weakRefs;
  9669. };
  9670. class Sound
  9671. {
  9672. // Methods:
  9673. bool HasSubscribedToEvent(Object, const String&);
  9674. bool HasSubscribedToEvent(const String&);
  9675. bool Load(File);
  9676. bool Load(VectorBuffer&);
  9677. bool Save(File) const;
  9678. bool Save(VectorBuffer&) const;
  9679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9680. // Properties:
  9681. /* readonly */
  9682. String category;
  9683. /* readonly */
  9684. bool compressed;
  9685. /* readonly */
  9686. float frequency;
  9687. /* readonly */
  9688. float length;
  9689. bool looped;
  9690. /* readonly */
  9691. uint memoryUse;
  9692. String name;
  9693. /* readonly */
  9694. int refs;
  9695. /* readonly */
  9696. uint sampleSize;
  9697. /* readonly */
  9698. bool sixteenBit;
  9699. /* readonly */
  9700. bool stereo;
  9701. /* readonly */
  9702. StringHash type;
  9703. /* readonly */
  9704. String typeName;
  9705. /* readonly */
  9706. uint useTimer;
  9707. /* readonly */
  9708. int weakRefs;
  9709. };
  9710. class SoundListener
  9711. {
  9712. // Methods:
  9713. void ApplyAttributes();
  9714. void DrawDebugGeometry(DebugRenderer, bool);
  9715. Variant GetAttribute(const String&) const;
  9716. ValueAnimation GetAttributeAnimation(const String&) const;
  9717. float GetAttributeAnimationSpeed(const String&) const;
  9718. float GetAttributeAnimationTime(const String&) const;
  9719. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9720. Variant GetAttributeDefault(const String&) const;
  9721. bool GetInterceptNetworkUpdate(const String&) const;
  9722. bool HasSubscribedToEvent(Object, const String&);
  9723. bool HasSubscribedToEvent(const String&);
  9724. bool Load(File, bool = false);
  9725. bool Load(VectorBuffer&, bool = false);
  9726. bool LoadJSON(const JSONValue&, bool = false);
  9727. bool LoadXML(const XMLElement&, bool = false);
  9728. void MarkNetworkUpdate() const;
  9729. void Remove();
  9730. void RemoveAttributeAnimation(const String&);
  9731. void RemoveInstanceDefault();
  9732. void RemoveObjectAnimation();
  9733. void ResetToDefault();
  9734. bool Save(File) const;
  9735. bool Save(VectorBuffer&) const;
  9736. bool SaveJSON(JSONValue&) const;
  9737. bool SaveXML(XMLElement&) const;
  9738. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9739. void SetAnimationTime(float);
  9740. bool SetAttribute(const String&, const Variant&);
  9741. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9742. void SetAttributeAnimationSpeed(const String&, float);
  9743. void SetAttributeAnimationTime(const String&, float);
  9744. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9745. void SetInterceptNetworkUpdate(const String&, bool);
  9746. // Properties:
  9747. bool animationEnabled;
  9748. /* readonly */
  9749. Array<Variant> attributeDefaults;
  9750. /* readonly */
  9751. Array<AttributeInfo> attributeInfos;
  9752. Array<Variant> attributes;
  9753. /* readonly */
  9754. String category;
  9755. bool enabled;
  9756. /* readonly */
  9757. bool enabledEffective;
  9758. /* readonly */
  9759. uint id;
  9760. /* readonly */
  9761. Node node;
  9762. /* readonly */
  9763. uint numAttributes;
  9764. ObjectAnimation objectAnimation;
  9765. /* readonly */
  9766. int refs;
  9767. bool temporary;
  9768. /* readonly */
  9769. StringHash type;
  9770. /* readonly */
  9771. String typeName;
  9772. /* readonly */
  9773. int weakRefs;
  9774. };
  9775. class SoundSource
  9776. {
  9777. // Methods:
  9778. void ApplyAttributes();
  9779. void DrawDebugGeometry(DebugRenderer, bool);
  9780. Variant GetAttribute(const String&) const;
  9781. ValueAnimation GetAttributeAnimation(const String&) const;
  9782. float GetAttributeAnimationSpeed(const String&) const;
  9783. float GetAttributeAnimationTime(const String&) const;
  9784. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9785. Variant GetAttributeDefault(const String&) const;
  9786. bool GetInterceptNetworkUpdate(const String&) const;
  9787. bool HasSubscribedToEvent(Object, const String&);
  9788. bool HasSubscribedToEvent(const String&);
  9789. bool Load(File, bool = false);
  9790. bool Load(VectorBuffer&, bool = false);
  9791. bool LoadJSON(const JSONValue&, bool = false);
  9792. bool LoadXML(const XMLElement&, bool = false);
  9793. void MarkNetworkUpdate() const;
  9794. void Play(Sound);
  9795. void Play(Sound, float);
  9796. void Play(Sound, float, float);
  9797. void Play(Sound, float, float, float);
  9798. void Remove();
  9799. void RemoveAttributeAnimation(const String&);
  9800. void RemoveInstanceDefault();
  9801. void RemoveObjectAnimation();
  9802. void ResetToDefault();
  9803. bool Save(File) const;
  9804. bool Save(VectorBuffer&) const;
  9805. bool SaveJSON(JSONValue&) const;
  9806. bool SaveXML(XMLElement&) const;
  9807. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9808. void SetAnimationTime(float);
  9809. bool SetAttribute(const String&, const Variant&);
  9810. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9811. void SetAttributeAnimationSpeed(const String&, float);
  9812. void SetAttributeAnimationTime(const String&, float);
  9813. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9814. void SetInterceptNetworkUpdate(const String&, bool);
  9815. void Stop();
  9816. // Properties:
  9817. bool animationEnabled;
  9818. /* readonly */
  9819. float attenuation;
  9820. /* readonly */
  9821. Array<Variant> attributeDefaults;
  9822. /* readonly */
  9823. Array<AttributeInfo> attributeInfos;
  9824. Array<Variant> attributes;
  9825. bool autoRemove;
  9826. /* readonly */
  9827. String category;
  9828. bool enabled;
  9829. /* readonly */
  9830. bool enabledEffective;
  9831. float frequency;
  9832. float gain;
  9833. /* readonly */
  9834. uint id;
  9835. /* readonly */
  9836. Node node;
  9837. /* readonly */
  9838. uint numAttributes;
  9839. ObjectAnimation objectAnimation;
  9840. float panning;
  9841. /* readonly */
  9842. bool playing;
  9843. /* readonly */
  9844. int refs;
  9845. /* readonly */
  9846. Sound sound;
  9847. String soundType;
  9848. bool temporary;
  9849. /* readonly */
  9850. float timePosition;
  9851. /* readonly */
  9852. StringHash type;
  9853. /* readonly */
  9854. String typeName;
  9855. /* readonly */
  9856. int weakRefs;
  9857. };
  9858. class SoundSource3D
  9859. {
  9860. // Methods:
  9861. void ApplyAttributes();
  9862. void DrawDebugGeometry(DebugRenderer, bool);
  9863. Variant GetAttribute(const String&) const;
  9864. ValueAnimation GetAttributeAnimation(const String&) const;
  9865. float GetAttributeAnimationSpeed(const String&) const;
  9866. float GetAttributeAnimationTime(const String&) const;
  9867. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9868. Variant GetAttributeDefault(const String&) const;
  9869. bool GetInterceptNetworkUpdate(const String&) const;
  9870. bool HasSubscribedToEvent(Object, const String&);
  9871. bool HasSubscribedToEvent(const String&);
  9872. bool Load(File, bool = false);
  9873. bool Load(VectorBuffer&, bool = false);
  9874. bool LoadJSON(const JSONValue&, bool = false);
  9875. bool LoadXML(const XMLElement&, bool = false);
  9876. void MarkNetworkUpdate() const;
  9877. void Play(Sound);
  9878. void Play(Sound, float);
  9879. void Play(Sound, float, float);
  9880. void Play(Sound, float, float, float);
  9881. void Remove();
  9882. void RemoveAttributeAnimation(const String&);
  9883. void RemoveInstanceDefault();
  9884. void RemoveObjectAnimation();
  9885. void ResetToDefault();
  9886. bool Save(File) const;
  9887. bool Save(VectorBuffer&) const;
  9888. bool SaveJSON(JSONValue&) const;
  9889. bool SaveXML(XMLElement&) const;
  9890. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9891. void SetAngleAttenuation(float, float);
  9892. void SetAnimationTime(float);
  9893. bool SetAttribute(const String&, const Variant&);
  9894. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9895. void SetAttributeAnimationSpeed(const String&, float);
  9896. void SetAttributeAnimationTime(const String&, float);
  9897. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9898. void SetDistanceAttenuation(float, float, float);
  9899. void SetInterceptNetworkUpdate(const String&, bool);
  9900. void Stop();
  9901. // Properties:
  9902. bool animationEnabled;
  9903. /* readonly */
  9904. float attenuation;
  9905. /* readonly */
  9906. Array<Variant> attributeDefaults;
  9907. /* readonly */
  9908. Array<AttributeInfo> attributeInfos;
  9909. Array<Variant> attributes;
  9910. bool autoRemove;
  9911. /* readonly */
  9912. String category;
  9913. bool enabled;
  9914. /* readonly */
  9915. bool enabledEffective;
  9916. float farDistance;
  9917. float frequency;
  9918. float gain;
  9919. /* readonly */
  9920. uint id;
  9921. float innerAngle;
  9922. float nearDistance;
  9923. /* readonly */
  9924. Node node;
  9925. /* readonly */
  9926. uint numAttributes;
  9927. ObjectAnimation objectAnimation;
  9928. float outerAngle;
  9929. float panning;
  9930. /* readonly */
  9931. bool playing;
  9932. /* readonly */
  9933. int refs;
  9934. float rolloffFactor;
  9935. /* readonly */
  9936. Sound sound;
  9937. String soundType;
  9938. bool temporary;
  9939. /* readonly */
  9940. float timePosition;
  9941. /* readonly */
  9942. StringHash type;
  9943. /* readonly */
  9944. String typeName;
  9945. /* readonly */
  9946. int weakRefs;
  9947. };
  9948. class Sphere
  9949. {
  9950. // Methods:
  9951. void Clear();
  9952. void Define(const BoundingBox&);
  9953. void Define(const Frustum&);
  9954. void Define(const Polyhedron&);
  9955. void Define(const Sphere&);
  9956. void Define(const Vector3&, float);
  9957. bool Defined() const;
  9958. float Distance(const Vector3&) const;
  9959. Intersection IsInside(const BoundingBox&) const;
  9960. Intersection IsInside(const Sphere&) const;
  9961. Intersection IsInside(const Vector3&) const;
  9962. Intersection IsInsideFast(const BoundingBox&) const;
  9963. Intersection IsInsideFast(const Sphere&) const;
  9964. void Merge(const BoundingBox&);
  9965. void Merge(const Frustum&);
  9966. void Merge(const Sphere&);
  9967. void Merge(const Vector3&);
  9968. // Properties:
  9969. Vector3 center;
  9970. float radius;
  9971. };
  9972. class Spline
  9973. {
  9974. // Methods:
  9975. void AddKnot(const Variant&);
  9976. void AddKnot(const Variant&, uint);
  9977. void Clear();
  9978. Variant GetPoint(float);
  9979. void RemoveKnot();
  9980. void RemoveKnot(uint);
  9981. // Properties:
  9982. InterpolationMode interpolationMode;
  9983. Array<Variant> knot;
  9984. Array<Variant> knots;
  9985. };
  9986. class SplinePath
  9987. {
  9988. // Methods:
  9989. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9990. void ApplyAttributes();
  9991. void ClearControlPoints();
  9992. void DrawDebugGeometry(DebugRenderer, bool);
  9993. Variant GetAttribute(const String&) const;
  9994. ValueAnimation GetAttributeAnimation(const String&) const;
  9995. float GetAttributeAnimationSpeed(const String&) const;
  9996. float GetAttributeAnimationTime(const String&) const;
  9997. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9998. Variant GetAttributeDefault(const String&) const;
  9999. bool GetInterceptNetworkUpdate(const String&) const;
  10000. Vector3 GetPoint(float) const;
  10001. Vector3 GetPosition() const;
  10002. bool HasSubscribedToEvent(Object, const String&);
  10003. bool HasSubscribedToEvent(const String&);
  10004. bool Load(File, bool = false);
  10005. bool Load(VectorBuffer&, bool = false);
  10006. bool LoadJSON(const JSONValue&, bool = false);
  10007. bool LoadXML(const XMLElement&, bool = false);
  10008. void MarkNetworkUpdate() const;
  10009. void Move(float);
  10010. void Remove();
  10011. void RemoveAttributeAnimation(const String&);
  10012. void RemoveControlPoint(Node);
  10013. void RemoveInstanceDefault();
  10014. void RemoveObjectAnimation();
  10015. void Reset();
  10016. void ResetToDefault();
  10017. bool Save(File) const;
  10018. bool Save(VectorBuffer&) const;
  10019. bool SaveJSON(JSONValue&) const;
  10020. bool SaveXML(XMLElement&) const;
  10021. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10022. void SetAnimationTime(float);
  10023. bool SetAttribute(const String&, const Variant&);
  10024. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10025. void SetAttributeAnimationSpeed(const String&, float);
  10026. void SetAttributeAnimationTime(const String&, float);
  10027. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10028. void SetInterceptNetworkUpdate(const String&, bool);
  10029. void SetPosition(float);
  10030. // Properties:
  10031. bool animationEnabled;
  10032. /* readonly */
  10033. Array<Variant> attributeDefaults;
  10034. /* readonly */
  10035. Array<AttributeInfo> attributeInfos;
  10036. Array<Variant> attributes;
  10037. /* readonly */
  10038. String category;
  10039. Node controlledNode;
  10040. bool enabled;
  10041. /* readonly */
  10042. bool enabledEffective;
  10043. /* readonly */
  10044. uint id;
  10045. InterpolationMode interpolationMode;
  10046. /* readonly */
  10047. bool isFinished;
  10048. /* readonly */
  10049. float length;
  10050. /* readonly */
  10051. Node node;
  10052. /* readonly */
  10053. uint numAttributes;
  10054. ObjectAnimation objectAnimation;
  10055. /* readonly */
  10056. int refs;
  10057. float speed;
  10058. bool temporary;
  10059. /* readonly */
  10060. StringHash type;
  10061. /* readonly */
  10062. String typeName;
  10063. /* readonly */
  10064. int weakRefs;
  10065. };
  10066. class Sprite
  10067. {
  10068. // Methods:
  10069. void AddChild(UIElement);
  10070. void AddTag(const String&);
  10071. void AddTags(const String&, int8 = ';');
  10072. void ApplyAttributes();
  10073. void BringToFront();
  10074. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10075. uint FindChild(UIElement) const;
  10076. Variant GetAttribute(const String&) const;
  10077. ValueAnimation GetAttributeAnimation(const String&) const;
  10078. float GetAttributeAnimationSpeed(const String&) const;
  10079. float GetAttributeAnimationTime(const String&) const;
  10080. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10081. Variant GetAttributeDefault(const String&) const;
  10082. UIElement GetChild(const String&, bool = false) const;
  10083. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10084. Array<UIElement> GetChildren(bool = false) const;
  10085. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10086. UIElement GetElementEventSender() const;
  10087. bool GetInterceptNetworkUpdate(const String&) const;
  10088. uint GetNumChildren(bool) const;
  10089. bool HasSubscribedToEvent(Object, const String&);
  10090. bool HasSubscribedToEvent(const String&);
  10091. bool HasTag(const String&) const;
  10092. void InsertChild(uint, UIElement);
  10093. bool Load(File, bool = false);
  10094. bool Load(VectorBuffer&, bool = false);
  10095. bool LoadChildXML(XMLFile, XMLFile = null);
  10096. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10097. bool LoadJSON(const JSONValue&, bool = false);
  10098. bool LoadXML(File);
  10099. bool LoadXML(VectorBuffer&);
  10100. bool LoadXML(XMLFile, XMLFile);
  10101. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10102. bool LoadXML(const XMLElement&, bool = false);
  10103. void MarkNetworkUpdate() const;
  10104. void Remove();
  10105. void RemoveAllChildren();
  10106. void RemoveAllTags();
  10107. void RemoveAttributeAnimation(const String&);
  10108. void RemoveChild(UIElement, uint = 0);
  10109. void RemoveChild(uint);
  10110. void RemoveInstanceDefault();
  10111. void RemoveObjectAnimation();
  10112. bool RemoveTag(const String&);
  10113. void ResetToDefault();
  10114. bool Save(File) const;
  10115. bool Save(VectorBuffer&) const;
  10116. bool SaveJSON(JSONValue&) const;
  10117. bool SaveXML(File, const String& = "\t");
  10118. bool SaveXML(VectorBuffer&, const String& = "\t");
  10119. bool SaveXML(XMLElement&) const;
  10120. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10121. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10122. void SetAnimationTime(float);
  10123. bool SetAttribute(const String&, const Variant&);
  10124. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10125. void SetAttributeAnimationSpeed(const String&, float);
  10126. void SetAttributeAnimationTime(const String&, float);
  10127. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10128. void SetFixedHeight(int);
  10129. void SetFixedSize(int, int);
  10130. void SetFixedWidth(int);
  10131. void SetFullImageRect();
  10132. void SetHotSpot(int, int);
  10133. void SetInterceptNetworkUpdate(const String&, bool);
  10134. void SetMaxSize(int, int);
  10135. void SetMinSize(int, int);
  10136. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10137. void SetPosition(float, float);
  10138. void SetScale(float);
  10139. void SetScale(float, float);
  10140. void SetSize(int, int);
  10141. bool SetStyle(const String&, XMLFile = null);
  10142. bool SetStyle(const XMLElement&);
  10143. bool SetStyleAuto(XMLFile = null);
  10144. const Variant& GetVar(const StringHash&);
  10145. // Properties:
  10146. bool animationEnabled;
  10147. /* readonly */
  10148. Array<Variant> attributeDefaults;
  10149. /* readonly */
  10150. Array<AttributeInfo> attributeInfos;
  10151. Array<Variant> attributes;
  10152. BlendMode blendMode;
  10153. bool bringToBack;
  10154. bool bringToFront;
  10155. /* readonly */
  10156. String category;
  10157. /* readonly */
  10158. Array<UIElement> children;
  10159. /* writeonly */
  10160. Color color;
  10161. /* readonly */
  10162. bool colorGradient;
  10163. Array<Color> colors;
  10164. XMLFile defaultStyle;
  10165. /* readonly */
  10166. float derivedOpacity;
  10167. /* readonly */
  10168. uint dragButtonCombo;
  10169. /* readonly */
  10170. int dragButtonCount;
  10171. bool elementEventSender;
  10172. int height;
  10173. HorizontalAlignment horizontalAlignment;
  10174. IntVector2 hotSpot;
  10175. IntRect imageRect;
  10176. String name;
  10177. /* readonly */
  10178. uint numAllChildren;
  10179. /* readonly */
  10180. uint numAttributes;
  10181. /* readonly */
  10182. uint numChildren;
  10183. ObjectAnimation objectAnimation;
  10184. float opacity;
  10185. UIElement parent;
  10186. Vector2 position;
  10187. int priority;
  10188. /* readonly */
  10189. int refs;
  10190. /* readonly */
  10191. UIElement root;
  10192. float rotation;
  10193. Vector2 scale;
  10194. IntVector2 size;
  10195. bool sortChildren;
  10196. String style;
  10197. /* readonly */
  10198. Array<String> tags;
  10199. bool temporary;
  10200. Texture texture;
  10201. /* readonly */
  10202. StringHash type;
  10203. /* readonly */
  10204. String typeName;
  10205. bool useDerivedOpacity;
  10206. /* readonly */
  10207. VariantMap vars;
  10208. VerticalAlignment verticalAlignment;
  10209. bool visible;
  10210. /* readonly */
  10211. bool visibleEffective;
  10212. /* readonly */
  10213. int weakRefs;
  10214. int width;
  10215. };
  10216. class Sprite2D
  10217. {
  10218. // Methods:
  10219. bool HasSubscribedToEvent(Object, const String&);
  10220. bool HasSubscribedToEvent(const String&);
  10221. bool Load(File);
  10222. bool Load(VectorBuffer&);
  10223. bool Save(File) const;
  10224. bool Save(VectorBuffer&) const;
  10225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10226. // Properties:
  10227. /* readonly */
  10228. String category;
  10229. Vector2 hotSpot;
  10230. /* readonly */
  10231. uint memoryUse;
  10232. String name;
  10233. IntVector2 offset;
  10234. IntRect rectangle;
  10235. /* readonly */
  10236. int refs;
  10237. Texture2D texture;
  10238. float textureEdgeOffset;
  10239. /* readonly */
  10240. StringHash type;
  10241. /* readonly */
  10242. String typeName;
  10243. /* readonly */
  10244. uint useTimer;
  10245. /* readonly */
  10246. int weakRefs;
  10247. };
  10248. class SpriteSheet2D
  10249. {
  10250. // Methods:
  10251. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10252. Sprite2D GetSprite(const String&);
  10253. bool HasSubscribedToEvent(Object, const String&);
  10254. bool HasSubscribedToEvent(const String&);
  10255. bool Load(File);
  10256. bool Load(VectorBuffer&);
  10257. bool Save(File) const;
  10258. bool Save(VectorBuffer&) const;
  10259. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10260. // Properties:
  10261. /* readonly */
  10262. String category;
  10263. /* readonly */
  10264. uint memoryUse;
  10265. String name;
  10266. /* readonly */
  10267. int refs;
  10268. Texture2D texture;
  10269. /* readonly */
  10270. StringHash type;
  10271. /* readonly */
  10272. String typeName;
  10273. /* readonly */
  10274. uint useTimer;
  10275. /* readonly */
  10276. int weakRefs;
  10277. };
  10278. class StaticModel
  10279. {
  10280. // Methods:
  10281. void ApplyAttributes();
  10282. void ApplyMaterialList(const String& = String ( ));
  10283. void DrawDebugGeometry(DebugRenderer, bool);
  10284. Variant GetAttribute(const String&) const;
  10285. ValueAnimation GetAttributeAnimation(const String&) const;
  10286. float GetAttributeAnimationSpeed(const String&) const;
  10287. float GetAttributeAnimationTime(const String&) const;
  10288. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10289. Variant GetAttributeDefault(const String&) const;
  10290. bool GetInterceptNetworkUpdate(const String&) const;
  10291. bool HasSubscribedToEvent(Object, const String&);
  10292. bool HasSubscribedToEvent(const String&);
  10293. bool IsInView(Camera) const;
  10294. bool IsInside(const Vector3&) const;
  10295. bool IsInsideLocal(const Vector3&) const;
  10296. bool Load(File, bool = false);
  10297. bool Load(VectorBuffer&, bool = false);
  10298. bool LoadJSON(const JSONValue&, bool = false);
  10299. bool LoadXML(const XMLElement&, bool = false);
  10300. void MarkNetworkUpdate() const;
  10301. void Remove();
  10302. void RemoveAttributeAnimation(const String&);
  10303. void RemoveInstanceDefault();
  10304. void RemoveObjectAnimation();
  10305. void ResetToDefault();
  10306. bool Save(File) const;
  10307. bool Save(VectorBuffer&) const;
  10308. bool SaveJSON(JSONValue&) const;
  10309. bool SaveXML(XMLElement&) const;
  10310. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10311. void SetAnimationTime(float);
  10312. bool SetAttribute(const String&, const Variant&);
  10313. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10314. void SetAttributeAnimationSpeed(const String&, float);
  10315. void SetAttributeAnimationTime(const String&, float);
  10316. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10317. void SetInterceptNetworkUpdate(const String&, bool);
  10318. // Properties:
  10319. bool animationEnabled;
  10320. /* readonly */
  10321. Array<Variant> attributeDefaults;
  10322. /* readonly */
  10323. Array<AttributeInfo> attributeInfos;
  10324. Array<Variant> attributes;
  10325. /* readonly */
  10326. BoundingBox boundingBox;
  10327. bool castShadows;
  10328. /* readonly */
  10329. String category;
  10330. float drawDistance;
  10331. bool enabled;
  10332. /* readonly */
  10333. bool enabledEffective;
  10334. /* readonly */
  10335. uint id;
  10336. /* readonly */
  10337. bool inView;
  10338. uint lightMask;
  10339. float lodBias;
  10340. /* writeonly */
  10341. Material material;
  10342. Array<Material> materials;
  10343. uint maxLights;
  10344. Model model;
  10345. /* readonly */
  10346. Node node;
  10347. /* readonly */
  10348. uint numAttributes;
  10349. /* readonly */
  10350. uint numGeometries;
  10351. ObjectAnimation objectAnimation;
  10352. bool occludee;
  10353. bool occluder;
  10354. uint occlusionLodLevel;
  10355. /* readonly */
  10356. int refs;
  10357. float shadowDistance;
  10358. uint shadowMask;
  10359. bool temporary;
  10360. /* readonly */
  10361. StringHash type;
  10362. /* readonly */
  10363. String typeName;
  10364. uint viewMask;
  10365. /* readonly */
  10366. int weakRefs;
  10367. /* readonly */
  10368. BoundingBox worldBoundingBox;
  10369. uint zoneMask;
  10370. };
  10371. class StaticModelGroup
  10372. {
  10373. // Methods:
  10374. void AddInstanceNode(Node);
  10375. void ApplyAttributes();
  10376. void ApplyMaterialList(const String& = String ( ));
  10377. void DrawDebugGeometry(DebugRenderer, bool);
  10378. Variant GetAttribute(const String&) const;
  10379. ValueAnimation GetAttributeAnimation(const String&) const;
  10380. float GetAttributeAnimationSpeed(const String&) const;
  10381. float GetAttributeAnimationTime(const String&) const;
  10382. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10383. Variant GetAttributeDefault(const String&) const;
  10384. bool GetInterceptNetworkUpdate(const String&) const;
  10385. bool HasSubscribedToEvent(Object, const String&);
  10386. bool HasSubscribedToEvent(const String&);
  10387. bool IsInView(Camera) const;
  10388. bool Load(File, bool = false);
  10389. bool Load(VectorBuffer&, bool = false);
  10390. bool LoadJSON(const JSONValue&, bool = false);
  10391. bool LoadXML(const XMLElement&, bool = false);
  10392. void MarkNetworkUpdate() const;
  10393. void Remove();
  10394. void RemoveAllInstanceNodes();
  10395. void RemoveAttributeAnimation(const String&);
  10396. void RemoveInstanceDefault();
  10397. void RemoveInstanceNode(Node);
  10398. void RemoveObjectAnimation();
  10399. void ResetToDefault();
  10400. bool Save(File) const;
  10401. bool Save(VectorBuffer&) const;
  10402. bool SaveJSON(JSONValue&) const;
  10403. bool SaveXML(XMLElement&) const;
  10404. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10405. void SetAnimationTime(float);
  10406. bool SetAttribute(const String&, const Variant&);
  10407. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10408. void SetAttributeAnimationSpeed(const String&, float);
  10409. void SetAttributeAnimationTime(const String&, float);
  10410. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10411. void SetInterceptNetworkUpdate(const String&, bool);
  10412. // Properties:
  10413. bool animationEnabled;
  10414. /* readonly */
  10415. Array<Variant> attributeDefaults;
  10416. /* readonly */
  10417. Array<AttributeInfo> attributeInfos;
  10418. Array<Variant> attributes;
  10419. /* readonly */
  10420. BoundingBox boundingBox;
  10421. bool castShadows;
  10422. /* readonly */
  10423. String category;
  10424. float drawDistance;
  10425. bool enabled;
  10426. /* readonly */
  10427. bool enabledEffective;
  10428. /* readonly */
  10429. uint id;
  10430. /* readonly */
  10431. bool inView;
  10432. /* readonly */
  10433. Array<Node> instanceNodes;
  10434. uint lightMask;
  10435. float lodBias;
  10436. /* writeonly */
  10437. Material material;
  10438. Array<Material> materials;
  10439. uint maxLights;
  10440. Model model;
  10441. /* readonly */
  10442. Node node;
  10443. /* readonly */
  10444. uint numAttributes;
  10445. /* readonly */
  10446. uint numGeometries;
  10447. /* readonly */
  10448. uint numInstanceNodes;
  10449. ObjectAnimation objectAnimation;
  10450. bool occludee;
  10451. bool occluder;
  10452. uint occlusionLodLevel;
  10453. /* readonly */
  10454. int refs;
  10455. float shadowDistance;
  10456. uint shadowMask;
  10457. bool temporary;
  10458. /* readonly */
  10459. StringHash type;
  10460. /* readonly */
  10461. String typeName;
  10462. uint viewMask;
  10463. /* readonly */
  10464. int weakRefs;
  10465. /* readonly */
  10466. BoundingBox worldBoundingBox;
  10467. /* readonly */
  10468. Zone zone;
  10469. uint zoneMask;
  10470. };
  10471. class StaticSprite2D
  10472. {
  10473. // Methods:
  10474. void ApplyAttributes();
  10475. void DrawDebugGeometry(DebugRenderer, bool);
  10476. Variant GetAttribute(const String&) const;
  10477. ValueAnimation GetAttributeAnimation(const String&) const;
  10478. float GetAttributeAnimationSpeed(const String&) const;
  10479. float GetAttributeAnimationTime(const String&) const;
  10480. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10481. Variant GetAttributeDefault(const String&) const;
  10482. bool GetInterceptNetworkUpdate(const String&) const;
  10483. bool HasSubscribedToEvent(Object, const String&);
  10484. bool HasSubscribedToEvent(const String&);
  10485. bool IsInView(Camera) const;
  10486. bool Load(File, bool = false);
  10487. bool Load(VectorBuffer&, bool = false);
  10488. bool LoadJSON(const JSONValue&, bool = false);
  10489. bool LoadXML(const XMLElement&, bool = false);
  10490. void MarkNetworkUpdate() const;
  10491. void Remove();
  10492. void RemoveAttributeAnimation(const String&);
  10493. void RemoveInstanceDefault();
  10494. void RemoveObjectAnimation();
  10495. void ResetToDefault();
  10496. bool Save(File) const;
  10497. bool Save(VectorBuffer&) const;
  10498. bool SaveJSON(JSONValue&) const;
  10499. bool SaveXML(XMLElement&) const;
  10500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10501. void SetAnimationTime(float);
  10502. bool SetAttribute(const String&, const Variant&);
  10503. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10504. void SetAttributeAnimationSpeed(const String&, float);
  10505. void SetAttributeAnimationTime(const String&, float);
  10506. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10507. void SetFlip(bool, bool);
  10508. void SetInterceptNetworkUpdate(const String&, bool);
  10509. // Properties:
  10510. float alpha;
  10511. bool animationEnabled;
  10512. /* readonly */
  10513. Array<Variant> attributeDefaults;
  10514. /* readonly */
  10515. Array<AttributeInfo> attributeInfos;
  10516. Array<Variant> attributes;
  10517. BlendMode blendMode;
  10518. /* readonly */
  10519. BoundingBox boundingBox;
  10520. bool castShadows;
  10521. /* readonly */
  10522. String category;
  10523. Color color;
  10524. Material customMaterial;
  10525. float drawDistance;
  10526. bool enabled;
  10527. /* readonly */
  10528. bool enabledEffective;
  10529. bool flipX;
  10530. bool flipY;
  10531. Vector2 hotSpot;
  10532. /* readonly */
  10533. uint id;
  10534. /* readonly */
  10535. bool inView;
  10536. int layer;
  10537. uint lightMask;
  10538. float lodBias;
  10539. uint maxLights;
  10540. /* readonly */
  10541. Node node;
  10542. /* readonly */
  10543. uint numAttributes;
  10544. ObjectAnimation objectAnimation;
  10545. bool occludee;
  10546. bool occluder;
  10547. int orderInLayer;
  10548. /* readonly */
  10549. int refs;
  10550. float shadowDistance;
  10551. uint shadowMask;
  10552. Sprite2D sprite;
  10553. bool temporary;
  10554. /* readonly */
  10555. StringHash type;
  10556. /* readonly */
  10557. String typeName;
  10558. bool useHotSpot;
  10559. uint viewMask;
  10560. /* readonly */
  10561. int weakRefs;
  10562. /* readonly */
  10563. BoundingBox worldBoundingBox;
  10564. uint zoneMask;
  10565. };
  10566. class String
  10567. {
  10568. // Methods:
  10569. void AppendUTF8(uint);
  10570. uint AtUTF8(uint) const;
  10571. uint ByteOffsetUTF8(uint) const;
  10572. void Clear();
  10573. int Compare(const String&, bool = true) const;
  10574. bool Contains(const String&, bool = true) const;
  10575. bool Contains(uint8, bool = true) const;
  10576. bool EndsWith(const String&, bool = true) const;
  10577. uint Find(const String&, uint = 0, bool = true) const;
  10578. uint Find(uint8, uint = 0, bool = true) const;
  10579. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10580. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10581. void Join(Array<String>&, const String&);
  10582. uint NextUTF8Char(uint&) const;
  10583. void Replace(const String&, const String&, bool = true);
  10584. void Replace(uint8, uint8, bool = true);
  10585. void ReplaceUTF8(uint, uint);
  10586. String Replaced(const String&, const String&, bool = true) const;
  10587. String Replaced(uint8, uint8, bool = true) const;
  10588. void Resize(uint);
  10589. void SetUTF8FromLatin1(const String&);
  10590. Array<String> Split(uint8, bool = false) const;
  10591. bool StartsWith(const String&, bool = true) const;
  10592. String Substring(uint) const;
  10593. String Substring(uint, uint) const;
  10594. String SubstringUTF8(uint) const;
  10595. String SubstringUTF8(uint, uint) const;
  10596. bool ToBool() const;
  10597. Color ToColor() const;
  10598. double ToDouble() const;
  10599. float ToFloat() const;
  10600. int ToInt() const;
  10601. IntRect ToIntRect() const;
  10602. IntVector2 ToIntVector2() const;
  10603. String ToLower() const;
  10604. Matrix3 ToMatrix3() const;
  10605. Matrix3x4 ToMatrix3x4() const;
  10606. Matrix4 ToMatrix4() const;
  10607. Quaternion ToQuaternion() const;
  10608. uint ToUInt() const;
  10609. String ToUpper() const;
  10610. Vector2 ToVector2() const;
  10611. Vector3 ToVector3() const;
  10612. Vector4 ToVector4(bool = false) const;
  10613. Variant ToVectorVariant() const;
  10614. String Trimmed() const;
  10615. // Properties:
  10616. /* readonly */
  10617. bool empty;
  10618. /* readonly */
  10619. uint length;
  10620. /* readonly */
  10621. uint utf8Length;
  10622. };
  10623. class StringHash
  10624. {
  10625. // Methods:
  10626. String ToString() const;
  10627. // Properties:
  10628. /* readonly */
  10629. uint value;
  10630. };
  10631. class Technique
  10632. {
  10633. // Methods:
  10634. Technique Clone(const String& = String ( )) const;
  10635. Pass CreatePass(const String&);
  10636. Pass GetPass(const String&);
  10637. Pass GetSupportedPass(const String&);
  10638. bool HasPass(const String&) const;
  10639. bool HasSubscribedToEvent(Object, const String&);
  10640. bool HasSubscribedToEvent(const String&);
  10641. bool Load(File);
  10642. bool Load(VectorBuffer&);
  10643. void RemovePass(const String&);
  10644. bool Save(File) const;
  10645. bool Save(VectorBuffer&) const;
  10646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10647. // Properties:
  10648. /* readonly */
  10649. String category;
  10650. bool desktop;
  10651. /* readonly */
  10652. uint memoryUse;
  10653. String name;
  10654. /* readonly */
  10655. uint numPasses;
  10656. /* readonly */
  10657. Array<String> passNames;
  10658. /* readonly */
  10659. Array<Pass> passes;
  10660. /* readonly */
  10661. int refs;
  10662. /* readonly */
  10663. bool supported;
  10664. /* readonly */
  10665. StringHash type;
  10666. /* readonly */
  10667. String typeName;
  10668. /* readonly */
  10669. uint useTimer;
  10670. /* readonly */
  10671. int weakRefs;
  10672. };
  10673. class TechniqueEntry
  10674. {
  10675. // Properties:
  10676. float lodDistance;
  10677. int qualityLevel;
  10678. Technique technique;
  10679. };
  10680. class Terrain
  10681. {
  10682. // Methods:
  10683. void ApplyAttributes();
  10684. void ApplyHeightMap();
  10685. void DrawDebugGeometry(DebugRenderer, bool);
  10686. Variant GetAttribute(const String&) const;
  10687. ValueAnimation GetAttributeAnimation(const String&) const;
  10688. float GetAttributeAnimationSpeed(const String&) const;
  10689. float GetAttributeAnimationTime(const String&) const;
  10690. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10691. Variant GetAttributeDefault(const String&) const;
  10692. float GetHeight(const Vector3&) const;
  10693. bool GetInterceptNetworkUpdate(const String&) const;
  10694. Vector3 GetNormal(const Vector3&) const;
  10695. TerrainPatch GetPatch(int, int) const;
  10696. bool HasSubscribedToEvent(Object, const String&);
  10697. bool HasSubscribedToEvent(const String&);
  10698. bool Load(File, bool = false);
  10699. bool Load(VectorBuffer&, bool = false);
  10700. bool LoadJSON(const JSONValue&, bool = false);
  10701. bool LoadXML(const XMLElement&, bool = false);
  10702. void MarkNetworkUpdate() const;
  10703. void Remove();
  10704. void RemoveAttributeAnimation(const String&);
  10705. void RemoveInstanceDefault();
  10706. void RemoveObjectAnimation();
  10707. void ResetToDefault();
  10708. bool Save(File) const;
  10709. bool Save(VectorBuffer&) const;
  10710. bool SaveJSON(JSONValue&) const;
  10711. bool SaveXML(XMLElement&) const;
  10712. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10713. void SetAnimationTime(float);
  10714. bool SetAttribute(const String&, const Variant&);
  10715. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10716. void SetAttributeAnimationSpeed(const String&, float);
  10717. void SetAttributeAnimationTime(const String&, float);
  10718. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10719. void SetInterceptNetworkUpdate(const String&, bool);
  10720. IntVector2 WorldToHeightMap(const Vector3&) const;
  10721. // Properties:
  10722. bool animationEnabled;
  10723. /* readonly */
  10724. Array<Variant> attributeDefaults;
  10725. /* readonly */
  10726. Array<AttributeInfo> attributeInfos;
  10727. Array<Variant> attributes;
  10728. bool castShadows;
  10729. /* readonly */
  10730. String category;
  10731. float drawDistance;
  10732. bool enabled;
  10733. /* readonly */
  10734. bool enabledEffective;
  10735. Image heightMap;
  10736. /* readonly */
  10737. uint id;
  10738. uint lightMask;
  10739. float lodBias;
  10740. Material material;
  10741. uint maxLights;
  10742. uint maxLodLevels;
  10743. /* readonly */
  10744. Node node;
  10745. /* readonly */
  10746. uint numAttributes;
  10747. /* readonly */
  10748. IntVector2 numPatches;
  10749. /* readonly */
  10750. IntVector2 numVertices;
  10751. ObjectAnimation objectAnimation;
  10752. bool occludee;
  10753. bool occluder;
  10754. uint occlusionLodLevel;
  10755. int patchSize;
  10756. /* readonly */
  10757. Array<TerrainPatch> patches;
  10758. /* readonly */
  10759. int refs;
  10760. float shadowDistance;
  10761. uint shadowMask;
  10762. bool smoothing;
  10763. Vector3 spacing;
  10764. bool temporary;
  10765. /* readonly */
  10766. StringHash type;
  10767. /* readonly */
  10768. String typeName;
  10769. uint viewMask;
  10770. /* readonly */
  10771. int weakRefs;
  10772. uint zoneMask;
  10773. };
  10774. class TerrainPatch
  10775. {
  10776. // Methods:
  10777. void ApplyAttributes();
  10778. void DrawDebugGeometry(DebugRenderer, bool);
  10779. Variant GetAttribute(const String&) const;
  10780. ValueAnimation GetAttributeAnimation(const String&) const;
  10781. float GetAttributeAnimationSpeed(const String&) const;
  10782. float GetAttributeAnimationTime(const String&) const;
  10783. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10784. Variant GetAttributeDefault(const String&) const;
  10785. bool GetInterceptNetworkUpdate(const String&) const;
  10786. bool HasSubscribedToEvent(Object, const String&);
  10787. bool HasSubscribedToEvent(const String&);
  10788. bool IsInView(Camera) const;
  10789. bool Load(File, bool = false);
  10790. bool Load(VectorBuffer&, bool = false);
  10791. bool LoadJSON(const JSONValue&, bool = false);
  10792. bool LoadXML(const XMLElement&, bool = false);
  10793. void MarkNetworkUpdate() const;
  10794. void Remove();
  10795. void RemoveAttributeAnimation(const String&);
  10796. void RemoveInstanceDefault();
  10797. void RemoveObjectAnimation();
  10798. void ResetToDefault();
  10799. bool Save(File) const;
  10800. bool Save(VectorBuffer&) const;
  10801. bool SaveJSON(JSONValue&) const;
  10802. bool SaveXML(XMLElement&) const;
  10803. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10804. void SetAnimationTime(float);
  10805. bool SetAttribute(const String&, const Variant&);
  10806. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10807. void SetAttributeAnimationSpeed(const String&, float);
  10808. void SetAttributeAnimationTime(const String&, float);
  10809. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10810. void SetInterceptNetworkUpdate(const String&, bool);
  10811. // Properties:
  10812. bool animationEnabled;
  10813. /* readonly */
  10814. Array<Variant> attributeDefaults;
  10815. /* readonly */
  10816. Array<AttributeInfo> attributeInfos;
  10817. Array<Variant> attributes;
  10818. /* readonly */
  10819. BoundingBox boundingBox;
  10820. bool castShadows;
  10821. /* readonly */
  10822. String category;
  10823. float drawDistance;
  10824. bool enabled;
  10825. /* readonly */
  10826. bool enabledEffective;
  10827. /* readonly */
  10828. uint id;
  10829. /* readonly */
  10830. bool inView;
  10831. uint lightMask;
  10832. float lodBias;
  10833. uint maxLights;
  10834. /* readonly */
  10835. Node node;
  10836. /* readonly */
  10837. uint numAttributes;
  10838. ObjectAnimation objectAnimation;
  10839. bool occludee;
  10840. bool occluder;
  10841. /* readonly */
  10842. int refs;
  10843. float shadowDistance;
  10844. uint shadowMask;
  10845. bool temporary;
  10846. /* readonly */
  10847. StringHash type;
  10848. /* readonly */
  10849. String typeName;
  10850. uint viewMask;
  10851. /* readonly */
  10852. int weakRefs;
  10853. /* readonly */
  10854. BoundingBox worldBoundingBox;
  10855. uint zoneMask;
  10856. };
  10857. class Text
  10858. {
  10859. // Methods:
  10860. void AddChild(UIElement);
  10861. void AddTag(const String&);
  10862. void AddTags(const String&, int8 = ';');
  10863. void ApplyAttributes();
  10864. void BringToFront();
  10865. void ClearSelection();
  10866. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10867. void DisableLayoutUpdate();
  10868. IntVector2 ElementToScreen(const IntVector2&);
  10869. void EnableLayoutUpdate();
  10870. uint FindChild(UIElement) const;
  10871. Variant GetAttribute(const String&) const;
  10872. ValueAnimation GetAttributeAnimation(const String&) const;
  10873. float GetAttributeAnimationSpeed(const String&) const;
  10874. float GetAttributeAnimationTime(const String&) const;
  10875. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10876. Variant GetAttributeDefault(const String&) const;
  10877. UIElement GetChild(const String&, bool = false) const;
  10878. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10879. Array<UIElement> GetChildren(bool = false) const;
  10880. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10881. UIElement GetElementEventSender() const;
  10882. bool GetInterceptNetworkUpdate(const String&) const;
  10883. uint GetNumChildren(bool) const;
  10884. bool HasSubscribedToEvent(Object, const String&);
  10885. bool HasSubscribedToEvent(const String&);
  10886. bool HasTag(const String&) const;
  10887. void InsertChild(uint, UIElement);
  10888. bool IsInside(IntVector2, bool);
  10889. bool IsInsideCombined(IntVector2, bool);
  10890. bool Load(File, bool = false);
  10891. bool Load(VectorBuffer&, bool = false);
  10892. bool LoadChildXML(XMLFile, XMLFile = null);
  10893. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10894. bool LoadJSON(const JSONValue&, bool = false);
  10895. bool LoadXML(File);
  10896. bool LoadXML(VectorBuffer&);
  10897. bool LoadXML(XMLFile, XMLFile);
  10898. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10899. bool LoadXML(const XMLElement&, bool = false);
  10900. void MarkNetworkUpdate() const;
  10901. void Remove();
  10902. void RemoveAllChildren();
  10903. void RemoveAllTags();
  10904. void RemoveAttributeAnimation(const String&);
  10905. void RemoveChild(UIElement, uint = 0);
  10906. void RemoveChild(uint);
  10907. void RemoveInstanceDefault();
  10908. void RemoveObjectAnimation();
  10909. bool RemoveTag(const String&);
  10910. void ResetDeepEnabled();
  10911. void ResetToDefault();
  10912. bool Save(File) const;
  10913. bool Save(VectorBuffer&) const;
  10914. bool SaveJSON(JSONValue&) const;
  10915. bool SaveXML(File, const String& = "\t");
  10916. bool SaveXML(VectorBuffer&, const String& = "\t");
  10917. bool SaveXML(XMLElement&) const;
  10918. IntVector2 ScreenToElement(const IntVector2&);
  10919. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10920. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10921. void SetAnimationTime(float);
  10922. bool SetAttribute(const String&, const Variant&);
  10923. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10924. void SetAttributeAnimationSpeed(const String&, float);
  10925. void SetAttributeAnimationTime(const String&, float);
  10926. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10927. void SetDeepEnabled(bool);
  10928. void SetEnabledRecursive(bool);
  10929. void SetFixedHeight(int);
  10930. void SetFixedSize(int, int);
  10931. void SetFixedWidth(int);
  10932. bool SetFont(Font, int);
  10933. bool SetFont(const String&, int);
  10934. void SetInterceptNetworkUpdate(const String&, bool);
  10935. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10936. void SetMaxSize(int, int);
  10937. void SetMinSize(int, int);
  10938. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10939. void SetPosition(int, int);
  10940. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10941. void SetSize(int, int);
  10942. bool SetStyle(const String&, XMLFile = null);
  10943. bool SetStyle(const XMLElement&);
  10944. bool SetStyleAuto(XMLFile = null);
  10945. void UpdateLayout();
  10946. const Variant& GetVar(const StringHash&);
  10947. // Properties:
  10948. bool animationEnabled;
  10949. /* readonly */
  10950. Array<Variant> attributeDefaults;
  10951. /* readonly */
  10952. Array<AttributeInfo> attributeInfos;
  10953. Array<Variant> attributes;
  10954. bool autoLocalizable;
  10955. bool bringToBack;
  10956. bool bringToFront;
  10957. /* readonly */
  10958. String category;
  10959. /* readonly */
  10960. Array<IntVector2> charPositions;
  10961. /* readonly */
  10962. Array<IntVector2> charSizes;
  10963. /* readonly */
  10964. IntVector2 childOffset;
  10965. /* readonly */
  10966. Array<UIElement> children;
  10967. IntRect clipBorder;
  10968. bool clipChildren;
  10969. /* writeonly */
  10970. Color color;
  10971. /* readonly */
  10972. bool colorGradient;
  10973. Array<Color> colors;
  10974. /* readonly */
  10975. IntRect combinedScreenRect;
  10976. XMLFile defaultStyle;
  10977. /* readonly */
  10978. float derivedOpacity;
  10979. /* readonly */
  10980. uint dragButtonCombo;
  10981. /* readonly */
  10982. int dragButtonCount;
  10983. uint dragDropMode;
  10984. bool editable;
  10985. Color effectColor;
  10986. bool elementEventSender;
  10987. bool enabled;
  10988. /* readonly */
  10989. bool enabledSelf;
  10990. /* readonly */
  10991. bool fixedHeight;
  10992. /* readonly */
  10993. bool fixedSize;
  10994. /* readonly */
  10995. bool fixedWidth;
  10996. bool focus;
  10997. FocusMode focusMode;
  10998. /* readonly */
  10999. Font font;
  11000. /* readonly */
  11001. int fontSize;
  11002. int height;
  11003. HorizontalAlignment horizontalAlignment;
  11004. Color hoverColor;
  11005. /* readonly */
  11006. bool hovering;
  11007. int indent;
  11008. int indentSpacing;
  11009. /* readonly */
  11010. int indentWidth;
  11011. bool internal;
  11012. IntRect layoutBorder;
  11013. Vector2 layoutFlexScale;
  11014. LayoutMode layoutMode;
  11015. int layoutSpacing;
  11016. int maxHeight;
  11017. IntVector2 maxSize;
  11018. int maxWidth;
  11019. int minHeight;
  11020. IntVector2 minSize;
  11021. int minWidth;
  11022. String name;
  11023. /* readonly */
  11024. uint numAllChildren;
  11025. /* readonly */
  11026. uint numAttributes;
  11027. /* readonly */
  11028. uint numChars;
  11029. /* readonly */
  11030. uint numChildren;
  11031. /* readonly */
  11032. uint numRows;
  11033. ObjectAnimation objectAnimation;
  11034. float opacity;
  11035. UIElement parent;
  11036. IntVector2 position;
  11037. int priority;
  11038. /* readonly */
  11039. int refs;
  11040. /* readonly */
  11041. UIElement root;
  11042. /* readonly */
  11043. int rowHeight;
  11044. float rowSpacing;
  11045. /* readonly */
  11046. Array<int> rowWidths;
  11047. /* readonly */
  11048. IntVector2 screenPosition;
  11049. bool selected;
  11050. Color selectionColor;
  11051. /* readonly */
  11052. uint selectionLength;
  11053. /* readonly */
  11054. uint selectionStart;
  11055. IntVector2 size;
  11056. bool sortChildren;
  11057. String style;
  11058. /* readonly */
  11059. Array<String> tags;
  11060. bool temporary;
  11061. String text;
  11062. HorizontalAlignment textAlignment;
  11063. TextEffect textEffect;
  11064. TraversalMode traversalMode;
  11065. /* readonly */
  11066. StringHash type;
  11067. /* readonly */
  11068. String typeName;
  11069. bool useDerivedOpacity;
  11070. /* readonly */
  11071. VariantMap vars;
  11072. VerticalAlignment verticalAlignment;
  11073. bool visible;
  11074. /* readonly */
  11075. bool visibleEffective;
  11076. /* readonly */
  11077. int weakRefs;
  11078. int width;
  11079. bool wordwrap;
  11080. };
  11081. class Text3D
  11082. {
  11083. // Methods:
  11084. void ApplyAttributes();
  11085. void DrawDebugGeometry(DebugRenderer, bool);
  11086. Variant GetAttribute(const String&) const;
  11087. ValueAnimation GetAttributeAnimation(const String&) const;
  11088. float GetAttributeAnimationSpeed(const String&) const;
  11089. float GetAttributeAnimationTime(const String&) const;
  11090. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11091. Variant GetAttributeDefault(const String&) const;
  11092. bool GetInterceptNetworkUpdate(const String&) const;
  11093. bool HasSubscribedToEvent(Object, const String&);
  11094. bool HasSubscribedToEvent(const String&);
  11095. bool IsInView(Camera) const;
  11096. bool Load(File, bool = false);
  11097. bool Load(VectorBuffer&, bool = false);
  11098. bool LoadJSON(const JSONValue&, bool = false);
  11099. bool LoadXML(const XMLElement&, bool = false);
  11100. void MarkNetworkUpdate() const;
  11101. void Remove();
  11102. void RemoveAttributeAnimation(const String&);
  11103. void RemoveInstanceDefault();
  11104. void RemoveObjectAnimation();
  11105. void ResetToDefault();
  11106. bool Save(File) const;
  11107. bool Save(VectorBuffer&) const;
  11108. bool SaveJSON(JSONValue&) const;
  11109. bool SaveXML(XMLElement&) const;
  11110. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11111. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11112. void SetAnimationTime(float);
  11113. bool SetAttribute(const String&, const Variant&);
  11114. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11115. void SetAttributeAnimationSpeed(const String&, float);
  11116. void SetAttributeAnimationTime(const String&, float);
  11117. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11118. bool SetFont(Font, int);
  11119. bool SetFont(const String&, int);
  11120. void SetInterceptNetworkUpdate(const String&, bool);
  11121. // Properties:
  11122. bool animationEnabled;
  11123. /* readonly */
  11124. Array<Variant> attributeDefaults;
  11125. /* readonly */
  11126. Array<AttributeInfo> attributeInfos;
  11127. Array<Variant> attributes;
  11128. /* readonly */
  11129. BoundingBox boundingBox;
  11130. bool castShadows;
  11131. /* readonly */
  11132. String category;
  11133. /* readonly */
  11134. Array<IntVector2> charPositions;
  11135. /* readonly */
  11136. Array<IntVector2> charSizes;
  11137. /* writeonly */
  11138. Color color;
  11139. Array<Color> colors;
  11140. float drawDistance;
  11141. Color effectColor;
  11142. float effectDepthBias;
  11143. bool enabled;
  11144. /* readonly */
  11145. bool enabledEffective;
  11146. FaceCameraMode faceCameraMode;
  11147. /* readonly */
  11148. Font font;
  11149. /* readonly */
  11150. int fontSize;
  11151. HorizontalAlignment horizontalAlignment;
  11152. /* readonly */
  11153. uint id;
  11154. /* readonly */
  11155. bool inView;
  11156. uint lightMask;
  11157. float lodBias;
  11158. Material material;
  11159. uint maxLights;
  11160. /* readonly */
  11161. Node node;
  11162. /* readonly */
  11163. uint numAttributes;
  11164. /* readonly */
  11165. uint numChars;
  11166. /* readonly */
  11167. uint numRows;
  11168. ObjectAnimation objectAnimation;
  11169. bool occludee;
  11170. bool occluder;
  11171. float opacity;
  11172. /* readonly */
  11173. int refs;
  11174. /* readonly */
  11175. int rowHeight;
  11176. float rowSpacing;
  11177. /* readonly */
  11178. Array<int> rowWidths;
  11179. float shadowDistance;
  11180. uint shadowMask;
  11181. bool temporary;
  11182. String text;
  11183. HorizontalAlignment textAlignment;
  11184. TextEffect textEffect;
  11185. /* readonly */
  11186. StringHash type;
  11187. /* readonly */
  11188. String typeName;
  11189. VerticalAlignment verticalAlignment;
  11190. uint viewMask;
  11191. /* readonly */
  11192. int weakRefs;
  11193. int width;
  11194. bool wordwrap;
  11195. /* readonly */
  11196. BoundingBox worldBoundingBox;
  11197. uint zoneMask;
  11198. };
  11199. class Texture
  11200. {
  11201. // Methods:
  11202. void ClearDataLost();
  11203. bool HasSubscribedToEvent(Object, const String&);
  11204. bool HasSubscribedToEvent(const String&);
  11205. bool Load(File);
  11206. bool Load(VectorBuffer&);
  11207. bool Save(File) const;
  11208. bool Save(VectorBuffer&) const;
  11209. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11210. void SetNumLevels(uint);
  11211. // Properties:
  11212. Array<TextureAddressMode> addressMode;
  11213. Texture backupTexture;
  11214. Color borderColor;
  11215. /* readonly */
  11216. String category;
  11217. /* readonly */
  11218. uint components;
  11219. /* readonly */
  11220. bool compressed;
  11221. /* readonly */
  11222. bool dataLost;
  11223. TextureFilterMode filterMode;
  11224. /* readonly */
  11225. uint format;
  11226. /* readonly */
  11227. int height;
  11228. /* readonly */
  11229. Array<int> levelHeight;
  11230. /* readonly */
  11231. Array<int> levelWidth;
  11232. /* readonly */
  11233. uint levels;
  11234. /* readonly */
  11235. uint memoryUse;
  11236. Array<int> mipsToSkip;
  11237. String name;
  11238. /* readonly */
  11239. int refs;
  11240. bool sRGB;
  11241. /* readonly */
  11242. StringHash type;
  11243. /* readonly */
  11244. String typeName;
  11245. /* readonly */
  11246. TextureUsage usage;
  11247. /* readonly */
  11248. uint useTimer;
  11249. /* readonly */
  11250. int weakRefs;
  11251. /* readonly */
  11252. int width;
  11253. };
  11254. class Texture2D
  11255. {
  11256. // Methods:
  11257. void ClearDataLost();
  11258. Image GetImage() const;
  11259. bool HasSubscribedToEvent(Object, const String&);
  11260. bool HasSubscribedToEvent(const String&);
  11261. bool Load(File);
  11262. bool Load(VectorBuffer&);
  11263. bool Save(File) const;
  11264. bool Save(VectorBuffer&) const;
  11265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11266. bool SetData(Image, bool = false);
  11267. void SetNumLevels(uint);
  11268. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11269. // Properties:
  11270. Array<TextureAddressMode> addressMode;
  11271. Texture backupTexture;
  11272. Color borderColor;
  11273. /* readonly */
  11274. String category;
  11275. /* readonly */
  11276. uint components;
  11277. /* readonly */
  11278. bool compressed;
  11279. /* readonly */
  11280. bool dataLost;
  11281. TextureFilterMode filterMode;
  11282. /* readonly */
  11283. uint format;
  11284. /* readonly */
  11285. int height;
  11286. /* readonly */
  11287. Array<int> levelHeight;
  11288. /* readonly */
  11289. Array<int> levelWidth;
  11290. /* readonly */
  11291. uint levels;
  11292. /* readonly */
  11293. uint memoryUse;
  11294. Array<int> mipsToSkip;
  11295. String name;
  11296. /* readonly */
  11297. int refs;
  11298. /* readonly */
  11299. RenderSurface renderSurface;
  11300. bool sRGB;
  11301. /* readonly */
  11302. StringHash type;
  11303. /* readonly */
  11304. String typeName;
  11305. /* readonly */
  11306. TextureUsage usage;
  11307. /* readonly */
  11308. uint useTimer;
  11309. /* readonly */
  11310. int weakRefs;
  11311. /* readonly */
  11312. int width;
  11313. };
  11314. class Texture2DArray
  11315. {
  11316. // Methods:
  11317. void ClearDataLost();
  11318. bool HasSubscribedToEvent(Object, const String&);
  11319. bool HasSubscribedToEvent(const String&);
  11320. bool Load(File);
  11321. bool Load(VectorBuffer&);
  11322. bool Save(File) const;
  11323. bool Save(VectorBuffer&) const;
  11324. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11325. bool SetData(uint, Image, bool = false);
  11326. void SetNumLevels(uint);
  11327. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11328. // Properties:
  11329. Array<TextureAddressMode> addressMode;
  11330. Texture backupTexture;
  11331. Color borderColor;
  11332. /* readonly */
  11333. String category;
  11334. /* readonly */
  11335. uint components;
  11336. /* readonly */
  11337. bool compressed;
  11338. /* readonly */
  11339. bool dataLost;
  11340. TextureFilterMode filterMode;
  11341. /* readonly */
  11342. uint format;
  11343. /* readonly */
  11344. int height;
  11345. uint layers;
  11346. /* readonly */
  11347. Array<int> levelHeight;
  11348. /* readonly */
  11349. Array<int> levelWidth;
  11350. /* readonly */
  11351. uint levels;
  11352. /* readonly */
  11353. uint memoryUse;
  11354. Array<int> mipsToSkip;
  11355. String name;
  11356. /* readonly */
  11357. int refs;
  11358. /* readonly */
  11359. RenderSurface renderSurface;
  11360. bool sRGB;
  11361. /* readonly */
  11362. StringHash type;
  11363. /* readonly */
  11364. String typeName;
  11365. /* readonly */
  11366. TextureUsage usage;
  11367. /* readonly */
  11368. uint useTimer;
  11369. /* readonly */
  11370. int weakRefs;
  11371. /* readonly */
  11372. int width;
  11373. };
  11374. class Texture3D
  11375. {
  11376. // Methods:
  11377. void ClearDataLost();
  11378. bool HasSubscribedToEvent(Object, const String&);
  11379. bool HasSubscribedToEvent(const String&);
  11380. bool Load(File);
  11381. bool Load(VectorBuffer&);
  11382. bool Save(File) const;
  11383. bool Save(VectorBuffer&) const;
  11384. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11385. bool SetData(Image, bool = false);
  11386. void SetNumLevels(uint);
  11387. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11388. // Properties:
  11389. Array<TextureAddressMode> addressMode;
  11390. Texture backupTexture;
  11391. Color borderColor;
  11392. /* readonly */
  11393. String category;
  11394. /* readonly */
  11395. uint components;
  11396. /* readonly */
  11397. bool compressed;
  11398. /* readonly */
  11399. bool dataLost;
  11400. TextureFilterMode filterMode;
  11401. /* readonly */
  11402. uint format;
  11403. /* readonly */
  11404. int height;
  11405. /* readonly */
  11406. Array<int> levelHeight;
  11407. /* readonly */
  11408. Array<int> levelWidth;
  11409. /* readonly */
  11410. uint levels;
  11411. /* readonly */
  11412. uint memoryUse;
  11413. Array<int> mipsToSkip;
  11414. String name;
  11415. /* readonly */
  11416. int refs;
  11417. bool sRGB;
  11418. /* readonly */
  11419. StringHash type;
  11420. /* readonly */
  11421. String typeName;
  11422. /* readonly */
  11423. TextureUsage usage;
  11424. /* readonly */
  11425. uint useTimer;
  11426. /* readonly */
  11427. int weakRefs;
  11428. /* readonly */
  11429. int width;
  11430. };
  11431. class TextureCube
  11432. {
  11433. // Methods:
  11434. void ClearDataLost();
  11435. Image GetImage(CubeMapFace) const;
  11436. bool HasSubscribedToEvent(Object, const String&);
  11437. bool HasSubscribedToEvent(const String&);
  11438. bool Load(File);
  11439. bool Load(VectorBuffer&);
  11440. bool Save(File) const;
  11441. bool Save(VectorBuffer&) const;
  11442. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11443. bool SetData(CubeMapFace, Image, bool = false);
  11444. void SetNumLevels(uint);
  11445. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11446. // Properties:
  11447. Array<TextureAddressMode> addressMode;
  11448. Texture backupTexture;
  11449. Color borderColor;
  11450. /* readonly */
  11451. String category;
  11452. /* readonly */
  11453. uint components;
  11454. /* readonly */
  11455. bool compressed;
  11456. /* readonly */
  11457. bool dataLost;
  11458. TextureFilterMode filterMode;
  11459. /* readonly */
  11460. uint format;
  11461. /* readonly */
  11462. int height;
  11463. /* readonly */
  11464. Array<int> levelHeight;
  11465. /* readonly */
  11466. Array<int> levelWidth;
  11467. /* readonly */
  11468. uint levels;
  11469. /* readonly */
  11470. uint memoryUse;
  11471. Array<int> mipsToSkip;
  11472. String name;
  11473. /* readonly */
  11474. int refs;
  11475. /* readonly */
  11476. Array<RenderSurface> renderSurfaces;
  11477. bool sRGB;
  11478. /* readonly */
  11479. StringHash type;
  11480. /* readonly */
  11481. String typeName;
  11482. /* readonly */
  11483. TextureUsage usage;
  11484. /* readonly */
  11485. uint useTimer;
  11486. /* readonly */
  11487. int weakRefs;
  11488. /* readonly */
  11489. int width;
  11490. };
  11491. class TextureFrame
  11492. {
  11493. // Properties:
  11494. float time;
  11495. Rect uv;
  11496. };
  11497. class Tile2D
  11498. {
  11499. // Methods:
  11500. bool HasProperty(const String&) const;
  11501. const String& GetProperty(const String&) const;
  11502. // Properties:
  11503. /* readonly */
  11504. int gid;
  11505. /* readonly */
  11506. int refs;
  11507. /* readonly */
  11508. Sprite2D sprite;
  11509. /* readonly */
  11510. int weakRefs;
  11511. };
  11512. class TileMap2D
  11513. {
  11514. // Methods:
  11515. void ApplyAttributes();
  11516. void DrawDebugGeometry(DebugRenderer, bool);
  11517. Variant GetAttribute(const String&) const;
  11518. ValueAnimation GetAttributeAnimation(const String&) const;
  11519. float GetAttributeAnimationSpeed(const String&) const;
  11520. float GetAttributeAnimationTime(const String&) const;
  11521. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11522. Variant GetAttributeDefault(const String&) const;
  11523. bool GetInterceptNetworkUpdate(const String&) const;
  11524. TileMapLayer2D GetLayer(uint) const;
  11525. bool HasSubscribedToEvent(Object, const String&);
  11526. bool HasSubscribedToEvent(const String&);
  11527. bool Load(File, bool = false);
  11528. bool Load(VectorBuffer&, bool = false);
  11529. bool LoadJSON(const JSONValue&, bool = false);
  11530. bool LoadXML(const XMLElement&, bool = false);
  11531. void MarkNetworkUpdate() const;
  11532. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11533. void Remove();
  11534. void RemoveAttributeAnimation(const String&);
  11535. void RemoveInstanceDefault();
  11536. void RemoveObjectAnimation();
  11537. void ResetToDefault();
  11538. bool Save(File) const;
  11539. bool Save(VectorBuffer&) const;
  11540. bool SaveJSON(JSONValue&) const;
  11541. bool SaveXML(XMLElement&) const;
  11542. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11543. void SetAnimationTime(float);
  11544. bool SetAttribute(const String&, const Variant&);
  11545. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11546. void SetAttributeAnimationSpeed(const String&, float);
  11547. void SetAttributeAnimationTime(const String&, float);
  11548. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11549. void SetInterceptNetworkUpdate(const String&, bool);
  11550. Vector2 TileIndexToPosition(int, int) const;
  11551. // Properties:
  11552. bool animationEnabled;
  11553. /* readonly */
  11554. Array<Variant> attributeDefaults;
  11555. /* readonly */
  11556. Array<AttributeInfo> attributeInfos;
  11557. Array<Variant> attributes;
  11558. /* readonly */
  11559. String category;
  11560. bool enabled;
  11561. /* readonly */
  11562. bool enabledEffective;
  11563. /* readonly */
  11564. uint id;
  11565. /* readonly */
  11566. TileMapInfo2D info;
  11567. /* readonly */
  11568. Node node;
  11569. /* readonly */
  11570. uint numAttributes;
  11571. /* readonly */
  11572. uint numLayers;
  11573. ObjectAnimation objectAnimation;
  11574. /* readonly */
  11575. int refs;
  11576. bool temporary;
  11577. TmxFile2D tmxFile;
  11578. /* readonly */
  11579. StringHash type;
  11580. /* readonly */
  11581. String typeName;
  11582. /* readonly */
  11583. int weakRefs;
  11584. };
  11585. class TileMapInfo2D
  11586. {
  11587. // Properties:
  11588. int height;
  11589. /* readonly */
  11590. float mapHeight;
  11591. /* readonly */
  11592. float mapWidth;
  11593. Orientation2D orientation;
  11594. float tileHeight;
  11595. float tileWidth;
  11596. int width;
  11597. };
  11598. class TileMapLayer2D
  11599. {
  11600. // Methods:
  11601. void ApplyAttributes();
  11602. void DrawDebugGeometry(DebugRenderer, bool);
  11603. Variant GetAttribute(const String&) const;
  11604. ValueAnimation GetAttributeAnimation(const String&) const;
  11605. float GetAttributeAnimationSpeed(const String&) const;
  11606. float GetAttributeAnimationTime(const String&) const;
  11607. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11608. Variant GetAttributeDefault(const String&) const;
  11609. bool GetInterceptNetworkUpdate(const String&) const;
  11610. TileMapObject2D GetObject(uint) const;
  11611. Node GetObjectNode(uint) const;
  11612. Tile2D GetTile(int, int) const;
  11613. Node GetTileNode(int, int) const;
  11614. bool HasProperty(const String&) const;
  11615. bool HasSubscribedToEvent(Object, const String&);
  11616. bool HasSubscribedToEvent(const String&);
  11617. bool Load(File, bool = false);
  11618. bool Load(VectorBuffer&, bool = false);
  11619. bool LoadJSON(const JSONValue&, bool = false);
  11620. bool LoadXML(const XMLElement&, bool = false);
  11621. void MarkNetworkUpdate() const;
  11622. void Remove();
  11623. void RemoveAttributeAnimation(const String&);
  11624. void RemoveInstanceDefault();
  11625. void RemoveObjectAnimation();
  11626. void ResetToDefault();
  11627. bool Save(File) const;
  11628. bool Save(VectorBuffer&) const;
  11629. bool SaveJSON(JSONValue&) const;
  11630. bool SaveXML(XMLElement&) const;
  11631. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11632. void SetAnimationTime(float);
  11633. bool SetAttribute(const String&, const Variant&);
  11634. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11635. void SetAttributeAnimationSpeed(const String&, float);
  11636. void SetAttributeAnimationTime(const String&, float);
  11637. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11638. void SetInterceptNetworkUpdate(const String&, bool);
  11639. const String& GetProperty(const String&) const;
  11640. // Properties:
  11641. bool animationEnabled;
  11642. /* readonly */
  11643. Array<Variant> attributeDefaults;
  11644. /* readonly */
  11645. Array<AttributeInfo> attributeInfos;
  11646. Array<Variant> attributes;
  11647. /* readonly */
  11648. String category;
  11649. int drawOrder;
  11650. bool enabled;
  11651. /* readonly */
  11652. bool enabledEffective;
  11653. /* readonly */
  11654. int height;
  11655. /* readonly */
  11656. uint id;
  11657. /* readonly */
  11658. Node imageNode;
  11659. /* readonly */
  11660. TileMapLayerType2D layerType;
  11661. /* readonly */
  11662. Node node;
  11663. /* readonly */
  11664. uint numAttributes;
  11665. /* readonly */
  11666. uint numObjects;
  11667. ObjectAnimation objectAnimation;
  11668. /* readonly */
  11669. int refs;
  11670. bool temporary;
  11671. /* readonly */
  11672. StringHash type;
  11673. /* readonly */
  11674. String typeName;
  11675. bool visible;
  11676. /* readonly */
  11677. int weakRefs;
  11678. /* readonly */
  11679. int width;
  11680. };
  11681. class TileMapObject2D
  11682. {
  11683. // Methods:
  11684. bool HasProperty(const String&) const;
  11685. const String& GetProperty(const String&) const;
  11686. const Vector2& GetPoint(uint) const;
  11687. // Properties:
  11688. /* readonly */
  11689. String name;
  11690. /* readonly */
  11691. uint numPoints;
  11692. /* readonly */
  11693. TileObjectType2D objectType;
  11694. /* readonly */
  11695. Vector2 position;
  11696. /* readonly */
  11697. int refs;
  11698. /* readonly */
  11699. Vector2 size;
  11700. /* readonly */
  11701. int tileGid;
  11702. /* readonly */
  11703. Sprite2D tileSprite;
  11704. /* readonly */
  11705. String type;
  11706. /* readonly */
  11707. int weakRefs;
  11708. };
  11709. class Time
  11710. {
  11711. // Methods:
  11712. bool HasSubscribedToEvent(Object, const String&);
  11713. bool HasSubscribedToEvent(const String&);
  11714. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11715. // Properties:
  11716. /* readonly */
  11717. String category;
  11718. /* readonly */
  11719. float elapsedTime;
  11720. /* readonly */
  11721. uint frameNumber;
  11722. /* readonly */
  11723. int refs;
  11724. /* readonly */
  11725. uint systemTime;
  11726. /* readonly */
  11727. uint timeSinceEpoch;
  11728. /* readonly */
  11729. String timeStamp;
  11730. /* readonly */
  11731. float timeStep;
  11732. /* readonly */
  11733. StringHash type;
  11734. /* readonly */
  11735. String typeName;
  11736. /* readonly */
  11737. int weakRefs;
  11738. };
  11739. class Timer
  11740. {
  11741. // Methods:
  11742. uint GetMSec(bool);
  11743. void Reset();
  11744. };
  11745. class TmxFile2D
  11746. {
  11747. // Methods:
  11748. bool HasSubscribedToEvent(Object, const String&);
  11749. bool HasSubscribedToEvent(const String&);
  11750. bool Load(File);
  11751. bool Load(VectorBuffer&);
  11752. bool Save(File) const;
  11753. bool Save(VectorBuffer&) const;
  11754. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11755. // Properties:
  11756. /* readonly */
  11757. String category;
  11758. /* readonly */
  11759. uint memoryUse;
  11760. String name;
  11761. /* readonly */
  11762. int refs;
  11763. /* readonly */
  11764. StringHash type;
  11765. /* readonly */
  11766. String typeName;
  11767. /* readonly */
  11768. uint useTimer;
  11769. /* readonly */
  11770. int weakRefs;
  11771. };
  11772. class ToolTip
  11773. {
  11774. // Methods:
  11775. void AddChild(UIElement);
  11776. void AddTag(const String&);
  11777. void AddTags(const String&, int8 = ';');
  11778. void ApplyAttributes();
  11779. void BringToFront();
  11780. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11781. void DisableLayoutUpdate();
  11782. IntVector2 ElementToScreen(const IntVector2&);
  11783. void EnableLayoutUpdate();
  11784. uint FindChild(UIElement) const;
  11785. Variant GetAttribute(const String&) const;
  11786. ValueAnimation GetAttributeAnimation(const String&) const;
  11787. float GetAttributeAnimationSpeed(const String&) const;
  11788. float GetAttributeAnimationTime(const String&) const;
  11789. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11790. Variant GetAttributeDefault(const String&) const;
  11791. UIElement GetChild(const String&, bool = false) const;
  11792. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11793. Array<UIElement> GetChildren(bool = false) const;
  11794. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11795. UIElement GetElementEventSender() const;
  11796. bool GetInterceptNetworkUpdate(const String&) const;
  11797. uint GetNumChildren(bool) const;
  11798. bool HasSubscribedToEvent(Object, const String&);
  11799. bool HasSubscribedToEvent(const String&);
  11800. bool HasTag(const String&) const;
  11801. void InsertChild(uint, UIElement);
  11802. bool IsInside(IntVector2, bool);
  11803. bool IsInsideCombined(IntVector2, bool);
  11804. bool Load(File, bool = false);
  11805. bool Load(VectorBuffer&, bool = false);
  11806. bool LoadChildXML(XMLFile, XMLFile = null);
  11807. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11808. bool LoadJSON(const JSONValue&, bool = false);
  11809. bool LoadXML(File);
  11810. bool LoadXML(VectorBuffer&);
  11811. bool LoadXML(XMLFile, XMLFile);
  11812. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11813. bool LoadXML(const XMLElement&, bool = false);
  11814. void MarkNetworkUpdate() const;
  11815. void Remove();
  11816. void RemoveAllChildren();
  11817. void RemoveAllTags();
  11818. void RemoveAttributeAnimation(const String&);
  11819. void RemoveChild(UIElement, uint = 0);
  11820. void RemoveChild(uint);
  11821. void RemoveInstanceDefault();
  11822. void RemoveObjectAnimation();
  11823. bool RemoveTag(const String&);
  11824. void ResetDeepEnabled();
  11825. void ResetToDefault();
  11826. bool Save(File) const;
  11827. bool Save(VectorBuffer&) const;
  11828. bool SaveJSON(JSONValue&) const;
  11829. bool SaveXML(File, const String& = "\t");
  11830. bool SaveXML(VectorBuffer&, const String& = "\t");
  11831. bool SaveXML(XMLElement&) const;
  11832. IntVector2 ScreenToElement(const IntVector2&);
  11833. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11834. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11835. void SetAnimationTime(float);
  11836. bool SetAttribute(const String&, const Variant&);
  11837. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11838. void SetAttributeAnimationSpeed(const String&, float);
  11839. void SetAttributeAnimationTime(const String&, float);
  11840. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11841. void SetDeepEnabled(bool);
  11842. void SetEnabledRecursive(bool);
  11843. void SetFixedHeight(int);
  11844. void SetFixedSize(int, int);
  11845. void SetFixedWidth(int);
  11846. void SetInterceptNetworkUpdate(const String&, bool);
  11847. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11848. void SetMaxSize(int, int);
  11849. void SetMinSize(int, int);
  11850. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11851. void SetPosition(int, int);
  11852. void SetSize(int, int);
  11853. bool SetStyle(const String&, XMLFile = null);
  11854. bool SetStyle(const XMLElement&);
  11855. bool SetStyleAuto(XMLFile = null);
  11856. void UpdateLayout();
  11857. const Variant& GetVar(const StringHash&);
  11858. // Properties:
  11859. bool animationEnabled;
  11860. /* readonly */
  11861. Array<Variant> attributeDefaults;
  11862. /* readonly */
  11863. Array<AttributeInfo> attributeInfos;
  11864. Array<Variant> attributes;
  11865. bool bringToBack;
  11866. bool bringToFront;
  11867. /* readonly */
  11868. String category;
  11869. /* readonly */
  11870. IntVector2 childOffset;
  11871. /* readonly */
  11872. Array<UIElement> children;
  11873. IntRect clipBorder;
  11874. bool clipChildren;
  11875. /* writeonly */
  11876. Color color;
  11877. /* readonly */
  11878. bool colorGradient;
  11879. Array<Color> colors;
  11880. /* readonly */
  11881. IntRect combinedScreenRect;
  11882. XMLFile defaultStyle;
  11883. float delay;
  11884. /* readonly */
  11885. float derivedOpacity;
  11886. /* readonly */
  11887. uint dragButtonCombo;
  11888. /* readonly */
  11889. int dragButtonCount;
  11890. uint dragDropMode;
  11891. bool editable;
  11892. bool elementEventSender;
  11893. bool enabled;
  11894. /* readonly */
  11895. bool enabledSelf;
  11896. /* readonly */
  11897. bool fixedHeight;
  11898. /* readonly */
  11899. bool fixedSize;
  11900. /* readonly */
  11901. bool fixedWidth;
  11902. bool focus;
  11903. FocusMode focusMode;
  11904. int height;
  11905. HorizontalAlignment horizontalAlignment;
  11906. /* readonly */
  11907. bool hovering;
  11908. int indent;
  11909. int indentSpacing;
  11910. /* readonly */
  11911. int indentWidth;
  11912. bool internal;
  11913. IntRect layoutBorder;
  11914. Vector2 layoutFlexScale;
  11915. LayoutMode layoutMode;
  11916. int layoutSpacing;
  11917. int maxHeight;
  11918. IntVector2 maxSize;
  11919. int maxWidth;
  11920. int minHeight;
  11921. IntVector2 minSize;
  11922. int minWidth;
  11923. String name;
  11924. /* readonly */
  11925. uint numAllChildren;
  11926. /* readonly */
  11927. uint numAttributes;
  11928. /* readonly */
  11929. uint numChildren;
  11930. ObjectAnimation objectAnimation;
  11931. float opacity;
  11932. UIElement parent;
  11933. IntVector2 position;
  11934. int priority;
  11935. /* readonly */
  11936. int refs;
  11937. /* readonly */
  11938. UIElement root;
  11939. /* readonly */
  11940. IntVector2 screenPosition;
  11941. bool selected;
  11942. IntVector2 size;
  11943. bool sortChildren;
  11944. String style;
  11945. /* readonly */
  11946. Array<String> tags;
  11947. bool temporary;
  11948. TraversalMode traversalMode;
  11949. /* readonly */
  11950. StringHash type;
  11951. /* readonly */
  11952. String typeName;
  11953. bool useDerivedOpacity;
  11954. /* readonly */
  11955. VariantMap vars;
  11956. VerticalAlignment verticalAlignment;
  11957. bool visible;
  11958. /* readonly */
  11959. bool visibleEffective;
  11960. /* readonly */
  11961. int weakRefs;
  11962. int width;
  11963. };
  11964. class TouchState
  11965. {
  11966. // Properties:
  11967. IntVector2 delta;
  11968. IntVector2 lastPosition;
  11969. IntVector2 position;
  11970. float pressure;
  11971. int touchID;
  11972. /* readonly */
  11973. UIElement touchedElement;
  11974. };
  11975. class UI
  11976. {
  11977. // Methods:
  11978. void Clear();
  11979. void DebugDraw(UIElement);
  11980. UIElement GetElementAt(const IntVector2&, bool = true);
  11981. UIElement GetElementAt(int, int, bool = true);
  11982. bool HasModalElement() const;
  11983. bool HasSubscribedToEvent(Object, const String&);
  11984. bool HasSubscribedToEvent(const String&);
  11985. bool IsDragging() const;
  11986. UIElement LoadLayout(File);
  11987. UIElement LoadLayout(File, XMLFile);
  11988. UIElement LoadLayout(VectorBuffer&);
  11989. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11990. UIElement LoadLayout(XMLFile);
  11991. UIElement LoadLayout(XMLFile, XMLFile);
  11992. bool SaveLayout(File, UIElement);
  11993. bool SaveLayout(VectorBuffer&, UIElement);
  11994. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11995. void SetFocusElement(UIElement, bool = false);
  11996. void SetHeight(float);
  11997. void SetWidth(float);
  11998. const Array<UIElement> GetDragElements();
  11999. // Properties:
  12000. /* readonly */
  12001. String category;
  12002. String clipBoardText;
  12003. Cursor cursor;
  12004. /* readonly */
  12005. IntVector2 cursorPosition;
  12006. float defaultToolTipDelay;
  12007. float doubleClickInterval;
  12008. int dragBeginDistance;
  12009. float dragBeginInterval;
  12010. UIElement focusElement;
  12011. bool forceAutoHint;
  12012. /* readonly */
  12013. UIElement frontElement;
  12014. int maxFontTextureSize;
  12015. /* readonly */
  12016. UIElement modalRoot;
  12017. bool nonFocusedMouseWheel;
  12018. /* readonly */
  12019. int refs;
  12020. /* readonly */
  12021. UIElement root;
  12022. float scale;
  12023. /* readonly */
  12024. StringHash type;
  12025. /* readonly */
  12026. String typeName;
  12027. bool useMutableGlyphs;
  12028. bool useScreenKeyboard;
  12029. bool useSystemClipboard;
  12030. /* readonly */
  12031. int weakRefs;
  12032. };
  12033. class UIElement
  12034. {
  12035. // Methods:
  12036. void AddChild(UIElement);
  12037. void AddTag(const String&);
  12038. void AddTags(const String&, int8 = ';');
  12039. void ApplyAttributes();
  12040. void BringToFront();
  12041. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12042. void DisableLayoutUpdate();
  12043. IntVector2 ElementToScreen(const IntVector2&);
  12044. void EnableLayoutUpdate();
  12045. uint FindChild(UIElement) const;
  12046. Variant GetAttribute(const String&) const;
  12047. ValueAnimation GetAttributeAnimation(const String&) const;
  12048. float GetAttributeAnimationSpeed(const String&) const;
  12049. float GetAttributeAnimationTime(const String&) const;
  12050. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12051. Variant GetAttributeDefault(const String&) const;
  12052. UIElement GetChild(const String&, bool = false) const;
  12053. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12054. Array<UIElement> GetChildren(bool = false) const;
  12055. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12056. UIElement GetElementEventSender() const;
  12057. bool GetInterceptNetworkUpdate(const String&) const;
  12058. uint GetNumChildren(bool) const;
  12059. bool HasSubscribedToEvent(Object, const String&);
  12060. bool HasSubscribedToEvent(const String&);
  12061. bool HasTag(const String&) const;
  12062. void InsertChild(uint, UIElement);
  12063. bool IsInside(IntVector2, bool);
  12064. bool IsInsideCombined(IntVector2, bool);
  12065. bool Load(File, bool = false);
  12066. bool Load(VectorBuffer&, bool = false);
  12067. bool LoadChildXML(XMLFile, XMLFile = null);
  12068. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12069. bool LoadJSON(const JSONValue&, bool = false);
  12070. bool LoadXML(File);
  12071. bool LoadXML(VectorBuffer&);
  12072. bool LoadXML(XMLFile, XMLFile);
  12073. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12074. bool LoadXML(const XMLElement&, bool = false);
  12075. void MarkNetworkUpdate() const;
  12076. void Remove();
  12077. void RemoveAllChildren();
  12078. void RemoveAllTags();
  12079. void RemoveAttributeAnimation(const String&);
  12080. void RemoveChild(UIElement, uint = 0);
  12081. void RemoveChild(uint);
  12082. void RemoveInstanceDefault();
  12083. void RemoveObjectAnimation();
  12084. bool RemoveTag(const String&);
  12085. void ResetDeepEnabled();
  12086. void ResetToDefault();
  12087. bool Save(File) const;
  12088. bool Save(VectorBuffer&) const;
  12089. bool SaveJSON(JSONValue&) const;
  12090. bool SaveXML(File, const String& = "\t");
  12091. bool SaveXML(VectorBuffer&, const String& = "\t");
  12092. bool SaveXML(XMLElement&) const;
  12093. IntVector2 ScreenToElement(const IntVector2&);
  12094. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12095. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12096. void SetAnimationTime(float);
  12097. bool SetAttribute(const String&, const Variant&);
  12098. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12099. void SetAttributeAnimationSpeed(const String&, float);
  12100. void SetAttributeAnimationTime(const String&, float);
  12101. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12102. void SetDeepEnabled(bool);
  12103. void SetEnabledRecursive(bool);
  12104. void SetFixedHeight(int);
  12105. void SetFixedSize(int, int);
  12106. void SetFixedWidth(int);
  12107. void SetInterceptNetworkUpdate(const String&, bool);
  12108. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12109. void SetMaxSize(int, int);
  12110. void SetMinSize(int, int);
  12111. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12112. void SetPosition(int, int);
  12113. void SetSize(int, int);
  12114. bool SetStyle(const String&, XMLFile = null);
  12115. bool SetStyle(const XMLElement&);
  12116. bool SetStyleAuto(XMLFile = null);
  12117. void UpdateLayout();
  12118. const Variant& GetVar(const StringHash&);
  12119. // Properties:
  12120. bool animationEnabled;
  12121. /* readonly */
  12122. Array<Variant> attributeDefaults;
  12123. /* readonly */
  12124. Array<AttributeInfo> attributeInfos;
  12125. Array<Variant> attributes;
  12126. bool bringToBack;
  12127. bool bringToFront;
  12128. /* readonly */
  12129. String category;
  12130. /* readonly */
  12131. IntVector2 childOffset;
  12132. /* readonly */
  12133. Array<UIElement> children;
  12134. IntRect clipBorder;
  12135. bool clipChildren;
  12136. /* writeonly */
  12137. Color color;
  12138. /* readonly */
  12139. bool colorGradient;
  12140. Array<Color> colors;
  12141. /* readonly */
  12142. IntRect combinedScreenRect;
  12143. XMLFile defaultStyle;
  12144. /* readonly */
  12145. float derivedOpacity;
  12146. /* readonly */
  12147. uint dragButtonCombo;
  12148. /* readonly */
  12149. int dragButtonCount;
  12150. uint dragDropMode;
  12151. bool editable;
  12152. bool elementEventSender;
  12153. bool enabled;
  12154. /* readonly */
  12155. bool enabledSelf;
  12156. /* readonly */
  12157. bool fixedHeight;
  12158. /* readonly */
  12159. bool fixedSize;
  12160. /* readonly */
  12161. bool fixedWidth;
  12162. bool focus;
  12163. FocusMode focusMode;
  12164. int height;
  12165. HorizontalAlignment horizontalAlignment;
  12166. /* readonly */
  12167. bool hovering;
  12168. int indent;
  12169. int indentSpacing;
  12170. /* readonly */
  12171. int indentWidth;
  12172. bool internal;
  12173. IntRect layoutBorder;
  12174. Vector2 layoutFlexScale;
  12175. LayoutMode layoutMode;
  12176. int layoutSpacing;
  12177. int maxHeight;
  12178. IntVector2 maxSize;
  12179. int maxWidth;
  12180. int minHeight;
  12181. IntVector2 minSize;
  12182. int minWidth;
  12183. String name;
  12184. /* readonly */
  12185. uint numAllChildren;
  12186. /* readonly */
  12187. uint numAttributes;
  12188. /* readonly */
  12189. uint numChildren;
  12190. ObjectAnimation objectAnimation;
  12191. float opacity;
  12192. UIElement parent;
  12193. IntVector2 position;
  12194. int priority;
  12195. /* readonly */
  12196. int refs;
  12197. /* readonly */
  12198. UIElement root;
  12199. /* readonly */
  12200. IntVector2 screenPosition;
  12201. bool selected;
  12202. IntVector2 size;
  12203. bool sortChildren;
  12204. String style;
  12205. /* readonly */
  12206. Array<String> tags;
  12207. bool temporary;
  12208. TraversalMode traversalMode;
  12209. /* readonly */
  12210. StringHash type;
  12211. /* readonly */
  12212. String typeName;
  12213. bool useDerivedOpacity;
  12214. /* readonly */
  12215. VariantMap vars;
  12216. VerticalAlignment verticalAlignment;
  12217. bool visible;
  12218. /* readonly */
  12219. bool visibleEffective;
  12220. /* readonly */
  12221. int weakRefs;
  12222. int width;
  12223. };
  12224. class ValueAnimation
  12225. {
  12226. // Methods:
  12227. bool HasSubscribedToEvent(Object, const String&);
  12228. bool HasSubscribedToEvent(const String&);
  12229. bool Load(File);
  12230. bool Load(VectorBuffer&);
  12231. bool Save(File) const;
  12232. bool Save(VectorBuffer&) const;
  12233. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12234. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12235. void SetKeyFrame(float, const Variant&);
  12236. // Properties:
  12237. /* readonly */
  12238. String category;
  12239. InterpMethod interpolationMethod;
  12240. /* readonly */
  12241. uint memoryUse;
  12242. String name;
  12243. /* readonly */
  12244. int refs;
  12245. float splineTension;
  12246. /* readonly */
  12247. StringHash type;
  12248. /* readonly */
  12249. String typeName;
  12250. /* readonly */
  12251. uint useTimer;
  12252. VariantType valueType;
  12253. /* readonly */
  12254. int weakRefs;
  12255. };
  12256. class Variant
  12257. {
  12258. // Methods:
  12259. void Clear();
  12260. const Color& GetColor() const;
  12261. void FromString(VariantType, const String&);
  12262. void FromString(const String&, const String&);
  12263. bool GetBool() const;
  12264. VectorBuffer GetBuffer() const;
  12265. double GetDouble() const;
  12266. float GetFloat() const;
  12267. int GetInt() const;
  12268. RefCounted GetPtr() const;
  12269. ScriptObject GetScriptObject() const;
  12270. StringHash GetStringHash() const;
  12271. Array<String> GetStringVector() const;
  12272. uint GetUInt() const;
  12273. Array<Variant> GetVariantVector() const;
  12274. const IntRect& GetIntRect() const;
  12275. const IntVector2& GetIntVector2() const;
  12276. const Matrix3& GetMatrix3() const;
  12277. const Matrix3x4& GetMatrix3x4() const;
  12278. const Matrix4& GetMatrix4() const;
  12279. const Quaternion& GetQuaternion() const;
  12280. const ResourceRef& GetResourceRef() const;
  12281. const ResourceRefList& GetResourceRefList() const;
  12282. const String& GetString() const;
  12283. String ToString() const;
  12284. const VariantMap& GetVariantMap() const;
  12285. const Vector2& GetVector2() const;
  12286. const Vector3& GetVector3() const;
  12287. const Vector4& GetVector4() const;
  12288. // Properties:
  12289. /* readonly */
  12290. bool empty;
  12291. /* readonly */
  12292. VariantType type;
  12293. /* readonly */
  12294. String typeName;
  12295. /* readonly */
  12296. bool zero;
  12297. };
  12298. class VariantMap
  12299. {
  12300. // Methods:
  12301. void Clear();
  12302. bool Contains(StringHash) const;
  12303. bool Contains(const String&) const;
  12304. bool Erase(StringHash);
  12305. bool Erase(const String&);
  12306. // Properties:
  12307. /* readonly */
  12308. Array<StringHash> keys;
  12309. /* readonly */
  12310. uint length;
  12311. /* readonly */
  12312. Array<Variant> values;
  12313. };
  12314. class Vector2
  12315. {
  12316. // Methods:
  12317. Vector2 Abs() const;
  12318. float AbsDotProduct(const Vector2&) const;
  12319. float Angle(const Vector2&) const;
  12320. float DotProduct(const Vector2&) const;
  12321. bool Equals(const Vector2&) const;
  12322. bool IsNaN() const;
  12323. Vector2 Lerp(const Vector2&, float) const;
  12324. void Normalize();
  12325. Vector2 Normalized() const;
  12326. String ToString() const;
  12327. // Properties:
  12328. /* readonly */
  12329. Array<float> data;
  12330. /* readonly */
  12331. float length;
  12332. /* readonly */
  12333. float lengthSquared;
  12334. float x;
  12335. float y;
  12336. };
  12337. class Vector3
  12338. {
  12339. // Methods:
  12340. Vector3 Abs() const;
  12341. float AbsDotProduct(const Vector3&) const;
  12342. float Angle(const Vector3&) const;
  12343. Vector3 CrossProduct(const Vector3&) const;
  12344. float DotProduct(const Vector3&) const;
  12345. bool Equals(const Vector3&) const;
  12346. bool IsNaN() const;
  12347. Vector3 Lerp(const Vector3&, float) const;
  12348. void Normalize();
  12349. Vector3 Normalized() const;
  12350. String ToString() const;
  12351. // Properties:
  12352. /* readonly */
  12353. Array<float> data;
  12354. /* readonly */
  12355. float length;
  12356. /* readonly */
  12357. float lengthSquared;
  12358. float x;
  12359. float y;
  12360. float z;
  12361. };
  12362. class Vector4
  12363. {
  12364. // Methods:
  12365. Vector4 Abs() const;
  12366. float AbsDotProduct(const Vector4&) const;
  12367. float DotProduct(const Vector4&) const;
  12368. bool Equals(const Vector4&) const;
  12369. bool IsNaN() const;
  12370. Vector4 Lerp(const Vector4&, float) const;
  12371. String ToString() const;
  12372. // Properties:
  12373. /* readonly */
  12374. Array<float> data;
  12375. float w;
  12376. float x;
  12377. float y;
  12378. float z;
  12379. };
  12380. class VectorBuffer
  12381. {
  12382. // Methods:
  12383. void Clear();
  12384. Array<uint8> Read(uint);
  12385. bool ReadBool();
  12386. BoundingBox ReadBoundingBox();
  12387. int8 ReadByte();
  12388. Color ReadColor();
  12389. double ReadDouble();
  12390. String ReadFileID();
  12391. float ReadFloat();
  12392. int ReadInt();
  12393. IntRect ReadIntRect();
  12394. IntVector2 ReadIntVector2();
  12395. String ReadLine();
  12396. Matrix3 ReadMatrix3();
  12397. Matrix3x4 ReadMatrix3x4();
  12398. Matrix4 ReadMatrix4();
  12399. uint ReadNetID();
  12400. Quaternion ReadPackedQuaternion();
  12401. Vector3 ReadPackedVector3(float);
  12402. Quaternion ReadQuaternion();
  12403. int16 ReadShort();
  12404. String ReadString();
  12405. StringHash ReadStringHash();
  12406. uint8 ReadUByte();
  12407. uint ReadUInt();
  12408. uint16 ReadUShort();
  12409. uint ReadVLE();
  12410. Variant ReadVariant();
  12411. VariantMap ReadVariantMap();
  12412. Vector2 ReadVector2();
  12413. Vector3 ReadVector3();
  12414. Vector4 ReadVector4();
  12415. VectorBuffer ReadVectorBuffer(uint);
  12416. void Resize(uint);
  12417. uint Seek(uint);
  12418. void SetData(Deserializer, uint);
  12419. uint Write(Array<uint8>);
  12420. bool WriteBool(bool);
  12421. bool WriteBoundingBox(const BoundingBox&);
  12422. bool WriteByte(int8);
  12423. bool WriteColor(const Color&);
  12424. bool WriteDouble(double);
  12425. bool WriteFileID(const String&);
  12426. bool WriteFloat(float);
  12427. bool WriteInt(int);
  12428. bool WriteIntRect(const IntRect&);
  12429. bool WriteIntVector2(const IntVector2&);
  12430. bool WriteLine(const String&);
  12431. bool WriteMatrix3(const Matrix3&);
  12432. bool WriteMatrix3x4(const Matrix3x4&);
  12433. bool WriteMatrix4(const Matrix4&);
  12434. bool WriteNetID(uint);
  12435. bool WritePackedQuaternion(const Quaternion&);
  12436. bool WritePackedVector3(const Vector3&, float);
  12437. bool WriteQuaternion(const Quaternion&);
  12438. bool WriteShort(int16);
  12439. bool WriteString(const String&);
  12440. bool WriteStringHash(const StringHash&);
  12441. bool WriteUByte(uint8);
  12442. bool WriteUInt(uint);
  12443. bool WriteUShort(uint16);
  12444. bool WriteVLE(uint);
  12445. bool WriteVariant(const Variant&);
  12446. bool WriteVariantMap(const VariantMap&);
  12447. bool WriteVector2(const Vector2&);
  12448. bool WriteVector3(const Vector3&);
  12449. bool WriteVector4(const Vector4&);
  12450. bool WriteVectorBuffer(const VectorBuffer&);
  12451. // Properties:
  12452. /* readonly */
  12453. uint checksum;
  12454. /* readonly */
  12455. bool eof;
  12456. /* readonly */
  12457. String name;
  12458. /* readonly */
  12459. uint position;
  12460. /* readonly */
  12461. uint size;
  12462. };
  12463. class VertexBuffer
  12464. {
  12465. // Methods:
  12466. VectorBuffer GetData() const;
  12467. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  12468. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12469. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  12470. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12471. bool HasSubscribedToEvent(Object, const String&);
  12472. bool HasSubscribedToEvent(const String&);
  12473. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12474. bool SetData(VectorBuffer&);
  12475. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12476. void SetSize(uint, Array<VertexElement>, bool = false);
  12477. void SetSize(uint, uint, bool = false);
  12478. // Properties:
  12479. /* readonly */
  12480. String category;
  12481. /* readonly */
  12482. bool dynamic;
  12483. /* readonly */
  12484. uint elementMask;
  12485. /* readonly */
  12486. Array<VertexElement> elements;
  12487. /* readonly */
  12488. int refs;
  12489. bool shadowed;
  12490. /* readonly */
  12491. StringHash type;
  12492. /* readonly */
  12493. String typeName;
  12494. /* readonly */
  12495. uint vertexCount;
  12496. /* readonly */
  12497. uint vertexSize;
  12498. /* readonly */
  12499. int weakRefs;
  12500. };
  12501. class VertexElement
  12502. {
  12503. // Properties:
  12504. uint8 index;
  12505. uint offset;
  12506. bool perInstance;
  12507. VertexElementSemantic semantic;
  12508. VertexElementType type;
  12509. };
  12510. class View3D
  12511. {
  12512. // Methods:
  12513. void AddChild(UIElement);
  12514. void AddTag(const String&);
  12515. void AddTags(const String&, int8 = ';');
  12516. void ApplyAttributes();
  12517. void BringToFront();
  12518. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12519. void DisableLayoutUpdate();
  12520. IntVector2 ElementToScreen(const IntVector2&);
  12521. void EnableLayoutUpdate();
  12522. uint FindChild(UIElement) const;
  12523. Variant GetAttribute(const String&) const;
  12524. ValueAnimation GetAttributeAnimation(const String&) const;
  12525. float GetAttributeAnimationSpeed(const String&) const;
  12526. float GetAttributeAnimationTime(const String&) const;
  12527. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12528. Variant GetAttributeDefault(const String&) const;
  12529. UIElement GetChild(const String&, bool = false) const;
  12530. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12531. Array<UIElement> GetChildren(bool = false) const;
  12532. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12533. UIElement GetElementEventSender() const;
  12534. bool GetInterceptNetworkUpdate(const String&) const;
  12535. uint GetNumChildren(bool) const;
  12536. bool HasSubscribedToEvent(Object, const String&);
  12537. bool HasSubscribedToEvent(const String&);
  12538. bool HasTag(const String&) const;
  12539. void InsertChild(uint, UIElement);
  12540. bool IsInside(IntVector2, bool);
  12541. bool IsInsideCombined(IntVector2, bool);
  12542. bool Load(File, bool = false);
  12543. bool Load(VectorBuffer&, bool = false);
  12544. bool LoadChildXML(XMLFile, XMLFile = null);
  12545. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12546. bool LoadJSON(const JSONValue&, bool = false);
  12547. bool LoadXML(File);
  12548. bool LoadXML(VectorBuffer&);
  12549. bool LoadXML(XMLFile, XMLFile);
  12550. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12551. bool LoadXML(const XMLElement&, bool = false);
  12552. void MarkNetworkUpdate() const;
  12553. void QueueUpdate();
  12554. void Remove();
  12555. void RemoveAllChildren();
  12556. void RemoveAllTags();
  12557. void RemoveAttributeAnimation(const String&);
  12558. void RemoveChild(UIElement, uint = 0);
  12559. void RemoveChild(uint);
  12560. void RemoveInstanceDefault();
  12561. void RemoveObjectAnimation();
  12562. bool RemoveTag(const String&);
  12563. void ResetDeepEnabled();
  12564. void ResetToDefault();
  12565. bool Save(File) const;
  12566. bool Save(VectorBuffer&) const;
  12567. bool SaveJSON(JSONValue&) const;
  12568. bool SaveXML(File, const String& = "\t");
  12569. bool SaveXML(VectorBuffer&, const String& = "\t");
  12570. bool SaveXML(XMLElement&) const;
  12571. IntVector2 ScreenToElement(const IntVector2&);
  12572. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12573. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12574. void SetAnimationTime(float);
  12575. bool SetAttribute(const String&, const Variant&);
  12576. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12577. void SetAttributeAnimationSpeed(const String&, float);
  12578. void SetAttributeAnimationTime(const String&, float);
  12579. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12580. void SetDeepEnabled(bool);
  12581. void SetEnabledRecursive(bool);
  12582. void SetFixedHeight(int);
  12583. void SetFixedSize(int, int);
  12584. void SetFixedWidth(int);
  12585. void SetFullImageRect();
  12586. void SetHoverOffset(int, int);
  12587. void SetInterceptNetworkUpdate(const String&, bool);
  12588. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12589. void SetMaxSize(int, int);
  12590. void SetMinSize(int, int);
  12591. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12592. void SetPosition(int, int);
  12593. void SetSize(int, int);
  12594. bool SetStyle(const String&, XMLFile = null);
  12595. bool SetStyle(const XMLElement&);
  12596. bool SetStyleAuto(XMLFile = null);
  12597. void SetView(Scene, Camera, bool = true);
  12598. void UpdateLayout();
  12599. const Variant& GetVar(const StringHash&);
  12600. // Properties:
  12601. bool animationEnabled;
  12602. /* readonly */
  12603. Array<Variant> attributeDefaults;
  12604. /* readonly */
  12605. Array<AttributeInfo> attributeInfos;
  12606. Array<Variant> attributes;
  12607. bool autoUpdate;
  12608. BlendMode blendMode;
  12609. IntRect border;
  12610. bool bringToBack;
  12611. bool bringToFront;
  12612. /* readonly */
  12613. Node cameraNode;
  12614. /* readonly */
  12615. String category;
  12616. /* readonly */
  12617. IntVector2 childOffset;
  12618. /* readonly */
  12619. Array<UIElement> children;
  12620. IntRect clipBorder;
  12621. bool clipChildren;
  12622. /* writeonly */
  12623. Color color;
  12624. /* readonly */
  12625. bool colorGradient;
  12626. Array<Color> colors;
  12627. /* readonly */
  12628. IntRect combinedScreenRect;
  12629. XMLFile defaultStyle;
  12630. /* readonly */
  12631. Texture2D depthTexture;
  12632. /* readonly */
  12633. float derivedOpacity;
  12634. /* readonly */
  12635. uint dragButtonCombo;
  12636. /* readonly */
  12637. int dragButtonCount;
  12638. uint dragDropMode;
  12639. bool editable;
  12640. bool elementEventSender;
  12641. bool enabled;
  12642. /* readonly */
  12643. bool enabledSelf;
  12644. /* readonly */
  12645. bool fixedHeight;
  12646. bool fixedHeightResizing;
  12647. /* readonly */
  12648. bool fixedSize;
  12649. /* readonly */
  12650. bool fixedWidth;
  12651. bool fixedWidthResizing;
  12652. bool focus;
  12653. FocusMode focusMode;
  12654. uint format;
  12655. int height;
  12656. HorizontalAlignment horizontalAlignment;
  12657. IntVector2 hoverOffset;
  12658. /* readonly */
  12659. bool hovering;
  12660. IntRect imageBorder;
  12661. IntRect imageRect;
  12662. int indent;
  12663. int indentSpacing;
  12664. /* readonly */
  12665. int indentWidth;
  12666. bool internal;
  12667. IntRect layoutBorder;
  12668. Vector2 layoutFlexScale;
  12669. LayoutMode layoutMode;
  12670. int layoutSpacing;
  12671. int maxHeight;
  12672. IntVector2 maxSize;
  12673. int maxWidth;
  12674. int minHeight;
  12675. IntVector2 minSize;
  12676. int minWidth;
  12677. bool modal;
  12678. bool modalAutoDismiss;
  12679. Color modalFrameColor;
  12680. IntVector2 modalFrameSize;
  12681. Color modalShadeColor;
  12682. bool movable;
  12683. String name;
  12684. /* readonly */
  12685. uint numAllChildren;
  12686. /* readonly */
  12687. uint numAttributes;
  12688. /* readonly */
  12689. uint numChildren;
  12690. ObjectAnimation objectAnimation;
  12691. float opacity;
  12692. UIElement parent;
  12693. IntVector2 position;
  12694. int priority;
  12695. /* readonly */
  12696. int refs;
  12697. /* readonly */
  12698. Texture2D renderTexture;
  12699. bool resizable;
  12700. IntRect resizeBorder;
  12701. /* readonly */
  12702. UIElement root;
  12703. /* readonly */
  12704. Scene scene;
  12705. /* readonly */
  12706. IntVector2 screenPosition;
  12707. bool selected;
  12708. IntVector2 size;
  12709. bool sortChildren;
  12710. String style;
  12711. /* readonly */
  12712. Array<String> tags;
  12713. bool temporary;
  12714. Texture texture;
  12715. bool tiled;
  12716. TraversalMode traversalMode;
  12717. /* readonly */
  12718. StringHash type;
  12719. /* readonly */
  12720. String typeName;
  12721. bool useDerivedOpacity;
  12722. /* readonly */
  12723. VariantMap vars;
  12724. VerticalAlignment verticalAlignment;
  12725. /* readonly */
  12726. Viewport viewport;
  12727. bool visible;
  12728. /* readonly */
  12729. bool visibleEffective;
  12730. /* readonly */
  12731. int weakRefs;
  12732. int width;
  12733. };
  12734. class Viewport
  12735. {
  12736. // Methods:
  12737. Ray GetScreenRay(int, int) const;
  12738. bool HasSubscribedToEvent(Object, const String&);
  12739. bool HasSubscribedToEvent(const String&);
  12740. Vector3 ScreenToWorldPoint(int, int, float) const;
  12741. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12742. void SetRenderPath(XMLFile);
  12743. Vector2 WorldToScreenPoint(const Vector3&) const;
  12744. // Properties:
  12745. Camera camera;
  12746. /* readonly */
  12747. String category;
  12748. Camera cullCamera;
  12749. bool drawDebug;
  12750. IntRect rect;
  12751. /* readonly */
  12752. int refs;
  12753. RenderPath renderPath;
  12754. Scene scene;
  12755. /* readonly */
  12756. StringHash type;
  12757. /* readonly */
  12758. String typeName;
  12759. /* readonly */
  12760. int weakRefs;
  12761. };
  12762. class WeakHandle
  12763. {
  12764. // Methods:
  12765. RefCounted Get() const;
  12766. // Properties:
  12767. /* readonly */
  12768. bool expired;
  12769. /* readonly */
  12770. int refs;
  12771. /* readonly */
  12772. int weakRefs;
  12773. };
  12774. class Window
  12775. {
  12776. // Methods:
  12777. void AddChild(UIElement);
  12778. void AddTag(const String&);
  12779. void AddTags(const String&, int8 = ';');
  12780. void ApplyAttributes();
  12781. void BringToFront();
  12782. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12783. void DisableLayoutUpdate();
  12784. IntVector2 ElementToScreen(const IntVector2&);
  12785. void EnableLayoutUpdate();
  12786. uint FindChild(UIElement) const;
  12787. Variant GetAttribute(const String&) const;
  12788. ValueAnimation GetAttributeAnimation(const String&) const;
  12789. float GetAttributeAnimationSpeed(const String&) const;
  12790. float GetAttributeAnimationTime(const String&) const;
  12791. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12792. Variant GetAttributeDefault(const String&) const;
  12793. UIElement GetChild(const String&, bool = false) const;
  12794. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12795. Array<UIElement> GetChildren(bool = false) const;
  12796. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12797. UIElement GetElementEventSender() const;
  12798. bool GetInterceptNetworkUpdate(const String&) const;
  12799. uint GetNumChildren(bool) const;
  12800. bool HasSubscribedToEvent(Object, const String&);
  12801. bool HasSubscribedToEvent(const String&);
  12802. bool HasTag(const String&) const;
  12803. void InsertChild(uint, UIElement);
  12804. bool IsInside(IntVector2, bool);
  12805. bool IsInsideCombined(IntVector2, bool);
  12806. bool Load(File, bool = false);
  12807. bool Load(VectorBuffer&, bool = false);
  12808. bool LoadChildXML(XMLFile, XMLFile = null);
  12809. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12810. bool LoadJSON(const JSONValue&, bool = false);
  12811. bool LoadXML(File);
  12812. bool LoadXML(VectorBuffer&);
  12813. bool LoadXML(XMLFile, XMLFile);
  12814. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12815. bool LoadXML(const XMLElement&, bool = false);
  12816. void MarkNetworkUpdate() const;
  12817. void Remove();
  12818. void RemoveAllChildren();
  12819. void RemoveAllTags();
  12820. void RemoveAttributeAnimation(const String&);
  12821. void RemoveChild(UIElement, uint = 0);
  12822. void RemoveChild(uint);
  12823. void RemoveInstanceDefault();
  12824. void RemoveObjectAnimation();
  12825. bool RemoveTag(const String&);
  12826. void ResetDeepEnabled();
  12827. void ResetToDefault();
  12828. bool Save(File) const;
  12829. bool Save(VectorBuffer&) const;
  12830. bool SaveJSON(JSONValue&) const;
  12831. bool SaveXML(File, const String& = "\t");
  12832. bool SaveXML(VectorBuffer&, const String& = "\t");
  12833. bool SaveXML(XMLElement&) const;
  12834. IntVector2 ScreenToElement(const IntVector2&);
  12835. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12836. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12837. void SetAnimationTime(float);
  12838. bool SetAttribute(const String&, const Variant&);
  12839. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12840. void SetAttributeAnimationSpeed(const String&, float);
  12841. void SetAttributeAnimationTime(const String&, float);
  12842. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12843. void SetDeepEnabled(bool);
  12844. void SetEnabledRecursive(bool);
  12845. void SetFixedHeight(int);
  12846. void SetFixedSize(int, int);
  12847. void SetFixedWidth(int);
  12848. void SetFullImageRect();
  12849. void SetHoverOffset(int, int);
  12850. void SetInterceptNetworkUpdate(const String&, bool);
  12851. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12852. void SetMaxSize(int, int);
  12853. void SetMinSize(int, int);
  12854. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12855. void SetPosition(int, int);
  12856. void SetSize(int, int);
  12857. bool SetStyle(const String&, XMLFile = null);
  12858. bool SetStyle(const XMLElement&);
  12859. bool SetStyleAuto(XMLFile = null);
  12860. void UpdateLayout();
  12861. const Variant& GetVar(const StringHash&);
  12862. // Properties:
  12863. bool animationEnabled;
  12864. /* readonly */
  12865. Array<Variant> attributeDefaults;
  12866. /* readonly */
  12867. Array<AttributeInfo> attributeInfos;
  12868. Array<Variant> attributes;
  12869. BlendMode blendMode;
  12870. IntRect border;
  12871. bool bringToBack;
  12872. bool bringToFront;
  12873. /* readonly */
  12874. String category;
  12875. /* readonly */
  12876. IntVector2 childOffset;
  12877. /* readonly */
  12878. Array<UIElement> children;
  12879. IntRect clipBorder;
  12880. bool clipChildren;
  12881. /* writeonly */
  12882. Color color;
  12883. /* readonly */
  12884. bool colorGradient;
  12885. Array<Color> colors;
  12886. /* readonly */
  12887. IntRect combinedScreenRect;
  12888. XMLFile defaultStyle;
  12889. /* readonly */
  12890. float derivedOpacity;
  12891. /* readonly */
  12892. uint dragButtonCombo;
  12893. /* readonly */
  12894. int dragButtonCount;
  12895. uint dragDropMode;
  12896. bool editable;
  12897. bool elementEventSender;
  12898. bool enabled;
  12899. /* readonly */
  12900. bool enabledSelf;
  12901. /* readonly */
  12902. bool fixedHeight;
  12903. bool fixedHeightResizing;
  12904. /* readonly */
  12905. bool fixedSize;
  12906. /* readonly */
  12907. bool fixedWidth;
  12908. bool fixedWidthResizing;
  12909. bool focus;
  12910. FocusMode focusMode;
  12911. int height;
  12912. HorizontalAlignment horizontalAlignment;
  12913. IntVector2 hoverOffset;
  12914. /* readonly */
  12915. bool hovering;
  12916. IntRect imageBorder;
  12917. IntRect imageRect;
  12918. int indent;
  12919. int indentSpacing;
  12920. /* readonly */
  12921. int indentWidth;
  12922. bool internal;
  12923. IntRect layoutBorder;
  12924. Vector2 layoutFlexScale;
  12925. LayoutMode layoutMode;
  12926. int layoutSpacing;
  12927. int maxHeight;
  12928. IntVector2 maxSize;
  12929. int maxWidth;
  12930. int minHeight;
  12931. IntVector2 minSize;
  12932. int minWidth;
  12933. bool modal;
  12934. bool modalAutoDismiss;
  12935. Color modalFrameColor;
  12936. IntVector2 modalFrameSize;
  12937. Color modalShadeColor;
  12938. bool movable;
  12939. String name;
  12940. /* readonly */
  12941. uint numAllChildren;
  12942. /* readonly */
  12943. uint numAttributes;
  12944. /* readonly */
  12945. uint numChildren;
  12946. ObjectAnimation objectAnimation;
  12947. float opacity;
  12948. UIElement parent;
  12949. IntVector2 position;
  12950. int priority;
  12951. /* readonly */
  12952. int refs;
  12953. bool resizable;
  12954. IntRect resizeBorder;
  12955. /* readonly */
  12956. UIElement root;
  12957. /* readonly */
  12958. IntVector2 screenPosition;
  12959. bool selected;
  12960. IntVector2 size;
  12961. bool sortChildren;
  12962. String style;
  12963. /* readonly */
  12964. Array<String> tags;
  12965. bool temporary;
  12966. Texture texture;
  12967. bool tiled;
  12968. TraversalMode traversalMode;
  12969. /* readonly */
  12970. StringHash type;
  12971. /* readonly */
  12972. String typeName;
  12973. bool useDerivedOpacity;
  12974. /* readonly */
  12975. VariantMap vars;
  12976. VerticalAlignment verticalAlignment;
  12977. bool visible;
  12978. /* readonly */
  12979. bool visibleEffective;
  12980. /* readonly */
  12981. int weakRefs;
  12982. int width;
  12983. };
  12984. class XMLElement
  12985. {
  12986. // Methods:
  12987. XMLElement CreateChild(const String&);
  12988. String GetAttribute(const String& = String ( )) const;
  12989. String GetAttributeLower(const String&) const;
  12990. Array<String> GetAttributeNames() const;
  12991. String GetAttributeUpper(const String&) const;
  12992. bool GetBool(const String&) const;
  12993. BoundingBox GetBoundingBox() const;
  12994. XMLElement GetChild(const String& = String ( )) const;
  12995. Color GetColor(const String&) const;
  12996. double GetDouble(const String&) const;
  12997. float GetFloat(const String&) const;
  12998. int GetInt(const String&) const;
  12999. IntRect GetIntRect(const String&) const;
  13000. IntVector2 GetIntVector2(const String&) const;
  13001. Matrix3 GetMatrix3(const String&) const;
  13002. Matrix3x4 GetMatrix3x4(const String&) const;
  13003. Matrix4 GetMatrix4(const String&) const;
  13004. XMLElement GetNext(const String& = String ( )) const;
  13005. Quaternion GetQuaternion(const String&) const;
  13006. ResourceRef GetResourceRef() const;
  13007. ResourceRefList GetResourceRefList() const;
  13008. uint GetUInt(const String&) const;
  13009. String GetValue() const;
  13010. Variant GetVariant() const;
  13011. VariantMap GetVariantMap() const;
  13012. Array<Variant> GetVariantVector() const;
  13013. Vector2 GetVector2(const String&) const;
  13014. Vector3 GetVector3(const String&) const;
  13015. Vector4 GetVector4(const String&) const;
  13016. Variant GetVectorVariant(const String&) const;
  13017. bool HasAttribute(const String&) const;
  13018. bool HasChild(const String&) const;
  13019. bool RemoveAttribute(const String& = String ( ));
  13020. bool RemoveChild(const String&);
  13021. bool RemoveChild(const XMLElement&);
  13022. bool RemoveChildren(const String& = String ( ));
  13023. XPathResultSet Select(const String&);
  13024. XPathResultSet SelectPrepared(const XPathQuery&);
  13025. XMLElement SelectSingle(const String&);
  13026. XMLElement SelectSinglePrepared(const XPathQuery&);
  13027. bool SetAttribute(const String&);
  13028. bool SetAttribute(const String&, const String&);
  13029. bool SetBool(const String&, bool);
  13030. bool SetBoundingBox(const BoundingBox&);
  13031. bool SetColor(const String&, const Color&);
  13032. bool SetDouble(const String&, double);
  13033. bool SetFloat(const String&, float);
  13034. bool SetInt(const String&, int);
  13035. bool SetIntRect(const String&, const IntRect&);
  13036. bool SetIntVector2(const String&, const IntVector2&);
  13037. bool SetMatrix3(const String&, const Matrix3&);
  13038. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13039. bool SetMatrix4(const String&, const Matrix4&);
  13040. bool SetQuaternion(const String&, const Quaternion&);
  13041. bool SetResourceRef(const String&, const ResourceRef&);
  13042. bool SetResourceRefList(const String&, const ResourceRefList&);
  13043. bool SetUInt(const String&, uint);
  13044. bool SetValue(const String&);
  13045. bool SetVariant(const Variant&);
  13046. bool SetVariantMap(const VariantMap&);
  13047. bool SetVariantVector(Array<Variant>);
  13048. bool SetVector2(const String&, const Vector2&);
  13049. bool SetVector3(const String&, const Vector3&);
  13050. bool SetVector4(const String&, const Vector4&);
  13051. bool SetVectorVariant(const String&, const Variant&);
  13052. // Properties:
  13053. /* readonly */
  13054. XMLFile file;
  13055. /* readonly */
  13056. bool isNull;
  13057. /* readonly */
  13058. String name;
  13059. /* readonly */
  13060. XMLElement nextResult;
  13061. /* readonly */
  13062. bool notNull;
  13063. /* readonly */
  13064. uint numAttributes;
  13065. /* readonly */
  13066. XMLElement parent;
  13067. String value;
  13068. };
  13069. class XMLFile
  13070. {
  13071. // Methods:
  13072. XMLElement CreateRoot(const String&);
  13073. bool FromString(const String&);
  13074. XMLElement GetRoot(const String& = String ( ));
  13075. bool HasSubscribedToEvent(Object, const String&);
  13076. bool HasSubscribedToEvent(const String&);
  13077. bool Load(File);
  13078. bool Load(VectorBuffer&);
  13079. void Patch(XMLElement);
  13080. void Patch(XMLFile);
  13081. bool Save(File) const;
  13082. bool Save(File, const String&) const;
  13083. bool Save(VectorBuffer&) const;
  13084. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13085. String ToString(const String& = String ( "\t" )) const;
  13086. // Properties:
  13087. /* readonly */
  13088. String category;
  13089. /* readonly */
  13090. uint memoryUse;
  13091. String name;
  13092. /* readonly */
  13093. int refs;
  13094. /* readonly */
  13095. XMLElement root;
  13096. /* readonly */
  13097. StringHash type;
  13098. /* readonly */
  13099. String typeName;
  13100. /* readonly */
  13101. uint useTimer;
  13102. /* readonly */
  13103. int weakRefs;
  13104. };
  13105. class XPathQuery
  13106. {
  13107. // Methods:
  13108. void Bind();
  13109. void Clear();
  13110. XPathResultSet Evaluate(XMLElement);
  13111. bool EvaluateToBool(XMLElement);
  13112. float EvaluateToFloat(XMLElement);
  13113. String EvaluateToString(XMLElement);
  13114. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13115. bool SetVariable(const String&, bool);
  13116. bool SetVariable(const String&, const String&);
  13117. bool SetVariable(const String&, const XPathResultSet&);
  13118. bool SetVariable(const String&, float);
  13119. // Properties:
  13120. String query;
  13121. };
  13122. class XPathResultSet
  13123. {
  13124. // Properties:
  13125. /* readonly */
  13126. bool empty;
  13127. /* readonly */
  13128. XMLElement firstResult;
  13129. /* readonly */
  13130. uint size;
  13131. };
  13132. class Zone
  13133. {
  13134. // Methods:
  13135. void ApplyAttributes();
  13136. void DrawDebugGeometry(DebugRenderer, bool);
  13137. Variant GetAttribute(const String&) const;
  13138. ValueAnimation GetAttributeAnimation(const String&) const;
  13139. float GetAttributeAnimationSpeed(const String&) const;
  13140. float GetAttributeAnimationTime(const String&) const;
  13141. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13142. Variant GetAttributeDefault(const String&) const;
  13143. bool GetInterceptNetworkUpdate(const String&) const;
  13144. bool HasSubscribedToEvent(Object, const String&);
  13145. bool HasSubscribedToEvent(const String&);
  13146. bool IsInView(Camera) const;
  13147. bool Load(File, bool = false);
  13148. bool Load(VectorBuffer&, bool = false);
  13149. bool LoadJSON(const JSONValue&, bool = false);
  13150. bool LoadXML(const XMLElement&, bool = false);
  13151. void MarkNetworkUpdate() const;
  13152. void Remove();
  13153. void RemoveAttributeAnimation(const String&);
  13154. void RemoveInstanceDefault();
  13155. void RemoveObjectAnimation();
  13156. void ResetToDefault();
  13157. bool Save(File) const;
  13158. bool Save(VectorBuffer&) const;
  13159. bool SaveJSON(JSONValue&) const;
  13160. bool SaveXML(XMLElement&) const;
  13161. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13162. void SetAnimationTime(float);
  13163. bool SetAttribute(const String&, const Variant&);
  13164. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13165. void SetAttributeAnimationSpeed(const String&, float);
  13166. void SetAttributeAnimationTime(const String&, float);
  13167. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13168. void SetInterceptNetworkUpdate(const String&, bool);
  13169. // Properties:
  13170. Color ambientColor;
  13171. /* readonly */
  13172. Color ambientEndColor;
  13173. bool ambientGradient;
  13174. /* readonly */
  13175. Color ambientStartColor;
  13176. bool animationEnabled;
  13177. /* readonly */
  13178. Array<Variant> attributeDefaults;
  13179. /* readonly */
  13180. Array<AttributeInfo> attributeInfos;
  13181. Array<Variant> attributes;
  13182. BoundingBox boundingBox;
  13183. bool castShadows;
  13184. /* readonly */
  13185. String category;
  13186. float drawDistance;
  13187. bool enabled;
  13188. /* readonly */
  13189. bool enabledEffective;
  13190. Color fogColor;
  13191. float fogEnd;
  13192. float fogHeight;
  13193. float fogHeightScale;
  13194. float fogStart;
  13195. bool heightFog;
  13196. /* readonly */
  13197. uint id;
  13198. /* readonly */
  13199. bool inView;
  13200. /* readonly */
  13201. Matrix3x4 inverseWorldTransform;
  13202. uint lightMask;
  13203. float lodBias;
  13204. uint maxLights;
  13205. /* readonly */
  13206. Node node;
  13207. /* readonly */
  13208. uint numAttributes;
  13209. ObjectAnimation objectAnimation;
  13210. bool occludee;
  13211. bool occluder;
  13212. bool override;
  13213. int priority;
  13214. /* readonly */
  13215. int refs;
  13216. float shadowDistance;
  13217. uint shadowMask;
  13218. bool temporary;
  13219. /* readonly */
  13220. StringHash type;
  13221. /* readonly */
  13222. String typeName;
  13223. uint viewMask;
  13224. /* readonly */
  13225. int weakRefs;
  13226. /* readonly */
  13227. BoundingBox worldBoundingBox;
  13228. uint zoneMask;
  13229. Texture zoneTexture;
  13230. };
  13231. // Enumerations
  13232. enum AnimationBlendMode
  13233. {
  13234. ABM_LERP,
  13235. ABM_ADDITIVE,
  13236. };
  13237. enum BlendMode
  13238. {
  13239. BLEND_REPLACE,
  13240. BLEND_ADD,
  13241. BLEND_MULTIPLY,
  13242. BLEND_ALPHA,
  13243. BLEND_ADDALPHA,
  13244. BLEND_PREMULALPHA,
  13245. BLEND_INVDESTALPHA,
  13246. BLEND_SUBTRACT,
  13247. BLEND_SUBTRACTALPHA,
  13248. };
  13249. enum BodyType2D
  13250. {
  13251. BT_STATIC,
  13252. BT_KINEMATIC,
  13253. BT_DYNAMIC,
  13254. };
  13255. enum CollisionEventMode
  13256. {
  13257. COLLISION_NEVER,
  13258. COLLISION_ACTIVE,
  13259. COLLISION_ALWAYS,
  13260. };
  13261. enum CompareMode
  13262. {
  13263. CMP_ALWAYS,
  13264. CMP_EQUAL,
  13265. CMP_NOTEQUAL,
  13266. CMP_LESS,
  13267. CMP_LESSEQUAL,
  13268. CMP_GREATER,
  13269. CMP_GREATEREQUAL,
  13270. };
  13271. enum CompressedFormat
  13272. {
  13273. CF_NONE,
  13274. CF_RGBA,
  13275. CF_DXT1,
  13276. CF_DXT3,
  13277. CF_DXT5,
  13278. CF_ETC1,
  13279. CF_PVRTC_RGB_2BPP,
  13280. CF_PVRTC_RGBA_2BPP,
  13281. CF_PVRTC_RGB_4BPP,
  13282. CF_PVRTC_RGBA_4BPP,
  13283. };
  13284. enum ConstraintType
  13285. {
  13286. CONSTRAINT_POINT,
  13287. CONSTRAINT_HINGE,
  13288. CONSTRAINT_SLIDER,
  13289. CONSTRAINT_CONETWIST,
  13290. };
  13291. enum Corner
  13292. {
  13293. C_TOPLEFT,
  13294. C_TOPRIGHT,
  13295. C_BOTTOMLEFT,
  13296. C_BOTTOMRIGHT,
  13297. };
  13298. enum CreateMode
  13299. {
  13300. REPLICATED,
  13301. LOCAL,
  13302. };
  13303. enum CrowdAgentRequestedTarget
  13304. {
  13305. CA_REQUESTEDTARGET_NONE,
  13306. CA_REQUESTEDTARGET_POSITION,
  13307. CA_REQUESTEDTARGET_VELOCITY,
  13308. };
  13309. enum CrowdAgentState
  13310. {
  13311. CA_STATE_INVALID,
  13312. CA_STATE_WALKING,
  13313. CA_STATE_OFFMESH,
  13314. };
  13315. enum CrowdAgentTargetState
  13316. {
  13317. CA_TARGET_NONE,
  13318. CA_TARGET_FAILED,
  13319. CA_TARGET_VALID,
  13320. CA_TARGET_REQUESTING,
  13321. CA_TARGET_WAITINGFORQUEUE,
  13322. CA_TARGET_WAITINGFORPATH,
  13323. CA_TARGET_VELOCITY,
  13324. };
  13325. enum CubeMapFace
  13326. {
  13327. FACE_POSITIVE_X,
  13328. FACE_NEGATIVE_X,
  13329. FACE_POSITIVE_Y,
  13330. FACE_NEGATIVE_Y,
  13331. FACE_POSITIVE_Z,
  13332. FACE_NEGATIVE_Z,
  13333. };
  13334. enum CullMode
  13335. {
  13336. CULL_NONE,
  13337. CULL_CCW,
  13338. CULL_CW,
  13339. };
  13340. enum CursorShape
  13341. {
  13342. CS_NORMAL,
  13343. CS_IBEAM,
  13344. CS_CROSS,
  13345. CS_RESIZEVERTICAL,
  13346. CS_RESIZEDIAGONAL_TOPRIGHT,
  13347. CS_RESIZEHORIZONTAL,
  13348. CS_RESIZEDIAGONAL_TOPLEFT,
  13349. CS_RESIZE_ALL,
  13350. CS_ACCEPTDROP,
  13351. CS_REJECTDROP,
  13352. CS_BUSY,
  13353. CS_BUSY_ARROW,
  13354. };
  13355. enum DBAPI
  13356. {
  13357. DBAPI_SQLITE,
  13358. DBAPI_ODBC,
  13359. };
  13360. enum DumpMode
  13361. {
  13362. DOXYGEN,
  13363. C_HEADER,
  13364. };
  13365. enum EmitterType
  13366. {
  13367. EMITTER_SPHERE,
  13368. EMITTER_BOX,
  13369. };
  13370. enum EmitterType2D
  13371. {
  13372. EMITTER_TYPE_GRAVITY,
  13373. EMITTER_TYPE_RADIAL,
  13374. };
  13375. enum FaceCameraMode
  13376. {
  13377. FC_NONE,
  13378. FC_ROTATE_XYZ,
  13379. FC_ROTATE_Y,
  13380. FC_LOOKAT_XYZ,
  13381. FC_LOOKAT_Y,
  13382. FC_DIRECTION,
  13383. };
  13384. enum FileMode
  13385. {
  13386. FILE_READ,
  13387. FILE_WRITE,
  13388. FILE_READWRITE,
  13389. };
  13390. enum FillMode
  13391. {
  13392. FILL_SOLID,
  13393. FILL_WIREFRAME,
  13394. FILL_POINT,
  13395. };
  13396. enum FocusMode
  13397. {
  13398. FM_NOTFOCUSABLE,
  13399. FM_RESETFOCUS,
  13400. FM_FOCUSABLE,
  13401. FM_FOCUSABLE_DEFOCUSABLE,
  13402. };
  13403. enum HighlightMode
  13404. {
  13405. HM_NEVER,
  13406. HM_FOCUS,
  13407. HM_ALWAYS,
  13408. };
  13409. enum HorizontalAlignment
  13410. {
  13411. HA_LEFT,
  13412. HA_CENTER,
  13413. HA_RIGHT,
  13414. };
  13415. enum HttpRequestState
  13416. {
  13417. HTTP_INITIALIZING,
  13418. HTTP_ERROR,
  13419. HTTP_OPEN,
  13420. HTTP_CLOSED,
  13421. };
  13422. enum InterpMethod
  13423. {
  13424. IM_LINEAR,
  13425. IM_SPLINE,
  13426. };
  13427. enum InterpolationMode
  13428. {
  13429. BEZIER_CURVE,
  13430. CATMULL_ROM_CURVE,
  13431. LINEAR_CURVE,
  13432. CATMULL_ROM_FULL_CURVE,
  13433. };
  13434. enum Intersection
  13435. {
  13436. OUTSIDE,
  13437. INTERSECTS,
  13438. INSIDE,
  13439. };
  13440. enum JSONValueType
  13441. {
  13442. JSON_NULL,
  13443. JSON_BOOL,
  13444. JSON_NUMBER,
  13445. JSON_STRING,
  13446. JSON_ARRAY,
  13447. JSON_OBJECT,
  13448. };
  13449. enum LayoutMode
  13450. {
  13451. LM_FREE,
  13452. LM_HORIZONTAL,
  13453. LM_VERTICAL,
  13454. };
  13455. enum LightType
  13456. {
  13457. LIGHT_DIRECTIONAL,
  13458. LIGHT_SPOT,
  13459. LIGHT_POINT,
  13460. };
  13461. enum LoadMode
  13462. {
  13463. LOAD_RESOURCES_ONLY,
  13464. LOAD_SCENE,
  13465. LOAD_SCENE_AND_RESOURCES,
  13466. };
  13467. enum LoopMode2D
  13468. {
  13469. LM_DEFAULT,
  13470. LM_FORCE_LOOPED,
  13471. LM_FORCE_CLAMPED,
  13472. };
  13473. enum MouseMode
  13474. {
  13475. MM_ABSOLUTE,
  13476. MM_RELATIVE,
  13477. MM_WRAP,
  13478. MM_FREE,
  13479. };
  13480. enum NavigationPushiness
  13481. {
  13482. NAVIGATIONPUSHINESS_LOW,
  13483. NAVIGATIONPUSHINESS_MEDIUM,
  13484. NAVIGATIONPUSHINESS_HIGH,
  13485. };
  13486. enum NavigationQuality
  13487. {
  13488. NAVIGATIONQUALITY_LOW,
  13489. NAVIGATIONQUALITY_MEDIUM,
  13490. NAVIGATIONQUALITY_HIGH,
  13491. };
  13492. enum NavmeshPartitionType
  13493. {
  13494. NAVMESH_PARTITION_WATERSHED,
  13495. NAVMESH_PARTITION_MONOTONE,
  13496. };
  13497. enum Orientation
  13498. {
  13499. O_HORIZONTAL,
  13500. O_VERTICAL,
  13501. };
  13502. enum Orientation2D
  13503. {
  13504. O_ORTHOGONAL,
  13505. O_ISOMETRIC,
  13506. O_STAGGERED,
  13507. };
  13508. enum PassLightingMode
  13509. {
  13510. LIGHTING_UNLIT,
  13511. LIGHTING_PERVERTEX,
  13512. LIGHTING_PERPIXEL,
  13513. };
  13514. enum PrimitiveType
  13515. {
  13516. TRIANGLE_LIST,
  13517. LINE_LIST,
  13518. POINT_LIST,
  13519. TRIANGLE_STRIP,
  13520. LINE_STRIP,
  13521. TRIANGLE_FAN,
  13522. };
  13523. enum RayQueryLevel
  13524. {
  13525. RAY_AABB,
  13526. RAY_OBB,
  13527. RAY_TRIANGLE,
  13528. RAY_TRIANGLE_UV,
  13529. };
  13530. enum RenderCommandSortMode
  13531. {
  13532. SORT_FRONTTOBACK,
  13533. SORT_BACKTOFRONT,
  13534. };
  13535. enum RenderCommandType
  13536. {
  13537. CMD_NONE,
  13538. CMD_CLEAR,
  13539. CMD_SCENEPASS,
  13540. CMD_QUAD,
  13541. CMD_FORWARDLIGHTS,
  13542. CMD_LIGHTVOLUMES,
  13543. CMD_RENDERUI,
  13544. };
  13545. enum RenderSurfaceUpdateMode
  13546. {
  13547. SURFACE_MANUALUPDATE,
  13548. SURFACE_UPDATEVISIBLE,
  13549. SURFACE_UPDATEALWAYS,
  13550. };
  13551. enum RenderTargetSizeMode
  13552. {
  13553. SIZE_ABSOLUTE,
  13554. SIZE_VIEWPORTDIVISOR,
  13555. SIZE_VIEWPORTMULTIPLIER,
  13556. };
  13557. enum ShadowQuality
  13558. {
  13559. SHADOWQUALITY_SIMPLE_16BIT,
  13560. SHADOWQUALITY_SIMPLE_24BIT,
  13561. SHADOWQUALITY_PCF_16BIT,
  13562. SHADOWQUALITY_PCF_24BIT,
  13563. SHADOWQUALITY_VSM,
  13564. SHADOWQUALITY_BLUR_VSM,
  13565. };
  13566. enum ShapeType
  13567. {
  13568. SHAPE_BOX,
  13569. SHAPE_SPHERE,
  13570. SHAPE_STATICPLANE,
  13571. SHAPE_CYLINDER,
  13572. SHAPE_CAPSULE,
  13573. SHAPE_CONE,
  13574. SHAPE_TRIANGLEMESH,
  13575. SHAPE_CONVEXHULL,
  13576. SHAPE_TERRAIN,
  13577. };
  13578. enum TextEffect
  13579. {
  13580. TE_NONE,
  13581. TE_SHADOW,
  13582. TE_STROKE,
  13583. };
  13584. enum TextureAddressMode
  13585. {
  13586. ADDRESS_WRAP,
  13587. ADDRESS_MIRROR,
  13588. ADDRESS_CLAMP,
  13589. ADDRESS_BORDER,
  13590. };
  13591. enum TextureCoordinate
  13592. {
  13593. COORD_U,
  13594. COORD_V,
  13595. COORD_W,
  13596. };
  13597. enum TextureFilterMode
  13598. {
  13599. FILTER_NEAREST,
  13600. FILTER_BILINEAR,
  13601. FILTER_TRILINEAR,
  13602. FILTER_ANISOTROPIC,
  13603. FILTER_DEFAULT,
  13604. };
  13605. enum TextureUnit
  13606. {
  13607. TU_DIFFUSE,
  13608. TU_ALBEDOBUFFER,
  13609. TU_NORMAL,
  13610. TU_NORMALBUFFER,
  13611. TU_SPECULAR,
  13612. TU_EMISSIVE,
  13613. TU_ENVIRONMENT,
  13614. TU_LIGHTRAMP,
  13615. TU_LIGHTSHAPE,
  13616. TU_SHADOWMAP,
  13617. TU_CUSTOM1,
  13618. TU_CUSTOM2,
  13619. TU_VOLUMEMAP,
  13620. TU_FACESELECT,
  13621. TU_INDIRECTION,
  13622. TU_DEPTHBUFFER,
  13623. TU_LIGHTBUFFER,
  13624. TU_ZONE,
  13625. MAX_MATERIAL_TEXTURE_UNITS,
  13626. MAX_TEXTURE_UNITS,
  13627. };
  13628. enum TextureUsage
  13629. {
  13630. TEXTURE_STATIC,
  13631. TEXTURE_DYNAMIC,
  13632. TEXTURE_RENDERTARGET,
  13633. TEXTURE_DEPTHSTENCIL,
  13634. };
  13635. enum TileMapLayerType2D
  13636. {
  13637. LT_TILE_LAYER,
  13638. LT_OBJECT_GROUP,
  13639. LT_IMAGE_LAYER,
  13640. LT_INVALID,
  13641. };
  13642. enum TileObjectType2D
  13643. {
  13644. OT_RECTANGLE,
  13645. OT_ELLIPSE,
  13646. OT_POLYGON,
  13647. OT_POLYLINE,
  13648. OT_TILE,
  13649. OT_INVALID,
  13650. };
  13651. enum TransformSpace
  13652. {
  13653. TS_LOCAL,
  13654. TS_PARENT,
  13655. TS_WORLD,
  13656. };
  13657. enum TraversalMode
  13658. {
  13659. TM_BREADTH_FIRST,
  13660. TM_DEPTH_FIRST,
  13661. };
  13662. enum VariantType
  13663. {
  13664. VAR_NONE,
  13665. VAR_INT,
  13666. VAR_BOOL,
  13667. VAR_FLOAT,
  13668. VAR_VECTOR2,
  13669. VAR_VECTOR3,
  13670. VAR_VECTOR4,
  13671. VAR_QUATERNION,
  13672. VAR_COLOR,
  13673. VAR_STRING,
  13674. VAR_BUFFER,
  13675. VAR_VOIDPTR,
  13676. VAR_RESOURCEREF,
  13677. VAR_RESOURCEREFLIST,
  13678. VAR_VARIANTVECTOR,
  13679. VAR_VARIANTMAP,
  13680. VAR_INTRECT,
  13681. VAR_INTVECTOR2,
  13682. VAR_PTR,
  13683. VAR_MATRIX3,
  13684. VAR_MATRIX3X4,
  13685. VAR_MATRIX4,
  13686. VAR_DOUBLE,
  13687. VAR_STRINGVECTOR,
  13688. };
  13689. enum VertexElementSemantic
  13690. {
  13691. SEM_POSITION,
  13692. SEM_NORMAL,
  13693. SEM_BINORMAL,
  13694. SEM_TANGENT,
  13695. SEM_TEXCOORD,
  13696. SEM_COLOR,
  13697. SEM_BLENDWEIGHTS,
  13698. SEM_BLENDINDICES,
  13699. SEM_OBJECTINDEX,
  13700. MAX_VERTEX_ELEMENT_SEMANTICS,
  13701. };
  13702. enum VertexElementType
  13703. {
  13704. TYPE_INT,
  13705. TYPE_FLOAT,
  13706. TYPE_VECTOR2,
  13707. TYPE_VECTOR3,
  13708. TYPE_VECTOR4,
  13709. TYPE_UBYTE4,
  13710. TYPE_UBYTE4_NORM,
  13711. MAX_VERTEX_ELEMENT_TYPES,
  13712. };
  13713. enum VerticalAlignment
  13714. {
  13715. VA_TOP,
  13716. VA_CENTER,
  13717. VA_BOTTOM,
  13718. };
  13719. enum WrapMode
  13720. {
  13721. WM_LOOP,
  13722. WM_ONCE,
  13723. WM_CLAMP,
  13724. };
  13725. // Global functions
  13726. float Abs(float);
  13727. float Acos(float);
  13728. String AddTrailingSlash(const String&);
  13729. float Asin(float);
  13730. float Atan(float);
  13731. float Atan2(float, float);
  13732. float Ceil(float);
  13733. float Clamp(float, float, float);
  13734. int Clamp(int, int, int);
  13735. void ClearDelayedExecute(const String& = String ( ));
  13736. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  13737. float Cos(float);
  13738. uint CountSetBits(uint);
  13739. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  13740. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  13741. bool Equals(float, float);
  13742. void ErrorDialog(const String&, const String&);
  13743. float Floor(float);
  13744. uint GetAlphaFormat();
  13745. Array<String> GetArguments();
  13746. String GetConsoleInput();
  13747. uint GetDepthStencilFormat();
  13748. Object GetEventSender();
  13749. String GetExtension(const String&, bool = true);
  13750. String GetFileName(const String&);
  13751. String GetFileNameAndExtension(const String&, bool = false);
  13752. String GetFileSizeString(uint64);
  13753. uint GetFloat16Format();
  13754. uint GetFloat32Format();
  13755. uint GetFormat(const String&);
  13756. Variant GetGlobalVar(const String&);
  13757. String GetInternalPath(const String&);
  13758. uint GetLinearDepthFormat();
  13759. uint GetLuminanceAlphaFormat();
  13760. uint GetLuminanceFormat();
  13761. uint GetMaxBones();
  13762. String GetMiniDumpDir();
  13763. uint GetNumLogicalCPUs();
  13764. uint GetNumPhysicalCPUs();
  13765. Array<String> GetObjectCategories();
  13766. Array<String> GetObjectsByCategory(const String&);
  13767. String GetParentPath(const String&);
  13768. String GetPath(const String&);
  13769. String GetPlatform();
  13770. uint GetRG16Format();
  13771. uint GetRGBA16Format();
  13772. uint GetRGBAFloat16Format();
  13773. uint GetRGBAFloat32Format();
  13774. uint GetRGBAFormat();
  13775. uint GetRGBFormat();
  13776. uint GetRGFloat16Format();
  13777. uint GetRGFloat32Format();
  13778. uint GetRandomSeed();
  13779. uint GetReadableDepthFormat();
  13780. String GetTextureUnitName(TextureUnit);
  13781. bool HasSubscribedToEvent(Object, const String&);
  13782. bool HasSubscribedToEvent(const String&);
  13783. bool IsAbsolutePath(const String&);
  13784. bool IsAlpha(uint);
  13785. bool IsDigit(uint);
  13786. bool IsNaN(float);
  13787. bool IsPowerOfTwo(uint);
  13788. String Join(Array<String>&, const String&);
  13789. float Lerp(float, float, float);
  13790. void MarkNetworkUpdate();
  13791. float Max(float, float);
  13792. int Max(int, int);
  13793. float Min(float, float);
  13794. int Min(int, int);
  13795. float Mod(float, float);
  13796. uint NextPowerOfTwo(uint);
  13797. void OpenConsoleWindow();
  13798. float Pow(float, float);
  13799. void Print(bool, bool = false);
  13800. void Print(const String&, bool = false);
  13801. void Print(const Variant&, bool = false);
  13802. void Print(float, bool = false);
  13803. void Print(int, bool = false);
  13804. void Print(uint, bool = false);
  13805. void PrintCallStack(bool = false);
  13806. float Random();
  13807. float Random(float);
  13808. float Random(float, float);
  13809. int RandomInt();
  13810. int RandomInt(int);
  13811. int RandomInt(int, int);
  13812. float RandomNormal(float, float);
  13813. void Remove();
  13814. String RemoveTrailingSlash(const String&);
  13815. String ReplaceExtension(const String&, const String&);
  13816. uint SDBMHash(uint, uint8);
  13817. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13818. void SetGlobalVar(const String&, Variant&);
  13819. void SetMiniDumpDir(const String&);
  13820. void SetRandomSeed(uint);
  13821. float Sign(float);
  13822. float Sin(float);
  13823. float SmoothStep(float, float, float);
  13824. float Sqrt(float);
  13825. const String& GetTypeName(StringHash);
  13826. void SubscribeToEvent(Object, const String&, const String&);
  13827. void SubscribeToEvent(const String&, const String&);
  13828. float Tan(float);
  13829. uint ToLower(uint);
  13830. String ToStringHex(int);
  13831. uint ToUpper(uint);
  13832. void UnsubscribeFromAllEvents();
  13833. void UnsubscribeFromAllEventsExcept(Array<String>);
  13834. void UnsubscribeFromEvent(Object, const String&);
  13835. void UnsubscribeFromEvent(const String&);
  13836. void UnsubscribeFromEvents(Object);
  13837. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13838. // Global properties
  13839. DBAPI DBAPI;
  13840. Audio audio;
  13841. ResourceCache cache;
  13842. Console console;
  13843. Database database;
  13844. DebugHud debugHud;
  13845. DebugRenderer debugRenderer;
  13846. Engine engine;
  13847. FileSystem fileSystem;
  13848. VariantMap globalVars;
  13849. Graphics graphics;
  13850. Input input;
  13851. Localization localization;
  13852. Log log;
  13853. Network network;
  13854. Node node;
  13855. Octree octree;
  13856. PhysicsWorld physicsWorld;
  13857. PhysicsWorld2D physicsWorld2D;
  13858. Renderer renderer;
  13859. ResourceCache resourceCache;
  13860. Scene scene;
  13861. Script script;
  13862. ScriptFile scriptFile;
  13863. ScriptInstance self;
  13864. Time time;
  13865. UI ui;
  13866. // Global constants
  13867. uint AM_COMPONENTID;
  13868. uint AM_DEFAULT;
  13869. uint AM_FILE;
  13870. uint AM_LATESTDATA;
  13871. uint AM_NET;
  13872. uint AM_NODEID;
  13873. uint AM_NODEIDVECTOR;
  13874. uint AM_NOEDIT;
  13875. Color BLACK;
  13876. Color BLUE;
  13877. uint8 CHANNEL_POSITION;
  13878. uint8 CHANNEL_ROTATION;
  13879. uint8 CHANNEL_SCALE;
  13880. uint CLEAR_COLOR;
  13881. uint CLEAR_DEPTH;
  13882. uint CLEAR_STENCIL;
  13883. int CONTROLLER_AXIS_LEFTX;
  13884. int CONTROLLER_AXIS_LEFTY;
  13885. int CONTROLLER_AXIS_RIGHTX;
  13886. int CONTROLLER_AXIS_RIGHTY;
  13887. int CONTROLLER_AXIS_TRIGGERLEFT;
  13888. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13889. int CONTROLLER_BUTTON_A;
  13890. int CONTROLLER_BUTTON_B;
  13891. int CONTROLLER_BUTTON_BACK;
  13892. int CONTROLLER_BUTTON_DPAD_DOWN;
  13893. int CONTROLLER_BUTTON_DPAD_LEFT;
  13894. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13895. int CONTROLLER_BUTTON_DPAD_UP;
  13896. int CONTROLLER_BUTTON_GUIDE;
  13897. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13898. int CONTROLLER_BUTTON_LEFTSTICK;
  13899. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13900. int CONTROLLER_BUTTON_RIGHTSTICK;
  13901. int CONTROLLER_BUTTON_START;
  13902. int CONTROLLER_BUTTON_X;
  13903. int CONTROLLER_BUTTON_Y;
  13904. Color CYAN;
  13905. uint DD_DISABLED;
  13906. uint DD_SOURCE;
  13907. uint DD_SOURCE_AND_TARGET;
  13908. uint DD_TARGET;
  13909. uint DEBUGHUD_SHOW_ALL;
  13910. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13911. uint DEBUGHUD_SHOW_MEMORY;
  13912. uint DEBUGHUD_SHOW_MODE;
  13913. uint DEBUGHUD_SHOW_NONE;
  13914. uint DEBUGHUD_SHOW_PROFILER;
  13915. uint DEBUGHUD_SHOW_STATS;
  13916. uint DEFAULT_LIGHTMASK;
  13917. uint DEFAULT_VIEWMASK;
  13918. uint DRAWABLE_ANY;
  13919. uint DRAWABLE_GEOMETRY;
  13920. uint DRAWABLE_GEOMETRY2D;
  13921. uint DRAWABLE_LIGHT;
  13922. uint DRAWABLE_ZONE;
  13923. uint FIRST_LOCAL_ID;
  13924. uint FIRST_REPLICATED_ID;
  13925. Color GRAY;
  13926. Color GREEN;
  13927. int HAT_CENTER;
  13928. int HAT_DOWN;
  13929. int HAT_LEFT;
  13930. int HAT_RIGHT;
  13931. int HAT_UP;
  13932. int KEY_0;
  13933. int KEY_1;
  13934. int KEY_2;
  13935. int KEY_3;
  13936. int KEY_4;
  13937. int KEY_5;
  13938. int KEY_6;
  13939. int KEY_7;
  13940. int KEY_8;
  13941. int KEY_9;
  13942. int KEY_A;
  13943. int KEY_ALT;
  13944. int KEY_APPLICATION;
  13945. int KEY_B;
  13946. int KEY_BACKSPACE;
  13947. int KEY_C;
  13948. int KEY_CAPSLOCK;
  13949. int KEY_CTRL;
  13950. int KEY_D;
  13951. int KEY_DELETE;
  13952. int KEY_DOWN;
  13953. int KEY_E;
  13954. int KEY_END;
  13955. int KEY_ESC;
  13956. int KEY_F;
  13957. int KEY_F1;
  13958. int KEY_F10;
  13959. int KEY_F11;
  13960. int KEY_F12;
  13961. int KEY_F13;
  13962. int KEY_F14;
  13963. int KEY_F15;
  13964. int KEY_F16;
  13965. int KEY_F17;
  13966. int KEY_F18;
  13967. int KEY_F19;
  13968. int KEY_F2;
  13969. int KEY_F20;
  13970. int KEY_F21;
  13971. int KEY_F22;
  13972. int KEY_F23;
  13973. int KEY_F24;
  13974. int KEY_F3;
  13975. int KEY_F4;
  13976. int KEY_F5;
  13977. int KEY_F6;
  13978. int KEY_F7;
  13979. int KEY_F8;
  13980. int KEY_F9;
  13981. int KEY_G;
  13982. int KEY_GUI;
  13983. int KEY_H;
  13984. int KEY_HOME;
  13985. int KEY_I;
  13986. int KEY_INSERT;
  13987. int KEY_J;
  13988. int KEY_K;
  13989. int KEY_KP_0;
  13990. int KEY_KP_1;
  13991. int KEY_KP_2;
  13992. int KEY_KP_3;
  13993. int KEY_KP_4;
  13994. int KEY_KP_5;
  13995. int KEY_KP_6;
  13996. int KEY_KP_7;
  13997. int KEY_KP_8;
  13998. int KEY_KP_9;
  13999. int KEY_KP_DIVIDE;
  14000. int KEY_KP_ENTER;
  14001. int KEY_KP_MINUS;
  14002. int KEY_KP_MULTIPLY;
  14003. int KEY_KP_PERIOD;
  14004. int KEY_KP_PLUS;
  14005. int KEY_L;
  14006. int KEY_LALT;
  14007. int KEY_LCTRL;
  14008. int KEY_LEFT;
  14009. int KEY_LGUI;
  14010. int KEY_LSHIFT;
  14011. int KEY_M;
  14012. int KEY_N;
  14013. int KEY_NUMLOCKCLEAR;
  14014. int KEY_O;
  14015. int KEY_P;
  14016. int KEY_PAGEDOWN;
  14017. int KEY_PAGEUP;
  14018. int KEY_PAUSE;
  14019. int KEY_PRINTSCREEN;
  14020. int KEY_Q;
  14021. int KEY_R;
  14022. int KEY_RALT;
  14023. int KEY_RCTRL;
  14024. int KEY_RETURN;
  14025. int KEY_RETURN2;
  14026. int KEY_RGUI;
  14027. int KEY_RIGHT;
  14028. int KEY_RSHIFT;
  14029. int KEY_S;
  14030. int KEY_SCROLLLOCK;
  14031. int KEY_SELECT;
  14032. int KEY_SHIFT;
  14033. int KEY_SPACE;
  14034. int KEY_T;
  14035. int KEY_TAB;
  14036. int KEY_U;
  14037. int KEY_UP;
  14038. int KEY_V;
  14039. int KEY_W;
  14040. int KEY_X;
  14041. int KEY_Y;
  14042. int KEY_Z;
  14043. uint LAST_LOCAL_ID;
  14044. uint LAST_REPLICATED_ID;
  14045. int LOG_DEBUG;
  14046. int LOG_ERROR;
  14047. int LOG_INFO;
  14048. int LOG_NONE;
  14049. int LOG_WARNING;
  14050. Color MAGENTA;
  14051. uint MASK_BLENDINDICES;
  14052. uint MASK_BLENDWEIGHTS;
  14053. uint MASK_COLOR;
  14054. uint MASK_CUBETEXCOORD1;
  14055. uint MASK_CUBETEXCOORD2;
  14056. uint MASK_INSTANCEMATRIX1;
  14057. uint MASK_INSTANCEMATRIX2;
  14058. uint MASK_INSTANCEMATRIX3;
  14059. uint MASK_NONE;
  14060. uint MASK_NORMAL;
  14061. uint MASK_OBJECTINDEX;
  14062. uint MASK_POSITION;
  14063. uint MASK_TANGENT;
  14064. uint MASK_TEXCOORD1;
  14065. uint MASK_TEXCOORD2;
  14066. int MOUSEB_LEFT;
  14067. int MOUSEB_MIDDLE;
  14068. int MOUSEB_RIGHT;
  14069. float M_DEGTORAD;
  14070. float M_DEGTORAD_2;
  14071. float M_EPSILON;
  14072. float M_HALF_PI;
  14073. float M_INFINITY;
  14074. float M_LARGE_EPSILON;
  14075. float M_LARGE_VALUE;
  14076. int M_MAX_INT;
  14077. uint M_MAX_UNSIGNED;
  14078. int M_MIN_INT;
  14079. uint M_MIN_UNSIGNED;
  14080. float M_PI;
  14081. float M_RADTODEG;
  14082. uint NPOS;
  14083. float PIXEL_SIZE;
  14084. int QUALITY_HIGH;
  14085. int QUALITY_LOW;
  14086. int QUALITY_MAX;
  14087. int QUALITY_MEDIUM;
  14088. int QUAL_ALT;
  14089. int QUAL_ANY;
  14090. int QUAL_CTRL;
  14091. int QUAL_SHIFT;
  14092. Color RED;
  14093. int SCANCODE_0;
  14094. int SCANCODE_1;
  14095. int SCANCODE_2;
  14096. int SCANCODE_3;
  14097. int SCANCODE_4;
  14098. int SCANCODE_5;
  14099. int SCANCODE_6;
  14100. int SCANCODE_7;
  14101. int SCANCODE_8;
  14102. int SCANCODE_9;
  14103. int SCANCODE_A;
  14104. int SCANCODE_AC_BACK;
  14105. int SCANCODE_AC_BOOKMARKS;
  14106. int SCANCODE_AC_FORWARD;
  14107. int SCANCODE_AC_HOME;
  14108. int SCANCODE_AC_REFRESH;
  14109. int SCANCODE_AC_SEARCH;
  14110. int SCANCODE_AC_STOP;
  14111. int SCANCODE_AGAIN;
  14112. int SCANCODE_ALT;
  14113. int SCANCODE_ALTERASE;
  14114. int SCANCODE_APOSTROPHE;
  14115. int SCANCODE_APP1;
  14116. int SCANCODE_APP2;
  14117. int SCANCODE_APPLICATION;
  14118. int SCANCODE_AUDIOMUTE;
  14119. int SCANCODE_AUDIONEXT;
  14120. int SCANCODE_AUDIOPLAY;
  14121. int SCANCODE_AUDIOPREV;
  14122. int SCANCODE_AUDIOSTOP;
  14123. int SCANCODE_B;
  14124. int SCANCODE_BACKSLASH;
  14125. int SCANCODE_BACKSPACE;
  14126. int SCANCODE_BRIGHTNESSDOWN;
  14127. int SCANCODE_BRIGHTNESSUP;
  14128. int SCANCODE_C;
  14129. int SCANCODE_CALCULATOR;
  14130. int SCANCODE_CANCEL;
  14131. int SCANCODE_CAPSLOCK;
  14132. int SCANCODE_CLEAR;
  14133. int SCANCODE_CLEARAGAIN;
  14134. int SCANCODE_COMMA;
  14135. int SCANCODE_COMPUTER;
  14136. int SCANCODE_COPY;
  14137. int SCANCODE_CRSEL;
  14138. int SCANCODE_CTRL;
  14139. int SCANCODE_CURRENCYSUBUNIT;
  14140. int SCANCODE_CURRENCYUNIT;
  14141. int SCANCODE_CUT;
  14142. int SCANCODE_D;
  14143. int SCANCODE_DECIMALSEPARATOR;
  14144. int SCANCODE_DELETE;
  14145. int SCANCODE_DISPLAYSWITCH;
  14146. int SCANCODE_DOWN;
  14147. int SCANCODE_E;
  14148. int SCANCODE_EJECT;
  14149. int SCANCODE_END;
  14150. int SCANCODE_EQUALS;
  14151. int SCANCODE_ESCAPE;
  14152. int SCANCODE_EXECUTE;
  14153. int SCANCODE_EXSEL;
  14154. int SCANCODE_F;
  14155. int SCANCODE_F1;
  14156. int SCANCODE_F10;
  14157. int SCANCODE_F11;
  14158. int SCANCODE_F12;
  14159. int SCANCODE_F13;
  14160. int SCANCODE_F14;
  14161. int SCANCODE_F15;
  14162. int SCANCODE_F16;
  14163. int SCANCODE_F17;
  14164. int SCANCODE_F18;
  14165. int SCANCODE_F19;
  14166. int SCANCODE_F2;
  14167. int SCANCODE_F20;
  14168. int SCANCODE_F21;
  14169. int SCANCODE_F22;
  14170. int SCANCODE_F23;
  14171. int SCANCODE_F24;
  14172. int SCANCODE_F3;
  14173. int SCANCODE_F4;
  14174. int SCANCODE_F5;
  14175. int SCANCODE_F6;
  14176. int SCANCODE_F7;
  14177. int SCANCODE_F8;
  14178. int SCANCODE_F9;
  14179. int SCANCODE_FIND;
  14180. int SCANCODE_G;
  14181. int SCANCODE_GRAVE;
  14182. int SCANCODE_GUI;
  14183. int SCANCODE_H;
  14184. int SCANCODE_HELP;
  14185. int SCANCODE_HOME;
  14186. int SCANCODE_I;
  14187. int SCANCODE_INSERT;
  14188. int SCANCODE_INTERNATIONAL1;
  14189. int SCANCODE_INTERNATIONAL2;
  14190. int SCANCODE_INTERNATIONAL3;
  14191. int SCANCODE_INTERNATIONAL4;
  14192. int SCANCODE_INTERNATIONAL5;
  14193. int SCANCODE_INTERNATIONAL6;
  14194. int SCANCODE_INTERNATIONAL7;
  14195. int SCANCODE_INTERNATIONAL8;
  14196. int SCANCODE_INTERNATIONAL9;
  14197. int SCANCODE_J;
  14198. int SCANCODE_K;
  14199. int SCANCODE_KBDILLUMDOWN;
  14200. int SCANCODE_KBDILLUMTOGGLE;
  14201. int SCANCODE_KBDILLUMUP;
  14202. int SCANCODE_KP_0;
  14203. int SCANCODE_KP_00;
  14204. int SCANCODE_KP_000;
  14205. int SCANCODE_KP_1;
  14206. int SCANCODE_KP_2;
  14207. int SCANCODE_KP_3;
  14208. int SCANCODE_KP_4;
  14209. int SCANCODE_KP_5;
  14210. int SCANCODE_KP_6;
  14211. int SCANCODE_KP_7;
  14212. int SCANCODE_KP_8;
  14213. int SCANCODE_KP_9;
  14214. int SCANCODE_KP_A;
  14215. int SCANCODE_KP_AMPERSAND;
  14216. int SCANCODE_KP_AT;
  14217. int SCANCODE_KP_B;
  14218. int SCANCODE_KP_BACKSPACE;
  14219. int SCANCODE_KP_BINARY;
  14220. int SCANCODE_KP_C;
  14221. int SCANCODE_KP_CLEAR;
  14222. int SCANCODE_KP_CLEARENTRY;
  14223. int SCANCODE_KP_COLON;
  14224. int SCANCODE_KP_COMMA;
  14225. int SCANCODE_KP_D;
  14226. int SCANCODE_KP_DBLAMPERSAND;
  14227. int SCANCODE_KP_DBLVERTICALBAR;
  14228. int SCANCODE_KP_DECIMAL;
  14229. int SCANCODE_KP_DIVIDE;
  14230. int SCANCODE_KP_E;
  14231. int SCANCODE_KP_ENTER;
  14232. int SCANCODE_KP_EQUALS;
  14233. int SCANCODE_KP_EQUALSAS400;
  14234. int SCANCODE_KP_EXCLAM;
  14235. int SCANCODE_KP_F;
  14236. int SCANCODE_KP_GREATER;
  14237. int SCANCODE_KP_HASH;
  14238. int SCANCODE_KP_HEXADECIMAL;
  14239. int SCANCODE_KP_LEFTBRACE;
  14240. int SCANCODE_KP_LEFTPAREN;
  14241. int SCANCODE_KP_LESS;
  14242. int SCANCODE_KP_MEMADD;
  14243. int SCANCODE_KP_MEMCLEAR;
  14244. int SCANCODE_KP_MEMDIVIDE;
  14245. int SCANCODE_KP_MEMMULTIPLY;
  14246. int SCANCODE_KP_MEMRECALL;
  14247. int SCANCODE_KP_MEMSTORE;
  14248. int SCANCODE_KP_MEMSUBTRACT;
  14249. int SCANCODE_KP_MINUS;
  14250. int SCANCODE_KP_MULTIPLY;
  14251. int SCANCODE_KP_OCTAL;
  14252. int SCANCODE_KP_PERCENT;
  14253. int SCANCODE_KP_PERIOD;
  14254. int SCANCODE_KP_PLUS;
  14255. int SCANCODE_KP_PLUSMINUS;
  14256. int SCANCODE_KP_POWER;
  14257. int SCANCODE_KP_RIGHTBRACE;
  14258. int SCANCODE_KP_RIGHTPAREN;
  14259. int SCANCODE_KP_SPACE;
  14260. int SCANCODE_KP_TAB;
  14261. int SCANCODE_KP_VERTICALBAR;
  14262. int SCANCODE_KP_XOR;
  14263. int SCANCODE_L;
  14264. int SCANCODE_LALT;
  14265. int SCANCODE_LANG1;
  14266. int SCANCODE_LANG2;
  14267. int SCANCODE_LANG3;
  14268. int SCANCODE_LANG4;
  14269. int SCANCODE_LANG5;
  14270. int SCANCODE_LANG6;
  14271. int SCANCODE_LANG7;
  14272. int SCANCODE_LANG8;
  14273. int SCANCODE_LANG9;
  14274. int SCANCODE_LCTRL;
  14275. int SCANCODE_LEFT;
  14276. int SCANCODE_LEFTBRACKET;
  14277. int SCANCODE_LGUI;
  14278. int SCANCODE_LSHIFT;
  14279. int SCANCODE_M;
  14280. int SCANCODE_MAIL;
  14281. int SCANCODE_MEDIASELECT;
  14282. int SCANCODE_MENU;
  14283. int SCANCODE_MINUS;
  14284. int SCANCODE_MODE;
  14285. int SCANCODE_MUTE;
  14286. int SCANCODE_N;
  14287. int SCANCODE_NONUSBACKSLASH;
  14288. int SCANCODE_NONUSHASH;
  14289. int SCANCODE_NUMLOCKCLEAR;
  14290. int SCANCODE_O;
  14291. int SCANCODE_OPER;
  14292. int SCANCODE_OUT;
  14293. int SCANCODE_P;
  14294. int SCANCODE_PAGEDOWN;
  14295. int SCANCODE_PAGEUP;
  14296. int SCANCODE_PASTE;
  14297. int SCANCODE_PAUSE;
  14298. int SCANCODE_PERIOD;
  14299. int SCANCODE_POWER;
  14300. int SCANCODE_PRINTSCREEN;
  14301. int SCANCODE_PRIOR;
  14302. int SCANCODE_Q;
  14303. int SCANCODE_R;
  14304. int SCANCODE_RALT;
  14305. int SCANCODE_RCTRL;
  14306. int SCANCODE_RETURN;
  14307. int SCANCODE_RETURN2;
  14308. int SCANCODE_RGUI;
  14309. int SCANCODE_RIGHT;
  14310. int SCANCODE_RIGHTBRACKET;
  14311. int SCANCODE_RSHIFT;
  14312. int SCANCODE_S;
  14313. int SCANCODE_SCROLLLOCK;
  14314. int SCANCODE_SELECT;
  14315. int SCANCODE_SEMICOLON;
  14316. int SCANCODE_SEPARATOR;
  14317. int SCANCODE_SHIFT;
  14318. int SCANCODE_SLASH;
  14319. int SCANCODE_SLEEP;
  14320. int SCANCODE_SPACE;
  14321. int SCANCODE_STOP;
  14322. int SCANCODE_SYSREQ;
  14323. int SCANCODE_T;
  14324. int SCANCODE_TAB;
  14325. int SCANCODE_THOUSANDSSEPARATOR;
  14326. int SCANCODE_U;
  14327. int SCANCODE_UNDO;
  14328. int SCANCODE_UNKNOWN;
  14329. int SCANCODE_UP;
  14330. int SCANCODE_V;
  14331. int SCANCODE_VOLUMEDOWN;
  14332. int SCANCODE_VOLUMEUP;
  14333. int SCANCODE_W;
  14334. int SCANCODE_WWW;
  14335. int SCANCODE_X;
  14336. int SCANCODE_Y;
  14337. int SCANCODE_Z;
  14338. uint SCAN_DIRS;
  14339. uint SCAN_FILES;
  14340. uint SCAN_HIDDEN;
  14341. String SOUND_AMBIENT;
  14342. String SOUND_EFFECT;
  14343. String SOUND_MASTER;
  14344. String SOUND_MUSIC;
  14345. String SOUND_VOICE;
  14346. Color TRANSPARENT;
  14347. uint VO_DISABLE_OCCLUSION;
  14348. uint VO_DISABLE_SHADOWS;
  14349. uint VO_LOW_MATERIAL_QUALITY;
  14350. uint VO_NONE;
  14351. Color WHITE;
  14352. Color YELLOW;