AngelScriptAPI.h 340 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. // Classes
  10. class Animatable
  11. {
  12. // Methods:
  13. void ApplyAttributes();
  14. Variant GetAttribute(const String&) const;
  15. ValueAnimation GetAttributeAnimation(const String&) const;
  16. float GetAttributeAnimationSpeed(const String&) const;
  17. float GetAttributeAnimationTime(const String&) const;
  18. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19. Variant GetAttributeDefault(const String&) const;
  20. bool GetInterceptNetworkUpdate(const String&) const;
  21. bool Load(File, bool = false);
  22. bool Load(VectorBuffer&, bool = false);
  23. bool LoadXML(const XMLElement&, bool = false);
  24. void MarkNetworkUpdate() const;
  25. void RemoveAttributeAnimation(const String&);
  26. void RemoveInstanceDefault();
  27. void RemoveObjectAnimation();
  28. void ResetToDefault();
  29. bool Save(File) const;
  30. bool Save(VectorBuffer&) const;
  31. bool SaveXML(XMLElement&) const;
  32. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  33. void SetAnimationTime(float);
  34. bool SetAttribute(const String&, const Variant&);
  35. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  36. void SetAttributeAnimationSpeed(const String&, float);
  37. void SetAttributeAnimationTime(const String&, float);
  38. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  39. void SetInterceptNetworkUpdate(const String&, bool);
  40. // Properties:
  41. bool animationEnabled;
  42. /* readonly */
  43. Array<Variant> attributeDefaults;
  44. /* readonly */
  45. Array<AttributeInfo> attributeInfos;
  46. Array<Variant> attributes;
  47. /* readonly */
  48. String category;
  49. /* readonly */
  50. uint numAttributes;
  51. ObjectAnimation objectAnimation;
  52. /* readonly */
  53. int refs;
  54. bool temporary;
  55. /* readonly */
  56. StringHash type;
  57. /* readonly */
  58. String typeName;
  59. /* readonly */
  60. int weakRefs;
  61. };
  62. class AnimatedModel
  63. {
  64. // Methods:
  65. AnimationState AddAnimationState(Animation);
  66. void ApplyAttributes();
  67. void ApplyMaterialList(const String& = String ( ));
  68. void DrawDebugGeometry(DebugRenderer, bool);
  69. AnimationState GetAnimationState(Animation) const;
  70. AnimationState GetAnimationState(uint) const;
  71. Variant GetAttribute(const String&) const;
  72. ValueAnimation GetAttributeAnimation(const String&) const;
  73. float GetAttributeAnimationSpeed(const String&) const;
  74. float GetAttributeAnimationTime(const String&) const;
  75. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  76. Variant GetAttributeDefault(const String&) const;
  77. bool GetInterceptNetworkUpdate(const String&) const;
  78. float GetMorphWeight(uint) const;
  79. bool IsInView(Camera) const;
  80. bool Load(File, bool = false);
  81. bool Load(VectorBuffer&, bool = false);
  82. bool LoadXML(const XMLElement&, bool = false);
  83. void MarkNetworkUpdate() const;
  84. void Remove();
  85. void RemoveAllAnimationStates();
  86. void RemoveAnimationState(Animation);
  87. void RemoveAnimationState(AnimationState);
  88. void RemoveAnimationState(const String&);
  89. void RemoveAnimationState(uint);
  90. void RemoveAttributeAnimation(const String&);
  91. void RemoveInstanceDefault();
  92. void RemoveObjectAnimation();
  93. void ResetMorphWeights();
  94. void ResetToDefault();
  95. bool Save(File) const;
  96. bool Save(VectorBuffer&) const;
  97. bool SaveXML(XMLElement&) const;
  98. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  99. void SetAnimationTime(float);
  100. bool SetAttribute(const String&, const Variant&);
  101. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  102. void SetAttributeAnimationSpeed(const String&, float);
  103. void SetAttributeAnimationTime(const String&, float);
  104. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  105. void SetInterceptNetworkUpdate(const String&, bool);
  106. void SetMorphWeight(uint, float);
  107. // Properties:
  108. bool animationEnabled;
  109. float animationLodBias;
  110. /* readonly */
  111. Array<AnimationState> animationStates;
  112. /* readonly */
  113. Array<Variant> attributeDefaults;
  114. /* readonly */
  115. Array<AttributeInfo> attributeInfos;
  116. Array<Variant> attributes;
  117. /* readonly */
  118. BoundingBox boundingBox;
  119. bool castShadows;
  120. /* readonly */
  121. String category;
  122. float drawDistance;
  123. bool enabled;
  124. /* readonly */
  125. bool enabledEffective;
  126. /* readonly */
  127. uint id;
  128. /* readonly */
  129. bool inView;
  130. uint lightMask;
  131. float lodBias;
  132. /* writeonly */
  133. Material material;
  134. Array<Material> materials;
  135. uint maxLights;
  136. Model model;
  137. /* readonly */
  138. Array<String> morphNames;
  139. Array<float> morphWeights;
  140. /* readonly */
  141. Node node;
  142. /* readonly */
  143. uint numAnimationStates;
  144. /* readonly */
  145. uint numAttributes;
  146. /* readonly */
  147. uint numGeometries;
  148. /* readonly */
  149. uint numMorphs;
  150. ObjectAnimation objectAnimation;
  151. bool occludee;
  152. bool occluder;
  153. /* readonly */
  154. int refs;
  155. float shadowDistance;
  156. uint shadowMask;
  157. /* readonly */
  158. Skeleton skeleton;
  159. bool temporary;
  160. /* readonly */
  161. StringHash type;
  162. /* readonly */
  163. String typeName;
  164. bool updateInvisible;
  165. uint viewMask;
  166. /* readonly */
  167. int weakRefs;
  168. /* readonly */
  169. BoundingBox worldBoundingBox;
  170. /* readonly */
  171. Zone zone;
  172. uint zoneMask;
  173. };
  174. class AnimatedSprite2D
  175. {
  176. // Methods:
  177. void ApplyAttributes();
  178. void DrawDebugGeometry(DebugRenderer, bool);
  179. Variant GetAttribute(const String&) const;
  180. ValueAnimation GetAttributeAnimation(const String&) const;
  181. float GetAttributeAnimationSpeed(const String&) const;
  182. float GetAttributeAnimationTime(const String&) const;
  183. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  184. Variant GetAttributeDefault(const String&) const;
  185. bool GetInterceptNetworkUpdate(const String&) const;
  186. bool IsInView(Camera) const;
  187. bool Load(File, bool = false);
  188. bool Load(VectorBuffer&, bool = false);
  189. bool LoadXML(const XMLElement&, bool = false);
  190. void MarkNetworkUpdate() const;
  191. void Remove();
  192. void RemoveAttributeAnimation(const String&);
  193. void RemoveInstanceDefault();
  194. void RemoveObjectAnimation();
  195. void ResetToDefault();
  196. bool Save(File) const;
  197. bool Save(VectorBuffer&) const;
  198. bool SaveXML(XMLElement&) const;
  199. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  200. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  201. void SetAnimationTime(float);
  202. bool SetAttribute(const String&, const Variant&);
  203. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  204. void SetAttributeAnimationSpeed(const String&, float);
  205. void SetAttributeAnimationTime(const String&, float);
  206. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  207. void SetFlip(bool, bool);
  208. void SetInterceptNetworkUpdate(const String&, bool);
  209. // Properties:
  210. float alpha;
  211. String animation;
  212. bool animationEnabled;
  213. AnimationSet2D animationSet;
  214. /* readonly */
  215. Array<Variant> attributeDefaults;
  216. /* readonly */
  217. Array<AttributeInfo> attributeInfos;
  218. Array<Variant> attributes;
  219. BlendMode blendMode;
  220. /* readonly */
  221. BoundingBox boundingBox;
  222. bool castShadows;
  223. /* readonly */
  224. String category;
  225. Color color;
  226. Material customMaterial;
  227. float drawDistance;
  228. bool enabled;
  229. /* readonly */
  230. bool enabledEffective;
  231. String entity;
  232. bool flipX;
  233. bool flipY;
  234. Vector2 hotSpot;
  235. /* readonly */
  236. uint id;
  237. /* readonly */
  238. bool inView;
  239. int layer;
  240. uint lightMask;
  241. float lodBias;
  242. LoopMode2D loopMode;
  243. uint maxLights;
  244. /* readonly */
  245. Node node;
  246. /* readonly */
  247. uint numAttributes;
  248. ObjectAnimation objectAnimation;
  249. bool occludee;
  250. bool occluder;
  251. int orderInLayer;
  252. /* readonly */
  253. int refs;
  254. float shadowDistance;
  255. uint shadowMask;
  256. float speed;
  257. Sprite2D sprite;
  258. bool temporary;
  259. /* readonly */
  260. StringHash type;
  261. /* readonly */
  262. String typeName;
  263. bool useHotSpot;
  264. uint viewMask;
  265. /* readonly */
  266. int weakRefs;
  267. /* readonly */
  268. BoundingBox worldBoundingBox;
  269. uint zoneMask;
  270. };
  271. class Animation
  272. {
  273. // Methods:
  274. void AddTrigger(const AnimationTriggerPoint&);
  275. void AddTrigger(float, bool, const Variant&);
  276. AnimationTrack CreateTrack(const String&);
  277. bool Load(File);
  278. bool Load(VectorBuffer&);
  279. bool RemoveAllTracks();
  280. void RemoveAllTriggers();
  281. bool RemoveTrack(const String&);
  282. void RemoveTrigger(uint);
  283. bool Save(File) const;
  284. bool Save(VectorBuffer&) const;
  285. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  286. // Properties:
  287. String animationName;
  288. /* readonly */
  289. String category;
  290. float length;
  291. /* readonly */
  292. uint memoryUse;
  293. String name;
  294. /* readonly */
  295. uint numTracks;
  296. uint numTriggers;
  297. /* readonly */
  298. int refs;
  299. /* readonly */
  300. Array<AnimationTrack> tracks;
  301. Array<AnimationTriggerPoint> triggers;
  302. /* readonly */
  303. StringHash type;
  304. /* readonly */
  305. String typeName;
  306. /* readonly */
  307. uint useTimer;
  308. /* readonly */
  309. int weakRefs;
  310. };
  311. class AnimationController
  312. {
  313. // Methods:
  314. void ApplyAttributes();
  315. void DrawDebugGeometry(DebugRenderer, bool);
  316. bool Fade(const String&, float, float);
  317. bool FadeOthers(const String&, float, float);
  318. AnimationState GetAnimationState(StringHash) const;
  319. AnimationState GetAnimationState(const String&) const;
  320. Variant GetAttribute(const String&) const;
  321. ValueAnimation GetAttributeAnimation(const String&) const;
  322. float GetAttributeAnimationSpeed(const String&) const;
  323. float GetAttributeAnimationTime(const String&) const;
  324. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  325. Variant GetAttributeDefault(const String&) const;
  326. float GetAutoFade(const String&) const;
  327. float GetFadeTarget(const String&) const;
  328. float GetFadeTime(const String&) const;
  329. bool GetInterceptNetworkUpdate(const String&) const;
  330. uint8 GetLayer(const String&) const;
  331. float GetLength(const String&) const;
  332. bool GetLooped(const String&) const;
  333. bool GetRemoveOnCompletion(const String&);
  334. float GetSpeed(const String&) const;
  335. float GetTime(const String&) const;
  336. float GetWeight(const String&) const;
  337. bool IsAtEnd(const String&) const;
  338. bool IsFadingIn(const String&) const;
  339. bool IsFadingOut(const String&) const;
  340. bool IsPlaying(const String&) const;
  341. bool Load(File, bool = false);
  342. bool Load(VectorBuffer&, bool = false);
  343. bool LoadXML(const XMLElement&, bool = false);
  344. void MarkNetworkUpdate() const;
  345. bool Play(const String&, uint8, bool, float = 0.0f);
  346. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  347. void Remove();
  348. void RemoveAttributeAnimation(const String&);
  349. void RemoveInstanceDefault();
  350. void RemoveObjectAnimation();
  351. void ResetToDefault();
  352. bool Save(File) const;
  353. bool Save(VectorBuffer&) const;
  354. bool SaveXML(XMLElement&) const;
  355. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  356. void SetAnimationTime(float);
  357. bool SetAttribute(const String&, const Variant&);
  358. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  359. void SetAttributeAnimationSpeed(const String&, float);
  360. void SetAttributeAnimationTime(const String&, float);
  361. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  362. bool SetAutoFade(const String&, float);
  363. void SetInterceptNetworkUpdate(const String&, bool);
  364. bool SetLayer(const String&, uint8);
  365. bool SetLooped(const String&, bool);
  366. bool SetRemoveOnCompletion(const String&, bool);
  367. bool SetSpeed(const String&, float);
  368. bool SetStartBone(const String&, const String&);
  369. bool SetTime(const String&, float);
  370. bool SetWeight(const String&, float);
  371. void Stop(const String&, float = 0.0f);
  372. void StopAll(float = 0.0f);
  373. void StopLayer(uint8, float = 0.0f);
  374. const String& GetStartBone(const String&) const;
  375. // Properties:
  376. bool animationEnabled;
  377. /* readonly */
  378. Array<Variant> attributeDefaults;
  379. /* readonly */
  380. Array<AttributeInfo> attributeInfos;
  381. Array<Variant> attributes;
  382. /* readonly */
  383. String category;
  384. bool enabled;
  385. /* readonly */
  386. bool enabledEffective;
  387. /* readonly */
  388. uint id;
  389. /* readonly */
  390. Node node;
  391. /* readonly */
  392. uint numAttributes;
  393. ObjectAnimation objectAnimation;
  394. /* readonly */
  395. int refs;
  396. bool temporary;
  397. /* readonly */
  398. StringHash type;
  399. /* readonly */
  400. String typeName;
  401. /* readonly */
  402. int weakRefs;
  403. };
  404. class AnimationKeyFrame
  405. {
  406. // Properties:
  407. Vector3 position;
  408. Quaternion rotation;
  409. Vector3 scale;
  410. float time;
  411. };
  412. class AnimationSet2D
  413. {
  414. // Methods:
  415. String GetAnimation(uint) const;
  416. bool Load(File);
  417. bool Load(VectorBuffer&);
  418. bool Save(File) const;
  419. bool Save(VectorBuffer&) const;
  420. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  421. // Properties:
  422. /* readonly */
  423. String category;
  424. /* readonly */
  425. uint memoryUse;
  426. String name;
  427. /* readonly */
  428. uint numAnimations;
  429. /* readonly */
  430. int refs;
  431. /* readonly */
  432. StringHash type;
  433. /* readonly */
  434. String typeName;
  435. /* readonly */
  436. uint useTimer;
  437. /* readonly */
  438. int weakRefs;
  439. };
  440. class AnimationState
  441. {
  442. // Methods:
  443. void AddTime(float);
  444. void AddWeight(float);
  445. void Apply();
  446. float GetBoneWeight(StringHash) const;
  447. float GetBoneWeight(uint) const;
  448. uint GetTrackIndex(StringHash) const;
  449. uint GetTrackIndex(const String&) const;
  450. void SetBoneWeight(StringHash, float, bool = false);
  451. void SetBoneWeight(const String&, float, bool = false);
  452. void SetBoneWeight(uint, float, bool = false);
  453. // Properties:
  454. /* readonly */
  455. Animation animation;
  456. Array<float> boneWeights;
  457. /* readonly */
  458. bool enabled;
  459. uint8 layer;
  460. /* readonly */
  461. float length;
  462. bool looped;
  463. /* readonly */
  464. AnimatedModel model;
  465. /* readonly */
  466. Node node;
  467. /* readonly */
  468. int refs;
  469. Bone startBone;
  470. float time;
  471. /* readonly */
  472. int weakRefs;
  473. float weight;
  474. };
  475. class AnimationTrack
  476. {
  477. // Methods:
  478. void AddKeyFrame(const AnimationKeyFrame&);
  479. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  480. void RemoveAllKeyFrames();
  481. void RemoveKeyFrame(uint);
  482. // Properties:
  483. uint8 channelMask;
  484. Array<AnimationKeyFrame> keyFrames;
  485. String name;
  486. StringHash nameHash;
  487. /* readonly */
  488. uint numKeyFrames;
  489. };
  490. class AnimationTriggerPoint
  491. {
  492. // Properties:
  493. Variant data;
  494. float time;
  495. };
  496. template <class T> class Array
  497. {
  498. // Methods:
  499. void Clear();
  500. void Erase(uint);
  501. int Find(const T&) const;
  502. int Find(uint, const T&) const;
  503. int FindByRef(const T&) const;
  504. int FindByRef(uint, const T&) const;
  505. void Insert(uint, const T&);
  506. void Pop();
  507. void Push(const T&);
  508. void Reserve(uint);
  509. void Resize(uint);
  510. void Reverse();
  511. void Sort();
  512. void Sort(uint, uint);
  513. void SortReverse();
  514. void SortReverse(uint, uint);
  515. // Properties:
  516. /* readonly */
  517. bool empty;
  518. uint length;
  519. };
  520. class AttributeInfo
  521. {
  522. // Properties:
  523. Variant defaultValue;
  524. /* readonly */
  525. Array<String> enumNames;
  526. uint mode;
  527. String name;
  528. VariantType type;
  529. };
  530. class Audio
  531. {
  532. // Methods:
  533. bool HasMasterGain(const String&) const;
  534. bool Play();
  535. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  536. void SetMode(int, int, bool, bool = true);
  537. void Stop();
  538. // Properties:
  539. /* readonly */
  540. String category;
  541. /* readonly */
  542. bool initialized;
  543. /* readonly */
  544. bool interpolation;
  545. SoundListener listener;
  546. Array<float> masterGain;
  547. /* readonly */
  548. int mixRate;
  549. /* readonly */
  550. bool playing;
  551. /* readonly */
  552. int refs;
  553. /* readonly */
  554. uint sampleSize;
  555. /* readonly */
  556. bool stereo;
  557. /* readonly */
  558. StringHash type;
  559. /* readonly */
  560. String typeName;
  561. /* readonly */
  562. int weakRefs;
  563. };
  564. class BiasParameters
  565. {
  566. // Properties:
  567. float constantBias;
  568. float slopeScaledBias;
  569. };
  570. class Billboard
  571. {
  572. // Properties:
  573. Color color;
  574. bool enabled;
  575. Vector3 position;
  576. float rotation;
  577. Vector2 size;
  578. Rect uv;
  579. };
  580. class BillboardSet
  581. {
  582. // Methods:
  583. void ApplyAttributes();
  584. void Commit();
  585. void DrawDebugGeometry(DebugRenderer, bool);
  586. Variant GetAttribute(const String&) const;
  587. ValueAnimation GetAttributeAnimation(const String&) const;
  588. float GetAttributeAnimationSpeed(const String&) const;
  589. float GetAttributeAnimationTime(const String&) const;
  590. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  591. Variant GetAttributeDefault(const String&) const;
  592. bool GetInterceptNetworkUpdate(const String&) const;
  593. bool IsInView(Camera) const;
  594. bool Load(File, bool = false);
  595. bool Load(VectorBuffer&, bool = false);
  596. bool LoadXML(const XMLElement&, bool = false);
  597. void MarkNetworkUpdate() const;
  598. void Remove();
  599. void RemoveAttributeAnimation(const String&);
  600. void RemoveInstanceDefault();
  601. void RemoveObjectAnimation();
  602. void ResetToDefault();
  603. bool Save(File) const;
  604. bool Save(VectorBuffer&) const;
  605. bool SaveXML(XMLElement&) const;
  606. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  607. void SetAnimationTime(float);
  608. bool SetAttribute(const String&, const Variant&);
  609. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  610. void SetAttributeAnimationSpeed(const String&, float);
  611. void SetAttributeAnimationTime(const String&, float);
  612. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  613. void SetInterceptNetworkUpdate(const String&, bool);
  614. // Properties:
  615. bool animationEnabled;
  616. float animationLodBias;
  617. /* readonly */
  618. Array<Variant> attributeDefaults;
  619. /* readonly */
  620. Array<AttributeInfo> attributeInfos;
  621. Array<Variant> attributes;
  622. /* readonly */
  623. Array<Billboard> billboards;
  624. /* readonly */
  625. BoundingBox boundingBox;
  626. bool castShadows;
  627. /* readonly */
  628. String category;
  629. float drawDistance;
  630. bool enabled;
  631. /* readonly */
  632. bool enabledEffective;
  633. FaceCameraMode faceCameraMode;
  634. /* readonly */
  635. uint id;
  636. /* readonly */
  637. bool inView;
  638. uint lightMask;
  639. float lodBias;
  640. Material material;
  641. uint maxLights;
  642. /* readonly */
  643. Node node;
  644. /* readonly */
  645. uint numAttributes;
  646. uint numBillboards;
  647. ObjectAnimation objectAnimation;
  648. bool occludee;
  649. bool occluder;
  650. /* readonly */
  651. int refs;
  652. bool relative;
  653. bool scaled;
  654. float shadowDistance;
  655. uint shadowMask;
  656. bool sorted;
  657. bool temporary;
  658. /* readonly */
  659. StringHash type;
  660. /* readonly */
  661. String typeName;
  662. uint viewMask;
  663. /* readonly */
  664. int weakRefs;
  665. /* readonly */
  666. BoundingBox worldBoundingBox;
  667. /* readonly */
  668. Zone zone;
  669. uint zoneMask;
  670. };
  671. class Bone
  672. {
  673. // Properties:
  674. bool animated;
  675. BoundingBox boundingBox;
  676. Vector3 initialPosition;
  677. Quaternion initialRotation;
  678. Vector3 initialScale;
  679. String name;
  680. Node node;
  681. float radius;
  682. };
  683. class BorderImage
  684. {
  685. // Methods:
  686. void AddChild(UIElement);
  687. void ApplyAttributes();
  688. void BringToFront();
  689. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  690. void DisableLayoutUpdate();
  691. IntVector2 ElementToScreen(const IntVector2&);
  692. void EnableLayoutUpdate();
  693. uint FindChild(UIElement) const;
  694. Variant GetAttribute(const String&) const;
  695. ValueAnimation GetAttributeAnimation(const String&) const;
  696. float GetAttributeAnimationSpeed(const String&) const;
  697. float GetAttributeAnimationTime(const String&) const;
  698. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  699. Variant GetAttributeDefault(const String&) const;
  700. UIElement GetChild(const String&, bool = false) const;
  701. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  702. Array<UIElement> GetChildren(bool = false) const;
  703. UIElement GetElementEventSender() const;
  704. bool GetInterceptNetworkUpdate(const String&) const;
  705. uint GetNumChildren(bool) const;
  706. void InsertChild(uint, UIElement);
  707. bool IsInside(IntVector2, bool);
  708. bool IsInsideCombined(IntVector2, bool);
  709. bool Load(File, bool = false);
  710. bool Load(VectorBuffer&, bool = false);
  711. bool LoadChildXML(XMLFile, XMLFile = null);
  712. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  713. bool LoadXML(File);
  714. bool LoadXML(VectorBuffer&);
  715. bool LoadXML(XMLFile, XMLFile);
  716. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  717. bool LoadXML(const XMLElement&, bool = false);
  718. void MarkNetworkUpdate() const;
  719. void Remove();
  720. void RemoveAllChildren();
  721. void RemoveAttributeAnimation(const String&);
  722. void RemoveChild(UIElement, uint = 0);
  723. void RemoveChild(uint);
  724. void RemoveInstanceDefault();
  725. void RemoveObjectAnimation();
  726. void ResetDeepEnabled();
  727. void ResetToDefault();
  728. bool Save(File) const;
  729. bool Save(VectorBuffer&) const;
  730. bool SaveXML(File, const String& = "\t");
  731. bool SaveXML(VectorBuffer&, const String& = "\t");
  732. bool SaveXML(XMLElement&) const;
  733. IntVector2 ScreenToElement(const IntVector2&);
  734. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  735. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  736. void SetAnimationTime(float);
  737. bool SetAttribute(const String&, const Variant&);
  738. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  739. void SetAttributeAnimationSpeed(const String&, float);
  740. void SetAttributeAnimationTime(const String&, float);
  741. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  742. void SetDeepEnabled(bool);
  743. void SetEnabledRecursive(bool);
  744. void SetFixedHeight(int);
  745. void SetFixedSize(int, int);
  746. void SetFixedWidth(int);
  747. void SetFullImageRect();
  748. void SetHoverOffset(int, int);
  749. void SetInterceptNetworkUpdate(const String&, bool);
  750. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  751. void SetMaxSize(int, int);
  752. void SetMinSize(int, int);
  753. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  754. void SetPosition(int, int);
  755. void SetSize(int, int);
  756. bool SetStyle(const String&, XMLFile = null);
  757. bool SetStyle(const XMLElement&);
  758. bool SetStyleAuto(XMLFile = null);
  759. void UpdateLayout();
  760. const Variant& GetVar(const StringHash&);
  761. // Properties:
  762. bool animationEnabled;
  763. /* readonly */
  764. Array<Variant> attributeDefaults;
  765. /* readonly */
  766. Array<AttributeInfo> attributeInfos;
  767. Array<Variant> attributes;
  768. BlendMode blendMode;
  769. IntRect border;
  770. bool bringToBack;
  771. bool bringToFront;
  772. /* readonly */
  773. String category;
  774. /* readonly */
  775. IntVector2 childOffset;
  776. /* readonly */
  777. Array<UIElement> children;
  778. IntRect clipBorder;
  779. bool clipChildren;
  780. /* writeonly */
  781. Color color;
  782. /* readonly */
  783. bool colorGradient;
  784. Array<Color> colors;
  785. /* readonly */
  786. IntRect combinedScreenRect;
  787. XMLFile defaultStyle;
  788. /* readonly */
  789. float derivedOpacity;
  790. /* readonly */
  791. uint dragButtonCombo;
  792. /* readonly */
  793. int dragButtonCount;
  794. uint dragDropMode;
  795. bool editable;
  796. bool elementEventSender;
  797. bool enabled;
  798. /* readonly */
  799. bool enabledSelf;
  800. /* readonly */
  801. bool fixedHeight;
  802. /* readonly */
  803. bool fixedSize;
  804. /* readonly */
  805. bool fixedWidth;
  806. bool focus;
  807. FocusMode focusMode;
  808. int height;
  809. HorizontalAlignment horizontalAlignment;
  810. IntVector2 hoverOffset;
  811. /* readonly */
  812. bool hovering;
  813. IntRect imageBorder;
  814. IntRect imageRect;
  815. int indent;
  816. int indentSpacing;
  817. /* readonly */
  818. int indentWidth;
  819. bool internal;
  820. IntRect layoutBorder;
  821. Vector2 layoutFlexScale;
  822. LayoutMode layoutMode;
  823. int layoutSpacing;
  824. int maxHeight;
  825. IntVector2 maxSize;
  826. int maxWidth;
  827. int minHeight;
  828. IntVector2 minSize;
  829. int minWidth;
  830. String name;
  831. /* readonly */
  832. uint numAllChildren;
  833. /* readonly */
  834. uint numAttributes;
  835. /* readonly */
  836. uint numChildren;
  837. ObjectAnimation objectAnimation;
  838. float opacity;
  839. UIElement parent;
  840. IntVector2 position;
  841. int priority;
  842. /* readonly */
  843. int refs;
  844. /* readonly */
  845. UIElement root;
  846. /* readonly */
  847. IntVector2 screenPosition;
  848. bool selected;
  849. IntVector2 size;
  850. bool sortChildren;
  851. String style;
  852. bool temporary;
  853. Texture texture;
  854. bool tiled;
  855. TraversalMode traversalMode;
  856. /* readonly */
  857. StringHash type;
  858. /* readonly */
  859. String typeName;
  860. bool useDerivedOpacity;
  861. /* readonly */
  862. VariantMap vars;
  863. VerticalAlignment verticalAlignment;
  864. bool visible;
  865. /* readonly */
  866. bool visibleEffective;
  867. /* readonly */
  868. int weakRefs;
  869. int width;
  870. };
  871. class BoundingBox
  872. {
  873. // Methods:
  874. void Clear();
  875. void Clip(const BoundingBox&);
  876. void Define(const BoundingBox&);
  877. void Define(const Frustum&);
  878. void Define(const Polyhedron&);
  879. void Define(const Sphere&);
  880. void Define(const Vector3&);
  881. void Define(const Vector3&, const Vector3&);
  882. void Define(float, float);
  883. bool Defined() const;
  884. Intersection IsInside(const BoundingBox&) const;
  885. Intersection IsInside(const Sphere&) const;
  886. Intersection IsInside(const Vector3&) const;
  887. Intersection IsInsideFast(const BoundingBox&) const;
  888. Intersection IsInsideFast(const Sphere&) const;
  889. void Merge(const BoundingBox&);
  890. void Merge(const Frustum&);
  891. void Merge(const Polyhedron&);
  892. void Merge(const Sphere&);
  893. void Merge(const Vector3&);
  894. Rect Projected(const Matrix4&) const;
  895. String ToString() const;
  896. void Transform(const Matrix3&);
  897. void Transform(const Matrix3x4&);
  898. BoundingBox Transformed(const Matrix3&) const;
  899. BoundingBox Transformed(const Matrix3x4&) const;
  900. // Properties:
  901. /* readonly */
  902. Vector3 center;
  903. /* readonly */
  904. Vector3 halfSize;
  905. Vector3 max;
  906. Vector3 min;
  907. /* readonly */
  908. Vector3 size;
  909. };
  910. class Button
  911. {
  912. // Methods:
  913. void AddChild(UIElement);
  914. void ApplyAttributes();
  915. void BringToFront();
  916. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  917. void DisableLayoutUpdate();
  918. IntVector2 ElementToScreen(const IntVector2&);
  919. void EnableLayoutUpdate();
  920. uint FindChild(UIElement) const;
  921. Variant GetAttribute(const String&) const;
  922. ValueAnimation GetAttributeAnimation(const String&) const;
  923. float GetAttributeAnimationSpeed(const String&) const;
  924. float GetAttributeAnimationTime(const String&) const;
  925. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  926. Variant GetAttributeDefault(const String&) const;
  927. UIElement GetChild(const String&, bool = false) const;
  928. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  929. Array<UIElement> GetChildren(bool = false) const;
  930. UIElement GetElementEventSender() const;
  931. bool GetInterceptNetworkUpdate(const String&) const;
  932. uint GetNumChildren(bool) const;
  933. void InsertChild(uint, UIElement);
  934. bool IsInside(IntVector2, bool);
  935. bool IsInsideCombined(IntVector2, bool);
  936. bool Load(File, bool = false);
  937. bool Load(VectorBuffer&, bool = false);
  938. bool LoadChildXML(XMLFile, XMLFile = null);
  939. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  940. bool LoadXML(File);
  941. bool LoadXML(VectorBuffer&);
  942. bool LoadXML(XMLFile, XMLFile);
  943. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  944. bool LoadXML(const XMLElement&, bool = false);
  945. void MarkNetworkUpdate() const;
  946. void Remove();
  947. void RemoveAllChildren();
  948. void RemoveAttributeAnimation(const String&);
  949. void RemoveChild(UIElement, uint = 0);
  950. void RemoveChild(uint);
  951. void RemoveInstanceDefault();
  952. void RemoveObjectAnimation();
  953. void ResetDeepEnabled();
  954. void ResetToDefault();
  955. bool Save(File) const;
  956. bool Save(VectorBuffer&) const;
  957. bool SaveXML(File, const String& = "\t");
  958. bool SaveXML(VectorBuffer&, const String& = "\t");
  959. bool SaveXML(XMLElement&) const;
  960. IntVector2 ScreenToElement(const IntVector2&);
  961. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  962. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  963. void SetAnimationTime(float);
  964. bool SetAttribute(const String&, const Variant&);
  965. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  966. void SetAttributeAnimationSpeed(const String&, float);
  967. void SetAttributeAnimationTime(const String&, float);
  968. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  969. void SetDeepEnabled(bool);
  970. void SetEnabledRecursive(bool);
  971. void SetFixedHeight(int);
  972. void SetFixedSize(int, int);
  973. void SetFixedWidth(int);
  974. void SetFullImageRect();
  975. void SetHoverOffset(int, int);
  976. void SetInterceptNetworkUpdate(const String&, bool);
  977. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  978. void SetMaxSize(int, int);
  979. void SetMinSize(int, int);
  980. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  981. void SetPosition(int, int);
  982. void SetPressedChildOffset(int, int);
  983. void SetPressedOffset(int, int);
  984. void SetRepeat(float, float);
  985. void SetSize(int, int);
  986. bool SetStyle(const String&, XMLFile = null);
  987. bool SetStyle(const XMLElement&);
  988. bool SetStyleAuto(XMLFile = null);
  989. void UpdateLayout();
  990. const Variant& GetVar(const StringHash&);
  991. // Properties:
  992. bool animationEnabled;
  993. /* readonly */
  994. Array<Variant> attributeDefaults;
  995. /* readonly */
  996. Array<AttributeInfo> attributeInfos;
  997. Array<Variant> attributes;
  998. BlendMode blendMode;
  999. IntRect border;
  1000. bool bringToBack;
  1001. bool bringToFront;
  1002. /* readonly */
  1003. String category;
  1004. /* readonly */
  1005. IntVector2 childOffset;
  1006. /* readonly */
  1007. Array<UIElement> children;
  1008. IntRect clipBorder;
  1009. bool clipChildren;
  1010. /* writeonly */
  1011. Color color;
  1012. /* readonly */
  1013. bool colorGradient;
  1014. Array<Color> colors;
  1015. /* readonly */
  1016. IntRect combinedScreenRect;
  1017. XMLFile defaultStyle;
  1018. /* readonly */
  1019. float derivedOpacity;
  1020. /* readonly */
  1021. uint dragButtonCombo;
  1022. /* readonly */
  1023. int dragButtonCount;
  1024. uint dragDropMode;
  1025. bool editable;
  1026. bool elementEventSender;
  1027. bool enabled;
  1028. /* readonly */
  1029. bool enabledSelf;
  1030. /* readonly */
  1031. bool fixedHeight;
  1032. /* readonly */
  1033. bool fixedSize;
  1034. /* readonly */
  1035. bool fixedWidth;
  1036. bool focus;
  1037. FocusMode focusMode;
  1038. int height;
  1039. HorizontalAlignment horizontalAlignment;
  1040. IntVector2 hoverOffset;
  1041. /* readonly */
  1042. bool hovering;
  1043. IntRect imageBorder;
  1044. IntRect imageRect;
  1045. int indent;
  1046. int indentSpacing;
  1047. /* readonly */
  1048. int indentWidth;
  1049. bool internal;
  1050. IntRect layoutBorder;
  1051. Vector2 layoutFlexScale;
  1052. LayoutMode layoutMode;
  1053. int layoutSpacing;
  1054. int maxHeight;
  1055. IntVector2 maxSize;
  1056. int maxWidth;
  1057. int minHeight;
  1058. IntVector2 minSize;
  1059. int minWidth;
  1060. String name;
  1061. /* readonly */
  1062. uint numAllChildren;
  1063. /* readonly */
  1064. uint numAttributes;
  1065. /* readonly */
  1066. uint numChildren;
  1067. ObjectAnimation objectAnimation;
  1068. float opacity;
  1069. UIElement parent;
  1070. IntVector2 position;
  1071. /* readonly */
  1072. bool pressed;
  1073. IntVector2 pressedChildOffset;
  1074. IntVector2 pressedOffset;
  1075. int priority;
  1076. /* readonly */
  1077. int refs;
  1078. float repeatDelay;
  1079. float repeatRate;
  1080. /* readonly */
  1081. UIElement root;
  1082. /* readonly */
  1083. IntVector2 screenPosition;
  1084. bool selected;
  1085. IntVector2 size;
  1086. bool sortChildren;
  1087. String style;
  1088. bool temporary;
  1089. Texture texture;
  1090. bool tiled;
  1091. TraversalMode traversalMode;
  1092. /* readonly */
  1093. StringHash type;
  1094. /* readonly */
  1095. String typeName;
  1096. bool useDerivedOpacity;
  1097. /* readonly */
  1098. VariantMap vars;
  1099. VerticalAlignment verticalAlignment;
  1100. bool visible;
  1101. /* readonly */
  1102. bool visibleEffective;
  1103. /* readonly */
  1104. int weakRefs;
  1105. int width;
  1106. };
  1107. class Camera
  1108. {
  1109. // Methods:
  1110. void ApplyAttributes();
  1111. void DrawDebugGeometry(DebugRenderer, bool);
  1112. Variant GetAttribute(const String&) const;
  1113. ValueAnimation GetAttributeAnimation(const String&) const;
  1114. float GetAttributeAnimationSpeed(const String&) const;
  1115. float GetAttributeAnimationTime(const String&) const;
  1116. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1117. Variant GetAttributeDefault(const String&) const;
  1118. float GetDistance(const Vector3&) const;
  1119. float GetDistanceSquared(const Vector3&) const;
  1120. bool GetInterceptNetworkUpdate(const String&) const;
  1121. Ray GetScreenRay(float, float) const;
  1122. Frustum GetSplitFrustum(float, float) const;
  1123. bool Load(File, bool = false);
  1124. bool Load(VectorBuffer&, bool = false);
  1125. bool LoadXML(const XMLElement&, bool = false);
  1126. void MarkNetworkUpdate() const;
  1127. void Remove();
  1128. void RemoveAttributeAnimation(const String&);
  1129. void RemoveInstanceDefault();
  1130. void RemoveObjectAnimation();
  1131. void ResetToDefault();
  1132. bool Save(File) const;
  1133. bool Save(VectorBuffer&) const;
  1134. bool SaveXML(XMLElement&) const;
  1135. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1136. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1137. void SetAnimationTime(float);
  1138. bool SetAttribute(const String&, const Variant&);
  1139. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1140. void SetAttributeAnimationSpeed(const String&, float);
  1141. void SetAttributeAnimationTime(const String&, float);
  1142. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1143. void SetInterceptNetworkUpdate(const String&, bool);
  1144. void SetOrthoSize(const Vector2&);
  1145. Vector2 WorldToScreenPoint(const Vector3&) const;
  1146. // Properties:
  1147. bool animationEnabled;
  1148. float aspectRatio;
  1149. /* readonly */
  1150. Array<Variant> attributeDefaults;
  1151. /* readonly */
  1152. Array<AttributeInfo> attributeInfos;
  1153. Array<Variant> attributes;
  1154. bool autoAspectRatio;
  1155. /* readonly */
  1156. String category;
  1157. Plane clipPlane;
  1158. /* readonly */
  1159. Matrix3x4 effectiveWorldTransform;
  1160. bool enabled;
  1161. /* readonly */
  1162. bool enabledEffective;
  1163. float farClip;
  1164. FillMode fillMode;
  1165. float fov;
  1166. /* readonly */
  1167. Frustum frustum;
  1168. /* readonly */
  1169. float halfViewSize;
  1170. /* readonly */
  1171. uint id;
  1172. float lodBias;
  1173. float nearClip;
  1174. /* readonly */
  1175. Node node;
  1176. /* readonly */
  1177. uint numAttributes;
  1178. ObjectAnimation objectAnimation;
  1179. float orthoSize;
  1180. bool orthographic;
  1181. /* readonly */
  1182. Matrix4 projection;
  1183. Vector2 projectionOffset;
  1184. Plane reflectionPlane;
  1185. /* readonly */
  1186. int refs;
  1187. bool temporary;
  1188. /* readonly */
  1189. StringHash type;
  1190. /* readonly */
  1191. String typeName;
  1192. bool useClipping;
  1193. bool useReflection;
  1194. /* readonly */
  1195. Matrix3x4 view;
  1196. uint viewMask;
  1197. uint viewOverrideFlags;
  1198. /* readonly */
  1199. Frustum viewSpaceFrustum;
  1200. /* readonly */
  1201. int weakRefs;
  1202. float zoom;
  1203. };
  1204. class CascadeParameters
  1205. {
  1206. // Properties:
  1207. float biasAutoAdjust;
  1208. float fadeStart;
  1209. float split1;
  1210. float split2;
  1211. float split3;
  1212. float split4;
  1213. };
  1214. class CheckBox
  1215. {
  1216. // Methods:
  1217. void AddChild(UIElement);
  1218. void ApplyAttributes();
  1219. void BringToFront();
  1220. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1221. void DisableLayoutUpdate();
  1222. IntVector2 ElementToScreen(const IntVector2&);
  1223. void EnableLayoutUpdate();
  1224. uint FindChild(UIElement) const;
  1225. Variant GetAttribute(const String&) const;
  1226. ValueAnimation GetAttributeAnimation(const String&) const;
  1227. float GetAttributeAnimationSpeed(const String&) const;
  1228. float GetAttributeAnimationTime(const String&) const;
  1229. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1230. Variant GetAttributeDefault(const String&) const;
  1231. UIElement GetChild(const String&, bool = false) const;
  1232. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1233. Array<UIElement> GetChildren(bool = false) const;
  1234. UIElement GetElementEventSender() const;
  1235. bool GetInterceptNetworkUpdate(const String&) const;
  1236. uint GetNumChildren(bool) const;
  1237. void InsertChild(uint, UIElement);
  1238. bool IsInside(IntVector2, bool);
  1239. bool IsInsideCombined(IntVector2, bool);
  1240. bool Load(File, bool = false);
  1241. bool Load(VectorBuffer&, bool = false);
  1242. bool LoadChildXML(XMLFile, XMLFile = null);
  1243. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1244. bool LoadXML(File);
  1245. bool LoadXML(VectorBuffer&);
  1246. bool LoadXML(XMLFile, XMLFile);
  1247. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1248. bool LoadXML(const XMLElement&, bool = false);
  1249. void MarkNetworkUpdate() const;
  1250. void Remove();
  1251. void RemoveAllChildren();
  1252. void RemoveAttributeAnimation(const String&);
  1253. void RemoveChild(UIElement, uint = 0);
  1254. void RemoveChild(uint);
  1255. void RemoveInstanceDefault();
  1256. void RemoveObjectAnimation();
  1257. void ResetDeepEnabled();
  1258. void ResetToDefault();
  1259. bool Save(File) const;
  1260. bool Save(VectorBuffer&) const;
  1261. bool SaveXML(File, const String& = "\t");
  1262. bool SaveXML(VectorBuffer&, const String& = "\t");
  1263. bool SaveXML(XMLElement&) const;
  1264. IntVector2 ScreenToElement(const IntVector2&);
  1265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1266. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1267. void SetAnimationTime(float);
  1268. bool SetAttribute(const String&, const Variant&);
  1269. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1270. void SetAttributeAnimationSpeed(const String&, float);
  1271. void SetAttributeAnimationTime(const String&, float);
  1272. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1273. void SetCheckedOffset(int, int);
  1274. void SetDeepEnabled(bool);
  1275. void SetEnabledRecursive(bool);
  1276. void SetFixedHeight(int);
  1277. void SetFixedSize(int, int);
  1278. void SetFixedWidth(int);
  1279. void SetFullImageRect();
  1280. void SetHoverOffset(int, int);
  1281. void SetInterceptNetworkUpdate(const String&, bool);
  1282. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1283. void SetMaxSize(int, int);
  1284. void SetMinSize(int, int);
  1285. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1286. void SetPosition(int, int);
  1287. void SetSize(int, int);
  1288. bool SetStyle(const String&, XMLFile = null);
  1289. bool SetStyle(const XMLElement&);
  1290. bool SetStyleAuto(XMLFile = null);
  1291. void UpdateLayout();
  1292. const Variant& GetVar(const StringHash&);
  1293. // Properties:
  1294. bool animationEnabled;
  1295. /* readonly */
  1296. Array<Variant> attributeDefaults;
  1297. /* readonly */
  1298. Array<AttributeInfo> attributeInfos;
  1299. Array<Variant> attributes;
  1300. BlendMode blendMode;
  1301. IntRect border;
  1302. bool bringToBack;
  1303. bool bringToFront;
  1304. /* readonly */
  1305. String category;
  1306. bool checked;
  1307. IntVector2 checkedOffset;
  1308. /* readonly */
  1309. IntVector2 childOffset;
  1310. /* readonly */
  1311. Array<UIElement> children;
  1312. IntRect clipBorder;
  1313. bool clipChildren;
  1314. /* writeonly */
  1315. Color color;
  1316. /* readonly */
  1317. bool colorGradient;
  1318. Array<Color> colors;
  1319. /* readonly */
  1320. IntRect combinedScreenRect;
  1321. XMLFile defaultStyle;
  1322. /* readonly */
  1323. float derivedOpacity;
  1324. /* readonly */
  1325. uint dragButtonCombo;
  1326. /* readonly */
  1327. int dragButtonCount;
  1328. uint dragDropMode;
  1329. bool editable;
  1330. bool elementEventSender;
  1331. bool enabled;
  1332. /* readonly */
  1333. bool enabledSelf;
  1334. /* readonly */
  1335. bool fixedHeight;
  1336. /* readonly */
  1337. bool fixedSize;
  1338. /* readonly */
  1339. bool fixedWidth;
  1340. bool focus;
  1341. FocusMode focusMode;
  1342. int height;
  1343. HorizontalAlignment horizontalAlignment;
  1344. IntVector2 hoverOffset;
  1345. /* readonly */
  1346. bool hovering;
  1347. IntRect imageBorder;
  1348. IntRect imageRect;
  1349. int indent;
  1350. int indentSpacing;
  1351. /* readonly */
  1352. int indentWidth;
  1353. bool internal;
  1354. IntRect layoutBorder;
  1355. Vector2 layoutFlexScale;
  1356. LayoutMode layoutMode;
  1357. int layoutSpacing;
  1358. int maxHeight;
  1359. IntVector2 maxSize;
  1360. int maxWidth;
  1361. int minHeight;
  1362. IntVector2 minSize;
  1363. int minWidth;
  1364. String name;
  1365. /* readonly */
  1366. uint numAllChildren;
  1367. /* readonly */
  1368. uint numAttributes;
  1369. /* readonly */
  1370. uint numChildren;
  1371. ObjectAnimation objectAnimation;
  1372. float opacity;
  1373. UIElement parent;
  1374. IntVector2 position;
  1375. int priority;
  1376. /* readonly */
  1377. int refs;
  1378. /* readonly */
  1379. UIElement root;
  1380. /* readonly */
  1381. IntVector2 screenPosition;
  1382. bool selected;
  1383. IntVector2 size;
  1384. bool sortChildren;
  1385. String style;
  1386. bool temporary;
  1387. Texture texture;
  1388. bool tiled;
  1389. TraversalMode traversalMode;
  1390. /* readonly */
  1391. StringHash type;
  1392. /* readonly */
  1393. String typeName;
  1394. bool useDerivedOpacity;
  1395. /* readonly */
  1396. VariantMap vars;
  1397. VerticalAlignment verticalAlignment;
  1398. bool visible;
  1399. /* readonly */
  1400. bool visibleEffective;
  1401. /* readonly */
  1402. int weakRefs;
  1403. int width;
  1404. };
  1405. class CollisionBox2D
  1406. {
  1407. // Methods:
  1408. void ApplyAttributes();
  1409. void DrawDebugGeometry(DebugRenderer, bool);
  1410. Variant GetAttribute(const String&) const;
  1411. ValueAnimation GetAttributeAnimation(const String&) const;
  1412. float GetAttributeAnimationSpeed(const String&) const;
  1413. float GetAttributeAnimationTime(const String&) const;
  1414. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1415. Variant GetAttributeDefault(const String&) const;
  1416. bool GetInterceptNetworkUpdate(const String&) const;
  1417. bool Load(File, bool = false);
  1418. bool Load(VectorBuffer&, bool = false);
  1419. bool LoadXML(const XMLElement&, bool = false);
  1420. void MarkNetworkUpdate() const;
  1421. void Remove();
  1422. void RemoveAttributeAnimation(const String&);
  1423. void RemoveInstanceDefault();
  1424. void RemoveObjectAnimation();
  1425. void ResetToDefault();
  1426. bool Save(File) const;
  1427. bool Save(VectorBuffer&) const;
  1428. bool SaveXML(XMLElement&) const;
  1429. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1430. void SetAnimationTime(float);
  1431. bool SetAttribute(const String&, const Variant&);
  1432. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1433. void SetAttributeAnimationSpeed(const String&, float);
  1434. void SetAttributeAnimationTime(const String&, float);
  1435. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1436. void SetCenter(float, float);
  1437. void SetInterceptNetworkUpdate(const String&, bool);
  1438. void SetSize(float, float);
  1439. // Properties:
  1440. float angle;
  1441. bool animationEnabled;
  1442. /* readonly */
  1443. Array<Variant> attributeDefaults;
  1444. /* readonly */
  1445. Array<AttributeInfo> attributeInfos;
  1446. Array<Variant> attributes;
  1447. /* readonly */
  1448. String category;
  1449. int categoryBits;
  1450. Vector2 center;
  1451. float density;
  1452. bool enabled;
  1453. /* readonly */
  1454. bool enabledEffective;
  1455. float friction;
  1456. int groupIndex;
  1457. /* readonly */
  1458. uint id;
  1459. /* readonly */
  1460. float inertia;
  1461. int maskBits;
  1462. /* readonly */
  1463. float mass;
  1464. /* readonly */
  1465. Vector2 massCenter;
  1466. /* readonly */
  1467. Node node;
  1468. /* readonly */
  1469. uint numAttributes;
  1470. ObjectAnimation objectAnimation;
  1471. /* readonly */
  1472. int refs;
  1473. float restitution;
  1474. Vector2 size;
  1475. bool temporary;
  1476. bool trigger;
  1477. /* readonly */
  1478. StringHash type;
  1479. /* readonly */
  1480. String typeName;
  1481. /* readonly */
  1482. int weakRefs;
  1483. };
  1484. class CollisionChain2D
  1485. {
  1486. // Methods:
  1487. void ApplyAttributes();
  1488. void DrawDebugGeometry(DebugRenderer, bool);
  1489. Variant GetAttribute(const String&) const;
  1490. ValueAnimation GetAttributeAnimation(const String&) const;
  1491. float GetAttributeAnimationSpeed(const String&) const;
  1492. float GetAttributeAnimationTime(const String&) const;
  1493. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1494. Variant GetAttributeDefault(const String&) const;
  1495. bool GetInterceptNetworkUpdate(const String&) const;
  1496. Array<Vector2> GetVertices() const;
  1497. bool Load(File, bool = false);
  1498. bool Load(VectorBuffer&, bool = false);
  1499. bool LoadXML(const XMLElement&, bool = false);
  1500. void MarkNetworkUpdate() const;
  1501. void Remove();
  1502. void RemoveAttributeAnimation(const String&);
  1503. void RemoveInstanceDefault();
  1504. void RemoveObjectAnimation();
  1505. void ResetToDefault();
  1506. bool Save(File) const;
  1507. bool Save(VectorBuffer&) const;
  1508. bool 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 SetInterceptNetworkUpdate(const String&, bool);
  1517. void SetVertex(uint, const Vector2&);
  1518. void SetVertices(Array<Vector2>);
  1519. const Vector2& GetVertex(uint) const;
  1520. // Properties:
  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. float density;
  1531. bool enabled;
  1532. /* readonly */
  1533. bool enabledEffective;
  1534. float friction;
  1535. int groupIndex;
  1536. /* readonly */
  1537. uint id;
  1538. /* readonly */
  1539. float inertia;
  1540. bool loop;
  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. bool temporary;
  1555. bool trigger;
  1556. /* readonly */
  1557. StringHash type;
  1558. /* readonly */
  1559. String typeName;
  1560. uint vertexCount;
  1561. /* readonly */
  1562. int weakRefs;
  1563. };
  1564. class CollisionCircle2D
  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. bool Load(File, bool = false);
  1577. bool Load(VectorBuffer&, bool = false);
  1578. bool LoadXML(const XMLElement&, bool = false);
  1579. void MarkNetworkUpdate() const;
  1580. void Remove();
  1581. void RemoveAttributeAnimation(const String&);
  1582. void RemoveInstanceDefault();
  1583. void RemoveObjectAnimation();
  1584. void ResetToDefault();
  1585. bool Save(File) const;
  1586. bool Save(VectorBuffer&) const;
  1587. bool SaveXML(XMLElement&) const;
  1588. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1589. void SetAnimationTime(float);
  1590. bool SetAttribute(const String&, const Variant&);
  1591. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1592. void SetAttributeAnimationSpeed(const String&, float);
  1593. void SetAttributeAnimationTime(const String&, float);
  1594. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1595. void SetCenter(float, float);
  1596. void SetInterceptNetworkUpdate(const String&, bool);
  1597. // Properties:
  1598. bool animationEnabled;
  1599. /* readonly */
  1600. Array<Variant> attributeDefaults;
  1601. /* readonly */
  1602. Array<AttributeInfo> attributeInfos;
  1603. Array<Variant> attributes;
  1604. /* readonly */
  1605. String category;
  1606. int categoryBits;
  1607. Vector2 center;
  1608. float density;
  1609. bool enabled;
  1610. /* readonly */
  1611. bool enabledEffective;
  1612. float friction;
  1613. int groupIndex;
  1614. /* readonly */
  1615. uint id;
  1616. /* readonly */
  1617. float inertia;
  1618. int maskBits;
  1619. /* readonly */
  1620. float mass;
  1621. /* readonly */
  1622. Vector2 massCenter;
  1623. /* readonly */
  1624. Node node;
  1625. /* readonly */
  1626. uint numAttributes;
  1627. ObjectAnimation objectAnimation;
  1628. float radius;
  1629. /* readonly */
  1630. int refs;
  1631. float restitution;
  1632. bool temporary;
  1633. bool trigger;
  1634. /* readonly */
  1635. StringHash type;
  1636. /* readonly */
  1637. String typeName;
  1638. /* readonly */
  1639. int weakRefs;
  1640. };
  1641. class CollisionEdge2D
  1642. {
  1643. // Methods:
  1644. void ApplyAttributes();
  1645. void DrawDebugGeometry(DebugRenderer, bool);
  1646. Variant GetAttribute(const String&) const;
  1647. ValueAnimation GetAttributeAnimation(const String&) const;
  1648. float GetAttributeAnimationSpeed(const String&) const;
  1649. float GetAttributeAnimationTime(const String&) const;
  1650. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1651. Variant GetAttributeDefault(const String&) const;
  1652. bool GetInterceptNetworkUpdate(const String&) const;
  1653. bool Load(File, bool = false);
  1654. bool Load(VectorBuffer&, bool = false);
  1655. bool LoadXML(const XMLElement&, bool = false);
  1656. void MarkNetworkUpdate() const;
  1657. void Remove();
  1658. void RemoveAttributeAnimation(const String&);
  1659. void RemoveInstanceDefault();
  1660. void RemoveObjectAnimation();
  1661. void ResetToDefault();
  1662. bool Save(File) const;
  1663. bool Save(VectorBuffer&) const;
  1664. bool SaveXML(XMLElement&) const;
  1665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1666. void SetAnimationTime(float);
  1667. bool SetAttribute(const String&, const Variant&);
  1668. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1669. void SetAttributeAnimationSpeed(const String&, float);
  1670. void SetAttributeAnimationTime(const String&, float);
  1671. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1672. void SetInterceptNetworkUpdate(const String&, bool);
  1673. void SetVertices(const Vector2&, const Vector2&);
  1674. // Properties:
  1675. bool animationEnabled;
  1676. /* readonly */
  1677. Array<Variant> attributeDefaults;
  1678. /* readonly */
  1679. Array<AttributeInfo> attributeInfos;
  1680. Array<Variant> attributes;
  1681. /* readonly */
  1682. String category;
  1683. int categoryBits;
  1684. float density;
  1685. bool enabled;
  1686. /* readonly */
  1687. bool enabledEffective;
  1688. float friction;
  1689. int groupIndex;
  1690. /* readonly */
  1691. uint id;
  1692. /* readonly */
  1693. float inertia;
  1694. int maskBits;
  1695. /* readonly */
  1696. float mass;
  1697. /* readonly */
  1698. Vector2 massCenter;
  1699. /* readonly */
  1700. Node node;
  1701. /* readonly */
  1702. uint numAttributes;
  1703. ObjectAnimation objectAnimation;
  1704. /* readonly */
  1705. int refs;
  1706. float restitution;
  1707. bool temporary;
  1708. bool trigger;
  1709. /* readonly */
  1710. StringHash type;
  1711. /* readonly */
  1712. String typeName;
  1713. Vector2 vertex1;
  1714. Vector2 vertex2;
  1715. /* readonly */
  1716. int weakRefs;
  1717. };
  1718. class CollisionPolygon2D
  1719. {
  1720. // Methods:
  1721. void ApplyAttributes();
  1722. void DrawDebugGeometry(DebugRenderer, bool);
  1723. Variant GetAttribute(const String&) const;
  1724. ValueAnimation GetAttributeAnimation(const String&) const;
  1725. float GetAttributeAnimationSpeed(const String&) const;
  1726. float GetAttributeAnimationTime(const String&) const;
  1727. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1728. Variant GetAttributeDefault(const String&) const;
  1729. bool GetInterceptNetworkUpdate(const String&) const;
  1730. Array<Vector2> GetVertices() const;
  1731. bool Load(File, bool = false);
  1732. bool Load(VectorBuffer&, bool = false);
  1733. bool LoadXML(const XMLElement&, bool = false);
  1734. void MarkNetworkUpdate() const;
  1735. void Remove();
  1736. void RemoveAttributeAnimation(const String&);
  1737. void RemoveInstanceDefault();
  1738. void RemoveObjectAnimation();
  1739. void ResetToDefault();
  1740. bool Save(File) const;
  1741. bool Save(VectorBuffer&) const;
  1742. bool SaveXML(XMLElement&) const;
  1743. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1744. void SetAnimationTime(float);
  1745. bool SetAttribute(const String&, const Variant&);
  1746. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1747. void SetAttributeAnimationSpeed(const String&, float);
  1748. void SetAttributeAnimationTime(const String&, float);
  1749. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1750. void SetInterceptNetworkUpdate(const String&, bool);
  1751. void SetVertex(uint, const Vector2&);
  1752. void SetVertices(Array<Vector2>);
  1753. const Vector2& GetVertex(uint) const;
  1754. // Properties:
  1755. bool animationEnabled;
  1756. /* readonly */
  1757. Array<Variant> attributeDefaults;
  1758. /* readonly */
  1759. Array<AttributeInfo> attributeInfos;
  1760. Array<Variant> attributes;
  1761. /* readonly */
  1762. String category;
  1763. int categoryBits;
  1764. float density;
  1765. bool enabled;
  1766. /* readonly */
  1767. bool enabledEffective;
  1768. float friction;
  1769. int groupIndex;
  1770. /* readonly */
  1771. uint id;
  1772. /* readonly */
  1773. float inertia;
  1774. int maskBits;
  1775. /* readonly */
  1776. float mass;
  1777. /* readonly */
  1778. Vector2 massCenter;
  1779. /* readonly */
  1780. Node node;
  1781. /* readonly */
  1782. uint numAttributes;
  1783. ObjectAnimation objectAnimation;
  1784. /* readonly */
  1785. int refs;
  1786. float restitution;
  1787. bool temporary;
  1788. bool trigger;
  1789. /* readonly */
  1790. StringHash type;
  1791. /* readonly */
  1792. String typeName;
  1793. uint vertexCount;
  1794. /* readonly */
  1795. int weakRefs;
  1796. };
  1797. class CollisionShape
  1798. {
  1799. // Methods:
  1800. void ApplyAttributes();
  1801. void DrawDebugGeometry(DebugRenderer, bool);
  1802. Variant GetAttribute(const String&) const;
  1803. ValueAnimation GetAttributeAnimation(const String&) const;
  1804. float GetAttributeAnimationSpeed(const String&) const;
  1805. float GetAttributeAnimationTime(const String&) const;
  1806. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1807. Variant GetAttributeDefault(const String&) const;
  1808. bool GetInterceptNetworkUpdate(const String&) const;
  1809. bool Load(File, bool = false);
  1810. bool Load(VectorBuffer&, bool = false);
  1811. bool LoadXML(const XMLElement&, bool = false);
  1812. void MarkNetworkUpdate() const;
  1813. void Remove();
  1814. void RemoveAttributeAnimation(const String&);
  1815. void RemoveInstanceDefault();
  1816. void RemoveObjectAnimation();
  1817. void ResetToDefault();
  1818. bool Save(File) const;
  1819. bool Save(VectorBuffer&) const;
  1820. bool SaveXML(XMLElement&) const;
  1821. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1822. void SetAnimationTime(float);
  1823. bool SetAttribute(const String&, const Variant&);
  1824. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1825. void SetAttributeAnimationSpeed(const String&, float);
  1826. void SetAttributeAnimationTime(const String&, float);
  1827. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1828. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1829. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1830. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1831. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1832. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1833. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1834. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1835. void SetInterceptNetworkUpdate(const String&, bool);
  1836. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1837. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1838. void SetTerrain(uint = 0);
  1839. void SetTransform(const Vector3&, const Quaternion&);
  1840. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1841. // Properties:
  1842. bool animationEnabled;
  1843. /* readonly */
  1844. Array<Variant> attributeDefaults;
  1845. /* readonly */
  1846. Array<AttributeInfo> attributeInfos;
  1847. Array<Variant> attributes;
  1848. /* readonly */
  1849. String category;
  1850. bool enabled;
  1851. /* readonly */
  1852. bool enabledEffective;
  1853. /* readonly */
  1854. uint id;
  1855. uint lodLevel;
  1856. float margin;
  1857. Model model;
  1858. /* readonly */
  1859. Node node;
  1860. /* readonly */
  1861. uint numAttributes;
  1862. ObjectAnimation objectAnimation;
  1863. Vector3 position;
  1864. /* readonly */
  1865. int refs;
  1866. Quaternion rotation;
  1867. ShapeType shapeType;
  1868. Vector3 size;
  1869. bool temporary;
  1870. /* readonly */
  1871. StringHash type;
  1872. /* readonly */
  1873. String typeName;
  1874. /* readonly */
  1875. int weakRefs;
  1876. /* readonly */
  1877. BoundingBox worldBoundingBox;
  1878. };
  1879. class CollisionShape2D
  1880. {
  1881. // Methods:
  1882. void ApplyAttributes();
  1883. void DrawDebugGeometry(DebugRenderer, bool);
  1884. Variant GetAttribute(const String&) const;
  1885. ValueAnimation GetAttributeAnimation(const String&) const;
  1886. float GetAttributeAnimationSpeed(const String&) const;
  1887. float GetAttributeAnimationTime(const String&) const;
  1888. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1889. Variant GetAttributeDefault(const String&) const;
  1890. bool GetInterceptNetworkUpdate(const String&) const;
  1891. bool Load(File, bool = false);
  1892. bool Load(VectorBuffer&, bool = false);
  1893. bool LoadXML(const XMLElement&, bool = false);
  1894. void MarkNetworkUpdate() const;
  1895. void Remove();
  1896. void RemoveAttributeAnimation(const String&);
  1897. void RemoveInstanceDefault();
  1898. void RemoveObjectAnimation();
  1899. void ResetToDefault();
  1900. bool Save(File) const;
  1901. bool Save(VectorBuffer&) const;
  1902. bool SaveXML(XMLElement&) const;
  1903. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1904. void SetAnimationTime(float);
  1905. bool SetAttribute(const String&, const Variant&);
  1906. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1907. void SetAttributeAnimationSpeed(const String&, float);
  1908. void SetAttributeAnimationTime(const String&, float);
  1909. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1910. void SetInterceptNetworkUpdate(const String&, bool);
  1911. // Properties:
  1912. bool animationEnabled;
  1913. /* readonly */
  1914. Array<Variant> attributeDefaults;
  1915. /* readonly */
  1916. Array<AttributeInfo> attributeInfos;
  1917. Array<Variant> attributes;
  1918. /* readonly */
  1919. String category;
  1920. int categoryBits;
  1921. float density;
  1922. bool enabled;
  1923. /* readonly */
  1924. bool enabledEffective;
  1925. float friction;
  1926. int groupIndex;
  1927. /* readonly */
  1928. uint id;
  1929. /* readonly */
  1930. float inertia;
  1931. int maskBits;
  1932. /* readonly */
  1933. float mass;
  1934. /* readonly */
  1935. Vector2 massCenter;
  1936. /* readonly */
  1937. Node node;
  1938. /* readonly */
  1939. uint numAttributes;
  1940. ObjectAnimation objectAnimation;
  1941. /* readonly */
  1942. int refs;
  1943. float restitution;
  1944. bool temporary;
  1945. bool trigger;
  1946. /* readonly */
  1947. StringHash type;
  1948. /* readonly */
  1949. String typeName;
  1950. /* readonly */
  1951. int weakRefs;
  1952. };
  1953. class Color
  1954. {
  1955. // Methods:
  1956. Color Abs() const;
  1957. float Average() const;
  1958. float Chroma() const;
  1959. void Clip(bool);
  1960. bool Equals() const;
  1961. void FromHSL(float, float, float, float);
  1962. void FromHSV(float, float, float, float);
  1963. float Hue() const;
  1964. void Invert(bool);
  1965. Color Lerp(const Color&, float) const;
  1966. float Lightness() const;
  1967. float Luma() const;
  1968. float MaxRGB() const;
  1969. float MinRGB() const;
  1970. float Range() const;
  1971. float SaturationHSL() const;
  1972. float SaturationHSV() const;
  1973. float SumRGB() const;
  1974. Vector3 ToHSL() const;
  1975. Vector3 ToHSV() const;
  1976. String ToString() const;
  1977. uint ToUInt() const;
  1978. float Value() const;
  1979. // Properties:
  1980. float a;
  1981. float b;
  1982. /* readonly */
  1983. Array<float> data;
  1984. float g;
  1985. float r;
  1986. /* readonly */
  1987. Vector3 rgb;
  1988. /* readonly */
  1989. Vector4 rgba;
  1990. };
  1991. class ColorFrame
  1992. {
  1993. // Properties:
  1994. Color color;
  1995. float time;
  1996. };
  1997. class Component
  1998. {
  1999. // Methods:
  2000. void ApplyAttributes();
  2001. void DrawDebugGeometry(DebugRenderer, bool);
  2002. Variant GetAttribute(const String&) const;
  2003. ValueAnimation GetAttributeAnimation(const String&) const;
  2004. float GetAttributeAnimationSpeed(const String&) const;
  2005. float GetAttributeAnimationTime(const String&) const;
  2006. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2007. Variant GetAttributeDefault(const String&) const;
  2008. bool GetInterceptNetworkUpdate(const String&) const;
  2009. bool Load(File, bool = false);
  2010. bool Load(VectorBuffer&, bool = false);
  2011. bool LoadXML(const XMLElement&, bool = false);
  2012. void MarkNetworkUpdate() const;
  2013. void Remove();
  2014. void RemoveAttributeAnimation(const String&);
  2015. void RemoveInstanceDefault();
  2016. void RemoveObjectAnimation();
  2017. void ResetToDefault();
  2018. bool Save(File) const;
  2019. bool Save(VectorBuffer&) const;
  2020. bool SaveXML(XMLElement&) const;
  2021. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2022. void SetAnimationTime(float);
  2023. bool SetAttribute(const String&, const Variant&);
  2024. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2025. void SetAttributeAnimationSpeed(const String&, float);
  2026. void SetAttributeAnimationTime(const String&, float);
  2027. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2028. void SetInterceptNetworkUpdate(const String&, bool);
  2029. // Properties:
  2030. bool animationEnabled;
  2031. /* readonly */
  2032. Array<Variant> attributeDefaults;
  2033. /* readonly */
  2034. Array<AttributeInfo> attributeInfos;
  2035. Array<Variant> attributes;
  2036. /* readonly */
  2037. String category;
  2038. bool enabled;
  2039. /* readonly */
  2040. bool enabledEffective;
  2041. /* readonly */
  2042. uint id;
  2043. /* readonly */
  2044. Node node;
  2045. /* readonly */
  2046. uint numAttributes;
  2047. ObjectAnimation objectAnimation;
  2048. /* readonly */
  2049. int refs;
  2050. bool temporary;
  2051. /* readonly */
  2052. StringHash type;
  2053. /* readonly */
  2054. String typeName;
  2055. /* readonly */
  2056. int weakRefs;
  2057. };
  2058. class Connection
  2059. {
  2060. // Methods:
  2061. void Disconnect(int = 0);
  2062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2063. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2064. void SendPackageToClient(PackageFile);
  2065. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2066. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2067. String ToString() const;
  2068. // Properties:
  2069. /* readonly */
  2070. String address;
  2071. /* readonly */
  2072. float bytesInPerSec;
  2073. /* readonly */
  2074. float bytesOutPerSec;
  2075. /* readonly */
  2076. String category;
  2077. /* readonly */
  2078. bool client;
  2079. /* readonly */
  2080. bool connectPending;
  2081. /* readonly */
  2082. bool connected;
  2083. Controls controls;
  2084. /* readonly */
  2085. String downloadName;
  2086. /* readonly */
  2087. float downloadProgress;
  2088. VariantMap identity;
  2089. /* readonly */
  2090. float lastHeardTime;
  2091. bool logStatistics;
  2092. /* readonly */
  2093. uint numDownloads;
  2094. /* readonly */
  2095. float packetsInPerSec;
  2096. /* readonly */
  2097. float packetsOutPerSec;
  2098. /* readonly */
  2099. uint16 port;
  2100. Vector3 position;
  2101. /* readonly */
  2102. int refs;
  2103. Quaternion rotation;
  2104. /* readonly */
  2105. float roundTripTime;
  2106. Scene scene;
  2107. /* readonly */
  2108. bool sceneLoaded;
  2109. uint8 timeStamp;
  2110. /* readonly */
  2111. StringHash type;
  2112. /* readonly */
  2113. String typeName;
  2114. /* readonly */
  2115. int weakRefs;
  2116. };
  2117. class Console
  2118. {
  2119. // Methods:
  2120. void CopySelectedRows() const;
  2121. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2122. void Toggle();
  2123. void UpdateElements();
  2124. // Properties:
  2125. bool autoVisibleOnError;
  2126. /* readonly */
  2127. BorderImage background;
  2128. /* readonly */
  2129. String category;
  2130. /* readonly */
  2131. Button closeButton;
  2132. String commandInterpreter;
  2133. XMLFile defaultStyle;
  2134. bool focusOnShow;
  2135. /* readonly */
  2136. uint historyPosition;
  2137. /* readonly */
  2138. Array<String> historyRow;
  2139. /* readonly */
  2140. LineEdit lineEdit;
  2141. uint numBufferedRows;
  2142. uint numHistoryRows;
  2143. uint numRows;
  2144. /* readonly */
  2145. int refs;
  2146. /* readonly */
  2147. StringHash type;
  2148. /* readonly */
  2149. String typeName;
  2150. bool visible;
  2151. /* readonly */
  2152. int weakRefs;
  2153. };
  2154. class Constraint
  2155. {
  2156. // Methods:
  2157. void ApplyAttributes();
  2158. void DrawDebugGeometry(DebugRenderer, bool);
  2159. Variant GetAttribute(const String&) const;
  2160. ValueAnimation GetAttributeAnimation(const String&) const;
  2161. float GetAttributeAnimationSpeed(const String&) const;
  2162. float GetAttributeAnimationTime(const String&) const;
  2163. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2164. Variant GetAttributeDefault(const String&) const;
  2165. bool GetInterceptNetworkUpdate(const String&) const;
  2166. bool Load(File, bool = false);
  2167. bool Load(VectorBuffer&, bool = false);
  2168. bool LoadXML(const XMLElement&, bool = false);
  2169. void MarkNetworkUpdate() const;
  2170. void Remove();
  2171. void RemoveAttributeAnimation(const String&);
  2172. void RemoveInstanceDefault();
  2173. void RemoveObjectAnimation();
  2174. void ResetToDefault();
  2175. bool Save(File) const;
  2176. bool Save(VectorBuffer&) const;
  2177. bool SaveXML(XMLElement&) const;
  2178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2179. void SetAnimationTime(float);
  2180. bool SetAttribute(const String&, const Variant&);
  2181. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2182. void SetAttributeAnimationSpeed(const String&, float);
  2183. void SetAttributeAnimationTime(const String&, float);
  2184. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2185. void SetInterceptNetworkUpdate(const String&, bool);
  2186. // Properties:
  2187. bool animationEnabled;
  2188. /* readonly */
  2189. Array<Variant> attributeDefaults;
  2190. /* readonly */
  2191. Array<AttributeInfo> attributeInfos;
  2192. Array<Variant> attributes;
  2193. /* writeonly */
  2194. Vector3 axis;
  2195. /* readonly */
  2196. String category;
  2197. float cfm;
  2198. ConstraintType constraintType;
  2199. bool disableCollision;
  2200. bool enabled;
  2201. /* readonly */
  2202. bool enabledEffective;
  2203. float erp;
  2204. Vector2 highLimit;
  2205. /* readonly */
  2206. uint id;
  2207. Vector2 lowLimit;
  2208. /* readonly */
  2209. Node node;
  2210. /* readonly */
  2211. uint numAttributes;
  2212. ObjectAnimation objectAnimation;
  2213. /* writeonly */
  2214. Vector3 otherAxis;
  2215. RigidBody otherBody;
  2216. Vector3 otherPosition;
  2217. Quaternion otherRotation;
  2218. /* readonly */
  2219. RigidBody ownBody;
  2220. Vector3 position;
  2221. /* readonly */
  2222. int refs;
  2223. Quaternion rotation;
  2224. bool temporary;
  2225. /* readonly */
  2226. StringHash type;
  2227. /* readonly */
  2228. String typeName;
  2229. /* readonly */
  2230. int weakRefs;
  2231. Vector3 worldPosition;
  2232. };
  2233. class Constraint2D
  2234. {
  2235. // Methods:
  2236. void ApplyAttributes();
  2237. void DrawDebugGeometry(DebugRenderer, bool);
  2238. Variant GetAttribute(const String&) const;
  2239. ValueAnimation GetAttributeAnimation(const String&) const;
  2240. float GetAttributeAnimationSpeed(const String&) const;
  2241. float GetAttributeAnimationTime(const String&) const;
  2242. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2243. Variant GetAttributeDefault(const String&) const;
  2244. bool GetInterceptNetworkUpdate(const String&) const;
  2245. bool Load(File, bool = false);
  2246. bool Load(VectorBuffer&, bool = false);
  2247. bool LoadXML(const XMLElement&, bool = false);
  2248. void MarkNetworkUpdate() const;
  2249. void Remove();
  2250. void RemoveAttributeAnimation(const String&);
  2251. void RemoveInstanceDefault();
  2252. void RemoveObjectAnimation();
  2253. void ResetToDefault();
  2254. bool Save(File) const;
  2255. bool Save(VectorBuffer&) const;
  2256. bool SaveXML(XMLElement&) const;
  2257. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2258. void SetAnimationTime(float);
  2259. bool SetAttribute(const String&, const Variant&);
  2260. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2261. void SetAttributeAnimationSpeed(const String&, float);
  2262. void SetAttributeAnimationTime(const String&, float);
  2263. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2264. void SetInterceptNetworkUpdate(const String&, bool);
  2265. // Properties:
  2266. bool animationEnabled;
  2267. /* readonly */
  2268. Array<Variant> attributeDefaults;
  2269. /* readonly */
  2270. Array<AttributeInfo> attributeInfos;
  2271. Array<Variant> attributes;
  2272. /* readonly */
  2273. String category;
  2274. bool collideConnected;
  2275. bool enabled;
  2276. /* readonly */
  2277. bool enabledEffective;
  2278. /* readonly */
  2279. uint id;
  2280. /* readonly */
  2281. Node node;
  2282. /* readonly */
  2283. uint numAttributes;
  2284. ObjectAnimation objectAnimation;
  2285. RigidBody2D otherBody;
  2286. /* readonly */
  2287. RigidBody2D ownerBody;
  2288. /* readonly */
  2289. int refs;
  2290. bool temporary;
  2291. /* readonly */
  2292. StringHash type;
  2293. /* readonly */
  2294. String typeName;
  2295. /* readonly */
  2296. int weakRefs;
  2297. };
  2298. class ConstraintDistance2D
  2299. {
  2300. // Methods:
  2301. void ApplyAttributes();
  2302. void DrawDebugGeometry(DebugRenderer, bool);
  2303. Variant GetAttribute(const String&) const;
  2304. ValueAnimation GetAttributeAnimation(const String&) const;
  2305. float GetAttributeAnimationSpeed(const String&) const;
  2306. float GetAttributeAnimationTime(const String&) const;
  2307. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2308. Variant GetAttributeDefault(const String&) const;
  2309. bool GetInterceptNetworkUpdate(const String&) const;
  2310. bool Load(File, bool = false);
  2311. bool Load(VectorBuffer&, bool = false);
  2312. bool LoadXML(const XMLElement&, bool = false);
  2313. void MarkNetworkUpdate() const;
  2314. void Remove();
  2315. void RemoveAttributeAnimation(const String&);
  2316. void RemoveInstanceDefault();
  2317. void RemoveObjectAnimation();
  2318. void ResetToDefault();
  2319. bool Save(File) const;
  2320. bool Save(VectorBuffer&) const;
  2321. bool SaveXML(XMLElement&) const;
  2322. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2323. void SetAnimationTime(float);
  2324. bool SetAttribute(const String&, const Variant&);
  2325. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2326. void SetAttributeAnimationSpeed(const String&, float);
  2327. void SetAttributeAnimationTime(const String&, float);
  2328. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2329. void SetInterceptNetworkUpdate(const String&, bool);
  2330. // Properties:
  2331. bool animationEnabled;
  2332. /* readonly */
  2333. Array<Variant> attributeDefaults;
  2334. /* readonly */
  2335. Array<AttributeInfo> attributeInfos;
  2336. Array<Variant> attributes;
  2337. /* readonly */
  2338. String category;
  2339. bool collideConnected;
  2340. float dampingRatio;
  2341. bool enabled;
  2342. /* readonly */
  2343. bool enabledEffective;
  2344. float frequencyHz;
  2345. /* readonly */
  2346. uint id;
  2347. /* readonly */
  2348. Node node;
  2349. /* readonly */
  2350. uint numAttributes;
  2351. ObjectAnimation objectAnimation;
  2352. RigidBody2D otherBody;
  2353. Vector2 otherBodyAnchor;
  2354. /* readonly */
  2355. RigidBody2D ownerBody;
  2356. Vector2 ownerBodyAnchor;
  2357. /* readonly */
  2358. int refs;
  2359. bool temporary;
  2360. /* readonly */
  2361. StringHash type;
  2362. /* readonly */
  2363. String typeName;
  2364. /* readonly */
  2365. int weakRefs;
  2366. };
  2367. class ConstraintFriction2D
  2368. {
  2369. // Methods:
  2370. void ApplyAttributes();
  2371. void DrawDebugGeometry(DebugRenderer, bool);
  2372. Variant GetAttribute(const String&) const;
  2373. ValueAnimation GetAttributeAnimation(const String&) const;
  2374. float GetAttributeAnimationSpeed(const String&) const;
  2375. float GetAttributeAnimationTime(const String&) const;
  2376. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2377. Variant GetAttributeDefault(const String&) const;
  2378. bool GetInterceptNetworkUpdate(const String&) const;
  2379. bool Load(File, bool = false);
  2380. bool Load(VectorBuffer&, bool = false);
  2381. bool LoadXML(const XMLElement&, bool = false);
  2382. void MarkNetworkUpdate() const;
  2383. void Remove();
  2384. void RemoveAttributeAnimation(const String&);
  2385. void RemoveInstanceDefault();
  2386. void RemoveObjectAnimation();
  2387. void ResetToDefault();
  2388. bool Save(File) const;
  2389. bool Save(VectorBuffer&) const;
  2390. bool SaveXML(XMLElement&) const;
  2391. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2392. void SetAnimationTime(float);
  2393. bool SetAttribute(const String&, const Variant&);
  2394. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2395. void SetAttributeAnimationSpeed(const String&, float);
  2396. void SetAttributeAnimationTime(const String&, float);
  2397. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2398. void SetInterceptNetworkUpdate(const String&, bool);
  2399. // Properties:
  2400. Vector2 anchor;
  2401. bool animationEnabled;
  2402. /* readonly */
  2403. Array<Variant> attributeDefaults;
  2404. /* readonly */
  2405. Array<AttributeInfo> attributeInfos;
  2406. Array<Variant> attributes;
  2407. /* readonly */
  2408. String category;
  2409. bool collideConnected;
  2410. bool enabled;
  2411. /* readonly */
  2412. bool enabledEffective;
  2413. /* readonly */
  2414. uint id;
  2415. float maxForce;
  2416. float maxTorque;
  2417. /* readonly */
  2418. Node node;
  2419. /* readonly */
  2420. uint numAttributes;
  2421. ObjectAnimation objectAnimation;
  2422. RigidBody2D otherBody;
  2423. /* readonly */
  2424. RigidBody2D ownerBody;
  2425. /* readonly */
  2426. int refs;
  2427. bool temporary;
  2428. /* readonly */
  2429. StringHash type;
  2430. /* readonly */
  2431. String typeName;
  2432. /* readonly */
  2433. int weakRefs;
  2434. };
  2435. class ConstraintGear2D
  2436. {
  2437. // Methods:
  2438. void ApplyAttributes();
  2439. void DrawDebugGeometry(DebugRenderer, bool);
  2440. Variant GetAttribute(const String&) const;
  2441. ValueAnimation GetAttributeAnimation(const String&) const;
  2442. float GetAttributeAnimationSpeed(const String&) const;
  2443. float GetAttributeAnimationTime(const String&) const;
  2444. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2445. Variant GetAttributeDefault(const String&) const;
  2446. bool GetInterceptNetworkUpdate(const String&) const;
  2447. bool Load(File, bool = false);
  2448. bool Load(VectorBuffer&, bool = false);
  2449. bool LoadXML(const XMLElement&, bool = false);
  2450. void MarkNetworkUpdate() const;
  2451. void Remove();
  2452. void RemoveAttributeAnimation(const String&);
  2453. void RemoveInstanceDefault();
  2454. void RemoveObjectAnimation();
  2455. void ResetToDefault();
  2456. bool Save(File) const;
  2457. bool Save(VectorBuffer&) const;
  2458. bool SaveXML(XMLElement&) const;
  2459. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2460. void SetAnimationTime(float);
  2461. bool SetAttribute(const String&, const Variant&);
  2462. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2463. void SetAttributeAnimationSpeed(const String&, float);
  2464. void SetAttributeAnimationTime(const String&, float);
  2465. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2466. void SetInterceptNetworkUpdate(const String&, bool);
  2467. // Properties:
  2468. bool animationEnabled;
  2469. /* readonly */
  2470. Array<Variant> attributeDefaults;
  2471. /* readonly */
  2472. Array<AttributeInfo> attributeInfos;
  2473. Array<Variant> attributes;
  2474. /* readonly */
  2475. String category;
  2476. bool collideConnected;
  2477. bool enabled;
  2478. /* readonly */
  2479. bool enabledEffective;
  2480. /* readonly */
  2481. uint id;
  2482. /* readonly */
  2483. Node node;
  2484. /* readonly */
  2485. uint numAttributes;
  2486. ObjectAnimation objectAnimation;
  2487. RigidBody2D otherBody;
  2488. Constraint2D otherConstraint;
  2489. /* readonly */
  2490. RigidBody2D ownerBody;
  2491. Constraint2D ownerConstraint;
  2492. float ratio;
  2493. /* readonly */
  2494. int refs;
  2495. bool temporary;
  2496. /* readonly */
  2497. StringHash type;
  2498. /* readonly */
  2499. String typeName;
  2500. /* readonly */
  2501. int weakRefs;
  2502. };
  2503. class ConstraintMotor2D
  2504. {
  2505. // Methods:
  2506. void ApplyAttributes();
  2507. void DrawDebugGeometry(DebugRenderer, bool);
  2508. Variant GetAttribute(const String&) const;
  2509. ValueAnimation GetAttributeAnimation(const String&) const;
  2510. float GetAttributeAnimationSpeed(const String&) const;
  2511. float GetAttributeAnimationTime(const String&) const;
  2512. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2513. Variant GetAttributeDefault(const String&) const;
  2514. bool GetInterceptNetworkUpdate(const String&) const;
  2515. bool Load(File, bool = false);
  2516. bool Load(VectorBuffer&, bool = false);
  2517. bool LoadXML(const XMLElement&, bool = false);
  2518. void MarkNetworkUpdate() const;
  2519. void Remove();
  2520. void RemoveAttributeAnimation(const String&);
  2521. void RemoveInstanceDefault();
  2522. void RemoveObjectAnimation();
  2523. void ResetToDefault();
  2524. bool Save(File) const;
  2525. bool Save(VectorBuffer&) const;
  2526. bool SaveXML(XMLElement&) const;
  2527. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2528. void SetAnimationTime(float);
  2529. bool SetAttribute(const String&, const Variant&);
  2530. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2531. void SetAttributeAnimationSpeed(const String&, float);
  2532. void SetAttributeAnimationTime(const String&, float);
  2533. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2534. void SetInterceptNetworkUpdate(const String&, bool);
  2535. // Properties:
  2536. float angularOffset;
  2537. bool animationEnabled;
  2538. /* readonly */
  2539. Array<Variant> attributeDefaults;
  2540. /* readonly */
  2541. Array<AttributeInfo> attributeInfos;
  2542. Array<Variant> attributes;
  2543. /* readonly */
  2544. String category;
  2545. bool collideConnected;
  2546. float correctionFactor;
  2547. bool enabled;
  2548. /* readonly */
  2549. bool enabledEffective;
  2550. /* readonly */
  2551. uint id;
  2552. Vector2 linearOffset;
  2553. float maxForce;
  2554. float maxTorque;
  2555. /* readonly */
  2556. Node node;
  2557. /* readonly */
  2558. uint numAttributes;
  2559. ObjectAnimation objectAnimation;
  2560. RigidBody2D otherBody;
  2561. /* readonly */
  2562. RigidBody2D ownerBody;
  2563. /* readonly */
  2564. int refs;
  2565. bool temporary;
  2566. /* readonly */
  2567. StringHash type;
  2568. /* readonly */
  2569. String typeName;
  2570. /* readonly */
  2571. int weakRefs;
  2572. };
  2573. class ConstraintMouse2D
  2574. {
  2575. // Methods:
  2576. void ApplyAttributes();
  2577. void DrawDebugGeometry(DebugRenderer, bool);
  2578. Variant GetAttribute(const String&) const;
  2579. ValueAnimation GetAttributeAnimation(const String&) const;
  2580. float GetAttributeAnimationSpeed(const String&) const;
  2581. float GetAttributeAnimationTime(const String&) const;
  2582. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2583. Variant GetAttributeDefault(const String&) const;
  2584. bool GetInterceptNetworkUpdate(const String&) const;
  2585. bool Load(File, bool = false);
  2586. bool Load(VectorBuffer&, bool = false);
  2587. bool LoadXML(const XMLElement&, bool = false);
  2588. void MarkNetworkUpdate() const;
  2589. void Remove();
  2590. void RemoveAttributeAnimation(const String&);
  2591. void RemoveInstanceDefault();
  2592. void RemoveObjectAnimation();
  2593. void ResetToDefault();
  2594. bool Save(File) const;
  2595. bool Save(VectorBuffer&) const;
  2596. bool SaveXML(XMLElement&) const;
  2597. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2598. void SetAnimationTime(float);
  2599. bool SetAttribute(const String&, const Variant&);
  2600. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2601. void SetAttributeAnimationSpeed(const String&, float);
  2602. void SetAttributeAnimationTime(const String&, float);
  2603. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2604. void SetInterceptNetworkUpdate(const String&, bool);
  2605. // Properties:
  2606. bool animationEnabled;
  2607. /* readonly */
  2608. Array<Variant> attributeDefaults;
  2609. /* readonly */
  2610. Array<AttributeInfo> attributeInfos;
  2611. Array<Variant> attributes;
  2612. /* readonly */
  2613. String category;
  2614. bool collideConnected;
  2615. float dampingRatio;
  2616. bool enabled;
  2617. /* readonly */
  2618. bool enabledEffective;
  2619. float frequencyHz;
  2620. /* readonly */
  2621. uint id;
  2622. float maxForce;
  2623. /* readonly */
  2624. Node node;
  2625. /* readonly */
  2626. uint numAttributes;
  2627. ObjectAnimation objectAnimation;
  2628. RigidBody2D otherBody;
  2629. /* readonly */
  2630. RigidBody2D ownerBody;
  2631. /* readonly */
  2632. int refs;
  2633. Vector2 target;
  2634. bool temporary;
  2635. /* readonly */
  2636. StringHash type;
  2637. /* readonly */
  2638. String typeName;
  2639. /* readonly */
  2640. int weakRefs;
  2641. };
  2642. class ConstraintPrismatic2D
  2643. {
  2644. // Methods:
  2645. void ApplyAttributes();
  2646. void DrawDebugGeometry(DebugRenderer, bool);
  2647. Variant GetAttribute(const String&) const;
  2648. ValueAnimation GetAttributeAnimation(const String&) const;
  2649. float GetAttributeAnimationSpeed(const String&) const;
  2650. float GetAttributeAnimationTime(const String&) const;
  2651. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2652. Variant GetAttributeDefault(const String&) const;
  2653. bool GetInterceptNetworkUpdate(const String&) const;
  2654. bool Load(File, bool = false);
  2655. bool Load(VectorBuffer&, bool = false);
  2656. bool LoadXML(const XMLElement&, bool = false);
  2657. void MarkNetworkUpdate() const;
  2658. void Remove();
  2659. void RemoveAttributeAnimation(const String&);
  2660. void RemoveInstanceDefault();
  2661. void RemoveObjectAnimation();
  2662. void ResetToDefault();
  2663. bool Save(File) const;
  2664. bool Save(VectorBuffer&) const;
  2665. bool SaveXML(XMLElement&) const;
  2666. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2667. void SetAnimationTime(float);
  2668. bool SetAttribute(const String&, const Variant&);
  2669. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2670. void SetAttributeAnimationSpeed(const String&, float);
  2671. void SetAttributeAnimationTime(const String&, float);
  2672. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2673. void SetInterceptNetworkUpdate(const String&, bool);
  2674. // Properties:
  2675. Vector2 anchor;
  2676. bool animationEnabled;
  2677. /* readonly */
  2678. Array<Variant> attributeDefaults;
  2679. /* readonly */
  2680. Array<AttributeInfo> attributeInfos;
  2681. Array<Variant> attributes;
  2682. Vector2 axis;
  2683. /* readonly */
  2684. String category;
  2685. bool collideConnected;
  2686. bool enableLimit;
  2687. bool enableMotor;
  2688. bool enabled;
  2689. /* readonly */
  2690. bool enabledEffective;
  2691. /* readonly */
  2692. uint id;
  2693. float lowerTranslation;
  2694. float maxMotorForce;
  2695. float motorSpeed;
  2696. /* readonly */
  2697. Node node;
  2698. /* readonly */
  2699. uint numAttributes;
  2700. ObjectAnimation objectAnimation;
  2701. RigidBody2D otherBody;
  2702. /* readonly */
  2703. RigidBody2D ownerBody;
  2704. /* readonly */
  2705. int refs;
  2706. bool temporary;
  2707. /* readonly */
  2708. StringHash type;
  2709. /* readonly */
  2710. String typeName;
  2711. float upperTranslation;
  2712. /* readonly */
  2713. int weakRefs;
  2714. };
  2715. class ConstraintPulley2D
  2716. {
  2717. // Methods:
  2718. void ApplyAttributes();
  2719. void DrawDebugGeometry(DebugRenderer, bool);
  2720. Variant GetAttribute(const String&) const;
  2721. ValueAnimation GetAttributeAnimation(const String&) const;
  2722. float GetAttributeAnimationSpeed(const String&) const;
  2723. float GetAttributeAnimationTime(const String&) const;
  2724. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2725. Variant GetAttributeDefault(const String&) const;
  2726. bool GetInterceptNetworkUpdate(const String&) const;
  2727. bool Load(File, bool = false);
  2728. bool Load(VectorBuffer&, bool = false);
  2729. bool LoadXML(const XMLElement&, bool = false);
  2730. void MarkNetworkUpdate() const;
  2731. void Remove();
  2732. void RemoveAttributeAnimation(const String&);
  2733. void RemoveInstanceDefault();
  2734. void RemoveObjectAnimation();
  2735. void ResetToDefault();
  2736. bool Save(File) const;
  2737. bool Save(VectorBuffer&) const;
  2738. bool SaveXML(XMLElement&) const;
  2739. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2740. void SetAnimationTime(float);
  2741. bool SetAttribute(const String&, const Variant&);
  2742. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2743. void SetAttributeAnimationSpeed(const String&, float);
  2744. void SetAttributeAnimationTime(const String&, float);
  2745. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2746. void SetInterceptNetworkUpdate(const String&, bool);
  2747. // Properties:
  2748. bool animationEnabled;
  2749. /* readonly */
  2750. Array<Variant> attributeDefaults;
  2751. /* readonly */
  2752. Array<AttributeInfo> attributeInfos;
  2753. Array<Variant> attributes;
  2754. /* readonly */
  2755. String category;
  2756. bool collideConnected;
  2757. bool enabled;
  2758. /* readonly */
  2759. bool enabledEffective;
  2760. /* readonly */
  2761. uint id;
  2762. /* readonly */
  2763. Node node;
  2764. /* readonly */
  2765. uint numAttributes;
  2766. ObjectAnimation objectAnimation;
  2767. RigidBody2D otherBody;
  2768. Vector2 otherBodyAnchor;
  2769. Vector2 otherBodyGroundAnchor;
  2770. /* readonly */
  2771. RigidBody2D ownerBody;
  2772. Vector2 ownerBodyAnchor;
  2773. Vector2 ownerBodyGroundAnchor;
  2774. float ratio;
  2775. /* readonly */
  2776. int refs;
  2777. bool temporary;
  2778. /* readonly */
  2779. StringHash type;
  2780. /* readonly */
  2781. String typeName;
  2782. /* readonly */
  2783. int weakRefs;
  2784. };
  2785. class ConstraintRevolute2D
  2786. {
  2787. // Methods:
  2788. void ApplyAttributes();
  2789. void DrawDebugGeometry(DebugRenderer, bool);
  2790. Variant GetAttribute(const String&) const;
  2791. ValueAnimation GetAttributeAnimation(const String&) const;
  2792. float GetAttributeAnimationSpeed(const String&) const;
  2793. float GetAttributeAnimationTime(const String&) const;
  2794. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2795. Variant GetAttributeDefault(const String&) const;
  2796. bool GetInterceptNetworkUpdate(const String&) const;
  2797. bool Load(File, bool = false);
  2798. bool Load(VectorBuffer&, 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 SaveXML(XMLElement&) const;
  2809. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2810. void SetAnimationTime(float);
  2811. bool SetAttribute(const String&, const Variant&);
  2812. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2813. void SetAttributeAnimationSpeed(const String&, float);
  2814. void SetAttributeAnimationTime(const String&, float);
  2815. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2816. void SetInterceptNetworkUpdate(const String&, bool);
  2817. // Properties:
  2818. Vector2 anchor;
  2819. bool animationEnabled;
  2820. /* readonly */
  2821. Array<Variant> attributeDefaults;
  2822. /* readonly */
  2823. Array<AttributeInfo> attributeInfos;
  2824. Array<Variant> attributes;
  2825. /* readonly */
  2826. String category;
  2827. bool collideConnected;
  2828. bool enableLimit;
  2829. bool enableMotor;
  2830. bool enabled;
  2831. /* readonly */
  2832. bool enabledEffective;
  2833. /* readonly */
  2834. uint id;
  2835. float lowerAngle;
  2836. float maxMotorTorque;
  2837. float motorSpeed;
  2838. /* readonly */
  2839. Node node;
  2840. /* readonly */
  2841. uint numAttributes;
  2842. ObjectAnimation objectAnimation;
  2843. RigidBody2D otherBody;
  2844. /* readonly */
  2845. RigidBody2D ownerBody;
  2846. /* readonly */
  2847. int refs;
  2848. bool temporary;
  2849. /* readonly */
  2850. StringHash type;
  2851. /* readonly */
  2852. String typeName;
  2853. float upperAngle;
  2854. /* readonly */
  2855. int weakRefs;
  2856. };
  2857. class ConstraintRope2D
  2858. {
  2859. // Methods:
  2860. void ApplyAttributes();
  2861. void DrawDebugGeometry(DebugRenderer, bool);
  2862. Variant GetAttribute(const String&) const;
  2863. ValueAnimation GetAttributeAnimation(const String&) const;
  2864. float GetAttributeAnimationSpeed(const String&) const;
  2865. float GetAttributeAnimationTime(const String&) const;
  2866. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2867. Variant GetAttributeDefault(const String&) const;
  2868. bool GetInterceptNetworkUpdate(const String&) const;
  2869. bool Load(File, bool = false);
  2870. bool Load(VectorBuffer&, bool = false);
  2871. bool LoadXML(const XMLElement&, bool = false);
  2872. void MarkNetworkUpdate() const;
  2873. void Remove();
  2874. void RemoveAttributeAnimation(const String&);
  2875. void RemoveInstanceDefault();
  2876. void RemoveObjectAnimation();
  2877. void ResetToDefault();
  2878. bool Save(File) const;
  2879. bool Save(VectorBuffer&) const;
  2880. bool SaveXML(XMLElement&) const;
  2881. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2882. void SetAnimationTime(float);
  2883. bool SetAttribute(const String&, const Variant&);
  2884. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2885. void SetAttributeAnimationSpeed(const String&, float);
  2886. void SetAttributeAnimationTime(const String&, float);
  2887. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2888. void SetInterceptNetworkUpdate(const String&, bool);
  2889. // Properties:
  2890. bool animationEnabled;
  2891. /* readonly */
  2892. Array<Variant> attributeDefaults;
  2893. /* readonly */
  2894. Array<AttributeInfo> attributeInfos;
  2895. Array<Variant> attributes;
  2896. /* readonly */
  2897. String category;
  2898. bool collideConnected;
  2899. bool enabled;
  2900. /* readonly */
  2901. bool enabledEffective;
  2902. /* readonly */
  2903. uint id;
  2904. float maxLength;
  2905. /* readonly */
  2906. Node node;
  2907. /* readonly */
  2908. uint numAttributes;
  2909. ObjectAnimation objectAnimation;
  2910. RigidBody2D otherBody;
  2911. Vector2 otherBodyAnchor;
  2912. /* readonly */
  2913. RigidBody2D ownerBody;
  2914. Vector2 ownerBodyAnchor;
  2915. /* readonly */
  2916. int refs;
  2917. bool temporary;
  2918. /* readonly */
  2919. StringHash type;
  2920. /* readonly */
  2921. String typeName;
  2922. /* readonly */
  2923. int weakRefs;
  2924. };
  2925. class ConstraintWeld2D
  2926. {
  2927. // Methods:
  2928. void ApplyAttributes();
  2929. void DrawDebugGeometry(DebugRenderer, bool);
  2930. Variant GetAttribute(const String&) const;
  2931. ValueAnimation GetAttributeAnimation(const String&) const;
  2932. float GetAttributeAnimationSpeed(const String&) const;
  2933. float GetAttributeAnimationTime(const String&) const;
  2934. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2935. Variant GetAttributeDefault(const String&) const;
  2936. bool GetInterceptNetworkUpdate(const String&) const;
  2937. bool Load(File, bool = false);
  2938. bool Load(VectorBuffer&, bool = false);
  2939. bool LoadXML(const XMLElement&, bool = false);
  2940. void MarkNetworkUpdate() const;
  2941. void Remove();
  2942. void RemoveAttributeAnimation(const String&);
  2943. void RemoveInstanceDefault();
  2944. void RemoveObjectAnimation();
  2945. void ResetToDefault();
  2946. bool Save(File) const;
  2947. bool Save(VectorBuffer&) const;
  2948. bool SaveXML(XMLElement&) const;
  2949. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2950. void SetAnimationTime(float);
  2951. bool SetAttribute(const String&, const Variant&);
  2952. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2953. void SetAttributeAnimationSpeed(const String&, float);
  2954. void SetAttributeAnimationTime(const String&, float);
  2955. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2956. void SetInterceptNetworkUpdate(const String&, bool);
  2957. // Properties:
  2958. Vector2 anchor;
  2959. bool animationEnabled;
  2960. /* readonly */
  2961. Array<Variant> attributeDefaults;
  2962. /* readonly */
  2963. Array<AttributeInfo> attributeInfos;
  2964. Array<Variant> attributes;
  2965. /* readonly */
  2966. String category;
  2967. bool collideConnected;
  2968. float dampingRatio;
  2969. bool enabled;
  2970. /* readonly */
  2971. bool enabledEffective;
  2972. float frequencyHz;
  2973. /* readonly */
  2974. uint id;
  2975. /* readonly */
  2976. Node node;
  2977. /* readonly */
  2978. uint numAttributes;
  2979. ObjectAnimation objectAnimation;
  2980. RigidBody2D otherBody;
  2981. /* readonly */
  2982. RigidBody2D ownerBody;
  2983. /* readonly */
  2984. int refs;
  2985. bool temporary;
  2986. /* readonly */
  2987. StringHash type;
  2988. /* readonly */
  2989. String typeName;
  2990. /* readonly */
  2991. int weakRefs;
  2992. };
  2993. class ConstraintWheel2D
  2994. {
  2995. // Methods:
  2996. void ApplyAttributes();
  2997. void DrawDebugGeometry(DebugRenderer, bool);
  2998. Variant GetAttribute(const String&) const;
  2999. ValueAnimation GetAttributeAnimation(const String&) const;
  3000. float GetAttributeAnimationSpeed(const String&) const;
  3001. float GetAttributeAnimationTime(const String&) const;
  3002. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3003. Variant GetAttributeDefault(const String&) const;
  3004. bool GetInterceptNetworkUpdate(const String&) const;
  3005. bool Load(File, bool = false);
  3006. bool Load(VectorBuffer&, bool = false);
  3007. bool LoadXML(const XMLElement&, bool = false);
  3008. void MarkNetworkUpdate() const;
  3009. void Remove();
  3010. void RemoveAttributeAnimation(const String&);
  3011. void RemoveInstanceDefault();
  3012. void RemoveObjectAnimation();
  3013. void ResetToDefault();
  3014. bool Save(File) const;
  3015. bool Save(VectorBuffer&) const;
  3016. bool SaveXML(XMLElement&) const;
  3017. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3018. void SetAnimationTime(float);
  3019. bool SetAttribute(const String&, const Variant&);
  3020. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3021. void SetAttributeAnimationSpeed(const String&, float);
  3022. void SetAttributeAnimationTime(const String&, float);
  3023. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3024. void SetInterceptNetworkUpdate(const String&, bool);
  3025. // Properties:
  3026. Vector2 anchor;
  3027. bool animationEnabled;
  3028. /* readonly */
  3029. Array<Variant> attributeDefaults;
  3030. /* readonly */
  3031. Array<AttributeInfo> attributeInfos;
  3032. Array<Variant> attributes;
  3033. Vector2 axis;
  3034. /* readonly */
  3035. String category;
  3036. bool collideConnected;
  3037. float dampingRatio;
  3038. bool enableMotor;
  3039. bool enabled;
  3040. /* readonly */
  3041. bool enabledEffective;
  3042. float frequencyHz;
  3043. /* readonly */
  3044. uint id;
  3045. float maxMotorTorque;
  3046. float motorSpeed;
  3047. /* readonly */
  3048. Node node;
  3049. /* readonly */
  3050. uint numAttributes;
  3051. ObjectAnimation objectAnimation;
  3052. RigidBody2D otherBody;
  3053. /* readonly */
  3054. RigidBody2D ownerBody;
  3055. /* readonly */
  3056. int refs;
  3057. bool temporary;
  3058. /* readonly */
  3059. StringHash type;
  3060. /* readonly */
  3061. String typeName;
  3062. /* readonly */
  3063. int weakRefs;
  3064. };
  3065. class Controls
  3066. {
  3067. // Methods:
  3068. bool IsDown(uint) const;
  3069. bool IsPressed(uint, const Controls&) const;
  3070. void Reset();
  3071. void Set(uint, bool);
  3072. // Properties:
  3073. uint buttons;
  3074. VariantMap extraData;
  3075. float pitch;
  3076. float yaw;
  3077. };
  3078. class CrowdAgent
  3079. {
  3080. // Methods:
  3081. void ApplyAttributes();
  3082. void DrawDebugGeometry(DebugRenderer, bool);
  3083. void DrawDebugGeometry(bool);
  3084. Variant GetAttribute(const String&) const;
  3085. ValueAnimation GetAttributeAnimation(const String&) const;
  3086. float GetAttributeAnimationSpeed(const String&) const;
  3087. float GetAttributeAnimationTime(const String&) const;
  3088. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3089. Variant GetAttributeDefault(const String&) const;
  3090. bool GetInterceptNetworkUpdate(const String&) const;
  3091. bool Load(File, bool = false);
  3092. bool Load(VectorBuffer&, bool = false);
  3093. bool LoadXML(const XMLElement&, bool = false);
  3094. void MarkNetworkUpdate() const;
  3095. void Remove();
  3096. void RemoveAttributeAnimation(const String&);
  3097. void RemoveInstanceDefault();
  3098. void RemoveObjectAnimation();
  3099. void ResetTarget();
  3100. void ResetToDefault();
  3101. bool Save(File) const;
  3102. bool Save(VectorBuffer&) const;
  3103. bool SaveXML(XMLElement&) const;
  3104. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3105. void SetAnimationTime(float);
  3106. bool SetAttribute(const String&, const Variant&);
  3107. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3108. void SetAttributeAnimationSpeed(const String&, float);
  3109. void SetAttributeAnimationTime(const String&, float);
  3110. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3111. void SetInterceptNetworkUpdate(const String&, bool);
  3112. // Properties:
  3113. /* readonly */
  3114. Vector3 actualVelocity;
  3115. /* readonly */
  3116. CrowdAgentState agentState;
  3117. bool animationEnabled;
  3118. /* readonly */
  3119. bool arrived;
  3120. /* readonly */
  3121. Array<Variant> attributeDefaults;
  3122. /* readonly */
  3123. Array<AttributeInfo> attributeInfos;
  3124. Array<Variant> attributes;
  3125. /* readonly */
  3126. String category;
  3127. /* readonly */
  3128. Vector3 desiredVelocity;
  3129. bool enabled;
  3130. /* readonly */
  3131. bool enabledEffective;
  3132. float height;
  3133. /* readonly */
  3134. uint id;
  3135. /* readonly */
  3136. bool inCrowd;
  3137. float maxAccel;
  3138. float maxSpeed;
  3139. NavigationPushiness navigationPushiness;
  3140. NavigationQuality navigationQuality;
  3141. /* readonly */
  3142. Node node;
  3143. /* readonly */
  3144. uint numAttributes;
  3145. ObjectAnimation objectAnimation;
  3146. uint obstacleAvoidanceType;
  3147. /* readonly */
  3148. Vector3 position;
  3149. uint queryFilterType;
  3150. float radius;
  3151. /* readonly */
  3152. int refs;
  3153. /* readonly */
  3154. bool requestedTarget;
  3155. /* readonly */
  3156. CrowdAgentRequestedTarget requestedTargetType;
  3157. Vector3 targetPosition;
  3158. /* readonly */
  3159. CrowdAgentTargetState targetState;
  3160. Vector3 targetVelocity;
  3161. bool temporary;
  3162. /* readonly */
  3163. StringHash type;
  3164. /* readonly */
  3165. String typeName;
  3166. bool updateNodePosition;
  3167. /* readonly */
  3168. int weakRefs;
  3169. };
  3170. class CrowdManager
  3171. {
  3172. // Methods:
  3173. void ApplyAttributes();
  3174. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3175. void DrawDebugGeometry(DebugRenderer, bool);
  3176. void DrawDebugGeometry(bool);
  3177. Vector3 FindNearestPoint(const Vector3&, int);
  3178. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3179. float GetAreaCost(uint, uint);
  3180. Variant GetAttribute(const String&) const;
  3181. ValueAnimation GetAttributeAnimation(const String&) const;
  3182. float GetAttributeAnimationSpeed(const String&) const;
  3183. float GetAttributeAnimationTime(const String&) const;
  3184. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3185. Variant GetAttributeDefault(const String&) const;
  3186. float GetDistanceToWall(const Vector3&, float, int);
  3187. uint16 GetExcludeFlags(uint);
  3188. uint16 GetIncludeFlags(uint);
  3189. bool GetInterceptNetworkUpdate(const String&) const;
  3190. Vector3 GetRandomPoint(int);
  3191. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3192. bool Load(File, bool = false);
  3193. bool Load(VectorBuffer&, bool = false);
  3194. bool LoadXML(const XMLElement&, bool = false);
  3195. void MarkNetworkUpdate() const;
  3196. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3197. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3198. void Remove();
  3199. void RemoveAttributeAnimation(const String&);
  3200. void RemoveInstanceDefault();
  3201. void RemoveObjectAnimation();
  3202. void ResetCrowdTarget(Node = null);
  3203. void ResetToDefault();
  3204. bool Save(File) const;
  3205. bool Save(VectorBuffer&) const;
  3206. bool SaveXML(XMLElement&) const;
  3207. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3208. void SetAnimationTime(float);
  3209. void SetAreaCost(uint, uint, float);
  3210. bool SetAttribute(const String&, const Variant&);
  3211. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3212. void SetAttributeAnimationSpeed(const String&, float);
  3213. void SetAttributeAnimationTime(const String&, float);
  3214. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3215. void SetCrowdTarget(const Vector3&, Node = null);
  3216. void SetCrowdVelocity(const Vector3&, Node = null);
  3217. void SetExcludeFlags(uint, uint16);
  3218. void SetIncludeFlags(uint, uint16);
  3219. void SetInterceptNetworkUpdate(const String&, bool);
  3220. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3221. // Properties:
  3222. bool animationEnabled;
  3223. /* readonly */
  3224. Array<Variant> attributeDefaults;
  3225. /* readonly */
  3226. Array<AttributeInfo> attributeInfos;
  3227. Array<Variant> attributes;
  3228. /* readonly */
  3229. String category;
  3230. bool enabled;
  3231. /* readonly */
  3232. bool enabledEffective;
  3233. /* readonly */
  3234. uint id;
  3235. float maxAgentRadius;
  3236. int maxAgents;
  3237. NavigationMesh navMesh;
  3238. /* readonly */
  3239. Node node;
  3240. /* readonly */
  3241. Array<uint> numAreas;
  3242. /* readonly */
  3243. uint numAttributes;
  3244. /* readonly */
  3245. uint numObstacleAvoidanceTypes;
  3246. /* readonly */
  3247. uint numQueryFilterTypes;
  3248. ObjectAnimation objectAnimation;
  3249. /* readonly */
  3250. int refs;
  3251. bool temporary;
  3252. /* readonly */
  3253. StringHash type;
  3254. /* readonly */
  3255. String typeName;
  3256. /* readonly */
  3257. int weakRefs;
  3258. };
  3259. class CrowdObstacleAvoidanceParams
  3260. {
  3261. // Properties:
  3262. uint8 adaptiveDepth;
  3263. uint8 adaptiveDivs;
  3264. uint8 adaptiveRings;
  3265. uint8 gridSize;
  3266. float horizTime;
  3267. float velBias;
  3268. float weightCurVel;
  3269. float weightDesVel;
  3270. float weightSide;
  3271. float weightToi;
  3272. };
  3273. class Cursor
  3274. {
  3275. // Methods:
  3276. void AddChild(UIElement);
  3277. void ApplyAttributes();
  3278. void BringToFront();
  3279. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3280. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3281. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3282. void DisableLayoutUpdate();
  3283. IntVector2 ElementToScreen(const IntVector2&);
  3284. void EnableLayoutUpdate();
  3285. uint FindChild(UIElement) const;
  3286. Variant GetAttribute(const String&) const;
  3287. ValueAnimation GetAttributeAnimation(const String&) const;
  3288. float GetAttributeAnimationSpeed(const String&) const;
  3289. float GetAttributeAnimationTime(const String&) const;
  3290. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3291. Variant GetAttributeDefault(const String&) const;
  3292. UIElement GetChild(const String&, bool = false) const;
  3293. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3294. Array<UIElement> GetChildren(bool = false) const;
  3295. UIElement GetElementEventSender() const;
  3296. bool GetInterceptNetworkUpdate(const String&) const;
  3297. uint GetNumChildren(bool) const;
  3298. void InsertChild(uint, UIElement);
  3299. bool IsInside(IntVector2, bool);
  3300. bool IsInsideCombined(IntVector2, bool);
  3301. bool Load(File, bool = false);
  3302. bool Load(VectorBuffer&, bool = false);
  3303. bool LoadChildXML(XMLFile, XMLFile = null);
  3304. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3305. bool LoadXML(File);
  3306. bool LoadXML(VectorBuffer&);
  3307. bool LoadXML(XMLFile, XMLFile);
  3308. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3309. bool LoadXML(const XMLElement&, bool = false);
  3310. void MarkNetworkUpdate() const;
  3311. void Remove();
  3312. void RemoveAllChildren();
  3313. void RemoveAttributeAnimation(const String&);
  3314. void RemoveChild(UIElement, uint = 0);
  3315. void RemoveChild(uint);
  3316. void RemoveInstanceDefault();
  3317. void RemoveObjectAnimation();
  3318. void ResetDeepEnabled();
  3319. void ResetToDefault();
  3320. bool Save(File) const;
  3321. bool Save(VectorBuffer&) const;
  3322. bool SaveXML(File, const String& = "\t");
  3323. bool SaveXML(VectorBuffer&, const String& = "\t");
  3324. bool SaveXML(XMLElement&) const;
  3325. IntVector2 ScreenToElement(const IntVector2&);
  3326. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3327. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3328. void SetAnimationTime(float);
  3329. bool SetAttribute(const String&, const Variant&);
  3330. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3331. void SetAttributeAnimationSpeed(const String&, float);
  3332. void SetAttributeAnimationTime(const String&, float);
  3333. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3334. void SetDeepEnabled(bool);
  3335. void SetEnabledRecursive(bool);
  3336. void SetFixedHeight(int);
  3337. void SetFixedSize(int, int);
  3338. void SetFixedWidth(int);
  3339. void SetFullImageRect();
  3340. void SetHoverOffset(int, int);
  3341. void SetInterceptNetworkUpdate(const String&, bool);
  3342. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3343. void SetMaxSize(int, int);
  3344. void SetMinSize(int, int);
  3345. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3346. void SetPosition(int, int);
  3347. void SetShape(CursorShape);
  3348. void SetShape(const String&);
  3349. void SetSize(int, int);
  3350. bool SetStyle(const String&, XMLFile = null);
  3351. bool SetStyle(const XMLElement&);
  3352. bool SetStyleAuto(XMLFile = null);
  3353. void UpdateLayout();
  3354. const Variant& GetVar(const StringHash&);
  3355. // Properties:
  3356. bool animationEnabled;
  3357. /* readonly */
  3358. Array<Variant> attributeDefaults;
  3359. /* readonly */
  3360. Array<AttributeInfo> attributeInfos;
  3361. Array<Variant> attributes;
  3362. BlendMode blendMode;
  3363. IntRect border;
  3364. bool bringToBack;
  3365. bool bringToFront;
  3366. /* readonly */
  3367. String category;
  3368. /* readonly */
  3369. IntVector2 childOffset;
  3370. /* readonly */
  3371. Array<UIElement> children;
  3372. IntRect clipBorder;
  3373. bool clipChildren;
  3374. /* writeonly */
  3375. Color color;
  3376. /* readonly */
  3377. bool colorGradient;
  3378. Array<Color> colors;
  3379. /* readonly */
  3380. IntRect combinedScreenRect;
  3381. XMLFile defaultStyle;
  3382. /* readonly */
  3383. float derivedOpacity;
  3384. /* readonly */
  3385. uint dragButtonCombo;
  3386. /* readonly */
  3387. int dragButtonCount;
  3388. uint dragDropMode;
  3389. bool editable;
  3390. bool elementEventSender;
  3391. bool enabled;
  3392. /* readonly */
  3393. bool enabledSelf;
  3394. /* readonly */
  3395. bool fixedHeight;
  3396. /* readonly */
  3397. bool fixedSize;
  3398. /* readonly */
  3399. bool fixedWidth;
  3400. bool focus;
  3401. FocusMode focusMode;
  3402. int height;
  3403. HorizontalAlignment horizontalAlignment;
  3404. IntVector2 hoverOffset;
  3405. /* readonly */
  3406. bool hovering;
  3407. IntRect imageBorder;
  3408. IntRect imageRect;
  3409. int indent;
  3410. int indentSpacing;
  3411. /* readonly */
  3412. int indentWidth;
  3413. bool internal;
  3414. IntRect layoutBorder;
  3415. Vector2 layoutFlexScale;
  3416. LayoutMode layoutMode;
  3417. int layoutSpacing;
  3418. int maxHeight;
  3419. IntVector2 maxSize;
  3420. int maxWidth;
  3421. int minHeight;
  3422. IntVector2 minSize;
  3423. int minWidth;
  3424. String name;
  3425. /* readonly */
  3426. uint numAllChildren;
  3427. /* readonly */
  3428. uint numAttributes;
  3429. /* readonly */
  3430. uint numChildren;
  3431. ObjectAnimation objectAnimation;
  3432. float opacity;
  3433. UIElement parent;
  3434. IntVector2 position;
  3435. int priority;
  3436. /* readonly */
  3437. int refs;
  3438. /* readonly */
  3439. UIElement root;
  3440. /* readonly */
  3441. IntVector2 screenPosition;
  3442. bool selected;
  3443. String shape;
  3444. IntVector2 size;
  3445. bool sortChildren;
  3446. String style;
  3447. bool temporary;
  3448. Texture texture;
  3449. bool tiled;
  3450. TraversalMode traversalMode;
  3451. /* readonly */
  3452. StringHash type;
  3453. /* readonly */
  3454. String typeName;
  3455. bool useDerivedOpacity;
  3456. bool useSystemShapes;
  3457. /* readonly */
  3458. VariantMap vars;
  3459. VerticalAlignment verticalAlignment;
  3460. bool visible;
  3461. /* readonly */
  3462. bool visibleEffective;
  3463. /* readonly */
  3464. int weakRefs;
  3465. int width;
  3466. };
  3467. class CustomGeometry
  3468. {
  3469. // Methods:
  3470. void ApplyAttributes();
  3471. void BeginGeometry(uint, PrimitiveType);
  3472. void Clear();
  3473. void Commit();
  3474. void DefineColor(const Color&);
  3475. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3476. void DefineNormal(const Vector3&);
  3477. void DefineTangent(const Vector4&);
  3478. void DefineTexCoord(const Vector2&);
  3479. void DefineVertex(const Vector3&);
  3480. void DrawDebugGeometry(DebugRenderer, bool);
  3481. Variant GetAttribute(const String&) const;
  3482. ValueAnimation GetAttributeAnimation(const String&) const;
  3483. float GetAttributeAnimationSpeed(const String&) const;
  3484. float GetAttributeAnimationTime(const String&) const;
  3485. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3486. Variant GetAttributeDefault(const String&) const;
  3487. bool GetInterceptNetworkUpdate(const String&) const;
  3488. CustomGeometryVertex GetVertex(uint, uint);
  3489. bool IsInView(Camera) const;
  3490. bool Load(File, bool = false);
  3491. bool Load(VectorBuffer&, bool = false);
  3492. bool LoadXML(const XMLElement&, bool = false);
  3493. void MarkNetworkUpdate() const;
  3494. void Remove();
  3495. void RemoveAttributeAnimation(const String&);
  3496. void RemoveInstanceDefault();
  3497. void RemoveObjectAnimation();
  3498. void ResetToDefault();
  3499. bool Save(File) const;
  3500. bool Save(VectorBuffer&) const;
  3501. bool SaveXML(XMLElement&) const;
  3502. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3503. void SetAnimationTime(float);
  3504. bool SetAttribute(const String&, const Variant&);
  3505. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3506. void SetAttributeAnimationSpeed(const String&, float);
  3507. void SetAttributeAnimationTime(const String&, float);
  3508. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3509. void SetInterceptNetworkUpdate(const String&, bool);
  3510. // Properties:
  3511. bool animationEnabled;
  3512. /* readonly */
  3513. Array<Variant> attributeDefaults;
  3514. /* readonly */
  3515. Array<AttributeInfo> attributeInfos;
  3516. Array<Variant> attributes;
  3517. /* readonly */
  3518. BoundingBox boundingBox;
  3519. bool castShadows;
  3520. /* readonly */
  3521. String category;
  3522. float drawDistance;
  3523. bool dynamic;
  3524. bool enabled;
  3525. /* readonly */
  3526. bool enabledEffective;
  3527. /* readonly */
  3528. uint id;
  3529. /* readonly */
  3530. bool inView;
  3531. uint lightMask;
  3532. float lodBias;
  3533. /* writeonly */
  3534. Material material;
  3535. Array<Material> materials;
  3536. uint maxLights;
  3537. /* readonly */
  3538. Node node;
  3539. /* readonly */
  3540. uint numAttributes;
  3541. uint numGeometries;
  3542. /* readonly */
  3543. Array<uint> numVertices;
  3544. ObjectAnimation objectAnimation;
  3545. bool occludee;
  3546. bool occluder;
  3547. /* readonly */
  3548. int refs;
  3549. float shadowDistance;
  3550. uint shadowMask;
  3551. bool temporary;
  3552. /* readonly */
  3553. StringHash type;
  3554. /* readonly */
  3555. String typeName;
  3556. uint viewMask;
  3557. /* readonly */
  3558. int weakRefs;
  3559. /* readonly */
  3560. BoundingBox worldBoundingBox;
  3561. /* readonly */
  3562. Zone zone;
  3563. uint zoneMask;
  3564. };
  3565. class CustomGeometryVertex
  3566. {
  3567. // Properties:
  3568. uint color;
  3569. Vector3 normal;
  3570. Vector3 position;
  3571. Vector4 tangent;
  3572. Vector2 texCoord;
  3573. };
  3574. class Database
  3575. {
  3576. // Methods:
  3577. DbConnection Connect(const String&);
  3578. void Disconnect(DbConnection);
  3579. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3580. // Properties:
  3581. /* readonly */
  3582. String category;
  3583. uint poolSize;
  3584. /* readonly */
  3585. bool pooling;
  3586. /* readonly */
  3587. int refs;
  3588. /* readonly */
  3589. StringHash type;
  3590. /* readonly */
  3591. String typeName;
  3592. /* readonly */
  3593. int weakRefs;
  3594. };
  3595. class DbConnection
  3596. {
  3597. // Methods:
  3598. DbResult Execute(const String&, bool = false);
  3599. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3600. // Properties:
  3601. /* readonly */
  3602. String category;
  3603. /* readonly */
  3604. bool connected;
  3605. /* readonly */
  3606. String connectionString;
  3607. /* readonly */
  3608. int refs;
  3609. /* readonly */
  3610. StringHash type;
  3611. /* readonly */
  3612. String typeName;
  3613. /* readonly */
  3614. int weakRefs;
  3615. };
  3616. class DbResult
  3617. {
  3618. // Properties:
  3619. /* readonly */
  3620. Array<String> columns;
  3621. /* readonly */
  3622. int64 numAffectedRows;
  3623. /* readonly */
  3624. uint numColumns;
  3625. /* readonly */
  3626. uint numRows;
  3627. /* readonly */
  3628. Array<Array<Variant>> row;
  3629. };
  3630. class DebugHud
  3631. {
  3632. // Methods:
  3633. void ClearAppStats();
  3634. void ResetAppStats(const String&);
  3635. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3636. void SetAppStats(const String&, const String&);
  3637. void SetAppStats(const String&, const Variant&);
  3638. void Toggle(uint);
  3639. void ToggleAll();
  3640. void Update();
  3641. // Properties:
  3642. /* readonly */
  3643. String category;
  3644. XMLFile defaultStyle;
  3645. /* readonly */
  3646. Text memoryText;
  3647. uint mode;
  3648. /* readonly */
  3649. Text modeText;
  3650. float profilerInterval;
  3651. uint profilerMaxDepth;
  3652. /* readonly */
  3653. Text profilerText;
  3654. /* readonly */
  3655. int refs;
  3656. /* readonly */
  3657. Text statsText;
  3658. /* readonly */
  3659. StringHash type;
  3660. /* readonly */
  3661. String typeName;
  3662. bool useRendererStats;
  3663. /* readonly */
  3664. int weakRefs;
  3665. };
  3666. class DebugRenderer
  3667. {
  3668. // Methods:
  3669. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3670. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3671. void AddCross(const Vector3&, float, const Color&, bool = true);
  3672. void AddFrustum(const Frustum&, const Color&, bool = true);
  3673. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3674. void AddNode(Node, float = 1.0, bool = true);
  3675. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3676. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3677. void AddSkeleton(Skeleton, const Color&, bool = true);
  3678. void AddSphere(const Sphere&, const Color&, bool = true);
  3679. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3680. void ApplyAttributes();
  3681. void DrawDebugGeometry(DebugRenderer, bool);
  3682. Variant GetAttribute(const String&) const;
  3683. ValueAnimation GetAttributeAnimation(const String&) const;
  3684. float GetAttributeAnimationSpeed(const String&) const;
  3685. float GetAttributeAnimationTime(const String&) const;
  3686. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3687. Variant GetAttributeDefault(const String&) const;
  3688. bool GetInterceptNetworkUpdate(const String&) const;
  3689. bool Load(File, bool = false);
  3690. bool Load(VectorBuffer&, bool = false);
  3691. bool LoadXML(const XMLElement&, bool = false);
  3692. void MarkNetworkUpdate() const;
  3693. void Remove();
  3694. void RemoveAttributeAnimation(const String&);
  3695. void RemoveInstanceDefault();
  3696. void RemoveObjectAnimation();
  3697. void ResetToDefault();
  3698. bool Save(File) const;
  3699. bool Save(VectorBuffer&) const;
  3700. bool SaveXML(XMLElement&) const;
  3701. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3702. void SetAnimationTime(float);
  3703. bool SetAttribute(const String&, const Variant&);
  3704. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3705. void SetAttributeAnimationSpeed(const String&, float);
  3706. void SetAttributeAnimationTime(const String&, float);
  3707. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3708. void SetInterceptNetworkUpdate(const String&, bool);
  3709. // Properties:
  3710. bool animationEnabled;
  3711. /* readonly */
  3712. Array<Variant> attributeDefaults;
  3713. /* readonly */
  3714. Array<AttributeInfo> attributeInfos;
  3715. Array<Variant> attributes;
  3716. /* readonly */
  3717. String category;
  3718. bool enabled;
  3719. /* readonly */
  3720. bool enabledEffective;
  3721. /* readonly */
  3722. uint id;
  3723. /* readonly */
  3724. Node node;
  3725. /* readonly */
  3726. uint numAttributes;
  3727. ObjectAnimation objectAnimation;
  3728. /* readonly */
  3729. int refs;
  3730. bool temporary;
  3731. /* readonly */
  3732. StringHash type;
  3733. /* readonly */
  3734. String typeName;
  3735. /* readonly */
  3736. int weakRefs;
  3737. };
  3738. class DecalSet
  3739. {
  3740. // Methods:
  3741. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3742. void ApplyAttributes();
  3743. void DrawDebugGeometry(DebugRenderer, bool);
  3744. Variant GetAttribute(const String&) const;
  3745. ValueAnimation GetAttributeAnimation(const String&) const;
  3746. float GetAttributeAnimationSpeed(const String&) const;
  3747. float GetAttributeAnimationTime(const String&) const;
  3748. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3749. Variant GetAttributeDefault(const String&) const;
  3750. bool GetInterceptNetworkUpdate(const String&) const;
  3751. bool IsInView(Camera) const;
  3752. bool Load(File, bool = false);
  3753. bool Load(VectorBuffer&, bool = false);
  3754. bool LoadXML(const XMLElement&, bool = false);
  3755. void MarkNetworkUpdate() const;
  3756. void Remove();
  3757. void RemoveAllDecals();
  3758. void RemoveAttributeAnimation(const String&);
  3759. void RemoveDecals(uint);
  3760. void RemoveInstanceDefault();
  3761. void RemoveObjectAnimation();
  3762. void ResetToDefault();
  3763. bool Save(File) const;
  3764. bool Save(VectorBuffer&) const;
  3765. bool SaveXML(XMLElement&) const;
  3766. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3767. void SetAnimationTime(float);
  3768. bool SetAttribute(const String&, const Variant&);
  3769. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3770. void SetAttributeAnimationSpeed(const String&, float);
  3771. void SetAttributeAnimationTime(const String&, float);
  3772. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3773. void SetInterceptNetworkUpdate(const String&, bool);
  3774. // Properties:
  3775. bool animationEnabled;
  3776. /* readonly */
  3777. Array<Variant> attributeDefaults;
  3778. /* readonly */
  3779. Array<AttributeInfo> attributeInfos;
  3780. Array<Variant> attributes;
  3781. /* readonly */
  3782. BoundingBox boundingBox;
  3783. bool castShadows;
  3784. /* readonly */
  3785. String category;
  3786. float drawDistance;
  3787. bool enabled;
  3788. /* readonly */
  3789. bool enabledEffective;
  3790. /* readonly */
  3791. uint id;
  3792. /* readonly */
  3793. bool inView;
  3794. uint lightMask;
  3795. float lodBias;
  3796. Material material;
  3797. uint maxIndices;
  3798. uint maxLights;
  3799. uint maxVertices;
  3800. /* readonly */
  3801. Node node;
  3802. /* readonly */
  3803. uint numAttributes;
  3804. /* readonly */
  3805. uint numDecals;
  3806. /* readonly */
  3807. uint numIndices;
  3808. /* readonly */
  3809. uint numVertices;
  3810. ObjectAnimation objectAnimation;
  3811. bool occludee;
  3812. bool occluder;
  3813. /* readonly */
  3814. int refs;
  3815. float shadowDistance;
  3816. uint shadowMask;
  3817. bool temporary;
  3818. /* readonly */
  3819. StringHash type;
  3820. /* readonly */
  3821. String typeName;
  3822. uint viewMask;
  3823. /* readonly */
  3824. int weakRefs;
  3825. /* readonly */
  3826. BoundingBox worldBoundingBox;
  3827. /* readonly */
  3828. Zone zone;
  3829. uint zoneMask;
  3830. };
  3831. class Deserializer
  3832. {
  3833. // Methods:
  3834. Array<uint8> Read(uint);
  3835. bool ReadBool();
  3836. BoundingBox ReadBoundingBox();
  3837. int8 ReadByte();
  3838. Color ReadColor();
  3839. double ReadDouble();
  3840. String ReadFileID();
  3841. float ReadFloat();
  3842. int ReadInt();
  3843. IntRect ReadIntRect();
  3844. IntVector2 ReadIntVector2();
  3845. String ReadLine();
  3846. Matrix3 ReadMatrix3();
  3847. Matrix3x4 ReadMatrix3x4();
  3848. Matrix4 ReadMatrix4();
  3849. uint ReadNetID();
  3850. Quaternion ReadPackedQuaternion();
  3851. Vector3 ReadPackedVector3(float);
  3852. Quaternion ReadQuaternion();
  3853. int16 ReadShort();
  3854. String ReadString();
  3855. StringHash ReadStringHash();
  3856. uint8 ReadUByte();
  3857. uint ReadUInt();
  3858. uint16 ReadUShort();
  3859. uint ReadVLE();
  3860. Variant ReadVariant();
  3861. VariantMap ReadVariantMap();
  3862. Vector2 ReadVector2();
  3863. Vector3 ReadVector3();
  3864. Vector4 ReadVector4();
  3865. VectorBuffer ReadVectorBuffer(uint);
  3866. uint Seek(uint);
  3867. // Properties:
  3868. /* readonly */
  3869. uint checksum;
  3870. /* readonly */
  3871. bool eof;
  3872. /* readonly */
  3873. String name;
  3874. /* readonly */
  3875. uint position;
  3876. /* readonly */
  3877. uint size;
  3878. };
  3879. class Dictionary
  3880. {
  3881. // Methods:
  3882. void Clear();
  3883. void Erase(const String&);
  3884. bool Exists(const String&) const;
  3885. bool Get(const String&, void*) const;
  3886. bool Get(const String&, double&) const;
  3887. bool Get(const String&, int64&) const;
  3888. void Set(const String&, const void*);
  3889. void Set(const String&, const double&);
  3890. void Set(const String&, const int64&);
  3891. // Properties:
  3892. /* readonly */
  3893. bool empty;
  3894. /* readonly */
  3895. Array<String> keys;
  3896. /* readonly */
  3897. uint length;
  3898. };
  3899. class DictionaryValue
  3900. {
  3901. };
  3902. class Drawable
  3903. {
  3904. // Methods:
  3905. void ApplyAttributes();
  3906. void DrawDebugGeometry(DebugRenderer, bool);
  3907. Variant GetAttribute(const String&) const;
  3908. ValueAnimation GetAttributeAnimation(const String&) const;
  3909. float GetAttributeAnimationSpeed(const String&) const;
  3910. float GetAttributeAnimationTime(const String&) const;
  3911. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3912. Variant GetAttributeDefault(const String&) const;
  3913. bool GetInterceptNetworkUpdate(const String&) const;
  3914. bool IsInView(Camera) const;
  3915. bool Load(File, bool = false);
  3916. bool Load(VectorBuffer&, bool = false);
  3917. bool LoadXML(const XMLElement&, bool = false);
  3918. void MarkNetworkUpdate() const;
  3919. void Remove();
  3920. void RemoveAttributeAnimation(const String&);
  3921. void RemoveInstanceDefault();
  3922. void RemoveObjectAnimation();
  3923. void ResetToDefault();
  3924. bool Save(File) const;
  3925. bool Save(VectorBuffer&) const;
  3926. bool SaveXML(XMLElement&) const;
  3927. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3928. void SetAnimationTime(float);
  3929. bool SetAttribute(const String&, const Variant&);
  3930. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3931. void SetAttributeAnimationSpeed(const String&, float);
  3932. void SetAttributeAnimationTime(const String&, float);
  3933. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3934. void SetInterceptNetworkUpdate(const String&, bool);
  3935. // Properties:
  3936. bool animationEnabled;
  3937. /* readonly */
  3938. Array<Variant> attributeDefaults;
  3939. /* readonly */
  3940. Array<AttributeInfo> attributeInfos;
  3941. Array<Variant> attributes;
  3942. /* readonly */
  3943. BoundingBox boundingBox;
  3944. bool castShadows;
  3945. /* readonly */
  3946. String category;
  3947. float drawDistance;
  3948. bool enabled;
  3949. /* readonly */
  3950. bool enabledEffective;
  3951. /* readonly */
  3952. uint id;
  3953. /* readonly */
  3954. bool inView;
  3955. uint lightMask;
  3956. float lodBias;
  3957. uint maxLights;
  3958. /* readonly */
  3959. Node node;
  3960. /* readonly */
  3961. uint numAttributes;
  3962. ObjectAnimation objectAnimation;
  3963. bool occludee;
  3964. bool occluder;
  3965. /* readonly */
  3966. int refs;
  3967. float shadowDistance;
  3968. uint shadowMask;
  3969. bool temporary;
  3970. /* readonly */
  3971. StringHash type;
  3972. /* readonly */
  3973. String typeName;
  3974. uint viewMask;
  3975. /* readonly */
  3976. int weakRefs;
  3977. /* readonly */
  3978. BoundingBox worldBoundingBox;
  3979. uint zoneMask;
  3980. };
  3981. class Drawable2D
  3982. {
  3983. // Methods:
  3984. void ApplyAttributes();
  3985. void DrawDebugGeometry(DebugRenderer, bool);
  3986. Variant GetAttribute(const String&) const;
  3987. ValueAnimation GetAttributeAnimation(const String&) const;
  3988. float GetAttributeAnimationSpeed(const String&) const;
  3989. float GetAttributeAnimationTime(const String&) const;
  3990. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3991. Variant GetAttributeDefault(const String&) const;
  3992. bool GetInterceptNetworkUpdate(const String&) const;
  3993. bool IsInView(Camera) const;
  3994. bool Load(File, bool = false);
  3995. bool Load(VectorBuffer&, bool = false);
  3996. bool LoadXML(const XMLElement&, bool = false);
  3997. void MarkNetworkUpdate() const;
  3998. void Remove();
  3999. void RemoveAttributeAnimation(const String&);
  4000. void RemoveInstanceDefault();
  4001. void RemoveObjectAnimation();
  4002. void ResetToDefault();
  4003. bool Save(File) const;
  4004. bool Save(VectorBuffer&) const;
  4005. bool SaveXML(XMLElement&) const;
  4006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4007. void SetAnimationTime(float);
  4008. bool SetAttribute(const String&, const Variant&);
  4009. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4010. void SetAttributeAnimationSpeed(const String&, float);
  4011. void SetAttributeAnimationTime(const String&, float);
  4012. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4013. void SetInterceptNetworkUpdate(const String&, bool);
  4014. // Properties:
  4015. bool animationEnabled;
  4016. /* readonly */
  4017. Array<Variant> attributeDefaults;
  4018. /* readonly */
  4019. Array<AttributeInfo> attributeInfos;
  4020. Array<Variant> attributes;
  4021. /* readonly */
  4022. BoundingBox boundingBox;
  4023. bool castShadows;
  4024. /* readonly */
  4025. String category;
  4026. float drawDistance;
  4027. bool enabled;
  4028. /* readonly */
  4029. bool enabledEffective;
  4030. /* readonly */
  4031. uint id;
  4032. /* readonly */
  4033. bool inView;
  4034. int layer;
  4035. uint lightMask;
  4036. float lodBias;
  4037. uint maxLights;
  4038. /* readonly */
  4039. Node node;
  4040. /* readonly */
  4041. uint numAttributes;
  4042. ObjectAnimation objectAnimation;
  4043. bool occludee;
  4044. bool occluder;
  4045. int orderInLayer;
  4046. /* readonly */
  4047. int refs;
  4048. float shadowDistance;
  4049. uint shadowMask;
  4050. bool temporary;
  4051. /* readonly */
  4052. StringHash type;
  4053. /* readonly */
  4054. String typeName;
  4055. uint viewMask;
  4056. /* readonly */
  4057. int weakRefs;
  4058. /* readonly */
  4059. BoundingBox worldBoundingBox;
  4060. uint zoneMask;
  4061. };
  4062. class DropDownList
  4063. {
  4064. // Methods:
  4065. void AddChild(UIElement);
  4066. void AddItem(UIElement);
  4067. void ApplyAttributes();
  4068. void BringToFront();
  4069. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4070. void DisableLayoutUpdate();
  4071. IntVector2 ElementToScreen(const IntVector2&);
  4072. void EnableLayoutUpdate();
  4073. uint FindChild(UIElement) const;
  4074. Variant GetAttribute(const String&) const;
  4075. ValueAnimation GetAttributeAnimation(const String&) const;
  4076. float GetAttributeAnimationSpeed(const String&) const;
  4077. float GetAttributeAnimationTime(const String&) const;
  4078. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4079. Variant GetAttributeDefault(const String&) const;
  4080. UIElement GetChild(const String&, bool = false) const;
  4081. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4082. Array<UIElement> GetChildren(bool = false) const;
  4083. UIElement GetElementEventSender() const;
  4084. bool GetInterceptNetworkUpdate(const String&) const;
  4085. Array<UIElement> GetItems() const;
  4086. uint GetNumChildren(bool) const;
  4087. void InsertChild(uint, UIElement);
  4088. void InsertItem(uint, UIElement);
  4089. bool IsInside(IntVector2, bool);
  4090. bool IsInsideCombined(IntVector2, bool);
  4091. bool Load(File, bool = false);
  4092. bool Load(VectorBuffer&, bool = false);
  4093. bool LoadChildXML(XMLFile, XMLFile = null);
  4094. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4095. bool LoadXML(File);
  4096. bool LoadXML(VectorBuffer&);
  4097. bool LoadXML(XMLFile, XMLFile);
  4098. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4099. bool LoadXML(const XMLElement&, bool = false);
  4100. void MarkNetworkUpdate() const;
  4101. void Remove();
  4102. void RemoveAllChildren();
  4103. void RemoveAllItems();
  4104. void RemoveAttributeAnimation(const String&);
  4105. void RemoveChild(UIElement, uint = 0);
  4106. void RemoveChild(uint);
  4107. void RemoveInstanceDefault();
  4108. void RemoveItem(UIElement);
  4109. void RemoveItem(uint);
  4110. void RemoveObjectAnimation();
  4111. void ResetDeepEnabled();
  4112. void ResetToDefault();
  4113. bool Save(File) const;
  4114. bool Save(VectorBuffer&) const;
  4115. bool SaveXML(File, const String& = "\t");
  4116. bool SaveXML(VectorBuffer&, const String& = "\t");
  4117. bool SaveXML(XMLElement&) const;
  4118. IntVector2 ScreenToElement(const IntVector2&);
  4119. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4120. void SetAccelerator(int, int);
  4121. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4122. void SetAnimationTime(float);
  4123. bool SetAttribute(const String&, const Variant&);
  4124. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4125. void SetAttributeAnimationSpeed(const String&, float);
  4126. void SetAttributeAnimationTime(const String&, float);
  4127. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4128. void SetDeepEnabled(bool);
  4129. void SetEnabledRecursive(bool);
  4130. void SetFixedHeight(int);
  4131. void SetFixedSize(int, int);
  4132. void SetFixedWidth(int);
  4133. void SetFullImageRect();
  4134. void SetHoverOffset(int, int);
  4135. void SetInterceptNetworkUpdate(const String&, bool);
  4136. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4137. void SetMaxSize(int, int);
  4138. void SetMinSize(int, int);
  4139. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4140. void SetPosition(int, int);
  4141. void SetPressedChildOffset(int, int);
  4142. void SetPressedOffset(int, int);
  4143. void SetRepeat(float, float);
  4144. void SetSize(int, int);
  4145. bool SetStyle(const String&, XMLFile = null);
  4146. bool SetStyle(const XMLElement&);
  4147. bool SetStyleAuto(XMLFile = null);
  4148. void UpdateLayout();
  4149. const Variant& GetVar(const StringHash&);
  4150. UIElement getPopup() const;
  4151. // Properties:
  4152. /* readonly */
  4153. int acceleratorKey;
  4154. /* readonly */
  4155. int acceleratorQualifiers;
  4156. bool animationEnabled;
  4157. /* readonly */
  4158. Array<Variant> attributeDefaults;
  4159. /* readonly */
  4160. Array<AttributeInfo> attributeInfos;
  4161. Array<Variant> attributes;
  4162. BlendMode blendMode;
  4163. IntRect border;
  4164. bool bringToBack;
  4165. bool bringToFront;
  4166. /* readonly */
  4167. String category;
  4168. /* readonly */
  4169. IntVector2 childOffset;
  4170. /* readonly */
  4171. Array<UIElement> children;
  4172. IntRect clipBorder;
  4173. bool clipChildren;
  4174. /* writeonly */
  4175. Color color;
  4176. /* readonly */
  4177. bool colorGradient;
  4178. Array<Color> colors;
  4179. /* readonly */
  4180. IntRect combinedScreenRect;
  4181. XMLFile defaultStyle;
  4182. /* readonly */
  4183. float derivedOpacity;
  4184. /* readonly */
  4185. uint dragButtonCombo;
  4186. /* readonly */
  4187. int dragButtonCount;
  4188. uint dragDropMode;
  4189. bool editable;
  4190. bool elementEventSender;
  4191. bool enabled;
  4192. /* readonly */
  4193. bool enabledSelf;
  4194. /* readonly */
  4195. bool fixedHeight;
  4196. /* readonly */
  4197. bool fixedSize;
  4198. /* readonly */
  4199. bool fixedWidth;
  4200. bool focus;
  4201. FocusMode focusMode;
  4202. int height;
  4203. HorizontalAlignment horizontalAlignment;
  4204. IntVector2 hoverOffset;
  4205. /* readonly */
  4206. bool hovering;
  4207. IntRect imageBorder;
  4208. IntRect imageRect;
  4209. int indent;
  4210. int indentSpacing;
  4211. /* readonly */
  4212. int indentWidth;
  4213. bool internal;
  4214. /* readonly */
  4215. Array<UIElement> items;
  4216. IntRect layoutBorder;
  4217. Vector2 layoutFlexScale;
  4218. LayoutMode layoutMode;
  4219. int layoutSpacing;
  4220. /* readonly */
  4221. ListView listView;
  4222. int maxHeight;
  4223. IntVector2 maxSize;
  4224. int maxWidth;
  4225. int minHeight;
  4226. IntVector2 minSize;
  4227. int minWidth;
  4228. String name;
  4229. /* readonly */
  4230. uint numAllChildren;
  4231. /* readonly */
  4232. uint numAttributes;
  4233. /* readonly */
  4234. uint numChildren;
  4235. /* readonly */
  4236. uint numItems;
  4237. ObjectAnimation objectAnimation;
  4238. float opacity;
  4239. UIElement parent;
  4240. /* readonly */
  4241. UIElement placeholder;
  4242. String placeholderText;
  4243. IntVector2 position;
  4244. /* readonly */
  4245. bool pressed;
  4246. IntVector2 pressedChildOffset;
  4247. IntVector2 pressedOffset;
  4248. int priority;
  4249. /* readonly */
  4250. int refs;
  4251. float repeatDelay;
  4252. float repeatRate;
  4253. bool resizePopup;
  4254. /* readonly */
  4255. UIElement root;
  4256. /* readonly */
  4257. IntVector2 screenPosition;
  4258. bool selected;
  4259. /* readonly */
  4260. UIElement selectedItem;
  4261. uint selection;
  4262. bool showPopup;
  4263. IntVector2 size;
  4264. bool sortChildren;
  4265. String style;
  4266. bool temporary;
  4267. Texture texture;
  4268. bool tiled;
  4269. TraversalMode traversalMode;
  4270. /* readonly */
  4271. StringHash type;
  4272. /* readonly */
  4273. String typeName;
  4274. bool useDerivedOpacity;
  4275. /* readonly */
  4276. VariantMap vars;
  4277. VerticalAlignment verticalAlignment;
  4278. bool visible;
  4279. /* readonly */
  4280. bool visibleEffective;
  4281. /* readonly */
  4282. int weakRefs;
  4283. int width;
  4284. };
  4285. class DynamicNavigationMesh
  4286. {
  4287. // Methods:
  4288. void ApplyAttributes();
  4289. bool Build();
  4290. bool Build(const BoundingBox&);
  4291. void DrawDebugGeometry(DebugRenderer, bool);
  4292. void DrawDebugGeometry(bool);
  4293. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4294. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4295. float GetAreaCost(uint) const;
  4296. Variant GetAttribute(const String&) const;
  4297. ValueAnimation GetAttributeAnimation(const String&) const;
  4298. float GetAttributeAnimationSpeed(const String&) const;
  4299. float GetAttributeAnimationTime(const String&) const;
  4300. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4301. Variant GetAttributeDefault(const String&) const;
  4302. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4303. bool GetInterceptNetworkUpdate(const String&) const;
  4304. Vector3 GetRandomPoint();
  4305. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4306. bool Load(File, bool = false);
  4307. bool Load(VectorBuffer&, bool = false);
  4308. bool LoadXML(const XMLElement&, bool = false);
  4309. void MarkNetworkUpdate() const;
  4310. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4311. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4312. void Remove();
  4313. void RemoveAttributeAnimation(const String&);
  4314. void RemoveInstanceDefault();
  4315. void RemoveObjectAnimation();
  4316. void ResetToDefault();
  4317. bool Save(File) const;
  4318. bool Save(VectorBuffer&) const;
  4319. bool SaveXML(XMLElement&) const;
  4320. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4321. void SetAnimationTime(float);
  4322. void SetAreaCost(uint, float);
  4323. bool SetAttribute(const String&, const Variant&);
  4324. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4325. void SetAttributeAnimationSpeed(const String&, float);
  4326. void SetAttributeAnimationTime(const String&, float);
  4327. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4328. void SetInterceptNetworkUpdate(const String&, bool);
  4329. // Properties:
  4330. float agentHeight;
  4331. float agentMaxClimb;
  4332. float agentMaxSlope;
  4333. float agentRadius;
  4334. bool animationEnabled;
  4335. /* readonly */
  4336. Array<Variant> attributeDefaults;
  4337. /* readonly */
  4338. Array<AttributeInfo> attributeInfos;
  4339. Array<Variant> attributes;
  4340. /* readonly */
  4341. BoundingBox boundingBox;
  4342. /* readonly */
  4343. String category;
  4344. float cellHeight;
  4345. float cellSize;
  4346. float detailSampleDistance;
  4347. float detailSampleMaxError;
  4348. bool drawNavAreas;
  4349. bool drawObstacles;
  4350. bool drawOffMeshConnections;
  4351. float edgeMaxError;
  4352. float edgeMaxLength;
  4353. bool enabled;
  4354. /* readonly */
  4355. bool enabledEffective;
  4356. /* readonly */
  4357. uint id;
  4358. /* readonly */
  4359. bool initialized;
  4360. uint maxObstacles;
  4361. /* readonly */
  4362. Node node;
  4363. /* readonly */
  4364. uint numAttributes;
  4365. /* readonly */
  4366. IntVector2 numTiles;
  4367. ObjectAnimation objectAnimation;
  4368. Vector3 padding;
  4369. NavmeshPartitionType partitionType;
  4370. /* readonly */
  4371. int refs;
  4372. float regionMergeSize;
  4373. float regionMinSize;
  4374. bool temporary;
  4375. int tileSize;
  4376. /* readonly */
  4377. StringHash type;
  4378. /* readonly */
  4379. String typeName;
  4380. /* readonly */
  4381. int weakRefs;
  4382. /* readonly */
  4383. BoundingBox worldBoundingBox;
  4384. };
  4385. class Engine
  4386. {
  4387. // Methods:
  4388. Console CreateConsole();
  4389. DebugHud CreateDebugHud();
  4390. void DumpMemory();
  4391. void DumpProfiler();
  4392. void DumpResources(bool = false);
  4393. void Exit();
  4394. void RunFrame();
  4395. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4396. // Properties:
  4397. bool autoExit;
  4398. /* readonly */
  4399. String category;
  4400. /* readonly */
  4401. bool exiting;
  4402. /* readonly */
  4403. bool headless;
  4404. /* readonly */
  4405. bool initialized;
  4406. int maxFps;
  4407. int maxInactiveFps;
  4408. int minFps;
  4409. bool pauseMinimized;
  4410. /* readonly */
  4411. int refs;
  4412. int timeStepSmoothing;
  4413. /* readonly */
  4414. StringHash type;
  4415. /* readonly */
  4416. String typeName;
  4417. /* readonly */
  4418. int weakRefs;
  4419. };
  4420. class File
  4421. {
  4422. // Methods:
  4423. void Close();
  4424. bool Open(const String&, FileMode = FILE_READ);
  4425. Array<uint8> Read(uint);
  4426. bool ReadBool();
  4427. BoundingBox ReadBoundingBox();
  4428. int8 ReadByte();
  4429. Color ReadColor();
  4430. double ReadDouble();
  4431. String ReadFileID();
  4432. float ReadFloat();
  4433. int ReadInt();
  4434. IntRect ReadIntRect();
  4435. IntVector2 ReadIntVector2();
  4436. String ReadLine();
  4437. Matrix3 ReadMatrix3();
  4438. Matrix3x4 ReadMatrix3x4();
  4439. Matrix4 ReadMatrix4();
  4440. uint ReadNetID();
  4441. Quaternion ReadPackedQuaternion();
  4442. Vector3 ReadPackedVector3(float);
  4443. Quaternion ReadQuaternion();
  4444. int16 ReadShort();
  4445. String ReadString();
  4446. StringHash ReadStringHash();
  4447. uint8 ReadUByte();
  4448. uint ReadUInt();
  4449. uint16 ReadUShort();
  4450. uint ReadVLE();
  4451. Variant ReadVariant();
  4452. VariantMap ReadVariantMap();
  4453. Vector2 ReadVector2();
  4454. Vector3 ReadVector3();
  4455. Vector4 ReadVector4();
  4456. VectorBuffer ReadVectorBuffer(uint);
  4457. uint Seek(uint);
  4458. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4459. uint Write(Array<uint8>);
  4460. bool WriteBool(bool);
  4461. bool WriteBoundingBox(const BoundingBox&);
  4462. bool WriteByte(int8);
  4463. bool WriteColor(const Color&);
  4464. bool WriteDouble(double);
  4465. bool WriteFileID(const String&);
  4466. bool WriteFloat(float);
  4467. bool WriteInt(int);
  4468. bool WriteIntRect(const IntRect&);
  4469. bool WriteIntVector2(const IntVector2&);
  4470. bool WriteLine(const String&);
  4471. bool WriteMatrix3(const Matrix3&);
  4472. bool WriteMatrix3x4(const Matrix3x4&);
  4473. bool WriteMatrix4(const Matrix4&);
  4474. bool WriteNetID(uint);
  4475. bool WritePackedQuaternion(const Quaternion&);
  4476. bool WritePackedVector3(const Vector3&, float);
  4477. bool WriteQuaternion(const Quaternion&);
  4478. bool WriteShort(int16);
  4479. bool WriteString(const String&);
  4480. bool WriteStringHash(const StringHash&);
  4481. bool WriteUByte(uint8);
  4482. bool WriteUInt(uint);
  4483. bool WriteUShort(uint16);
  4484. bool WriteVLE(uint);
  4485. bool WriteVariant(const Variant&);
  4486. bool WriteVariantMap(const VariantMap&);
  4487. bool WriteVector2(const Vector2&);
  4488. bool WriteVector3(const Vector3&);
  4489. bool WriteVector4(const Vector4&);
  4490. bool WriteVectorBuffer(const VectorBuffer&);
  4491. // Properties:
  4492. /* readonly */
  4493. String category;
  4494. /* readonly */
  4495. uint checksum;
  4496. /* readonly */
  4497. bool eof;
  4498. /* readonly */
  4499. FileMode mode;
  4500. /* readonly */
  4501. String name;
  4502. /* readonly */
  4503. bool open;
  4504. /* readonly */
  4505. bool packaged;
  4506. /* readonly */
  4507. uint position;
  4508. /* readonly */
  4509. int refs;
  4510. /* readonly */
  4511. uint size;
  4512. /* readonly */
  4513. StringHash type;
  4514. /* readonly */
  4515. String typeName;
  4516. /* readonly */
  4517. int weakRefs;
  4518. };
  4519. class FileSelector
  4520. {
  4521. // Methods:
  4522. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4523. void SetButtonTexts(const String&, const String&);
  4524. void SetFilters(Array<String>, uint);
  4525. void UpdateElements();
  4526. // Properties:
  4527. /* readonly */
  4528. Button cancelButton;
  4529. /* readonly */
  4530. String category;
  4531. XMLFile defaultStyle;
  4532. bool directoryMode;
  4533. /* readonly */
  4534. ListView fileList;
  4535. String fileName;
  4536. /* readonly */
  4537. LineEdit fileNameEdit;
  4538. /* readonly */
  4539. String filter;
  4540. /* readonly */
  4541. uint filterIndex;
  4542. /* readonly */
  4543. DropDownList filterList;
  4544. /* readonly */
  4545. Button okButton;
  4546. String path;
  4547. /* readonly */
  4548. LineEdit pathEdit;
  4549. /* readonly */
  4550. int refs;
  4551. String title;
  4552. /* readonly */
  4553. Text titleText;
  4554. /* readonly */
  4555. StringHash type;
  4556. /* readonly */
  4557. String typeName;
  4558. /* readonly */
  4559. int weakRefs;
  4560. /* readonly */
  4561. Window window;
  4562. };
  4563. class FileSystem
  4564. {
  4565. // Methods:
  4566. bool Copy(const String&, const String&);
  4567. bool CreateDir(const String&);
  4568. bool Delete(const String&);
  4569. bool DirExists(const String&) const;
  4570. bool FileExists(const String&) const;
  4571. String GetAppPreferencesDir(const String&, const String&) const;
  4572. uint GetLastModifiedTime(const String&) const;
  4573. bool Rename(const String&, const String&);
  4574. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4575. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4576. bool SetLastModifiedTime(const String&, uint);
  4577. int SystemCommand(const String&, bool = false);
  4578. uint SystemCommandAsync(const String&);
  4579. bool SystemOpen(const String&, const String&);
  4580. int SystemRun(const String&, Array<String>);
  4581. uint SystemRunAsync(const String&, Array<String>);
  4582. // Properties:
  4583. /* readonly */
  4584. String category;
  4585. String currentDir;
  4586. bool executeConsoleCommands;
  4587. /* readonly */
  4588. String programDir;
  4589. /* readonly */
  4590. int refs;
  4591. /* readonly */
  4592. StringHash type;
  4593. /* readonly */
  4594. String typeName;
  4595. /* readonly */
  4596. String userDocumentsDir;
  4597. /* readonly */
  4598. int weakRefs;
  4599. };
  4600. class FocusParameters
  4601. {
  4602. // Properties:
  4603. bool autoSize;
  4604. bool focus;
  4605. float minView;
  4606. bool nonUniform;
  4607. float quantize;
  4608. };
  4609. class Font
  4610. {
  4611. // Methods:
  4612. IntVector2 GetTotalGlyphOffset(int) const;
  4613. bool Load(File);
  4614. bool Load(VectorBuffer&);
  4615. bool Save(File) const;
  4616. bool Save(VectorBuffer&) const;
  4617. bool SaveXML(File, int, bool = false, const String& = "\t");
  4618. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4619. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4620. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4621. // Properties:
  4622. IntVector2 absoluteGlyphOffset;
  4623. /* readonly */
  4624. String category;
  4625. /* readonly */
  4626. uint memoryUse;
  4627. String name;
  4628. /* readonly */
  4629. int refs;
  4630. Vector2 scaledGlyphOffset;
  4631. /* readonly */
  4632. StringHash type;
  4633. /* readonly */
  4634. String typeName;
  4635. /* readonly */
  4636. uint useTimer;
  4637. /* readonly */
  4638. int weakRefs;
  4639. };
  4640. class Frustum
  4641. {
  4642. // Methods:
  4643. void Define(const BoundingBox&, const Matrix3x4&);
  4644. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4645. void Define(float, float, float, float, float, const Matrix3x4&);
  4646. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4647. float Distance(const Vector3&) const;
  4648. Intersection IsInside(const BoundingBox&);
  4649. Intersection IsInside(const Sphere&);
  4650. Intersection IsInside(const Vector3&);
  4651. Intersection IsInsideFast(const BoundingBox&) const;
  4652. Intersection IsInsideFast(const Sphere&) const;
  4653. void Transform(const Matrix3&);
  4654. void Transform(const Matrix3x4&);
  4655. Frustum Transformed(const Matrix3&) const;
  4656. Frustum Transformed(const Matrix3x4&) const;
  4657. // Properties:
  4658. /* readonly */
  4659. Array<Vector3> vertices;
  4660. };
  4661. class Geometry
  4662. {
  4663. // Methods:
  4664. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4665. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4666. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4667. void SetIndexBuffer(IndexBuffer);
  4668. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4669. // Properties:
  4670. /* readonly */
  4671. String category;
  4672. /* readonly */
  4673. bool empty;
  4674. IndexBuffer indexBuffer;
  4675. /* readonly */
  4676. uint indexCount;
  4677. /* readonly */
  4678. uint indexStart;
  4679. float lodDistance;
  4680. uint numVertexBuffers;
  4681. /* readonly */
  4682. PrimitiveType primitiveType;
  4683. /* readonly */
  4684. int refs;
  4685. /* readonly */
  4686. StringHash type;
  4687. /* readonly */
  4688. String typeName;
  4689. /* readonly */
  4690. Array<VertexBuffer> vertexBuffers;
  4691. /* readonly */
  4692. uint vertexCount;
  4693. /* readonly */
  4694. Array<uint> vertexElementMasks;
  4695. /* readonly */
  4696. uint vertexStart;
  4697. /* readonly */
  4698. int weakRefs;
  4699. };
  4700. class Graphics
  4701. {
  4702. // Methods:
  4703. void BeginDumpShaders(const String&);
  4704. void Close();
  4705. void EndDumpShaders();
  4706. void Maximize();
  4707. void Minimize();
  4708. void PrecacheShaders(File);
  4709. void PrecacheShaders(VectorBuffer&);
  4710. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4711. bool SetMode(int, int);
  4712. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4713. void SetWindowPosition(int, int);
  4714. bool TakeScreenShot(Image);
  4715. bool ToggleFullscreen();
  4716. // Properties:
  4717. /* readonly */
  4718. String apiName;
  4719. /* readonly */
  4720. bool borderless;
  4721. /* readonly */
  4722. String category;
  4723. /* readonly */
  4724. bool deferredSupport;
  4725. /* readonly */
  4726. IntVector2 desktopResolution;
  4727. /* readonly */
  4728. bool deviceLost;
  4729. bool flushGPU;
  4730. /* readonly */
  4731. bool fullscreen;
  4732. /* readonly */
  4733. bool hardwareShadowSupport;
  4734. /* readonly */
  4735. int height;
  4736. /* readonly */
  4737. bool initialized;
  4738. /* readonly */
  4739. bool instancingSupport;
  4740. /* readonly */
  4741. bool lightPrepassSupport;
  4742. /* readonly */
  4743. int multiSample;
  4744. /* readonly */
  4745. Array<int> multiSampleLevels;
  4746. /* readonly */
  4747. uint numBatches;
  4748. /* readonly */
  4749. uint numPrimitives;
  4750. String orientations;
  4751. /* readonly */
  4752. bool readableDepthSupport;
  4753. /* readonly */
  4754. int refs;
  4755. /* readonly */
  4756. bool resizable;
  4757. /* readonly */
  4758. Array<IntVector2> resolutions;
  4759. bool sRGB;
  4760. /* readonly */
  4761. bool sRGBSupport;
  4762. /* readonly */
  4763. bool sRGBWriteSupport;
  4764. /* readonly */
  4765. bool tripleBuffer;
  4766. /* readonly */
  4767. StringHash type;
  4768. /* readonly */
  4769. String typeName;
  4770. /* readonly */
  4771. bool vsync;
  4772. /* readonly */
  4773. int weakRefs;
  4774. /* readonly */
  4775. int width;
  4776. /* writeonly */
  4777. Image windowIcon;
  4778. IntVector2 windowPosition;
  4779. String windowTitle;
  4780. };
  4781. class HttpRequest
  4782. {
  4783. // Methods:
  4784. Array<uint8> Read(uint);
  4785. bool ReadBool();
  4786. BoundingBox ReadBoundingBox();
  4787. int8 ReadByte();
  4788. Color ReadColor();
  4789. double ReadDouble();
  4790. String ReadFileID();
  4791. float ReadFloat();
  4792. int ReadInt();
  4793. IntRect ReadIntRect();
  4794. IntVector2 ReadIntVector2();
  4795. String ReadLine();
  4796. Matrix3 ReadMatrix3();
  4797. Matrix3x4 ReadMatrix3x4();
  4798. Matrix4 ReadMatrix4();
  4799. uint ReadNetID();
  4800. Quaternion ReadPackedQuaternion();
  4801. Vector3 ReadPackedVector3(float);
  4802. Quaternion ReadQuaternion();
  4803. int16 ReadShort();
  4804. String ReadString();
  4805. StringHash ReadStringHash();
  4806. uint8 ReadUByte();
  4807. uint ReadUInt();
  4808. uint16 ReadUShort();
  4809. uint ReadVLE();
  4810. Variant ReadVariant();
  4811. VariantMap ReadVariantMap();
  4812. Vector2 ReadVector2();
  4813. Vector3 ReadVector3();
  4814. Vector4 ReadVector4();
  4815. VectorBuffer ReadVectorBuffer(uint);
  4816. uint Seek(uint);
  4817. // Properties:
  4818. /* readonly */
  4819. uint availableSize;
  4820. /* readonly */
  4821. uint checksum;
  4822. /* readonly */
  4823. bool eof;
  4824. /* readonly */
  4825. String error;
  4826. /* readonly */
  4827. String name;
  4828. /* readonly */
  4829. bool open;
  4830. /* readonly */
  4831. uint position;
  4832. /* readonly */
  4833. int refs;
  4834. /* readonly */
  4835. uint size;
  4836. /* readonly */
  4837. HttpRequestState state;
  4838. /* readonly */
  4839. String url;
  4840. /* readonly */
  4841. String verb;
  4842. /* readonly */
  4843. int weakRefs;
  4844. };
  4845. class Image
  4846. {
  4847. // Methods:
  4848. void Clear(const Color&);
  4849. void ClearInt(uint);
  4850. bool FlipHorizontal();
  4851. bool FlipVertical();
  4852. Color GetPixel(int, int) const;
  4853. Color GetPixel(int, int, int) const;
  4854. Color GetPixelBilinear(float, float) const;
  4855. uint GetPixelInt(int, int) const;
  4856. uint GetPixelInt(int, int, int) const;
  4857. Color GetPixelTrilinear(float, float, float) const;
  4858. Image GetSubimage(const IntRect&) const;
  4859. bool Load(File);
  4860. bool Load(VectorBuffer&);
  4861. bool LoadColorLUT(File);
  4862. bool LoadColorLUT(VectorBuffer&);
  4863. bool Resize(int, int);
  4864. bool Save(File) const;
  4865. bool Save(VectorBuffer&) const;
  4866. bool SaveBMP(const String&) const;
  4867. bool SaveJPG(const String&, int) const;
  4868. bool SavePNG(const String&) const;
  4869. bool SaveTGA(const String&) const;
  4870. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4871. void SetPixel(int, int, const Color&);
  4872. void SetPixel(int, int, int, const Color&);
  4873. void SetPixelInt(int, int, int, uint);
  4874. void SetPixelInt(int, int, uint);
  4875. bool SetSize(int, int, int, uint);
  4876. bool SetSize(int, int, uint);
  4877. // Properties:
  4878. /* readonly */
  4879. bool array;
  4880. /* readonly */
  4881. String category;
  4882. /* readonly */
  4883. uint components;
  4884. /* readonly */
  4885. bool compressed;
  4886. /* readonly */
  4887. CompressedFormat compressedFormat;
  4888. /* readonly */
  4889. bool cubemap;
  4890. /* readonly */
  4891. int depth;
  4892. /* readonly */
  4893. int height;
  4894. /* readonly */
  4895. uint memoryUse;
  4896. String name;
  4897. /* readonly */
  4898. uint numCompressedLevels;
  4899. /* readonly */
  4900. int refs;
  4901. /* readonly */
  4902. bool sRGB;
  4903. /* readonly */
  4904. StringHash type;
  4905. /* readonly */
  4906. String typeName;
  4907. /* readonly */
  4908. uint useTimer;
  4909. /* readonly */
  4910. int weakRefs;
  4911. /* readonly */
  4912. int width;
  4913. };
  4914. class IndexBuffer
  4915. {
  4916. // Methods:
  4917. VectorBuffer GetData();
  4918. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4919. bool SetData(VectorBuffer&);
  4920. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  4921. void SetSize(uint, bool, bool = false);
  4922. // Properties:
  4923. /* readonly */
  4924. String category;
  4925. /* readonly */
  4926. bool dynamic;
  4927. /* readonly */
  4928. uint indexCount;
  4929. /* readonly */
  4930. uint indexSize;
  4931. /* readonly */
  4932. int refs;
  4933. bool shadowed;
  4934. /* readonly */
  4935. StringHash type;
  4936. /* readonly */
  4937. String typeName;
  4938. /* readonly */
  4939. int weakRefs;
  4940. };
  4941. class Input
  4942. {
  4943. // Methods:
  4944. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  4945. int GetKeyFromName(const String&) const;
  4946. int GetKeyFromScancode(int) const;
  4947. String GetKeyName(int) const;
  4948. int GetScancodeFromKey(int) const;
  4949. int GetScancodeFromName(const String&) const;
  4950. String GetScancodeName(int) const;
  4951. uint LoadGestures(File);
  4952. uint LoadGestures(VectorBuffer&);
  4953. bool RecordGesture();
  4954. void RemoveAllGestures();
  4955. bool RemoveGesture(uint);
  4956. bool RemoveScreenJoystick(int);
  4957. void ResetMouseVisible();
  4958. bool SaveGesture(File, uint);
  4959. bool SaveGesture(VectorBuffer&, uint);
  4960. bool SaveGestures(File);
  4961. bool SaveGestures(VectorBuffer&);
  4962. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4963. void SetMouseVisible(bool, bool = false);
  4964. // Properties:
  4965. /* readonly */
  4966. String category;
  4967. /* readonly */
  4968. bool focus;
  4969. /* readonly */
  4970. Array<JoystickState> joysticks;
  4971. /* readonly */
  4972. Array<JoystickState> joysticksByIndex;
  4973. /* readonly */
  4974. Array<bool> keyDown;
  4975. /* readonly */
  4976. Array<bool> keyPress;
  4977. /* readonly */
  4978. bool minimized;
  4979. /* readonly */
  4980. Array<bool> mouseButtonDown;
  4981. /* readonly */
  4982. Array<bool> mouseButtonPress;
  4983. bool mouseGrabbed;
  4984. MouseMode mouseMode;
  4985. /* readonly */
  4986. IntVector2 mouseMove;
  4987. /* readonly */
  4988. int mouseMoveWheel;
  4989. /* readonly */
  4990. int mouseMoveX;
  4991. /* readonly */
  4992. int mouseMoveY;
  4993. /* readonly */
  4994. IntVector2 mousePosition;
  4995. bool mouseVisible;
  4996. /* readonly */
  4997. uint numJoysticks;
  4998. /* readonly */
  4999. uint numTouches;
  5000. /* readonly */
  5001. Array<bool> qualifierDown;
  5002. /* readonly */
  5003. Array<bool> qualifierPress;
  5004. /* readonly */
  5005. int qualifiers;
  5006. /* readonly */
  5007. int refs;
  5008. /* readonly */
  5009. Array<bool> scancodeDown;
  5010. /* readonly */
  5011. Array<bool> scancodePress;
  5012. Array<bool> screenJoystickVisible;
  5013. /* readonly */
  5014. bool screenKeyboardSupport;
  5015. bool screenKeyboardVisible;
  5016. bool toggleFullscreen;
  5017. bool touchEmulation;
  5018. /* readonly */
  5019. Array<TouchState> touches;
  5020. /* readonly */
  5021. StringHash type;
  5022. /* readonly */
  5023. String typeName;
  5024. /* readonly */
  5025. int weakRefs;
  5026. };
  5027. class IntRect
  5028. {
  5029. // Methods:
  5030. Intersection IsInside(const IntVector2&) const;
  5031. // Properties:
  5032. int bottom;
  5033. /* readonly */
  5034. Array<int> data;
  5035. /* readonly */
  5036. int height;
  5037. int left;
  5038. int right;
  5039. /* readonly */
  5040. IntVector2 size;
  5041. int top;
  5042. /* readonly */
  5043. int width;
  5044. };
  5045. class IntVector2
  5046. {
  5047. // Methods:
  5048. String ToString() const;
  5049. // Properties:
  5050. /* readonly */
  5051. Array<int> data;
  5052. int x;
  5053. int y;
  5054. };
  5055. class JSONFile
  5056. {
  5057. // Methods:
  5058. const JSONValue& GetRoot() const;
  5059. bool Load(File);
  5060. bool Load(VectorBuffer&);
  5061. bool Save(File) const;
  5062. bool Save(File, const String&) const;
  5063. bool Save(VectorBuffer&) const;
  5064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5065. // Properties:
  5066. /* readonly */
  5067. String category;
  5068. /* readonly */
  5069. uint memoryUse;
  5070. String name;
  5071. /* readonly */
  5072. int refs;
  5073. /* readonly */
  5074. StringHash type;
  5075. /* readonly */
  5076. String typeName;
  5077. /* readonly */
  5078. uint useTimer;
  5079. /* readonly */
  5080. int weakRefs;
  5081. };
  5082. class JSONValue
  5083. {
  5084. // Methods:
  5085. void Clear();
  5086. bool Contains(const String&) const;
  5087. void Erase(const String&);
  5088. void Erase(uint, uint = 1);
  5089. bool GetBool() const;
  5090. double GetDouble() const;
  5091. float GetFloat() const;
  5092. int GetInt() const;
  5093. uint GetUInt() const;
  5094. void Insert(uint, const JSONValue&);
  5095. const JSONValue& Get(const String&) const;
  5096. void Pop();
  5097. void Push(const JSONValue&);
  5098. void Resize(uint);
  5099. void Set(const String&, const JSONValue&);
  5100. const String& GetString() const;
  5101. // Properties:
  5102. /* readonly */
  5103. bool isArray;
  5104. /* readonly */
  5105. bool isBool;
  5106. /* readonly */
  5107. bool isNull;
  5108. /* readonly */
  5109. bool isNumber;
  5110. /* readonly */
  5111. bool isObject;
  5112. /* readonly */
  5113. bool isString;
  5114. /* readonly */
  5115. uint size;
  5116. /* readonly */
  5117. JSONValueType valueType;
  5118. };
  5119. class JoystickState
  5120. {
  5121. // Properties:
  5122. /* readonly */
  5123. Array<float> axisPosition;
  5124. /* readonly */
  5125. Array<bool> buttonDown;
  5126. /* readonly */
  5127. Array<bool> buttonPress;
  5128. /* readonly */
  5129. bool controller;
  5130. /* readonly */
  5131. Array<int> hatPosition;
  5132. int joystickID;
  5133. String name;
  5134. /* readonly */
  5135. uint numAxes;
  5136. /* readonly */
  5137. uint numButtons;
  5138. /* readonly */
  5139. uint numHats;
  5140. };
  5141. class Light
  5142. {
  5143. // Methods:
  5144. void ApplyAttributes();
  5145. void DrawDebugGeometry(DebugRenderer, bool);
  5146. Variant GetAttribute(const String&) const;
  5147. ValueAnimation GetAttributeAnimation(const String&) const;
  5148. float GetAttributeAnimationSpeed(const String&) const;
  5149. float GetAttributeAnimationTime(const String&) const;
  5150. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5151. Variant GetAttributeDefault(const String&) const;
  5152. bool GetInterceptNetworkUpdate(const String&) const;
  5153. bool IsInView(Camera) const;
  5154. bool Load(File, bool = false);
  5155. bool Load(VectorBuffer&, bool = false);
  5156. bool LoadXML(const XMLElement&, bool = false);
  5157. void MarkNetworkUpdate() const;
  5158. void Remove();
  5159. void RemoveAttributeAnimation(const String&);
  5160. void RemoveInstanceDefault();
  5161. void RemoveObjectAnimation();
  5162. void ResetToDefault();
  5163. bool Save(File) const;
  5164. bool Save(VectorBuffer&) const;
  5165. bool SaveXML(XMLElement&) const;
  5166. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5167. void SetAnimationTime(float);
  5168. bool SetAttribute(const String&, const Variant&);
  5169. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5170. void SetAttributeAnimationSpeed(const String&, float);
  5171. void SetAttributeAnimationTime(const String&, float);
  5172. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5173. void SetInterceptNetworkUpdate(const String&, bool);
  5174. // Properties:
  5175. bool animationEnabled;
  5176. float aspectRatio;
  5177. /* readonly */
  5178. Array<Variant> attributeDefaults;
  5179. /* readonly */
  5180. Array<AttributeInfo> attributeInfos;
  5181. Array<Variant> attributes;
  5182. /* readonly */
  5183. BoundingBox boundingBox;
  5184. float brightness;
  5185. bool castShadows;
  5186. /* readonly */
  5187. String category;
  5188. Color color;
  5189. float drawDistance;
  5190. /* readonly */
  5191. Color effectiveColor;
  5192. /* readonly */
  5193. float effectiveSpecularIntensity;
  5194. bool enabled;
  5195. /* readonly */
  5196. bool enabledEffective;
  5197. float fadeDistance;
  5198. float fov;
  5199. /* readonly */
  5200. Frustum frustum;
  5201. /* readonly */
  5202. uint id;
  5203. /* readonly */
  5204. bool inView;
  5205. uint lightMask;
  5206. LightType lightType;
  5207. float lodBias;
  5208. uint maxLights;
  5209. /* readonly */
  5210. bool negative;
  5211. /* readonly */
  5212. Node node;
  5213. /* readonly */
  5214. uint numAttributes;
  5215. /* readonly */
  5216. int numShadowSplits;
  5217. ObjectAnimation objectAnimation;
  5218. bool occludee;
  5219. bool occluder;
  5220. bool perVertex;
  5221. Texture rampTexture;
  5222. float range;
  5223. /* readonly */
  5224. int refs;
  5225. BiasParameters shadowBias;
  5226. CascadeParameters shadowCascade;
  5227. float shadowDistance;
  5228. float shadowFadeDistance;
  5229. FocusParameters shadowFocus;
  5230. float shadowIntensity;
  5231. uint shadowMask;
  5232. float shadowNearFarRatio;
  5233. float shadowResolution;
  5234. Texture shapeTexture;
  5235. float specularIntensity;
  5236. bool temporary;
  5237. /* readonly */
  5238. StringHash type;
  5239. /* readonly */
  5240. String typeName;
  5241. uint viewMask;
  5242. /* readonly */
  5243. int weakRefs;
  5244. /* readonly */
  5245. BoundingBox worldBoundingBox;
  5246. uint zoneMask;
  5247. };
  5248. class LineEdit
  5249. {
  5250. // Methods:
  5251. void AddChild(UIElement);
  5252. void ApplyAttributes();
  5253. void BringToFront();
  5254. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5255. void DisableLayoutUpdate();
  5256. IntVector2 ElementToScreen(const IntVector2&);
  5257. void EnableLayoutUpdate();
  5258. uint FindChild(UIElement) const;
  5259. Variant GetAttribute(const String&) const;
  5260. ValueAnimation GetAttributeAnimation(const String&) const;
  5261. float GetAttributeAnimationSpeed(const String&) const;
  5262. float GetAttributeAnimationTime(const String&) const;
  5263. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5264. Variant GetAttributeDefault(const String&) const;
  5265. UIElement GetChild(const String&, bool = false) const;
  5266. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5267. Array<UIElement> GetChildren(bool = false) const;
  5268. UIElement GetElementEventSender() const;
  5269. bool GetInterceptNetworkUpdate(const String&) const;
  5270. uint GetNumChildren(bool) const;
  5271. void InsertChild(uint, UIElement);
  5272. bool IsInside(IntVector2, bool);
  5273. bool IsInsideCombined(IntVector2, bool);
  5274. bool Load(File, bool = false);
  5275. bool Load(VectorBuffer&, bool = false);
  5276. bool LoadChildXML(XMLFile, XMLFile = null);
  5277. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5278. bool LoadXML(File);
  5279. bool LoadXML(VectorBuffer&);
  5280. bool LoadXML(XMLFile, XMLFile);
  5281. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5282. bool LoadXML(const XMLElement&, bool = false);
  5283. void MarkNetworkUpdate() const;
  5284. void Remove();
  5285. void RemoveAllChildren();
  5286. void RemoveAttributeAnimation(const String&);
  5287. void RemoveChild(UIElement, uint = 0);
  5288. void RemoveChild(uint);
  5289. void RemoveInstanceDefault();
  5290. void RemoveObjectAnimation();
  5291. void ResetDeepEnabled();
  5292. void ResetToDefault();
  5293. bool Save(File) const;
  5294. bool Save(VectorBuffer&) const;
  5295. bool SaveXML(File, const String& = "\t");
  5296. bool SaveXML(VectorBuffer&, const String& = "\t");
  5297. bool SaveXML(XMLElement&) const;
  5298. IntVector2 ScreenToElement(const IntVector2&);
  5299. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5300. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5301. void SetAnimationTime(float);
  5302. bool SetAttribute(const String&, const Variant&);
  5303. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5304. void SetAttributeAnimationSpeed(const String&, float);
  5305. void SetAttributeAnimationTime(const String&, float);
  5306. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5307. void SetDeepEnabled(bool);
  5308. void SetEnabledRecursive(bool);
  5309. void SetFixedHeight(int);
  5310. void SetFixedSize(int, int);
  5311. void SetFixedWidth(int);
  5312. void SetFullImageRect();
  5313. void SetHoverOffset(int, int);
  5314. void SetInterceptNetworkUpdate(const String&, bool);
  5315. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5316. void SetMaxSize(int, int);
  5317. void SetMinSize(int, int);
  5318. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5319. void SetPosition(int, int);
  5320. void SetSize(int, int);
  5321. bool SetStyle(const String&, XMLFile = null);
  5322. bool SetStyle(const XMLElement&);
  5323. bool SetStyleAuto(XMLFile = null);
  5324. void UpdateLayout();
  5325. const Variant& GetVar(const StringHash&);
  5326. // Properties:
  5327. bool animationEnabled;
  5328. /* readonly */
  5329. Array<Variant> attributeDefaults;
  5330. /* readonly */
  5331. Array<AttributeInfo> attributeInfos;
  5332. Array<Variant> attributes;
  5333. BlendMode blendMode;
  5334. IntRect border;
  5335. bool bringToBack;
  5336. bool bringToFront;
  5337. /* readonly */
  5338. String category;
  5339. /* readonly */
  5340. IntVector2 childOffset;
  5341. /* readonly */
  5342. Array<UIElement> children;
  5343. IntRect clipBorder;
  5344. bool clipChildren;
  5345. /* writeonly */
  5346. Color color;
  5347. /* readonly */
  5348. bool colorGradient;
  5349. Array<Color> colors;
  5350. /* readonly */
  5351. IntRect combinedScreenRect;
  5352. /* readonly */
  5353. BorderImage cursor;
  5354. float cursorBlinkRate;
  5355. bool cursorMovable;
  5356. uint cursorPosition;
  5357. XMLFile defaultStyle;
  5358. /* readonly */
  5359. float derivedOpacity;
  5360. /* readonly */
  5361. uint dragButtonCombo;
  5362. /* readonly */
  5363. int dragButtonCount;
  5364. uint dragDropMode;
  5365. uint echoCharacter;
  5366. bool editable;
  5367. bool elementEventSender;
  5368. bool enabled;
  5369. /* readonly */
  5370. bool enabledSelf;
  5371. /* readonly */
  5372. bool fixedHeight;
  5373. /* readonly */
  5374. bool fixedSize;
  5375. /* readonly */
  5376. bool fixedWidth;
  5377. bool focus;
  5378. FocusMode focusMode;
  5379. int height;
  5380. HorizontalAlignment horizontalAlignment;
  5381. IntVector2 hoverOffset;
  5382. /* readonly */
  5383. bool hovering;
  5384. IntRect imageBorder;
  5385. IntRect imageRect;
  5386. int indent;
  5387. int indentSpacing;
  5388. /* readonly */
  5389. int indentWidth;
  5390. bool internal;
  5391. IntRect layoutBorder;
  5392. Vector2 layoutFlexScale;
  5393. LayoutMode layoutMode;
  5394. int layoutSpacing;
  5395. int maxHeight;
  5396. uint maxLength;
  5397. IntVector2 maxSize;
  5398. int maxWidth;
  5399. int minHeight;
  5400. IntVector2 minSize;
  5401. int minWidth;
  5402. String name;
  5403. /* readonly */
  5404. uint numAllChildren;
  5405. /* readonly */
  5406. uint numAttributes;
  5407. /* readonly */
  5408. uint numChildren;
  5409. ObjectAnimation objectAnimation;
  5410. float opacity;
  5411. UIElement parent;
  5412. IntVector2 position;
  5413. int priority;
  5414. /* readonly */
  5415. int refs;
  5416. /* readonly */
  5417. UIElement root;
  5418. /* readonly */
  5419. IntVector2 screenPosition;
  5420. bool selected;
  5421. IntVector2 size;
  5422. bool sortChildren;
  5423. String style;
  5424. bool temporary;
  5425. String text;
  5426. bool textCopyable;
  5427. /* readonly */
  5428. Text textElement;
  5429. bool textSelectable;
  5430. Texture texture;
  5431. bool tiled;
  5432. TraversalMode traversalMode;
  5433. /* readonly */
  5434. StringHash type;
  5435. /* readonly */
  5436. String typeName;
  5437. bool useDerivedOpacity;
  5438. /* readonly */
  5439. VariantMap vars;
  5440. VerticalAlignment verticalAlignment;
  5441. bool visible;
  5442. /* readonly */
  5443. bool visibleEffective;
  5444. /* readonly */
  5445. int weakRefs;
  5446. int width;
  5447. };
  5448. class ListView
  5449. {
  5450. // Methods:
  5451. void AddChild(UIElement);
  5452. void AddItem(UIElement);
  5453. void AddSelection(uint);
  5454. void ApplyAttributes();
  5455. void BringToFront();
  5456. void ChangeSelection(int, bool);
  5457. void ClearSelection();
  5458. void CopySelectedItemsToClipboard();
  5459. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5460. void DisableLayoutUpdate();
  5461. IntVector2 ElementToScreen(const IntVector2&);
  5462. void EnableLayoutUpdate();
  5463. void Expand(uint, bool, bool = false);
  5464. uint FindChild(UIElement) const;
  5465. uint FindItem(UIElement);
  5466. Variant GetAttribute(const String&) const;
  5467. ValueAnimation GetAttributeAnimation(const String&) const;
  5468. float GetAttributeAnimationSpeed(const String&) const;
  5469. float GetAttributeAnimationTime(const String&) const;
  5470. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5471. Variant GetAttributeDefault(const String&) const;
  5472. UIElement GetChild(const String&, bool = false) const;
  5473. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5474. Array<UIElement> GetChildren(bool = false) const;
  5475. UIElement GetElementEventSender() const;
  5476. bool GetInterceptNetworkUpdate(const String&) const;
  5477. Array<UIElement> GetItems() const;
  5478. uint GetNumChildren(bool) const;
  5479. void InsertChild(uint, UIElement);
  5480. void InsertItem(uint, UIElement, UIElement = null);
  5481. bool IsExpanded(uint) const;
  5482. bool IsInside(IntVector2, bool);
  5483. bool IsInsideCombined(IntVector2, bool);
  5484. bool IsSelected(uint) const;
  5485. bool Load(File, bool = false);
  5486. bool Load(VectorBuffer&, bool = false);
  5487. bool LoadChildXML(XMLFile, XMLFile = null);
  5488. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5489. bool LoadXML(File);
  5490. bool LoadXML(VectorBuffer&);
  5491. bool LoadXML(XMLFile, XMLFile);
  5492. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5493. bool LoadXML(const XMLElement&, bool = false);
  5494. void MarkNetworkUpdate() const;
  5495. void Remove();
  5496. void RemoveAllChildren();
  5497. void RemoveAllItems();
  5498. void RemoveAttributeAnimation(const String&);
  5499. void RemoveChild(UIElement, uint = 0);
  5500. void RemoveChild(uint);
  5501. void RemoveInstanceDefault();
  5502. void RemoveItem(UIElement, uint = 0);
  5503. void RemoveItem(uint);
  5504. void RemoveObjectAnimation();
  5505. void RemoveSelection(uint);
  5506. void ResetDeepEnabled();
  5507. void ResetToDefault();
  5508. bool Save(File) const;
  5509. bool Save(VectorBuffer&) const;
  5510. bool SaveXML(File, const String& = "\t");
  5511. bool SaveXML(VectorBuffer&, const String& = "\t");
  5512. bool SaveXML(XMLElement&) const;
  5513. IntVector2 ScreenToElement(const IntVector2&);
  5514. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5515. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5516. void SetAnimationTime(float);
  5517. bool SetAttribute(const String&, const Variant&);
  5518. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5519. void SetAttributeAnimationSpeed(const String&, float);
  5520. void SetAttributeAnimationTime(const String&, float);
  5521. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5522. void SetDeepEnabled(bool);
  5523. void SetEnabledRecursive(bool);
  5524. void SetFixedHeight(int);
  5525. void SetFixedSize(int, int);
  5526. void SetFixedWidth(int);
  5527. void SetInterceptNetworkUpdate(const String&, bool);
  5528. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5529. void SetMaxSize(int, int);
  5530. void SetMinSize(int, int);
  5531. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5532. void SetPosition(int, int);
  5533. void SetScrollBarsVisible(bool, bool);
  5534. void SetSelections(Array<uint>);
  5535. void SetSize(int, int);
  5536. bool SetStyle(const String&, XMLFile = null);
  5537. bool SetStyle(const XMLElement&);
  5538. bool SetStyleAuto(XMLFile = null);
  5539. void SetViewPosition(int, int);
  5540. void ToggleExpand(uint, bool = false);
  5541. void ToggleSelection(uint);
  5542. void UpdateLayout();
  5543. const Variant& GetVar(const StringHash&);
  5544. // Properties:
  5545. bool animationEnabled;
  5546. /* readonly */
  5547. Array<Variant> attributeDefaults;
  5548. /* readonly */
  5549. Array<AttributeInfo> attributeInfos;
  5550. Array<Variant> attributes;
  5551. bool autoDisableChildren;
  5552. float autoDisableThreshold;
  5553. int baseIndent;
  5554. bool bringToBack;
  5555. bool bringToFront;
  5556. /* readonly */
  5557. String category;
  5558. /* readonly */
  5559. IntVector2 childOffset;
  5560. /* readonly */
  5561. Array<UIElement> children;
  5562. bool clearSelectionOnDefocus;
  5563. IntRect clipBorder;
  5564. bool clipChildren;
  5565. /* writeonly */
  5566. Color color;
  5567. /* readonly */
  5568. bool colorGradient;
  5569. Array<Color> colors;
  5570. /* readonly */
  5571. IntRect combinedScreenRect;
  5572. /* readonly */
  5573. UIElement contentElement;
  5574. XMLFile defaultStyle;
  5575. /* readonly */
  5576. float derivedOpacity;
  5577. /* readonly */
  5578. uint dragButtonCombo;
  5579. /* readonly */
  5580. int dragButtonCount;
  5581. uint dragDropMode;
  5582. bool editable;
  5583. bool elementEventSender;
  5584. bool enabled;
  5585. /* readonly */
  5586. bool enabledSelf;
  5587. /* readonly */
  5588. bool fixedHeight;
  5589. /* readonly */
  5590. bool fixedSize;
  5591. /* readonly */
  5592. bool fixedWidth;
  5593. bool focus;
  5594. FocusMode focusMode;
  5595. int height;
  5596. bool hierarchyMode;
  5597. HighlightMode highlightMode;
  5598. HorizontalAlignment horizontalAlignment;
  5599. /* readonly */
  5600. ScrollBar horizontalScrollBar;
  5601. /* readonly */
  5602. bool hovering;
  5603. int indent;
  5604. int indentSpacing;
  5605. /* readonly */
  5606. int indentWidth;
  5607. bool internal;
  5608. /* readonly */
  5609. Array<UIElement> items;
  5610. IntRect layoutBorder;
  5611. Vector2 layoutFlexScale;
  5612. LayoutMode layoutMode;
  5613. int layoutSpacing;
  5614. int maxHeight;
  5615. IntVector2 maxSize;
  5616. int maxWidth;
  5617. int minHeight;
  5618. IntVector2 minSize;
  5619. int minWidth;
  5620. bool multiselect;
  5621. String name;
  5622. /* readonly */
  5623. uint numAllChildren;
  5624. /* readonly */
  5625. uint numAttributes;
  5626. /* readonly */
  5627. uint numChildren;
  5628. /* readonly */
  5629. uint numItems;
  5630. ObjectAnimation objectAnimation;
  5631. float opacity;
  5632. float pageStep;
  5633. UIElement parent;
  5634. IntVector2 position;
  5635. int priority;
  5636. /* readonly */
  5637. int refs;
  5638. /* readonly */
  5639. UIElement root;
  5640. /* readonly */
  5641. IntVector2 screenPosition;
  5642. bool scrollBarsAutoVisible;
  5643. float scrollDeceleration;
  5644. /* readonly */
  5645. BorderImage scrollPanel;
  5646. float scrollSnapEpsilon;
  5647. float scrollStep;
  5648. bool selectOnClickEnd;
  5649. bool selected;
  5650. /* readonly */
  5651. UIElement selectedItem;
  5652. /* readonly */
  5653. Array<UIElement> selectedItems;
  5654. uint selection;
  5655. /* readonly */
  5656. Array<uint> selections;
  5657. IntVector2 size;
  5658. bool sortChildren;
  5659. String style;
  5660. bool temporary;
  5661. TraversalMode traversalMode;
  5662. /* readonly */
  5663. StringHash type;
  5664. /* readonly */
  5665. String typeName;
  5666. bool useDerivedOpacity;
  5667. /* readonly */
  5668. VariantMap vars;
  5669. VerticalAlignment verticalAlignment;
  5670. /* readonly */
  5671. ScrollBar verticalScrollBar;
  5672. IntVector2 viewPosition;
  5673. bool visible;
  5674. /* readonly */
  5675. bool visibleEffective;
  5676. /* readonly */
  5677. int weakRefs;
  5678. int width;
  5679. };
  5680. class Localization
  5681. {
  5682. // Methods:
  5683. String Get(const String&);
  5684. String GetLanguage(int);
  5685. int GetLanguageIndex(const String&);
  5686. void LoadJSON(const JSONValue&);
  5687. void LoadJSONFile(const String&);
  5688. void Reset();
  5689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5690. void SetLanguage(const String&);
  5691. void SetLanguage(int);
  5692. // Properties:
  5693. /* readonly */
  5694. String category;
  5695. /* readonly */
  5696. String language;
  5697. /* readonly */
  5698. int languageIndex;
  5699. /* readonly */
  5700. int numLanguages;
  5701. /* readonly */
  5702. int refs;
  5703. /* readonly */
  5704. StringHash type;
  5705. /* readonly */
  5706. String typeName;
  5707. /* readonly */
  5708. int weakRefs;
  5709. };
  5710. class Log
  5711. {
  5712. // Methods:
  5713. void Close();
  5714. void Debug(const String&);
  5715. void Error(const String&);
  5716. void Info(const String&);
  5717. void Open(const String&);
  5718. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5719. void Warning(const String&);
  5720. void Write(const String&, bool = false);
  5721. // Properties:
  5722. /* readonly */
  5723. String category;
  5724. /* readonly */
  5725. String lastMessage;
  5726. int level;
  5727. bool quiet;
  5728. /* readonly */
  5729. int refs;
  5730. bool timeStamp;
  5731. /* readonly */
  5732. StringHash type;
  5733. /* readonly */
  5734. String typeName;
  5735. /* readonly */
  5736. int weakRefs;
  5737. };
  5738. class Material
  5739. {
  5740. // Methods:
  5741. Material Clone(const String& = String ( )) const;
  5742. Pass GetPass(uint, const String&);
  5743. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5744. float GetShaderParameterAnimationSpeed(const String&) const;
  5745. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5746. bool Load(File);
  5747. bool Load(VectorBuffer&);
  5748. bool Load(const XMLElement&);
  5749. void RemoveShaderParameter(const String&);
  5750. bool Save(File) const;
  5751. bool Save(VectorBuffer&) const;
  5752. bool Save(XMLElement&) const;
  5753. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5754. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5755. void SetShaderParameterAnimationSpeed(const String&, float);
  5756. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5757. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5758. void SetUVTransform(const Vector2&, float, const Vector2&);
  5759. void SetUVTransform(const Vector2&, float, float);
  5760. void SortTechniques();
  5761. // Properties:
  5762. /* readonly */
  5763. String category;
  5764. CullMode cullMode;
  5765. BiasParameters depthBias;
  5766. FillMode fillMode;
  5767. /* readonly */
  5768. uint memoryUse;
  5769. String name;
  5770. uint numTechniques;
  5771. /* readonly */
  5772. bool occlusion;
  5773. /* readonly */
  5774. int refs;
  5775. uint8 renderOrder;
  5776. Scene scene;
  5777. /* readonly */
  5778. Array<String> shaderParameterNames;
  5779. Array<Variant> shaderParameters;
  5780. CullMode shadowCullMode;
  5781. /* readonly */
  5782. Array<TechniqueEntry> techniqueEntries;
  5783. /* readonly */
  5784. Array<Technique> techniques;
  5785. Array<Texture> textures;
  5786. /* readonly */
  5787. StringHash type;
  5788. /* readonly */
  5789. String typeName;
  5790. /* readonly */
  5791. uint useTimer;
  5792. /* readonly */
  5793. int weakRefs;
  5794. };
  5795. class Matrix3
  5796. {
  5797. // Methods:
  5798. bool Equals(const Matrix3&) const;
  5799. Matrix3 Inverse() const;
  5800. Vector3 Scale() const;
  5801. Matrix3 Scaled(const Vector3&) const;
  5802. void SetScale(const Vector3&);
  5803. void SetScale(float);
  5804. String ToString() const;
  5805. Matrix3 Transpose() const;
  5806. // Properties:
  5807. float m00;
  5808. float m01;
  5809. float m02;
  5810. float m10;
  5811. float m11;
  5812. float m12;
  5813. float m20;
  5814. float m21;
  5815. float m22;
  5816. };
  5817. class Matrix3x4
  5818. {
  5819. // Methods:
  5820. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5821. bool Equals(const Matrix3x4&) const;
  5822. Matrix3x4 Inverse() const;
  5823. Quaternion Rotation() const;
  5824. Matrix3 RotationMatrix() const;
  5825. Vector3 Scale() const;
  5826. void SetRotation(const Matrix3&);
  5827. void SetScale(const Vector3&);
  5828. void SetScale(float);
  5829. void SetTranslation(const Vector3&);
  5830. Matrix3 ToMatrix3() const;
  5831. Matrix4 ToMatrix4() const;
  5832. String ToString() const;
  5833. Vector3 Translation() const;
  5834. // Properties:
  5835. float m00;
  5836. float m01;
  5837. float m02;
  5838. float m03;
  5839. float m10;
  5840. float m11;
  5841. float m12;
  5842. float m13;
  5843. float m20;
  5844. float m21;
  5845. float m22;
  5846. float m23;
  5847. };
  5848. class Matrix4
  5849. {
  5850. // Methods:
  5851. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5852. bool Equals(const Matrix4&) const;
  5853. Matrix4 Inverse() const;
  5854. Quaternion Rotation() const;
  5855. Matrix3 RotationMatrix() const;
  5856. Vector3 Scale() const;
  5857. void SetRotation(const Matrix3&);
  5858. void SetScale(const Vector3&);
  5859. void SetScale(float);
  5860. void SetTranslation(const Vector3&);
  5861. Matrix3 ToMatrix3() const;
  5862. String ToString() const;
  5863. Vector3 Translation() const;
  5864. Matrix4 Transpose() const;
  5865. // Properties:
  5866. float m00;
  5867. float m01;
  5868. float m02;
  5869. float m03;
  5870. float m10;
  5871. float m11;
  5872. float m12;
  5873. float m13;
  5874. float m20;
  5875. float m21;
  5876. float m22;
  5877. float m23;
  5878. float m30;
  5879. float m31;
  5880. float m32;
  5881. float m33;
  5882. };
  5883. class Menu
  5884. {
  5885. // Methods:
  5886. void AddChild(UIElement);
  5887. void ApplyAttributes();
  5888. void BringToFront();
  5889. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5890. void DisableLayoutUpdate();
  5891. IntVector2 ElementToScreen(const IntVector2&);
  5892. void EnableLayoutUpdate();
  5893. uint FindChild(UIElement) const;
  5894. Variant GetAttribute(const String&) const;
  5895. ValueAnimation GetAttributeAnimation(const String&) const;
  5896. float GetAttributeAnimationSpeed(const String&) const;
  5897. float GetAttributeAnimationTime(const String&) const;
  5898. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5899. Variant GetAttributeDefault(const String&) const;
  5900. UIElement GetChild(const String&, bool = false) const;
  5901. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5902. Array<UIElement> GetChildren(bool = false) const;
  5903. UIElement GetElementEventSender() const;
  5904. bool GetInterceptNetworkUpdate(const String&) const;
  5905. uint GetNumChildren(bool) const;
  5906. void InsertChild(uint, UIElement);
  5907. bool IsInside(IntVector2, bool);
  5908. bool IsInsideCombined(IntVector2, bool);
  5909. bool Load(File, bool = false);
  5910. bool Load(VectorBuffer&, bool = false);
  5911. bool LoadChildXML(XMLFile, XMLFile = null);
  5912. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5913. bool LoadXML(File);
  5914. bool LoadXML(VectorBuffer&);
  5915. bool LoadXML(XMLFile, XMLFile);
  5916. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5917. bool LoadXML(const XMLElement&, bool = false);
  5918. void MarkNetworkUpdate() const;
  5919. void Remove();
  5920. void RemoveAllChildren();
  5921. void RemoveAttributeAnimation(const String&);
  5922. void RemoveChild(UIElement, uint = 0);
  5923. void RemoveChild(uint);
  5924. void RemoveInstanceDefault();
  5925. void RemoveObjectAnimation();
  5926. void ResetDeepEnabled();
  5927. void ResetToDefault();
  5928. bool Save(File) const;
  5929. bool Save(VectorBuffer&) const;
  5930. bool SaveXML(File, const String& = "\t");
  5931. bool SaveXML(VectorBuffer&, const String& = "\t");
  5932. bool SaveXML(XMLElement&) const;
  5933. IntVector2 ScreenToElement(const IntVector2&);
  5934. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5935. void SetAccelerator(int, int);
  5936. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5937. void SetAnimationTime(float);
  5938. bool SetAttribute(const String&, const Variant&);
  5939. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5940. void SetAttributeAnimationSpeed(const String&, float);
  5941. void SetAttributeAnimationTime(const String&, float);
  5942. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5943. void SetDeepEnabled(bool);
  5944. void SetEnabledRecursive(bool);
  5945. void SetFixedHeight(int);
  5946. void SetFixedSize(int, int);
  5947. void SetFixedWidth(int);
  5948. void SetFullImageRect();
  5949. void SetHoverOffset(int, int);
  5950. void SetInterceptNetworkUpdate(const String&, bool);
  5951. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5952. void SetMaxSize(int, int);
  5953. void SetMinSize(int, int);
  5954. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5955. void SetPopupOffset(int, int);
  5956. void SetPosition(int, int);
  5957. void SetPressedChildOffset(int, int);
  5958. void SetPressedOffset(int, int);
  5959. void SetRepeat(float, float);
  5960. void SetSize(int, int);
  5961. bool SetStyle(const String&, XMLFile = null);
  5962. bool SetStyle(const XMLElement&);
  5963. bool SetStyleAuto(XMLFile = null);
  5964. void UpdateLayout();
  5965. const Variant& GetVar(const StringHash&);
  5966. // Properties:
  5967. /* readonly */
  5968. int acceleratorKey;
  5969. /* readonly */
  5970. int acceleratorQualifiers;
  5971. bool animationEnabled;
  5972. /* readonly */
  5973. Array<Variant> attributeDefaults;
  5974. /* readonly */
  5975. Array<AttributeInfo> attributeInfos;
  5976. Array<Variant> attributes;
  5977. BlendMode blendMode;
  5978. IntRect border;
  5979. bool bringToBack;
  5980. bool bringToFront;
  5981. /* readonly */
  5982. String category;
  5983. /* readonly */
  5984. IntVector2 childOffset;
  5985. /* readonly */
  5986. Array<UIElement> children;
  5987. IntRect clipBorder;
  5988. bool clipChildren;
  5989. /* writeonly */
  5990. Color color;
  5991. /* readonly */
  5992. bool colorGradient;
  5993. Array<Color> colors;
  5994. /* readonly */
  5995. IntRect combinedScreenRect;
  5996. XMLFile defaultStyle;
  5997. /* readonly */
  5998. float derivedOpacity;
  5999. /* readonly */
  6000. uint dragButtonCombo;
  6001. /* readonly */
  6002. int dragButtonCount;
  6003. uint dragDropMode;
  6004. bool editable;
  6005. bool elementEventSender;
  6006. bool enabled;
  6007. /* readonly */
  6008. bool enabledSelf;
  6009. /* readonly */
  6010. bool fixedHeight;
  6011. /* readonly */
  6012. bool fixedSize;
  6013. /* readonly */
  6014. bool fixedWidth;
  6015. bool focus;
  6016. FocusMode focusMode;
  6017. int height;
  6018. HorizontalAlignment horizontalAlignment;
  6019. IntVector2 hoverOffset;
  6020. /* readonly */
  6021. bool hovering;
  6022. IntRect imageBorder;
  6023. IntRect imageRect;
  6024. int indent;
  6025. int indentSpacing;
  6026. /* readonly */
  6027. int indentWidth;
  6028. bool internal;
  6029. IntRect layoutBorder;
  6030. Vector2 layoutFlexScale;
  6031. LayoutMode layoutMode;
  6032. int layoutSpacing;
  6033. int maxHeight;
  6034. IntVector2 maxSize;
  6035. int maxWidth;
  6036. int minHeight;
  6037. IntVector2 minSize;
  6038. int minWidth;
  6039. String name;
  6040. /* readonly */
  6041. uint numAllChildren;
  6042. /* readonly */
  6043. uint numAttributes;
  6044. /* readonly */
  6045. uint numChildren;
  6046. ObjectAnimation objectAnimation;
  6047. float opacity;
  6048. UIElement parent;
  6049. UIElement popup;
  6050. IntVector2 popupOffset;
  6051. IntVector2 position;
  6052. /* readonly */
  6053. bool pressed;
  6054. IntVector2 pressedChildOffset;
  6055. IntVector2 pressedOffset;
  6056. int priority;
  6057. /* readonly */
  6058. int refs;
  6059. float repeatDelay;
  6060. float repeatRate;
  6061. /* readonly */
  6062. UIElement root;
  6063. /* readonly */
  6064. IntVector2 screenPosition;
  6065. bool selected;
  6066. bool showPopup;
  6067. IntVector2 size;
  6068. bool sortChildren;
  6069. String style;
  6070. bool temporary;
  6071. Texture texture;
  6072. bool tiled;
  6073. TraversalMode traversalMode;
  6074. /* readonly */
  6075. StringHash type;
  6076. /* readonly */
  6077. String typeName;
  6078. bool useDerivedOpacity;
  6079. /* readonly */
  6080. VariantMap vars;
  6081. VerticalAlignment verticalAlignment;
  6082. bool visible;
  6083. /* readonly */
  6084. bool visibleEffective;
  6085. /* readonly */
  6086. int weakRefs;
  6087. int width;
  6088. };
  6089. class MessageBox
  6090. {
  6091. // Methods:
  6092. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6093. // Properties:
  6094. /* readonly */
  6095. String category;
  6096. String message;
  6097. /* readonly */
  6098. int refs;
  6099. String title;
  6100. /* readonly */
  6101. StringHash type;
  6102. /* readonly */
  6103. String typeName;
  6104. /* readonly */
  6105. int weakRefs;
  6106. /* readonly */
  6107. UIElement window;
  6108. };
  6109. class Model
  6110. {
  6111. // Methods:
  6112. Model Clone(const String& = String ( )) const;
  6113. Geometry GetGeometry(uint, uint) const;
  6114. bool Load(File);
  6115. bool Load(VectorBuffer&);
  6116. bool Save(File) const;
  6117. bool Save(VectorBuffer&) const;
  6118. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6119. bool SetGeometry(uint, uint, Geometry);
  6120. // Properties:
  6121. BoundingBox boundingBox;
  6122. /* readonly */
  6123. String category;
  6124. Array<Vector3> geometryCenters;
  6125. /* readonly */
  6126. uint memoryUse;
  6127. String name;
  6128. uint numGeometries;
  6129. Array<uint> numGeometryLodLevels;
  6130. /* readonly */
  6131. uint numMorphs;
  6132. /* readonly */
  6133. int refs;
  6134. /* readonly */
  6135. Skeleton skeleton;
  6136. /* readonly */
  6137. StringHash type;
  6138. /* readonly */
  6139. String typeName;
  6140. /* readonly */
  6141. uint useTimer;
  6142. /* readonly */
  6143. int weakRefs;
  6144. };
  6145. class NavArea
  6146. {
  6147. // Methods:
  6148. void ApplyAttributes();
  6149. void DrawDebugGeometry(DebugRenderer, bool);
  6150. Variant GetAttribute(const String&) const;
  6151. ValueAnimation GetAttributeAnimation(const String&) const;
  6152. float GetAttributeAnimationSpeed(const String&) const;
  6153. float GetAttributeAnimationTime(const String&) const;
  6154. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6155. Variant GetAttributeDefault(const String&) const;
  6156. bool GetInterceptNetworkUpdate(const String&) const;
  6157. bool Load(File, bool = false);
  6158. bool Load(VectorBuffer&, bool = false);
  6159. bool LoadXML(const XMLElement&, bool = false);
  6160. void MarkNetworkUpdate() const;
  6161. void Remove();
  6162. void RemoveAttributeAnimation(const String&);
  6163. void RemoveInstanceDefault();
  6164. void RemoveObjectAnimation();
  6165. void ResetToDefault();
  6166. bool Save(File) const;
  6167. bool Save(VectorBuffer&) const;
  6168. bool SaveXML(XMLElement&) const;
  6169. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6170. void SetAnimationTime(float);
  6171. bool SetAttribute(const String&, const Variant&);
  6172. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6173. void SetAttributeAnimationSpeed(const String&, float);
  6174. void SetAttributeAnimationTime(const String&, float);
  6175. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6176. void SetInterceptNetworkUpdate(const String&, bool);
  6177. // Properties:
  6178. bool animationEnabled;
  6179. uint areaID;
  6180. /* readonly */
  6181. Array<Variant> attributeDefaults;
  6182. /* readonly */
  6183. Array<AttributeInfo> attributeInfos;
  6184. Array<Variant> attributes;
  6185. BoundingBox boundingBox;
  6186. /* readonly */
  6187. String category;
  6188. bool enabled;
  6189. /* readonly */
  6190. bool enabledEffective;
  6191. /* readonly */
  6192. uint id;
  6193. /* readonly */
  6194. Node node;
  6195. /* readonly */
  6196. uint numAttributes;
  6197. ObjectAnimation objectAnimation;
  6198. /* readonly */
  6199. int refs;
  6200. bool temporary;
  6201. /* readonly */
  6202. StringHash type;
  6203. /* readonly */
  6204. String typeName;
  6205. /* readonly */
  6206. int weakRefs;
  6207. /* readonly */
  6208. BoundingBox worldBoundingBox;
  6209. };
  6210. class Navigable
  6211. {
  6212. // Methods:
  6213. void ApplyAttributes();
  6214. void DrawDebugGeometry(DebugRenderer, bool);
  6215. Variant GetAttribute(const String&) const;
  6216. ValueAnimation GetAttributeAnimation(const String&) const;
  6217. float GetAttributeAnimationSpeed(const String&) const;
  6218. float GetAttributeAnimationTime(const String&) const;
  6219. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6220. Variant GetAttributeDefault(const String&) const;
  6221. bool GetInterceptNetworkUpdate(const String&) const;
  6222. bool Load(File, bool = false);
  6223. bool Load(VectorBuffer&, bool = false);
  6224. bool LoadXML(const XMLElement&, bool = false);
  6225. void MarkNetworkUpdate() const;
  6226. void Remove();
  6227. void RemoveAttributeAnimation(const String&);
  6228. void RemoveInstanceDefault();
  6229. void RemoveObjectAnimation();
  6230. void ResetToDefault();
  6231. bool Save(File) const;
  6232. bool Save(VectorBuffer&) const;
  6233. bool SaveXML(XMLElement&) const;
  6234. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6235. void SetAnimationTime(float);
  6236. bool SetAttribute(const String&, const Variant&);
  6237. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6238. void SetAttributeAnimationSpeed(const String&, float);
  6239. void SetAttributeAnimationTime(const String&, float);
  6240. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6241. void SetInterceptNetworkUpdate(const String&, bool);
  6242. // Properties:
  6243. bool animationEnabled;
  6244. /* readonly */
  6245. Array<Variant> attributeDefaults;
  6246. /* readonly */
  6247. Array<AttributeInfo> attributeInfos;
  6248. Array<Variant> attributes;
  6249. /* readonly */
  6250. String category;
  6251. bool enabled;
  6252. /* readonly */
  6253. bool enabledEffective;
  6254. /* readonly */
  6255. uint id;
  6256. /* readonly */
  6257. Node node;
  6258. /* readonly */
  6259. uint numAttributes;
  6260. ObjectAnimation objectAnimation;
  6261. bool recursive;
  6262. /* readonly */
  6263. int refs;
  6264. bool temporary;
  6265. /* readonly */
  6266. StringHash type;
  6267. /* readonly */
  6268. String typeName;
  6269. /* readonly */
  6270. int weakRefs;
  6271. };
  6272. class NavigationMesh
  6273. {
  6274. // Methods:
  6275. void ApplyAttributes();
  6276. bool Build();
  6277. bool Build(const BoundingBox&);
  6278. void DrawDebugGeometry(DebugRenderer, bool);
  6279. void DrawDebugGeometry(bool);
  6280. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6281. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6282. float GetAreaCost(uint) const;
  6283. Variant GetAttribute(const String&) const;
  6284. ValueAnimation GetAttributeAnimation(const String&) const;
  6285. float GetAttributeAnimationSpeed(const String&) const;
  6286. float GetAttributeAnimationTime(const String&) const;
  6287. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6288. Variant GetAttributeDefault(const String&) const;
  6289. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6290. bool GetInterceptNetworkUpdate(const String&) const;
  6291. Vector3 GetRandomPoint();
  6292. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6293. bool Load(File, bool = false);
  6294. bool Load(VectorBuffer&, bool = false);
  6295. bool LoadXML(const XMLElement&, bool = false);
  6296. void MarkNetworkUpdate() const;
  6297. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6298. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6299. void Remove();
  6300. void RemoveAttributeAnimation(const String&);
  6301. void RemoveInstanceDefault();
  6302. void RemoveObjectAnimation();
  6303. void ResetToDefault();
  6304. bool Save(File) const;
  6305. bool Save(VectorBuffer&) const;
  6306. bool SaveXML(XMLElement&) const;
  6307. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6308. void SetAnimationTime(float);
  6309. void SetAreaCost(uint, float);
  6310. bool SetAttribute(const String&, const Variant&);
  6311. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6312. void SetAttributeAnimationSpeed(const String&, float);
  6313. void SetAttributeAnimationTime(const String&, float);
  6314. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6315. void SetInterceptNetworkUpdate(const String&, bool);
  6316. // Properties:
  6317. float agentHeight;
  6318. float agentMaxClimb;
  6319. float agentMaxSlope;
  6320. float agentRadius;
  6321. bool animationEnabled;
  6322. /* readonly */
  6323. Array<Variant> attributeDefaults;
  6324. /* readonly */
  6325. Array<AttributeInfo> attributeInfos;
  6326. Array<Variant> attributes;
  6327. /* readonly */
  6328. BoundingBox boundingBox;
  6329. /* readonly */
  6330. String category;
  6331. float cellHeight;
  6332. float cellSize;
  6333. float detailSampleDistance;
  6334. float detailSampleMaxError;
  6335. bool drawNavAreas;
  6336. bool drawOffMeshConnections;
  6337. float edgeMaxError;
  6338. float edgeMaxLength;
  6339. bool enabled;
  6340. /* readonly */
  6341. bool enabledEffective;
  6342. /* readonly */
  6343. uint id;
  6344. /* readonly */
  6345. bool initialized;
  6346. /* readonly */
  6347. Node node;
  6348. /* readonly */
  6349. uint numAttributes;
  6350. /* readonly */
  6351. IntVector2 numTiles;
  6352. ObjectAnimation objectAnimation;
  6353. Vector3 padding;
  6354. NavmeshPartitionType partitionType;
  6355. /* readonly */
  6356. int refs;
  6357. float regionMergeSize;
  6358. float regionMinSize;
  6359. bool temporary;
  6360. int tileSize;
  6361. /* readonly */
  6362. StringHash type;
  6363. /* readonly */
  6364. String typeName;
  6365. /* readonly */
  6366. int weakRefs;
  6367. /* readonly */
  6368. BoundingBox worldBoundingBox;
  6369. };
  6370. class Network
  6371. {
  6372. // Methods:
  6373. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6374. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6375. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6376. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6377. bool CheckRemoteEvent(const String&) const;
  6378. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6379. void Disconnect(int = 0);
  6380. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6381. void RegisterRemoteEvent(const String&) const;
  6382. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6383. void SendPackageToClients(Scene, PackageFile);
  6384. bool StartServer(uint16);
  6385. void StopServer();
  6386. void UnregisterAllRemoteEvents();
  6387. void UnregisterRemoteEvent(const String&) const;
  6388. // Properties:
  6389. /* readonly */
  6390. String category;
  6391. /* readonly */
  6392. Array<Connection> clientConnections;
  6393. String packageCacheDir;
  6394. /* readonly */
  6395. int refs;
  6396. /* readonly */
  6397. Connection serverConnection;
  6398. /* readonly */
  6399. bool serverRunning;
  6400. int simulatedLatency;
  6401. float simulatedPacketLoss;
  6402. /* readonly */
  6403. StringHash type;
  6404. /* readonly */
  6405. String typeName;
  6406. int updateFps;
  6407. /* readonly */
  6408. int weakRefs;
  6409. };
  6410. class NetworkPriority
  6411. {
  6412. // Methods:
  6413. void ApplyAttributes();
  6414. void DrawDebugGeometry(DebugRenderer, bool);
  6415. Variant GetAttribute(const String&) const;
  6416. ValueAnimation GetAttributeAnimation(const String&) const;
  6417. float GetAttributeAnimationSpeed(const String&) const;
  6418. float GetAttributeAnimationTime(const String&) const;
  6419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6420. Variant GetAttributeDefault(const String&) const;
  6421. bool GetInterceptNetworkUpdate(const String&) const;
  6422. bool Load(File, bool = false);
  6423. bool Load(VectorBuffer&, bool = false);
  6424. bool LoadXML(const XMLElement&, bool = false);
  6425. void MarkNetworkUpdate() const;
  6426. void Remove();
  6427. void RemoveAttributeAnimation(const String&);
  6428. void RemoveInstanceDefault();
  6429. void RemoveObjectAnimation();
  6430. void ResetToDefault();
  6431. bool Save(File) const;
  6432. bool Save(VectorBuffer&) const;
  6433. bool SaveXML(XMLElement&) const;
  6434. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6435. void SetAnimationTime(float);
  6436. bool SetAttribute(const String&, const Variant&);
  6437. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6438. void SetAttributeAnimationSpeed(const String&, float);
  6439. void SetAttributeAnimationTime(const String&, float);
  6440. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6441. void SetInterceptNetworkUpdate(const String&, bool);
  6442. // Properties:
  6443. bool alwaysUpdateOwner;
  6444. bool animationEnabled;
  6445. /* readonly */
  6446. Array<Variant> attributeDefaults;
  6447. /* readonly */
  6448. Array<AttributeInfo> attributeInfos;
  6449. Array<Variant> attributes;
  6450. float basePriority;
  6451. /* readonly */
  6452. String category;
  6453. float distanceFactor;
  6454. bool enabled;
  6455. /* readonly */
  6456. bool enabledEffective;
  6457. /* readonly */
  6458. uint id;
  6459. float minPriority;
  6460. /* readonly */
  6461. Node node;
  6462. /* readonly */
  6463. uint numAttributes;
  6464. ObjectAnimation objectAnimation;
  6465. /* readonly */
  6466. int refs;
  6467. bool temporary;
  6468. /* readonly */
  6469. StringHash type;
  6470. /* readonly */
  6471. String typeName;
  6472. /* readonly */
  6473. int weakRefs;
  6474. };
  6475. class Node
  6476. {
  6477. // Methods:
  6478. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6479. void ApplyAttributes();
  6480. Node Clone(CreateMode = REPLICATED);
  6481. Component CloneComponent(Component, CreateMode, uint = 0);
  6482. Component CloneComponent(Component, uint = 0);
  6483. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6484. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6485. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6486. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6487. Variant GetAttribute(const String&) const;
  6488. ValueAnimation GetAttributeAnimation(const String&) const;
  6489. float GetAttributeAnimationSpeed(const String&) const;
  6490. float GetAttributeAnimationTime(const String&) const;
  6491. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6492. Variant GetAttributeDefault(const String&) const;
  6493. Node GetChild(const String&, bool = false) const;
  6494. Array<Node> GetChildren(bool = false) const;
  6495. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6496. Array<Node> GetChildrenWithScript(bool = false) const;
  6497. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6498. Component GetComponent(const String&, bool = false) const;
  6499. Array<Component> GetComponents() const;
  6500. Array<Component> GetComponents(const String&, bool = false) const;
  6501. bool GetInterceptNetworkUpdate(const String&) const;
  6502. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6503. Component GetParentComponent(const String&, bool = false) const;
  6504. ScriptObject GetScriptObject() const;
  6505. ScriptObject GetScriptObject(const String&) const;
  6506. bool HasComponent(const String&) const;
  6507. bool Load(File, bool = false);
  6508. bool Load(VectorBuffer&, bool = false);
  6509. bool LoadXML(const XMLElement&, bool = false);
  6510. Vector3 LocalToWorld(const Vector3&) const;
  6511. Vector3 LocalToWorld(const Vector4&) const;
  6512. Vector2 LocalToWorld2D(const Vector2&) const;
  6513. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6514. void MarkDirty();
  6515. void MarkNetworkUpdate() const;
  6516. void Pitch(float, TransformSpace = TS_LOCAL);
  6517. void Remove();
  6518. void RemoveAllChildren();
  6519. void RemoveAllComponents();
  6520. void RemoveAttributeAnimation(const String&);
  6521. void RemoveChild(Node);
  6522. void RemoveChildren(bool, bool, bool);
  6523. void RemoveComponent(Component);
  6524. void RemoveComponent(const String&);
  6525. void RemoveComponents(bool, bool);
  6526. void RemoveComponents(const String&);
  6527. void RemoveInstanceDefault();
  6528. void RemoveObjectAnimation();
  6529. void ResetDeepEnabled();
  6530. void ResetToDefault();
  6531. void Roll(float, TransformSpace = TS_LOCAL);
  6532. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6533. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6534. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6535. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6536. bool Save(File) const;
  6537. bool Save(VectorBuffer&) const;
  6538. bool SaveXML(File, const String& = "\t");
  6539. bool SaveXML(VectorBuffer&, const String& = "\t");
  6540. bool SaveXML(XMLElement&) const;
  6541. void Scale(const Vector3&);
  6542. void Scale(float);
  6543. void Scale2D(const Vector2&);
  6544. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6545. void SetAnimationTime(float);
  6546. bool SetAttribute(const String&, const Variant&);
  6547. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6548. void SetAttributeAnimationSpeed(const String&, float);
  6549. void SetAttributeAnimationTime(const String&, float);
  6550. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6551. void SetDeepEnabled(bool);
  6552. void SetEnabledRecursive(bool);
  6553. void SetInterceptNetworkUpdate(const String&, bool);
  6554. void SetPosition2D(float, float);
  6555. void SetScale(float);
  6556. void SetScale2D(float, float);
  6557. void SetTransform(const Vector3&, const Quaternion&);
  6558. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6559. void SetTransform(const Vector3&, const Quaternion&, float);
  6560. void SetTransform2D(const Vector2&, float);
  6561. void SetTransform2D(const Vector2&, float, const Vector2&);
  6562. void SetTransform2D(const Vector2&, float, float);
  6563. void SetWorldTransform(const Vector3&, const Quaternion&);
  6564. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6565. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6566. void SetWorldTransform2D(const Vector2&, float);
  6567. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6568. void SetWorldTransform2D(const Vector2&, float, float);
  6569. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6570. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6571. Vector3 WorldToLocal(const Vector3&) const;
  6572. Vector3 WorldToLocal(const Vector4&) const;
  6573. Vector2 WorldToLocal2D(const Vector2&) const;
  6574. void Yaw(float, TransformSpace = TS_LOCAL);
  6575. // Properties:
  6576. bool animationEnabled;
  6577. /* readonly */
  6578. Array<Variant> attributeDefaults;
  6579. /* readonly */
  6580. Array<AttributeInfo> attributeInfos;
  6581. Array<Variant> attributes;
  6582. /* readonly */
  6583. String category;
  6584. /* readonly */
  6585. Array<Node> children;
  6586. /* readonly */
  6587. Array<Component> components;
  6588. Vector3 direction;
  6589. bool enabled;
  6590. /* readonly */
  6591. bool enabledSelf;
  6592. /* readonly */
  6593. uint id;
  6594. String name;
  6595. /* readonly */
  6596. uint numAllChildren;
  6597. /* readonly */
  6598. uint numAttributes;
  6599. /* readonly */
  6600. uint numChildren;
  6601. /* readonly */
  6602. uint numComponents;
  6603. ObjectAnimation objectAnimation;
  6604. Connection owner;
  6605. Node parent;
  6606. Vector3 position;
  6607. Vector2 position2D;
  6608. /* readonly */
  6609. int refs;
  6610. /* readonly */
  6611. Vector3 right;
  6612. Quaternion rotation;
  6613. float rotation2D;
  6614. Vector3 scale;
  6615. Vector2 scale2D;
  6616. /* readonly */
  6617. Scene scene;
  6618. /* readonly */
  6619. ScriptObject scriptObject;
  6620. bool temporary;
  6621. /* readonly */
  6622. Matrix3x4 transform;
  6623. /* readonly */
  6624. StringHash type;
  6625. /* readonly */
  6626. String typeName;
  6627. /* readonly */
  6628. Vector3 up;
  6629. /* readonly */
  6630. VariantMap vars;
  6631. /* readonly */
  6632. int weakRefs;
  6633. Vector3 worldDirection;
  6634. Vector3 worldPosition;
  6635. Vector2 worldPosition2D;
  6636. /* readonly */
  6637. Vector3 worldRight;
  6638. Quaternion worldRotation;
  6639. float worldRotation2D;
  6640. Vector3 worldScale;
  6641. Vector2 worldScale2D;
  6642. /* readonly */
  6643. Matrix3x4 worldTransform;
  6644. /* readonly */
  6645. Vector3 worldUp;
  6646. };
  6647. class Object
  6648. {
  6649. // Methods:
  6650. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6651. // Properties:
  6652. /* readonly */
  6653. String category;
  6654. /* readonly */
  6655. int refs;
  6656. /* readonly */
  6657. StringHash type;
  6658. /* readonly */
  6659. String typeName;
  6660. /* readonly */
  6661. int weakRefs;
  6662. };
  6663. class ObjectAnimation
  6664. {
  6665. // Methods:
  6666. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6667. ValueAnimation GetAttributeAnimation(const String&) const;
  6668. float GetAttributeAnimationSpeed(const String&) const;
  6669. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6670. bool Load(File);
  6671. bool Load(VectorBuffer&);
  6672. void RemoveAttributeAnimation(ValueAnimation);
  6673. void RemoveAttributeAnimation(const String&);
  6674. bool Save(File) const;
  6675. bool Save(VectorBuffer&) const;
  6676. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6677. // Properties:
  6678. /* readonly */
  6679. Array<Variant> attributeAnimations;
  6680. /* readonly */
  6681. String category;
  6682. /* readonly */
  6683. uint memoryUse;
  6684. String name;
  6685. /* readonly */
  6686. int refs;
  6687. /* readonly */
  6688. Array<Variant> speeds;
  6689. /* readonly */
  6690. StringHash type;
  6691. /* readonly */
  6692. String typeName;
  6693. /* readonly */
  6694. uint useTimer;
  6695. /* readonly */
  6696. int weakRefs;
  6697. /* readonly */
  6698. Array<Variant> wrapModes;
  6699. };
  6700. class Obstacle
  6701. {
  6702. // Methods:
  6703. void ApplyAttributes();
  6704. void DrawDebugGeometry(DebugRenderer, bool);
  6705. void DrawDebugGeometry(bool);
  6706. Variant GetAttribute(const String&) const;
  6707. ValueAnimation GetAttributeAnimation(const String&) const;
  6708. float GetAttributeAnimationSpeed(const String&) const;
  6709. float GetAttributeAnimationTime(const String&) const;
  6710. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6711. Variant GetAttributeDefault(const String&) const;
  6712. bool GetInterceptNetworkUpdate(const String&) const;
  6713. bool Load(File, bool = false);
  6714. bool Load(VectorBuffer&, bool = false);
  6715. bool LoadXML(const XMLElement&, bool = false);
  6716. void MarkNetworkUpdate() const;
  6717. void Remove();
  6718. void RemoveAttributeAnimation(const String&);
  6719. void RemoveInstanceDefault();
  6720. void RemoveObjectAnimation();
  6721. void ResetToDefault();
  6722. bool Save(File) const;
  6723. bool Save(VectorBuffer&) const;
  6724. bool SaveXML(XMLElement&) const;
  6725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6726. void SetAnimationTime(float);
  6727. bool SetAttribute(const String&, const Variant&);
  6728. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6729. void SetAttributeAnimationSpeed(const String&, float);
  6730. void SetAttributeAnimationTime(const String&, float);
  6731. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6732. void SetInterceptNetworkUpdate(const String&, bool);
  6733. // Properties:
  6734. bool animationEnabled;
  6735. /* readonly */
  6736. Array<Variant> attributeDefaults;
  6737. /* readonly */
  6738. Array<AttributeInfo> attributeInfos;
  6739. Array<Variant> attributes;
  6740. /* readonly */
  6741. String category;
  6742. bool enabled;
  6743. /* readonly */
  6744. bool enabledEffective;
  6745. float height;
  6746. /* readonly */
  6747. uint id;
  6748. /* readonly */
  6749. Node node;
  6750. /* readonly */
  6751. uint numAttributes;
  6752. ObjectAnimation objectAnimation;
  6753. /* readonly */
  6754. uint obstacleId;
  6755. float radius;
  6756. /* readonly */
  6757. int refs;
  6758. bool temporary;
  6759. /* readonly */
  6760. StringHash type;
  6761. /* readonly */
  6762. String typeName;
  6763. /* readonly */
  6764. int weakRefs;
  6765. };
  6766. class Octree
  6767. {
  6768. // Methods:
  6769. void AddManualDrawable(Drawable);
  6770. void ApplyAttributes();
  6771. void DrawDebugGeometry(DebugRenderer, bool);
  6772. void DrawDebugGeometry(bool) const;
  6773. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6774. Variant GetAttribute(const String&) const;
  6775. ValueAnimation GetAttributeAnimation(const String&) const;
  6776. float GetAttributeAnimationSpeed(const String&) const;
  6777. float GetAttributeAnimationTime(const String&) const;
  6778. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6779. Variant GetAttributeDefault(const String&) const;
  6780. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6781. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6782. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6783. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6784. bool GetInterceptNetworkUpdate(const String&) const;
  6785. bool Load(File, bool = false);
  6786. bool Load(VectorBuffer&, bool = false);
  6787. bool LoadXML(const XMLElement&, bool = false);
  6788. void MarkNetworkUpdate() const;
  6789. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6790. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6791. void Remove();
  6792. void RemoveAttributeAnimation(const String&);
  6793. void RemoveInstanceDefault();
  6794. void RemoveManualDrawable(Drawable);
  6795. void RemoveObjectAnimation();
  6796. void ResetToDefault();
  6797. bool Save(File) const;
  6798. bool Save(VectorBuffer&) const;
  6799. bool SaveXML(XMLElement&) const;
  6800. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6801. void SetAnimationTime(float);
  6802. bool SetAttribute(const String&, const Variant&);
  6803. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6804. void SetAttributeAnimationSpeed(const String&, float);
  6805. void SetAttributeAnimationTime(const String&, float);
  6806. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6807. void SetInterceptNetworkUpdate(const String&, bool);
  6808. void SetSize(const BoundingBox&, uint);
  6809. // Properties:
  6810. bool animationEnabled;
  6811. /* readonly */
  6812. Array<Variant> attributeDefaults;
  6813. /* readonly */
  6814. Array<AttributeInfo> attributeInfos;
  6815. Array<Variant> attributes;
  6816. /* readonly */
  6817. String category;
  6818. bool enabled;
  6819. /* readonly */
  6820. bool enabledEffective;
  6821. /* readonly */
  6822. uint id;
  6823. /* readonly */
  6824. Node node;
  6825. /* readonly */
  6826. uint numAttributes;
  6827. /* readonly */
  6828. uint numLevels;
  6829. ObjectAnimation objectAnimation;
  6830. /* readonly */
  6831. int refs;
  6832. bool temporary;
  6833. /* readonly */
  6834. StringHash type;
  6835. /* readonly */
  6836. String typeName;
  6837. /* readonly */
  6838. int weakRefs;
  6839. /* readonly */
  6840. BoundingBox worldBoundingBox;
  6841. };
  6842. class OffMeshConnection
  6843. {
  6844. // Methods:
  6845. void ApplyAttributes();
  6846. void DrawDebugGeometry(DebugRenderer, bool);
  6847. Variant GetAttribute(const String&) const;
  6848. ValueAnimation GetAttributeAnimation(const String&) const;
  6849. float GetAttributeAnimationSpeed(const String&) const;
  6850. float GetAttributeAnimationTime(const String&) const;
  6851. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6852. Variant GetAttributeDefault(const String&) const;
  6853. bool GetInterceptNetworkUpdate(const String&) const;
  6854. bool Load(File, bool = false);
  6855. bool Load(VectorBuffer&, bool = false);
  6856. bool LoadXML(const XMLElement&, bool = false);
  6857. void MarkNetworkUpdate() const;
  6858. void Remove();
  6859. void RemoveAttributeAnimation(const String&);
  6860. void RemoveInstanceDefault();
  6861. void RemoveObjectAnimation();
  6862. void ResetToDefault();
  6863. bool Save(File) const;
  6864. bool Save(VectorBuffer&) const;
  6865. bool SaveXML(XMLElement&) const;
  6866. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6867. void SetAnimationTime(float);
  6868. bool SetAttribute(const String&, const Variant&);
  6869. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6870. void SetAttributeAnimationSpeed(const String&, float);
  6871. void SetAttributeAnimationTime(const String&, float);
  6872. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6873. void SetInterceptNetworkUpdate(const String&, bool);
  6874. // Properties:
  6875. bool animationEnabled;
  6876. uint areaID;
  6877. /* readonly */
  6878. Array<Variant> attributeDefaults;
  6879. /* readonly */
  6880. Array<AttributeInfo> attributeInfos;
  6881. Array<Variant> attributes;
  6882. bool bidirectional;
  6883. /* readonly */
  6884. String category;
  6885. bool enabled;
  6886. /* readonly */
  6887. bool enabledEffective;
  6888. Node endPoint;
  6889. /* readonly */
  6890. uint id;
  6891. uint mask;
  6892. /* readonly */
  6893. Node node;
  6894. /* readonly */
  6895. uint numAttributes;
  6896. ObjectAnimation objectAnimation;
  6897. float radius;
  6898. /* readonly */
  6899. int refs;
  6900. bool temporary;
  6901. /* readonly */
  6902. StringHash type;
  6903. /* readonly */
  6904. String typeName;
  6905. /* readonly */
  6906. int weakRefs;
  6907. };
  6908. class PackageFile
  6909. {
  6910. // Methods:
  6911. bool Exists(const String&) const;
  6912. Array<String> GetEntryNames() const;
  6913. bool Open(const String&, uint = 0) const;
  6914. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6915. bool compressed() const;
  6916. // Properties:
  6917. /* readonly */
  6918. String category;
  6919. /* readonly */
  6920. uint checksum;
  6921. /* readonly */
  6922. String name;
  6923. /* readonly */
  6924. uint numFiles;
  6925. /* readonly */
  6926. int refs;
  6927. /* readonly */
  6928. uint totalSize;
  6929. /* readonly */
  6930. StringHash type;
  6931. /* readonly */
  6932. String typeName;
  6933. /* readonly */
  6934. int weakRefs;
  6935. };
  6936. class ParticleEffect
  6937. {
  6938. // Methods:
  6939. void AddColorFrame(ColorFrame);
  6940. void AddColorTime(Color&, float);
  6941. void AddTextureFrame(TextureFrame);
  6942. void AddTextureTime(Rect&, float);
  6943. ColorFrame GetColorFrame(uint) const;
  6944. TextureFrame GetTextureFrame(uint) const;
  6945. bool Load(File);
  6946. bool Load(VectorBuffer&);
  6947. bool Load(const XMLElement&);
  6948. void RemoveColorFrame(uint);
  6949. void RemoveTextureFrame(uint);
  6950. bool Save(File) const;
  6951. bool Save(VectorBuffer&) const;
  6952. bool Save(XMLElement&) const;
  6953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6954. void SetColorFrame(uint, ColorFrame);
  6955. void SetTextureFrame(uint, TextureFrame);
  6956. void SortColorFrames();
  6957. void SortTextureFrames();
  6958. // Properties:
  6959. float activeTime;
  6960. float animationLodBias;
  6961. /* readonly */
  6962. String category;
  6963. Vector3 constantForce;
  6964. float dampingForce;
  6965. Vector3 emitterSize;
  6966. EmitterType emitterType;
  6967. float inactiveTime;
  6968. Material material;
  6969. Vector3 maxDirection;
  6970. float maxEmissionRate;
  6971. Vector2 maxParticleSize;
  6972. float maxRotation;
  6973. float maxRotationSpeed;
  6974. float maxTimeToLive;
  6975. float maxVelocity;
  6976. /* readonly */
  6977. uint memoryUse;
  6978. Vector3 minDirection;
  6979. float minEmissionRate;
  6980. Vector2 minParticleSize;
  6981. float minRotation;
  6982. float minRotationSpeed;
  6983. float minTimeToLive;
  6984. float minVelocity;
  6985. String name;
  6986. uint numColorFrames;
  6987. uint numParticles;
  6988. uint numTextureFrames;
  6989. /* readonly */
  6990. int refs;
  6991. bool relative;
  6992. bool scaled;
  6993. float sizeAdd;
  6994. float sizeMul;
  6995. bool sorted;
  6996. /* readonly */
  6997. StringHash type;
  6998. /* readonly */
  6999. String typeName;
  7000. bool updateInvisible;
  7001. /* readonly */
  7002. uint useTimer;
  7003. /* readonly */
  7004. int weakRefs;
  7005. };
  7006. class ParticleEffect2D
  7007. {
  7008. // Methods:
  7009. bool Load(File);
  7010. bool Load(VectorBuffer&);
  7011. bool Save(File) const;
  7012. bool Save(VectorBuffer&) const;
  7013. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7014. // Properties:
  7015. /* readonly */
  7016. String category;
  7017. /* readonly */
  7018. uint memoryUse;
  7019. String name;
  7020. /* readonly */
  7021. int refs;
  7022. /* readonly */
  7023. StringHash type;
  7024. /* readonly */
  7025. String typeName;
  7026. /* readonly */
  7027. uint useTimer;
  7028. /* readonly */
  7029. int weakRefs;
  7030. };
  7031. class ParticleEmitter
  7032. {
  7033. // Methods:
  7034. void ApplyAttributes();
  7035. void ApplyEffect();
  7036. void Commit();
  7037. void DrawDebugGeometry(DebugRenderer, bool);
  7038. Variant GetAttribute(const String&) const;
  7039. ValueAnimation GetAttributeAnimation(const String&) const;
  7040. float GetAttributeAnimationSpeed(const String&) const;
  7041. float GetAttributeAnimationTime(const String&) const;
  7042. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7043. Variant GetAttributeDefault(const String&) const;
  7044. bool GetInterceptNetworkUpdate(const String&) const;
  7045. bool IsInView(Camera) const;
  7046. bool Load(File, bool = false);
  7047. bool Load(VectorBuffer&, bool = false);
  7048. bool LoadXML(const XMLElement&, bool = false);
  7049. void MarkNetworkUpdate() const;
  7050. void Remove();
  7051. void RemoveAllParticles();
  7052. void RemoveAttributeAnimation(const String&);
  7053. void RemoveInstanceDefault();
  7054. void RemoveObjectAnimation();
  7055. void Reset();
  7056. void ResetEmissionTimer();
  7057. void ResetToDefault();
  7058. bool Save(File) const;
  7059. bool Save(VectorBuffer&) const;
  7060. bool SaveXML(XMLElement&) const;
  7061. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7062. void SetAnimationTime(float);
  7063. bool SetAttribute(const String&, const Variant&);
  7064. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7065. void SetAttributeAnimationSpeed(const String&, float);
  7066. void SetAttributeAnimationTime(const String&, float);
  7067. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7068. void SetInterceptNetworkUpdate(const String&, bool);
  7069. // Properties:
  7070. bool animationEnabled;
  7071. float animationLodBias;
  7072. /* readonly */
  7073. Array<Variant> attributeDefaults;
  7074. /* readonly */
  7075. Array<AttributeInfo> attributeInfos;
  7076. Array<Variant> attributes;
  7077. /* readonly */
  7078. Array<Billboard> billboards;
  7079. /* readonly */
  7080. BoundingBox boundingBox;
  7081. bool castShadows;
  7082. /* readonly */
  7083. String category;
  7084. float drawDistance;
  7085. ParticleEffect effect;
  7086. bool emitting;
  7087. bool enabled;
  7088. /* readonly */
  7089. bool enabledEffective;
  7090. FaceCameraMode faceCameraMode;
  7091. /* readonly */
  7092. uint id;
  7093. /* readonly */
  7094. bool inView;
  7095. uint lightMask;
  7096. float lodBias;
  7097. Material material;
  7098. uint maxLights;
  7099. /* readonly */
  7100. Node node;
  7101. /* readonly */
  7102. uint numAttributes;
  7103. uint numBillboards;
  7104. uint numParticles;
  7105. ObjectAnimation objectAnimation;
  7106. bool occludee;
  7107. bool occluder;
  7108. /* readonly */
  7109. int refs;
  7110. bool relative;
  7111. bool scaled;
  7112. bool serializeParticles;
  7113. float shadowDistance;
  7114. uint shadowMask;
  7115. bool sorted;
  7116. bool temporary;
  7117. /* readonly */
  7118. StringHash type;
  7119. /* readonly */
  7120. String typeName;
  7121. uint viewMask;
  7122. /* readonly */
  7123. int weakRefs;
  7124. /* readonly */
  7125. BoundingBox worldBoundingBox;
  7126. /* readonly */
  7127. Zone zone;
  7128. uint zoneMask;
  7129. };
  7130. class ParticleEmitter2D
  7131. {
  7132. // Methods:
  7133. void ApplyAttributes();
  7134. void DrawDebugGeometry(DebugRenderer, bool);
  7135. Variant GetAttribute(const String&) const;
  7136. ValueAnimation GetAttributeAnimation(const String&) const;
  7137. float GetAttributeAnimationSpeed(const String&) const;
  7138. float GetAttributeAnimationTime(const String&) const;
  7139. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7140. Variant GetAttributeDefault(const String&) const;
  7141. bool GetInterceptNetworkUpdate(const String&) const;
  7142. bool IsInView(Camera) const;
  7143. bool Load(File, bool = false);
  7144. bool Load(VectorBuffer&, bool = false);
  7145. bool LoadXML(const XMLElement&, bool = false);
  7146. void MarkNetworkUpdate() const;
  7147. void Remove();
  7148. void RemoveAttributeAnimation(const String&);
  7149. void RemoveInstanceDefault();
  7150. void RemoveObjectAnimation();
  7151. void ResetToDefault();
  7152. bool Save(File) const;
  7153. bool Save(VectorBuffer&) const;
  7154. bool SaveXML(XMLElement&) const;
  7155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7156. void SetAnimationTime(float);
  7157. bool SetAttribute(const String&, const Variant&);
  7158. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7159. void SetAttributeAnimationSpeed(const String&, float);
  7160. void SetAttributeAnimationTime(const String&, float);
  7161. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7162. void SetInterceptNetworkUpdate(const String&, bool);
  7163. // Properties:
  7164. bool animationEnabled;
  7165. /* readonly */
  7166. Array<Variant> attributeDefaults;
  7167. /* readonly */
  7168. Array<AttributeInfo> attributeInfos;
  7169. Array<Variant> attributes;
  7170. BlendMode blendMode;
  7171. /* readonly */
  7172. BoundingBox boundingBox;
  7173. bool castShadows;
  7174. /* readonly */
  7175. String category;
  7176. float drawDistance;
  7177. ParticleEffect2D effect;
  7178. bool enabled;
  7179. /* readonly */
  7180. bool enabledEffective;
  7181. /* readonly */
  7182. uint id;
  7183. /* readonly */
  7184. bool inView;
  7185. int layer;
  7186. uint lightMask;
  7187. float lodBias;
  7188. uint maxLights;
  7189. /* readonly */
  7190. Node node;
  7191. /* readonly */
  7192. uint numAttributes;
  7193. ObjectAnimation objectAnimation;
  7194. bool occludee;
  7195. bool occluder;
  7196. int orderInLayer;
  7197. /* readonly */
  7198. int refs;
  7199. float shadowDistance;
  7200. uint shadowMask;
  7201. Sprite2D sprite;
  7202. bool temporary;
  7203. /* readonly */
  7204. StringHash type;
  7205. /* readonly */
  7206. String typeName;
  7207. uint viewMask;
  7208. /* readonly */
  7209. int weakRefs;
  7210. /* readonly */
  7211. BoundingBox worldBoundingBox;
  7212. uint zoneMask;
  7213. };
  7214. class Pass
  7215. {
  7216. // Properties:
  7217. bool alphaMask;
  7218. BlendMode blendMode;
  7219. CompareMode depthTestMode;
  7220. bool depthWrite;
  7221. bool desktop;
  7222. PassLightingMode lightingMode;
  7223. String pixelShader;
  7224. String pixelShaderDefines;
  7225. /* readonly */
  7226. int refs;
  7227. String vertexShader;
  7228. String vertexShaderDefines;
  7229. /* readonly */
  7230. int weakRefs;
  7231. };
  7232. class PhysicsRaycastResult
  7233. {
  7234. // Properties:
  7235. /* readonly */
  7236. RigidBody body;
  7237. float distance;
  7238. Vector3 normal;
  7239. Vector3 position;
  7240. };
  7241. class PhysicsRaycastResult2D
  7242. {
  7243. // Properties:
  7244. /* readonly */
  7245. RigidBody2D body;
  7246. float distance;
  7247. Vector2 normal;
  7248. Vector2 position;
  7249. };
  7250. class PhysicsWorld
  7251. {
  7252. // Methods:
  7253. void ApplyAttributes();
  7254. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7255. void DrawDebugGeometry(DebugRenderer, bool);
  7256. void DrawDebugGeometry(bool);
  7257. Variant GetAttribute(const String&) const;
  7258. ValueAnimation GetAttributeAnimation(const String&) const;
  7259. float GetAttributeAnimationSpeed(const String&) const;
  7260. float GetAttributeAnimationTime(const String&) const;
  7261. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7262. Variant GetAttributeDefault(const String&) const;
  7263. bool GetInterceptNetworkUpdate(const String&) const;
  7264. Array<RigidBody> GetRigidBodies(RigidBody);
  7265. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7266. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7267. bool Load(File, bool = false);
  7268. bool Load(VectorBuffer&, bool = false);
  7269. bool LoadXML(const XMLElement&, bool = false);
  7270. void MarkNetworkUpdate() const;
  7271. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7272. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7273. void Remove();
  7274. void RemoveAttributeAnimation(const String&);
  7275. void RemoveCachedGeometry(Model);
  7276. void RemoveInstanceDefault();
  7277. void RemoveObjectAnimation();
  7278. void ResetToDefault();
  7279. bool Save(File) const;
  7280. bool Save(VectorBuffer&) const;
  7281. bool SaveXML(XMLElement&) const;
  7282. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7283. void SetAnimationTime(float);
  7284. bool SetAttribute(const String&, const Variant&);
  7285. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7286. void SetAttributeAnimationSpeed(const String&, float);
  7287. void SetAttributeAnimationTime(const String&, float);
  7288. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7289. void SetInterceptNetworkUpdate(const String&, bool);
  7290. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7291. void Update(float);
  7292. void UpdateCollisions();
  7293. // Properties:
  7294. bool animationEnabled;
  7295. /* readonly */
  7296. Array<Variant> attributeDefaults;
  7297. /* readonly */
  7298. Array<AttributeInfo> attributeInfos;
  7299. Array<Variant> attributes;
  7300. /* readonly */
  7301. String category;
  7302. bool enabled;
  7303. /* readonly */
  7304. bool enabledEffective;
  7305. int fps;
  7306. Vector3 gravity;
  7307. /* readonly */
  7308. uint id;
  7309. bool internalEdge;
  7310. bool interpolation;
  7311. int maxSubSteps;
  7312. /* readonly */
  7313. Node node;
  7314. /* readonly */
  7315. uint numAttributes;
  7316. int numIterations;
  7317. ObjectAnimation objectAnimation;
  7318. /* readonly */
  7319. int refs;
  7320. bool splitImpulse;
  7321. bool temporary;
  7322. /* readonly */
  7323. StringHash type;
  7324. /* readonly */
  7325. String typeName;
  7326. /* readonly */
  7327. int weakRefs;
  7328. };
  7329. class PhysicsWorld2D
  7330. {
  7331. // Methods:
  7332. void ApplyAttributes();
  7333. void DrawDebugGeometry() const;
  7334. void DrawDebugGeometry(DebugRenderer, bool);
  7335. Variant GetAttribute(const String&) const;
  7336. ValueAnimation GetAttributeAnimation(const String&) const;
  7337. float GetAttributeAnimationSpeed(const String&) const;
  7338. float GetAttributeAnimationTime(const String&) const;
  7339. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7340. Variant GetAttributeDefault(const String&) const;
  7341. bool GetInterceptNetworkUpdate(const String&) const;
  7342. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7343. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7344. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7345. bool Load(File, bool = false);
  7346. bool Load(VectorBuffer&, bool = false);
  7347. bool LoadXML(const XMLElement&, bool = false);
  7348. void MarkNetworkUpdate() const;
  7349. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7350. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7351. void Remove();
  7352. void RemoveAttributeAnimation(const String&);
  7353. void RemoveInstanceDefault();
  7354. void RemoveObjectAnimation();
  7355. void ResetToDefault();
  7356. bool Save(File) const;
  7357. bool Save(VectorBuffer&) const;
  7358. bool SaveXML(XMLElement&) const;
  7359. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7360. void SetAnimationTime(float);
  7361. bool SetAttribute(const String&, const Variant&);
  7362. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7363. void SetAttributeAnimationSpeed(const String&, float);
  7364. void SetAttributeAnimationTime(const String&, float);
  7365. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7366. void SetInterceptNetworkUpdate(const String&, bool);
  7367. // Properties:
  7368. bool allowSleeping;
  7369. bool animationEnabled;
  7370. /* readonly */
  7371. Array<Variant> attributeDefaults;
  7372. /* readonly */
  7373. Array<AttributeInfo> attributeInfos;
  7374. Array<Variant> attributes;
  7375. bool autoClearForces;
  7376. /* readonly */
  7377. String category;
  7378. bool continuousPhysics;
  7379. bool drawAabb;
  7380. bool drawCenterOfMass;
  7381. bool drawJoint;
  7382. bool drawPair;
  7383. bool drawShape;
  7384. bool enabled;
  7385. /* readonly */
  7386. bool enabledEffective;
  7387. Vector2 gravity;
  7388. /* readonly */
  7389. uint id;
  7390. /* readonly */
  7391. Node node;
  7392. /* readonly */
  7393. uint numAttributes;
  7394. ObjectAnimation objectAnimation;
  7395. uint positionIterations;
  7396. /* readonly */
  7397. int refs;
  7398. bool subStepping;
  7399. bool temporary;
  7400. /* readonly */
  7401. StringHash type;
  7402. /* readonly */
  7403. String typeName;
  7404. uint velocityIterations;
  7405. bool warmStarting;
  7406. /* readonly */
  7407. int weakRefs;
  7408. };
  7409. class Plane
  7410. {
  7411. // Methods:
  7412. void Define(const Vector3&, const Vector3&);
  7413. void Define(const Vector3&, const Vector3&, const Vector3&);
  7414. void Define(const Vector4&);
  7415. float Distance(const Vector3&) const;
  7416. Vector3 Project(const Vector3&) const;
  7417. Vector3 Reflect(const Vector3&) const;
  7418. Vector4 ToVector4() const;
  7419. void Transform(const Matrix3&);
  7420. void Transform(const Matrix3x4&);
  7421. void Transform(const Matrix4&);
  7422. Plane Transformed(const Matrix3&) const;
  7423. Plane Transformed(const Matrix3x4&) const;
  7424. Plane Transformed(const Matrix4&) const;
  7425. // Properties:
  7426. Vector3 absNormal;
  7427. float d;
  7428. Vector3 normal;
  7429. /* readonly */
  7430. Matrix3x4 reflectionMatrix;
  7431. };
  7432. class Polyhedron
  7433. {
  7434. // Methods:
  7435. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7436. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7437. void AddFace(const Array<Vector3>);
  7438. void Clear();
  7439. void Clip(const BoundingBox&);
  7440. void Clip(const Frustum&);
  7441. void Define(const BoundingBox&);
  7442. void Define(const Frustum&);
  7443. void Transform(const Matrix3&);
  7444. void Transform(const Matrix3x4&);
  7445. Polyhedron Transformed(const Matrix3&) const;
  7446. Polyhedron Transformed(const Matrix3x4&) const;
  7447. // Properties:
  7448. /* readonly */
  7449. Array<Array<Vector3>> face;
  7450. /* readonly */
  7451. uint numFaces;
  7452. };
  7453. class PropertySet2D
  7454. {
  7455. // Methods:
  7456. bool HasProperty(const String&) const;
  7457. const String& GetProperty(const String&) const;
  7458. // Properties:
  7459. /* readonly */
  7460. int refs;
  7461. /* readonly */
  7462. int weakRefs;
  7463. };
  7464. class Quaternion
  7465. {
  7466. // Methods:
  7467. float DotProduct(const Quaternion&) const;
  7468. bool Equals(const Quaternion&) const;
  7469. void FromAngleAxis(float, const Vector3&);
  7470. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7471. void FromEulerAngles(float, float, float);
  7472. bool FromLookRotation(const Vector3&, const Vector3&);
  7473. void FromRotationTo(const Vector3&, const Vector3&);
  7474. Quaternion Inverse() const;
  7475. bool IsNaN() const;
  7476. Quaternion Nlerp(Quaternion, float, bool) const;
  7477. void Normalize();
  7478. Quaternion Normalized() const;
  7479. Quaternion Slerp(Quaternion, float) const;
  7480. String ToString() const;
  7481. // Properties:
  7482. /* readonly */
  7483. Vector3 eulerAngles;
  7484. /* readonly */
  7485. float pitch;
  7486. /* readonly */
  7487. float roll;
  7488. float w;
  7489. float x;
  7490. float y;
  7491. /* readonly */
  7492. float yaw;
  7493. float z;
  7494. };
  7495. class Ray
  7496. {
  7497. // Methods:
  7498. Vector3 ClosestPoint(const Ray&) const;
  7499. void Define(const Vector3&, const Vector3&);
  7500. float Distance(const Vector3&) const;
  7501. float HitDistance(const BoundingBox&) const;
  7502. float HitDistance(const Frustum&, bool = true) const;
  7503. float HitDistance(const Plane&) const;
  7504. float HitDistance(const Sphere&) const;
  7505. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7506. Vector3 Project(const Vector3&) const;
  7507. Ray Transformed(const Matrix3x4&) const;
  7508. // Properties:
  7509. Vector3 direction;
  7510. Vector3 origin;
  7511. };
  7512. class RayQueryResult
  7513. {
  7514. // Properties:
  7515. float distance;
  7516. /* readonly */
  7517. Drawable drawable;
  7518. /* readonly */
  7519. Node node;
  7520. Vector3 normal;
  7521. Vector3 position;
  7522. uint subObject;
  7523. Vector2 textureUV;
  7524. };
  7525. class Rect
  7526. {
  7527. // Methods:
  7528. void Clear();
  7529. void Clip(const Rect&);
  7530. void Define(const Vector2&);
  7531. void Define(const Vector2&, const Vector2&);
  7532. bool Equals(const Rect&) const;
  7533. Intersection IsInside(const Vector2&) const;
  7534. void Merge(const Rect&);
  7535. void Merge(const Vector2&);
  7536. Vector4 ToVector4() const;
  7537. // Properties:
  7538. float bottom;
  7539. /* readonly */
  7540. Vector2 center;
  7541. bool defined;
  7542. /* readonly */
  7543. Vector2 halfSize;
  7544. float left;
  7545. Vector2 max;
  7546. Vector2 min;
  7547. float right;
  7548. /* readonly */
  7549. Vector2 size;
  7550. float top;
  7551. };
  7552. class RefCounted
  7553. {
  7554. // Properties:
  7555. /* readonly */
  7556. int refs;
  7557. /* readonly */
  7558. int weakRefs;
  7559. };
  7560. class RenderPath
  7561. {
  7562. // Methods:
  7563. void AddCommand(const RenderPathCommand&);
  7564. void AddRenderTarget(const RenderTargetInfo&);
  7565. bool Append(XMLFile);
  7566. RenderPath Clone();
  7567. void InsertCommand(uint, const RenderPathCommand&);
  7568. bool Load(XMLFile);
  7569. void RemoveCommand(uint);
  7570. void RemoveCommands(const String&);
  7571. void RemoveRenderTarget(const String&);
  7572. void RemoveRenderTarget(uint);
  7573. void RemoveRenderTargts(const String&);
  7574. void SetEnabled(const String&, bool);
  7575. void ToggleEnabled(const String&);
  7576. // Properties:
  7577. Array<RenderPathCommand> commands;
  7578. /* readonly */
  7579. uint numCommands;
  7580. /* readonly */
  7581. uint numRenderTargets;
  7582. /* readonly */
  7583. int refs;
  7584. Array<RenderTargetInfo> renderTargets;
  7585. Array<Variant> shaderParameters;
  7586. /* readonly */
  7587. int weakRefs;
  7588. };
  7589. class RenderPathCommand
  7590. {
  7591. // Methods:
  7592. void RemoveShaderParameter(const String&);
  7593. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7594. // Properties:
  7595. BlendMode blendMode;
  7596. Color clearColor;
  7597. float clearDepth;
  7598. uint clearFlags;
  7599. uint clearStencil;
  7600. String depthStencilName;
  7601. bool enabled;
  7602. bool markToStencil;
  7603. String metadata;
  7604. uint numOutputs;
  7605. Array<CubeMapFace> outputFaces;
  7606. Array<String> outputNames;
  7607. String pass;
  7608. String pixelShaderDefines;
  7609. String pixelShaderName;
  7610. Array<Variant> shaderParameters;
  7611. RenderCommandSortMode sortMode;
  7612. String tag;
  7613. Array<String> textureNames;
  7614. RenderCommandType type;
  7615. bool useFogColor;
  7616. bool useLitBase;
  7617. bool vertexLights;
  7618. String vertexShaderDefines;
  7619. String vertexShaderName;
  7620. };
  7621. class RenderSurface
  7622. {
  7623. // Methods:
  7624. void QueueUpdate();
  7625. // Properties:
  7626. /* readonly */
  7627. int height;
  7628. RenderSurface linkedDepthStencil;
  7629. RenderSurface linkedRenderTarget;
  7630. uint numViewports;
  7631. /* readonly */
  7632. Texture parentTexture;
  7633. RenderSurfaceUpdateMode updateMode;
  7634. /* readonly */
  7635. TextureUsage usage;
  7636. Array<Viewport> viewports;
  7637. /* readonly */
  7638. int width;
  7639. };
  7640. class RenderTargetInfo
  7641. {
  7642. // Properties:
  7643. bool cubemap;
  7644. bool enabled;
  7645. bool filtered;
  7646. uint format;
  7647. String name;
  7648. bool persistent;
  7649. bool sRGB;
  7650. Vector2 size;
  7651. RenderTargetSizeMode sizeMode;
  7652. String tag;
  7653. };
  7654. class Renderer
  7655. {
  7656. // Methods:
  7657. void DrawDebugGeometry(bool) const;
  7658. void ReloadShaders() const;
  7659. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7660. void SetDefaultRenderPath(XMLFile);
  7661. // Properties:
  7662. /* readonly */
  7663. String category;
  7664. /* readonly */
  7665. Material defaultLightRamp;
  7666. /* readonly */
  7667. Material defaultLightSpot;
  7668. /* readonly */
  7669. Material defaultMaterial;
  7670. RenderPath defaultRenderPath;
  7671. /* readonly */
  7672. Zone defaultZone;
  7673. bool drawShadows;
  7674. bool dynamicInstancing;
  7675. bool hdrRendering;
  7676. int materialQuality;
  7677. int maxOccluderTriangles;
  7678. int maxShadowMaps;
  7679. int maxSortedInstances;
  7680. int minInstances;
  7681. float mobileShadowBiasAdd;
  7682. float mobileShadowBiasMul;
  7683. /* readonly */
  7684. uint numBatches;
  7685. /* readonly */
  7686. Array<uint> numGeometries;
  7687. /* readonly */
  7688. Array<uint> numLights;
  7689. /* readonly */
  7690. Array<uint> numOccluders;
  7691. /* readonly */
  7692. uint numPrimitives;
  7693. /* readonly */
  7694. Array<uint> numShadowMaps;
  7695. uint numViewports;
  7696. /* readonly */
  7697. uint numViews;
  7698. float occluderSizeThreshold;
  7699. int occlusionBufferSize;
  7700. /* readonly */
  7701. int refs;
  7702. bool reuseShadowMaps;
  7703. int shadowMapSize;
  7704. int shadowQuality;
  7705. bool specularLighting;
  7706. int textureAnisotropy;
  7707. TextureFilterMode textureFilterMode;
  7708. int textureQuality;
  7709. bool threadedOcclusion;
  7710. /* readonly */
  7711. StringHash type;
  7712. /* readonly */
  7713. String typeName;
  7714. Array<Viewport> viewports;
  7715. /* readonly */
  7716. int weakRefs;
  7717. };
  7718. class Resource
  7719. {
  7720. // Methods:
  7721. bool Load(File);
  7722. bool Load(VectorBuffer&);
  7723. bool Save(File) const;
  7724. bool Save(VectorBuffer&) const;
  7725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7726. // Properties:
  7727. /* readonly */
  7728. String category;
  7729. /* readonly */
  7730. uint memoryUse;
  7731. String name;
  7732. /* readonly */
  7733. int refs;
  7734. /* readonly */
  7735. StringHash type;
  7736. /* readonly */
  7737. String typeName;
  7738. /* readonly */
  7739. uint useTimer;
  7740. /* readonly */
  7741. int weakRefs;
  7742. };
  7743. class ResourceCache
  7744. {
  7745. // Methods:
  7746. bool AddManualResource(Resource);
  7747. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  7748. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  7749. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  7750. bool BackgroundLoadResource(const String&, const String&, bool = true);
  7751. bool Exists(const String&) const;
  7752. Resource GetExistingResource(StringHash, const String&);
  7753. Resource GetExistingResource(const String&, const String&);
  7754. File GetFile(const String&);
  7755. String GetPreferredResourceDir(const String&) const;
  7756. Resource GetResource(StringHash, const String&, bool = true);
  7757. Resource GetResource(const String&, const String&, bool = true);
  7758. String GetResourceFileName(const String&) const;
  7759. void ReleaseAllResources(bool = false);
  7760. void ReleaseResource(const String&, const String&, bool = false);
  7761. void ReleaseResources(StringHash, bool = false);
  7762. void ReleaseResources(const String&, bool = false);
  7763. void ReleaseResources(const String&, const String&, bool = false);
  7764. bool ReloadResource(Resource);
  7765. void ReloadResourceWithDependencies(const String&);
  7766. void RemovePackageFile(PackageFile, bool = true, bool = false);
  7767. void RemovePackageFile(const String&, bool = true, bool = false);
  7768. void RemoveResourceDir(const String&);
  7769. String SanitateResourceDirName(const String&) const;
  7770. String SanitateResourceName(const String&) const;
  7771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7772. // Properties:
  7773. bool autoReloadResources;
  7774. /* readonly */
  7775. String category;
  7776. int finishBackgroundResourcesMs;
  7777. Array<uint64> memoryBudget;
  7778. /* readonly */
  7779. Array<uint64> memoryUse;
  7780. /* readonly */
  7781. uint numBackgroundLoadResources;
  7782. /* readonly */
  7783. Array<PackageFile> packageFiles;
  7784. /* readonly */
  7785. int refs;
  7786. /* readonly */
  7787. Array<String> resourceDirs;
  7788. bool returnFailedResources;
  7789. /* readonly */
  7790. bool seachPackagesFirst;
  7791. /* writeonly */
  7792. bool searchPackagesFirst;
  7793. /* readonly */
  7794. uint64 totalMemoryUse;
  7795. /* readonly */
  7796. StringHash type;
  7797. /* readonly */
  7798. String typeName;
  7799. /* readonly */
  7800. int weakRefs;
  7801. };
  7802. class ResourceRef
  7803. {
  7804. // Properties:
  7805. String name;
  7806. StringHash type;
  7807. };
  7808. class ResourceRefList
  7809. {
  7810. // Methods:
  7811. void Resize(uint);
  7812. // Properties:
  7813. /* readonly */
  7814. bool empty;
  7815. /* readonly */
  7816. uint length;
  7817. Array<String> names;
  7818. StringHash type;
  7819. };
  7820. class RigidBody
  7821. {
  7822. // Methods:
  7823. void Activate();
  7824. void ApplyAttributes();
  7825. void ApplyForce(const Vector3&);
  7826. void ApplyForce(const Vector3&, const Vector3&);
  7827. void ApplyImpulse(const Vector3&);
  7828. void ApplyImpulse(const Vector3&, const Vector3&);
  7829. void ApplyTorque(const Vector3&);
  7830. void ApplyTorqueImpulse(const Vector3&);
  7831. void DisableMassUpdate();
  7832. void DrawDebugGeometry(DebugRenderer, bool);
  7833. void EnableMassUpdate();
  7834. Variant GetAttribute(const String&) const;
  7835. ValueAnimation GetAttributeAnimation(const String&) const;
  7836. float GetAttributeAnimationSpeed(const String&) const;
  7837. float GetAttributeAnimationTime(const String&) const;
  7838. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7839. Variant GetAttributeDefault(const String&) const;
  7840. bool GetInterceptNetworkUpdate(const String&) const;
  7841. Vector3 GetVelocityAtPoint(const Vector3&) const;
  7842. bool Load(File, bool = false);
  7843. bool Load(VectorBuffer&, bool = false);
  7844. bool LoadXML(const XMLElement&, bool = false);
  7845. void MarkNetworkUpdate() const;
  7846. void ReAddBodyToWorld();
  7847. void Remove();
  7848. void RemoveAttributeAnimation(const String&);
  7849. void RemoveInstanceDefault();
  7850. void RemoveObjectAnimation();
  7851. void ResetForces();
  7852. void ResetToDefault();
  7853. bool Save(File) const;
  7854. bool Save(VectorBuffer&) const;
  7855. bool SaveXML(XMLElement&) const;
  7856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7857. void SetAnimationTime(float);
  7858. bool SetAttribute(const String&, const Variant&);
  7859. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7860. void SetAttributeAnimationSpeed(const String&, float);
  7861. void SetAttributeAnimationTime(const String&, float);
  7862. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7863. void SetCollisionLayerAndMask(uint, uint);
  7864. void SetInterceptNetworkUpdate(const String&, bool);
  7865. void SetTransform(const Vector3&, const Quaternion&);
  7866. // Properties:
  7867. /* readonly */
  7868. bool active;
  7869. float angularDamping;
  7870. Vector3 angularFactor;
  7871. float angularRestThreshold;
  7872. Vector3 angularVelocity;
  7873. bool animationEnabled;
  7874. Vector3 anisotropicFriction;
  7875. /* readonly */
  7876. Array<Variant> attributeDefaults;
  7877. /* readonly */
  7878. Array<AttributeInfo> attributeInfos;
  7879. Array<Variant> attributes;
  7880. /* readonly */
  7881. String category;
  7882. float ccdMotionThreshold;
  7883. float ccdRadius;
  7884. /* readonly */
  7885. Vector3 centerOfMass;
  7886. /* readonly */
  7887. Array<RigidBody> collidingBodies;
  7888. CollisionEventMode collisionEventMode;
  7889. uint collisionLayer;
  7890. uint collisionMask;
  7891. float contactProcessingThreshold;
  7892. bool enabled;
  7893. /* readonly */
  7894. bool enabledEffective;
  7895. float friction;
  7896. Vector3 gravityOverride;
  7897. /* readonly */
  7898. uint id;
  7899. bool kinematic;
  7900. float linearDamping;
  7901. Vector3 linearFactor;
  7902. float linearRestThreshold;
  7903. Vector3 linearVelocity;
  7904. float mass;
  7905. /* readonly */
  7906. Node node;
  7907. /* readonly */
  7908. uint numAttributes;
  7909. ObjectAnimation objectAnimation;
  7910. Vector3 position;
  7911. /* readonly */
  7912. int refs;
  7913. float restitution;
  7914. float rollingFriction;
  7915. Quaternion rotation;
  7916. bool temporary;
  7917. bool trigger;
  7918. /* readonly */
  7919. StringHash type;
  7920. /* readonly */
  7921. String typeName;
  7922. bool useGravity;
  7923. /* readonly */
  7924. int weakRefs;
  7925. };
  7926. class RigidBody2D
  7927. {
  7928. // Methods:
  7929. void ApplyAngularImpulse(float, bool);
  7930. void ApplyAttributes();
  7931. void ApplyForce(const Vector2&, const Vector2&, bool);
  7932. void ApplyForceToCenter(const Vector2&, bool);
  7933. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  7934. void ApplyTorque(float, bool);
  7935. void DrawDebugGeometry(DebugRenderer, bool);
  7936. Variant GetAttribute(const String&) const;
  7937. ValueAnimation GetAttributeAnimation(const String&) const;
  7938. float GetAttributeAnimationSpeed(const String&) const;
  7939. float GetAttributeAnimationTime(const String&) const;
  7940. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7941. Variant GetAttributeDefault(const String&) const;
  7942. bool GetInterceptNetworkUpdate(const String&) const;
  7943. bool Load(File, bool = false);
  7944. bool Load(VectorBuffer&, bool = false);
  7945. bool LoadXML(const XMLElement&, bool = false);
  7946. void MarkNetworkUpdate() const;
  7947. void Remove();
  7948. void RemoveAttributeAnimation(const String&);
  7949. void RemoveInstanceDefault();
  7950. void RemoveObjectAnimation();
  7951. void ResetToDefault();
  7952. bool Save(File) const;
  7953. bool Save(VectorBuffer&) const;
  7954. bool SaveXML(XMLElement&) const;
  7955. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7956. void SetAnimationTime(float);
  7957. bool SetAttribute(const String&, const Variant&);
  7958. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7959. void SetAttributeAnimationSpeed(const String&, float);
  7960. void SetAttributeAnimationTime(const String&, float);
  7961. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7962. void SetInterceptNetworkUpdate(const String&, bool);
  7963. // Properties:
  7964. bool allowSleep;
  7965. float angularDamping;
  7966. bool animationEnabled;
  7967. /* readonly */
  7968. Array<Variant> attributeDefaults;
  7969. /* readonly */
  7970. Array<AttributeInfo> attributeInfos;
  7971. Array<Variant> attributes;
  7972. bool awake;
  7973. BodyType2D bodyType;
  7974. bool bullet;
  7975. /* readonly */
  7976. String category;
  7977. bool enabled;
  7978. /* readonly */
  7979. bool enabledEffective;
  7980. bool fixedRotation;
  7981. float gravityScale;
  7982. /* readonly */
  7983. uint id;
  7984. float inertia;
  7985. float linearDamping;
  7986. Vector2 linearVelocity;
  7987. float mass;
  7988. Vector2 massCenter;
  7989. /* readonly */
  7990. Node node;
  7991. /* readonly */
  7992. uint numAttributes;
  7993. ObjectAnimation objectAnimation;
  7994. /* readonly */
  7995. int refs;
  7996. bool temporary;
  7997. /* readonly */
  7998. StringHash type;
  7999. /* readonly */
  8000. String typeName;
  8001. bool useFixtureMass;
  8002. /* readonly */
  8003. int weakRefs;
  8004. };
  8005. class Scene
  8006. {
  8007. // Methods:
  8008. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8009. void AddRequiredPackageFile(PackageFile);
  8010. void ApplyAttributes();
  8011. void Clear(bool = true, bool = true);
  8012. void ClearRequiredPackageFiles();
  8013. Component CloneComponent(Component, CreateMode, uint = 0);
  8014. Component CloneComponent(Component, uint = 0);
  8015. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8016. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8017. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8018. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8019. Variant GetAttribute(const String&) const;
  8020. ValueAnimation GetAttributeAnimation(const String&) const;
  8021. float GetAttributeAnimationSpeed(const String&) const;
  8022. float GetAttributeAnimationTime(const String&) const;
  8023. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8024. Variant GetAttributeDefault(const String&) const;
  8025. Node GetChild(const String&, bool = false) const;
  8026. Array<Node> GetChildren(bool = false) const;
  8027. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8028. Array<Node> GetChildrenWithScript(bool = false) const;
  8029. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8030. Component GetComponent(const String&, bool = false) const;
  8031. Component GetComponent(uint) const;
  8032. Array<Component> GetComponents() const;
  8033. Array<Component> GetComponents(const String&, bool = false) const;
  8034. bool GetInterceptNetworkUpdate(const String&) const;
  8035. Node GetNode(uint) const;
  8036. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8037. Component GetParentComponent(const String&, bool = false) const;
  8038. ScriptObject GetScriptObject() const;
  8039. ScriptObject GetScriptObject(const String&) const;
  8040. bool HasComponent(const String&) const;
  8041. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8042. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8043. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8044. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8045. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8046. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8047. bool Load(File, bool = false);
  8048. bool Load(VectorBuffer&, bool = false);
  8049. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8050. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8051. bool LoadXML(File);
  8052. bool LoadXML(VectorBuffer&);
  8053. bool LoadXML(const XMLElement&, bool = false);
  8054. Vector3 LocalToWorld(const Vector3&) const;
  8055. Vector3 LocalToWorld(const Vector4&) const;
  8056. Vector2 LocalToWorld2D(const Vector2&) const;
  8057. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8058. void MarkNetworkUpdate() const;
  8059. void Pitch(float, TransformSpace = TS_LOCAL);
  8060. void RegisterVar(const String&);
  8061. void Remove();
  8062. void RemoveAllChildren();
  8063. void RemoveAllComponents();
  8064. void RemoveAttributeAnimation(const String&);
  8065. void RemoveChild(Node);
  8066. void RemoveChildren(bool, bool, bool);
  8067. void RemoveComponent(Component);
  8068. void RemoveComponent(const String&);
  8069. void RemoveComponents(bool, bool);
  8070. void RemoveComponents(const String&);
  8071. void RemoveInstanceDefault();
  8072. void RemoveObjectAnimation();
  8073. void ResetToDefault();
  8074. void Roll(float, TransformSpace = TS_LOCAL);
  8075. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8076. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8077. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8078. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8079. bool Save(File) const;
  8080. bool Save(VectorBuffer&) const;
  8081. bool SaveXML(File, const String& = "\t");
  8082. bool SaveXML(VectorBuffer&, const String& = "\t");
  8083. bool SaveXML(XMLElement&) const;
  8084. void Scale(const Vector3&);
  8085. void Scale(float);
  8086. void Scale2D(const Vector2&);
  8087. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8088. void SetAnimationTime(float);
  8089. bool SetAttribute(const String&, const Variant&);
  8090. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8091. void SetAttributeAnimationSpeed(const String&, float);
  8092. void SetAttributeAnimationTime(const String&, float);
  8093. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8094. void SetInterceptNetworkUpdate(const String&, bool);
  8095. void SetPosition2D(float, float);
  8096. void SetScale(float);
  8097. void SetScale2D(float, float);
  8098. void SetTransform(const Vector3&, const Quaternion&);
  8099. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8100. void SetTransform(const Vector3&, const Quaternion&, float);
  8101. void SetTransform2D(const Vector2&, float);
  8102. void SetTransform2D(const Vector2&, float, const Vector2&);
  8103. void SetTransform2D(const Vector2&, float, float);
  8104. void SetWorldTransform(const Vector3&, const Quaternion&);
  8105. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8106. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8107. void SetWorldTransform2D(const Vector2&, float);
  8108. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8109. void SetWorldTransform2D(const Vector2&, float, float);
  8110. void StopAsyncLoading();
  8111. const String& GetVarName(StringHash) const;
  8112. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8113. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8114. void UnregisterAllVars(const String&);
  8115. void UnregisterVar(const String&);
  8116. void Update(float);
  8117. Vector3 WorldToLocal(const Vector3&) const;
  8118. Vector3 WorldToLocal(const Vector4&) const;
  8119. Vector2 WorldToLocal2D(const Vector2&) const;
  8120. void Yaw(float, TransformSpace = TS_LOCAL);
  8121. // Properties:
  8122. bool animationEnabled;
  8123. /* readonly */
  8124. LoadMode asyncLoadMode;
  8125. /* readonly */
  8126. bool asyncLoading;
  8127. int asyncLoadingMs;
  8128. /* readonly */
  8129. float asyncProgress;
  8130. /* readonly */
  8131. Array<Variant> attributeDefaults;
  8132. /* readonly */
  8133. Array<AttributeInfo> attributeInfos;
  8134. Array<Variant> attributes;
  8135. /* readonly */
  8136. String category;
  8137. /* readonly */
  8138. uint checksum;
  8139. /* readonly */
  8140. Array<Node> children;
  8141. /* readonly */
  8142. Array<Component> components;
  8143. /* readonly */
  8144. DebugRenderer debugRenderer;
  8145. Vector3 direction;
  8146. float elapsedTime;
  8147. /* readonly */
  8148. String fileName;
  8149. /* readonly */
  8150. uint id;
  8151. String name;
  8152. /* readonly */
  8153. uint numAllChildren;
  8154. /* readonly */
  8155. uint numAttributes;
  8156. /* readonly */
  8157. uint numChildren;
  8158. /* readonly */
  8159. uint numComponents;
  8160. ObjectAnimation objectAnimation;
  8161. /* readonly */
  8162. Octree octree;
  8163. Node parent;
  8164. /* readonly */
  8165. PhysicsWorld physicsWorld;
  8166. /* readonly */
  8167. PhysicsWorld2D physicsWorld2D;
  8168. Vector3 position;
  8169. Vector2 position2D;
  8170. /* readonly */
  8171. int refs;
  8172. /* readonly */
  8173. Array<PackageFile> requiredPackageFiles;
  8174. /* readonly */
  8175. Vector3 right;
  8176. Quaternion rotation;
  8177. float rotation2D;
  8178. Vector3 scale;
  8179. Vector2 scale2D;
  8180. /* readonly */
  8181. ScriptObject scriptObject;
  8182. float smoothingConstant;
  8183. float snapThreshold;
  8184. bool temporary;
  8185. float timeScale;
  8186. /* readonly */
  8187. Matrix3x4 transform;
  8188. /* readonly */
  8189. StringHash type;
  8190. /* readonly */
  8191. String typeName;
  8192. /* readonly */
  8193. Vector3 up;
  8194. bool updateEnabled;
  8195. /* readonly */
  8196. VariantMap vars;
  8197. /* readonly */
  8198. int weakRefs;
  8199. Vector3 worldDirection;
  8200. Vector3 worldPosition;
  8201. Vector2 worldPosition2D;
  8202. /* readonly */
  8203. Vector3 worldRight;
  8204. Quaternion worldRotation;
  8205. float worldRotation2D;
  8206. Vector3 worldScale;
  8207. Vector2 worldScale2D;
  8208. /* readonly */
  8209. Matrix3x4 worldTransform;
  8210. /* readonly */
  8211. Vector3 worldUp;
  8212. };
  8213. class Script
  8214. {
  8215. // Methods:
  8216. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8217. bool Execute(const String&);
  8218. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8219. // Properties:
  8220. /* readonly */
  8221. String category;
  8222. Scene defaultScene;
  8223. ScriptFile defaultScriptFile;
  8224. bool executeConsoleCommands;
  8225. /* readonly */
  8226. int refs;
  8227. /* readonly */
  8228. StringHash type;
  8229. /* readonly */
  8230. String typeName;
  8231. /* readonly */
  8232. int weakRefs;
  8233. };
  8234. class ScriptFile
  8235. {
  8236. // Methods:
  8237. void ClearDelayedExecute(const String& = String ( ));
  8238. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8239. bool Execute(const String&, const Array<Variant> = null);
  8240. bool Load(File);
  8241. bool Load(VectorBuffer&);
  8242. bool Save(File) const;
  8243. bool Save(VectorBuffer&) const;
  8244. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8245. // Properties:
  8246. /* readonly */
  8247. String category;
  8248. /* readonly */
  8249. bool compiled;
  8250. /* readonly */
  8251. uint memoryUse;
  8252. String name;
  8253. /* readonly */
  8254. int refs;
  8255. /* readonly */
  8256. StringHash type;
  8257. /* readonly */
  8258. String typeName;
  8259. /* readonly */
  8260. uint useTimer;
  8261. /* readonly */
  8262. int weakRefs;
  8263. };
  8264. class ScriptInstance
  8265. {
  8266. // Methods:
  8267. void ApplyAttributes();
  8268. void ClearDelayedExecute(const String& = String ( ));
  8269. bool CreateObject(ScriptFile, const String&);
  8270. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8271. void DrawDebugGeometry(DebugRenderer, bool);
  8272. bool Execute(const String&, const Array<Variant> = null);
  8273. Variant GetAttribute(const String&) const;
  8274. ValueAnimation GetAttributeAnimation(const String&) const;
  8275. float GetAttributeAnimationSpeed(const String&) const;
  8276. float GetAttributeAnimationTime(const String&) const;
  8277. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8278. Variant GetAttributeDefault(const String&) const;
  8279. bool GetInterceptNetworkUpdate(const String&) const;
  8280. bool HasMethod(const String&) const;
  8281. bool IsA(const String&) const;
  8282. bool Load(File, bool = false);
  8283. bool Load(VectorBuffer&, bool = false);
  8284. bool LoadXML(const XMLElement&, bool = false);
  8285. void MarkNetworkUpdate() const;
  8286. void Remove();
  8287. void RemoveAttributeAnimation(const String&);
  8288. void RemoveInstanceDefault();
  8289. void RemoveObjectAnimation();
  8290. void ResetToDefault();
  8291. bool Save(File) const;
  8292. bool Save(VectorBuffer&) const;
  8293. bool SaveXML(XMLElement&) const;
  8294. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8295. void SetAnimationTime(float);
  8296. bool SetAttribute(const String&, const Variant&);
  8297. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8298. void SetAttributeAnimationSpeed(const String&, float);
  8299. void SetAttributeAnimationTime(const String&, float);
  8300. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8301. void SetInterceptNetworkUpdate(const String&, bool);
  8302. // Properties:
  8303. bool animationEnabled;
  8304. /* readonly */
  8305. Array<Variant> attributeDefaults;
  8306. /* readonly */
  8307. Array<AttributeInfo> attributeInfos;
  8308. Array<Variant> attributes;
  8309. /* readonly */
  8310. String category;
  8311. String className;
  8312. bool enabled;
  8313. /* readonly */
  8314. bool enabledEffective;
  8315. /* readonly */
  8316. uint id;
  8317. /* readonly */
  8318. Node node;
  8319. /* readonly */
  8320. uint numAttributes;
  8321. ObjectAnimation objectAnimation;
  8322. /* readonly */
  8323. int refs;
  8324. ScriptFile scriptFile;
  8325. /* readonly */
  8326. ScriptObject scriptObject;
  8327. bool temporary;
  8328. /* readonly */
  8329. StringHash type;
  8330. /* readonly */
  8331. String typeName;
  8332. /* readonly */
  8333. int weakRefs;
  8334. };
  8335. class ScriptObject
  8336. {
  8337. };
  8338. class ScrollBar
  8339. {
  8340. // Methods:
  8341. void AddChild(UIElement);
  8342. void ApplyAttributes();
  8343. void BringToFront();
  8344. void ChangeValue(float);
  8345. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8346. void DisableLayoutUpdate();
  8347. IntVector2 ElementToScreen(const IntVector2&);
  8348. void EnableLayoutUpdate();
  8349. uint FindChild(UIElement) const;
  8350. Variant GetAttribute(const String&) const;
  8351. ValueAnimation GetAttributeAnimation(const String&) const;
  8352. float GetAttributeAnimationSpeed(const String&) const;
  8353. float GetAttributeAnimationTime(const String&) const;
  8354. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8355. Variant GetAttributeDefault(const String&) const;
  8356. UIElement GetChild(const String&, bool = false) const;
  8357. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8358. Array<UIElement> GetChildren(bool = false) const;
  8359. UIElement GetElementEventSender() const;
  8360. bool GetInterceptNetworkUpdate(const String&) const;
  8361. uint GetNumChildren(bool) const;
  8362. void InsertChild(uint, UIElement);
  8363. bool IsInside(IntVector2, bool);
  8364. bool IsInsideCombined(IntVector2, bool);
  8365. bool Load(File, bool = false);
  8366. bool Load(VectorBuffer&, bool = false);
  8367. bool LoadChildXML(XMLFile, XMLFile = null);
  8368. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8369. bool LoadXML(File);
  8370. bool LoadXML(VectorBuffer&);
  8371. bool LoadXML(XMLFile, XMLFile);
  8372. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8373. bool LoadXML(const XMLElement&, bool = false);
  8374. void MarkNetworkUpdate() const;
  8375. void Remove();
  8376. void RemoveAllChildren();
  8377. void RemoveAttributeAnimation(const String&);
  8378. void RemoveChild(UIElement, uint = 0);
  8379. void RemoveChild(uint);
  8380. void RemoveInstanceDefault();
  8381. void RemoveObjectAnimation();
  8382. void ResetDeepEnabled();
  8383. void ResetToDefault();
  8384. bool Save(File) const;
  8385. bool Save(VectorBuffer&) const;
  8386. bool SaveXML(File, const String& = "\t");
  8387. bool SaveXML(VectorBuffer&, const String& = "\t");
  8388. bool SaveXML(XMLElement&) const;
  8389. IntVector2 ScreenToElement(const IntVector2&);
  8390. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8391. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8392. void SetAnimationTime(float);
  8393. bool SetAttribute(const String&, const Variant&);
  8394. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8395. void SetAttributeAnimationSpeed(const String&, float);
  8396. void SetAttributeAnimationTime(const String&, float);
  8397. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8398. void SetDeepEnabled(bool);
  8399. void SetEnabledRecursive(bool);
  8400. void SetFixedHeight(int);
  8401. void SetFixedSize(int, int);
  8402. void SetFixedWidth(int);
  8403. void SetInterceptNetworkUpdate(const String&, bool);
  8404. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8405. void SetMaxSize(int, int);
  8406. void SetMinSize(int, int);
  8407. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8408. void SetPosition(int, int);
  8409. void SetSize(int, int);
  8410. bool SetStyle(const String&, XMLFile = null);
  8411. bool SetStyle(const XMLElement&);
  8412. bool SetStyleAuto(XMLFile = null);
  8413. void StepBack();
  8414. void StepForward();
  8415. void UpdateLayout();
  8416. const Variant& GetVar(const StringHash&);
  8417. // Properties:
  8418. bool animationEnabled;
  8419. /* readonly */
  8420. Array<Variant> attributeDefaults;
  8421. /* readonly */
  8422. Array<AttributeInfo> attributeInfos;
  8423. Array<Variant> attributes;
  8424. /* readonly */
  8425. Button backButton;
  8426. bool bringToBack;
  8427. bool bringToFront;
  8428. /* readonly */
  8429. String category;
  8430. /* readonly */
  8431. IntVector2 childOffset;
  8432. /* readonly */
  8433. Array<UIElement> children;
  8434. IntRect clipBorder;
  8435. bool clipChildren;
  8436. /* writeonly */
  8437. Color color;
  8438. /* readonly */
  8439. bool colorGradient;
  8440. Array<Color> colors;
  8441. /* readonly */
  8442. IntRect combinedScreenRect;
  8443. XMLFile defaultStyle;
  8444. /* readonly */
  8445. float derivedOpacity;
  8446. /* readonly */
  8447. uint dragButtonCombo;
  8448. /* readonly */
  8449. int dragButtonCount;
  8450. uint dragDropMode;
  8451. bool editable;
  8452. /* readonly */
  8453. float effectiveScrollStep;
  8454. bool elementEventSender;
  8455. bool enabled;
  8456. /* readonly */
  8457. bool enabledSelf;
  8458. /* readonly */
  8459. bool fixedHeight;
  8460. /* readonly */
  8461. bool fixedSize;
  8462. /* readonly */
  8463. bool fixedWidth;
  8464. bool focus;
  8465. FocusMode focusMode;
  8466. /* readonly */
  8467. Button forwardButton;
  8468. int height;
  8469. HorizontalAlignment horizontalAlignment;
  8470. /* readonly */
  8471. bool hovering;
  8472. int indent;
  8473. int indentSpacing;
  8474. /* readonly */
  8475. int indentWidth;
  8476. bool internal;
  8477. IntRect layoutBorder;
  8478. Vector2 layoutFlexScale;
  8479. LayoutMode layoutMode;
  8480. int layoutSpacing;
  8481. int maxHeight;
  8482. IntVector2 maxSize;
  8483. int maxWidth;
  8484. int minHeight;
  8485. IntVector2 minSize;
  8486. int minWidth;
  8487. String name;
  8488. /* readonly */
  8489. uint numAllChildren;
  8490. /* readonly */
  8491. uint numAttributes;
  8492. /* readonly */
  8493. uint numChildren;
  8494. ObjectAnimation objectAnimation;
  8495. float opacity;
  8496. Orientation orientation;
  8497. UIElement parent;
  8498. IntVector2 position;
  8499. int priority;
  8500. float range;
  8501. /* readonly */
  8502. int refs;
  8503. /* readonly */
  8504. UIElement root;
  8505. /* readonly */
  8506. IntVector2 screenPosition;
  8507. float scrollStep;
  8508. bool selected;
  8509. IntVector2 size;
  8510. /* readonly */
  8511. Slider slider;
  8512. bool sortChildren;
  8513. float stepFactor;
  8514. String style;
  8515. bool temporary;
  8516. TraversalMode traversalMode;
  8517. /* readonly */
  8518. StringHash type;
  8519. /* readonly */
  8520. String typeName;
  8521. bool useDerivedOpacity;
  8522. float value;
  8523. /* readonly */
  8524. VariantMap vars;
  8525. VerticalAlignment verticalAlignment;
  8526. bool visible;
  8527. /* readonly */
  8528. bool visibleEffective;
  8529. /* readonly */
  8530. int weakRefs;
  8531. int width;
  8532. };
  8533. class ScrollView
  8534. {
  8535. // Methods:
  8536. void AddChild(UIElement);
  8537. void ApplyAttributes();
  8538. void BringToFront();
  8539. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8540. void DisableLayoutUpdate();
  8541. IntVector2 ElementToScreen(const IntVector2&);
  8542. void EnableLayoutUpdate();
  8543. uint FindChild(UIElement) const;
  8544. Variant GetAttribute(const String&) const;
  8545. ValueAnimation GetAttributeAnimation(const String&) const;
  8546. float GetAttributeAnimationSpeed(const String&) const;
  8547. float GetAttributeAnimationTime(const String&) const;
  8548. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8549. Variant GetAttributeDefault(const String&) const;
  8550. UIElement GetChild(const String&, bool = false) const;
  8551. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8552. Array<UIElement> GetChildren(bool = false) const;
  8553. UIElement GetElementEventSender() const;
  8554. bool GetInterceptNetworkUpdate(const String&) const;
  8555. uint GetNumChildren(bool) const;
  8556. void InsertChild(uint, UIElement);
  8557. bool IsInside(IntVector2, bool);
  8558. bool IsInsideCombined(IntVector2, bool);
  8559. bool Load(File, bool = false);
  8560. bool Load(VectorBuffer&, bool = false);
  8561. bool LoadChildXML(XMLFile, XMLFile = null);
  8562. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8563. bool LoadXML(File);
  8564. bool LoadXML(VectorBuffer&);
  8565. bool LoadXML(XMLFile, XMLFile);
  8566. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8567. bool LoadXML(const XMLElement&, bool = false);
  8568. void MarkNetworkUpdate() const;
  8569. void Remove();
  8570. void RemoveAllChildren();
  8571. void RemoveAttributeAnimation(const String&);
  8572. void RemoveChild(UIElement, uint = 0);
  8573. void RemoveChild(uint);
  8574. void RemoveInstanceDefault();
  8575. void RemoveObjectAnimation();
  8576. void ResetDeepEnabled();
  8577. void ResetToDefault();
  8578. bool Save(File) const;
  8579. bool Save(VectorBuffer&) const;
  8580. bool SaveXML(File, const String& = "\t");
  8581. bool SaveXML(VectorBuffer&, const String& = "\t");
  8582. bool SaveXML(XMLElement&) const;
  8583. IntVector2 ScreenToElement(const IntVector2&);
  8584. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8585. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8586. void SetAnimationTime(float);
  8587. bool SetAttribute(const String&, const Variant&);
  8588. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8589. void SetAttributeAnimationSpeed(const String&, float);
  8590. void SetAttributeAnimationTime(const String&, float);
  8591. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8592. void SetDeepEnabled(bool);
  8593. void SetEnabledRecursive(bool);
  8594. void SetFixedHeight(int);
  8595. void SetFixedSize(int, int);
  8596. void SetFixedWidth(int);
  8597. void SetInterceptNetworkUpdate(const String&, bool);
  8598. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8599. void SetMaxSize(int, int);
  8600. void SetMinSize(int, int);
  8601. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8602. void SetPosition(int, int);
  8603. void SetScrollBarsVisible(bool, bool);
  8604. void SetSize(int, int);
  8605. bool SetStyle(const String&, XMLFile = null);
  8606. bool SetStyle(const XMLElement&);
  8607. bool SetStyleAuto(XMLFile = null);
  8608. void SetViewPosition(int, int);
  8609. void UpdateLayout();
  8610. const Variant& GetVar(const StringHash&);
  8611. // Properties:
  8612. bool animationEnabled;
  8613. /* readonly */
  8614. Array<Variant> attributeDefaults;
  8615. /* readonly */
  8616. Array<AttributeInfo> attributeInfos;
  8617. Array<Variant> attributes;
  8618. bool autoDisableChildren;
  8619. float autoDisableThreshold;
  8620. bool bringToBack;
  8621. bool bringToFront;
  8622. /* readonly */
  8623. String category;
  8624. /* readonly */
  8625. IntVector2 childOffset;
  8626. /* readonly */
  8627. Array<UIElement> children;
  8628. IntRect clipBorder;
  8629. bool clipChildren;
  8630. /* writeonly */
  8631. Color color;
  8632. /* readonly */
  8633. bool colorGradient;
  8634. Array<Color> colors;
  8635. /* readonly */
  8636. IntRect combinedScreenRect;
  8637. UIElement contentElement;
  8638. XMLFile defaultStyle;
  8639. /* readonly */
  8640. float derivedOpacity;
  8641. /* readonly */
  8642. uint dragButtonCombo;
  8643. /* readonly */
  8644. int dragButtonCount;
  8645. uint dragDropMode;
  8646. bool editable;
  8647. bool elementEventSender;
  8648. bool enabled;
  8649. /* readonly */
  8650. bool enabledSelf;
  8651. /* readonly */
  8652. bool fixedHeight;
  8653. /* readonly */
  8654. bool fixedSize;
  8655. /* readonly */
  8656. bool fixedWidth;
  8657. bool focus;
  8658. FocusMode focusMode;
  8659. int height;
  8660. HorizontalAlignment horizontalAlignment;
  8661. /* readonly */
  8662. ScrollBar horizontalScrollBar;
  8663. /* readonly */
  8664. bool hovering;
  8665. int indent;
  8666. int indentSpacing;
  8667. /* readonly */
  8668. int indentWidth;
  8669. bool internal;
  8670. IntRect layoutBorder;
  8671. Vector2 layoutFlexScale;
  8672. LayoutMode layoutMode;
  8673. int layoutSpacing;
  8674. int maxHeight;
  8675. IntVector2 maxSize;
  8676. int maxWidth;
  8677. int minHeight;
  8678. IntVector2 minSize;
  8679. int minWidth;
  8680. String name;
  8681. /* readonly */
  8682. uint numAllChildren;
  8683. /* readonly */
  8684. uint numAttributes;
  8685. /* readonly */
  8686. uint numChildren;
  8687. ObjectAnimation objectAnimation;
  8688. float opacity;
  8689. float pageStep;
  8690. UIElement parent;
  8691. IntVector2 position;
  8692. int priority;
  8693. /* readonly */
  8694. int refs;
  8695. /* readonly */
  8696. UIElement root;
  8697. /* readonly */
  8698. IntVector2 screenPosition;
  8699. bool scrollBarsAutoVisible;
  8700. float scrollDeceleration;
  8701. /* readonly */
  8702. BorderImage scrollPanel;
  8703. float scrollSnapEpsilon;
  8704. float scrollStep;
  8705. bool selected;
  8706. IntVector2 size;
  8707. bool sortChildren;
  8708. String style;
  8709. bool temporary;
  8710. TraversalMode traversalMode;
  8711. /* readonly */
  8712. StringHash type;
  8713. /* readonly */
  8714. String typeName;
  8715. bool useDerivedOpacity;
  8716. /* readonly */
  8717. VariantMap vars;
  8718. VerticalAlignment verticalAlignment;
  8719. /* readonly */
  8720. ScrollBar verticalScrollBar;
  8721. IntVector2 viewPosition;
  8722. bool visible;
  8723. /* readonly */
  8724. bool visibleEffective;
  8725. /* readonly */
  8726. int weakRefs;
  8727. int width;
  8728. };
  8729. class Serializable
  8730. {
  8731. // Methods:
  8732. void ApplyAttributes();
  8733. Variant GetAttribute(const String&) const;
  8734. Variant GetAttributeDefault(const String&) const;
  8735. bool GetInterceptNetworkUpdate(const String&) const;
  8736. bool Load(File, bool = false);
  8737. bool Load(VectorBuffer&, bool = false);
  8738. bool LoadXML(const XMLElement&, bool = false);
  8739. void MarkNetworkUpdate() const;
  8740. void RemoveInstanceDefault();
  8741. void ResetToDefault();
  8742. bool Save(File) const;
  8743. bool Save(VectorBuffer&) const;
  8744. bool SaveXML(XMLElement&) const;
  8745. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8746. bool SetAttribute(const String&, const Variant&);
  8747. void SetInterceptNetworkUpdate(const String&, bool);
  8748. // Properties:
  8749. /* readonly */
  8750. Array<Variant> attributeDefaults;
  8751. /* readonly */
  8752. Array<AttributeInfo> attributeInfos;
  8753. Array<Variant> attributes;
  8754. /* readonly */
  8755. String category;
  8756. /* readonly */
  8757. uint numAttributes;
  8758. /* readonly */
  8759. int refs;
  8760. bool temporary;
  8761. /* readonly */
  8762. StringHash type;
  8763. /* readonly */
  8764. String typeName;
  8765. /* readonly */
  8766. int weakRefs;
  8767. };
  8768. class Serializer
  8769. {
  8770. // Methods:
  8771. uint Write(Array<uint8>);
  8772. bool WriteBool(bool);
  8773. bool WriteBoundingBox(const BoundingBox&);
  8774. bool WriteByte(int8);
  8775. bool WriteColor(const Color&);
  8776. bool WriteDouble(double);
  8777. bool WriteFileID(const String&);
  8778. bool WriteFloat(float);
  8779. bool WriteInt(int);
  8780. bool WriteIntRect(const IntRect&);
  8781. bool WriteIntVector2(const IntVector2&);
  8782. bool WriteLine(const String&);
  8783. bool WriteMatrix3(const Matrix3&);
  8784. bool WriteMatrix3x4(const Matrix3x4&);
  8785. bool WriteMatrix4(const Matrix4&);
  8786. bool WriteNetID(uint);
  8787. bool WritePackedQuaternion(const Quaternion&);
  8788. bool WritePackedVector3(const Vector3&, float);
  8789. bool WriteQuaternion(const Quaternion&);
  8790. bool WriteShort(int16);
  8791. bool WriteString(const String&);
  8792. bool WriteStringHash(const StringHash&);
  8793. bool WriteUByte(uint8);
  8794. bool WriteUInt(uint);
  8795. bool WriteUShort(uint16);
  8796. bool WriteVLE(uint);
  8797. bool WriteVariant(const Variant&);
  8798. bool WriteVariantMap(const VariantMap&);
  8799. bool WriteVector2(const Vector2&);
  8800. bool WriteVector3(const Vector3&);
  8801. bool WriteVector4(const Vector4&);
  8802. bool WriteVectorBuffer(const VectorBuffer&);
  8803. };
  8804. class Skeleton
  8805. {
  8806. // Methods:
  8807. Bone GetBone(const String&) const;
  8808. void Reset();
  8809. // Properties:
  8810. /* readonly */
  8811. Array<Bone> bones;
  8812. /* readonly */
  8813. uint numBones;
  8814. /* readonly */
  8815. Bone rootBone;
  8816. };
  8817. class Skybox
  8818. {
  8819. // Methods:
  8820. void ApplyAttributes();
  8821. void ApplyMaterialList(const String& = String ( ));
  8822. void DrawDebugGeometry(DebugRenderer, bool);
  8823. Variant GetAttribute(const String&) const;
  8824. ValueAnimation GetAttributeAnimation(const String&) const;
  8825. float GetAttributeAnimationSpeed(const String&) const;
  8826. float GetAttributeAnimationTime(const String&) const;
  8827. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8828. Variant GetAttributeDefault(const String&) const;
  8829. bool GetInterceptNetworkUpdate(const String&) const;
  8830. bool IsInView(Camera) const;
  8831. bool Load(File, bool = false);
  8832. bool Load(VectorBuffer&, bool = false);
  8833. bool LoadXML(const XMLElement&, bool = false);
  8834. void MarkNetworkUpdate() const;
  8835. void Remove();
  8836. void RemoveAttributeAnimation(const String&);
  8837. void RemoveInstanceDefault();
  8838. void RemoveObjectAnimation();
  8839. void ResetToDefault();
  8840. bool Save(File) const;
  8841. bool Save(VectorBuffer&) const;
  8842. bool SaveXML(XMLElement&) const;
  8843. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8844. void SetAnimationTime(float);
  8845. bool SetAttribute(const String&, const Variant&);
  8846. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8847. void SetAttributeAnimationSpeed(const String&, float);
  8848. void SetAttributeAnimationTime(const String&, float);
  8849. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8850. void SetInterceptNetworkUpdate(const String&, bool);
  8851. // Properties:
  8852. bool animationEnabled;
  8853. /* readonly */
  8854. Array<Variant> attributeDefaults;
  8855. /* readonly */
  8856. Array<AttributeInfo> attributeInfos;
  8857. Array<Variant> attributes;
  8858. /* readonly */
  8859. BoundingBox boundingBox;
  8860. bool castShadows;
  8861. /* readonly */
  8862. String category;
  8863. float drawDistance;
  8864. bool enabled;
  8865. /* readonly */
  8866. bool enabledEffective;
  8867. /* readonly */
  8868. uint id;
  8869. /* readonly */
  8870. bool inView;
  8871. uint lightMask;
  8872. float lodBias;
  8873. /* writeonly */
  8874. Material material;
  8875. Array<Material> materials;
  8876. uint maxLights;
  8877. Model model;
  8878. /* readonly */
  8879. Node node;
  8880. /* readonly */
  8881. uint numAttributes;
  8882. /* readonly */
  8883. uint numGeometries;
  8884. ObjectAnimation objectAnimation;
  8885. bool occludee;
  8886. bool occluder;
  8887. /* readonly */
  8888. int refs;
  8889. float shadowDistance;
  8890. uint shadowMask;
  8891. bool temporary;
  8892. /* readonly */
  8893. StringHash type;
  8894. /* readonly */
  8895. String typeName;
  8896. uint viewMask;
  8897. /* readonly */
  8898. int weakRefs;
  8899. /* readonly */
  8900. BoundingBox worldBoundingBox;
  8901. /* readonly */
  8902. Zone zone;
  8903. uint zoneMask;
  8904. };
  8905. class Slider
  8906. {
  8907. // Methods:
  8908. void AddChild(UIElement);
  8909. void ApplyAttributes();
  8910. void BringToFront();
  8911. void ChangeValue(float);
  8912. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8913. void DisableLayoutUpdate();
  8914. IntVector2 ElementToScreen(const IntVector2&);
  8915. void EnableLayoutUpdate();
  8916. uint FindChild(UIElement) const;
  8917. Variant GetAttribute(const String&) const;
  8918. ValueAnimation GetAttributeAnimation(const String&) const;
  8919. float GetAttributeAnimationSpeed(const String&) const;
  8920. float GetAttributeAnimationTime(const String&) const;
  8921. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8922. Variant GetAttributeDefault(const String&) const;
  8923. UIElement GetChild(const String&, bool = false) const;
  8924. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8925. Array<UIElement> GetChildren(bool = false) const;
  8926. UIElement GetElementEventSender() const;
  8927. bool GetInterceptNetworkUpdate(const String&) const;
  8928. uint GetNumChildren(bool) const;
  8929. void InsertChild(uint, UIElement);
  8930. bool IsInside(IntVector2, bool);
  8931. bool IsInsideCombined(IntVector2, bool);
  8932. bool Load(File, bool = false);
  8933. bool Load(VectorBuffer&, bool = false);
  8934. bool LoadChildXML(XMLFile, XMLFile = null);
  8935. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8936. bool LoadXML(File);
  8937. bool LoadXML(VectorBuffer&);
  8938. bool LoadXML(XMLFile, XMLFile);
  8939. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8940. bool LoadXML(const XMLElement&, bool = false);
  8941. void MarkNetworkUpdate() const;
  8942. void Remove();
  8943. void RemoveAllChildren();
  8944. void RemoveAttributeAnimation(const String&);
  8945. void RemoveChild(UIElement, uint = 0);
  8946. void RemoveChild(uint);
  8947. void RemoveInstanceDefault();
  8948. void RemoveObjectAnimation();
  8949. void ResetDeepEnabled();
  8950. void ResetToDefault();
  8951. bool Save(File) const;
  8952. bool Save(VectorBuffer&) const;
  8953. bool SaveXML(File, const String& = "\t");
  8954. bool SaveXML(VectorBuffer&, const String& = "\t");
  8955. bool SaveXML(XMLElement&) const;
  8956. IntVector2 ScreenToElement(const IntVector2&);
  8957. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8958. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8959. void SetAnimationTime(float);
  8960. bool SetAttribute(const String&, const Variant&);
  8961. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8962. void SetAttributeAnimationSpeed(const String&, float);
  8963. void SetAttributeAnimationTime(const String&, float);
  8964. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8965. void SetDeepEnabled(bool);
  8966. void SetEnabledRecursive(bool);
  8967. void SetFixedHeight(int);
  8968. void SetFixedSize(int, int);
  8969. void SetFixedWidth(int);
  8970. void SetFullImageRect();
  8971. void SetHoverOffset(int, int);
  8972. void SetInterceptNetworkUpdate(const String&, bool);
  8973. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8974. void SetMaxSize(int, int);
  8975. void SetMinSize(int, int);
  8976. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8977. void SetPosition(int, int);
  8978. void SetSize(int, int);
  8979. bool SetStyle(const String&, XMLFile = null);
  8980. bool SetStyle(const XMLElement&);
  8981. bool SetStyleAuto(XMLFile = null);
  8982. void UpdateLayout();
  8983. const Variant& GetVar(const StringHash&);
  8984. // Properties:
  8985. bool animationEnabled;
  8986. /* readonly */
  8987. Array<Variant> attributeDefaults;
  8988. /* readonly */
  8989. Array<AttributeInfo> attributeInfos;
  8990. Array<Variant> attributes;
  8991. BlendMode blendMode;
  8992. IntRect border;
  8993. bool bringToBack;
  8994. bool bringToFront;
  8995. /* readonly */
  8996. String category;
  8997. /* readonly */
  8998. IntVector2 childOffset;
  8999. /* readonly */
  9000. Array<UIElement> children;
  9001. IntRect clipBorder;
  9002. bool clipChildren;
  9003. /* writeonly */
  9004. Color color;
  9005. /* readonly */
  9006. bool colorGradient;
  9007. Array<Color> colors;
  9008. /* readonly */
  9009. IntRect combinedScreenRect;
  9010. XMLFile defaultStyle;
  9011. /* readonly */
  9012. float derivedOpacity;
  9013. /* readonly */
  9014. uint dragButtonCombo;
  9015. /* readonly */
  9016. int dragButtonCount;
  9017. uint dragDropMode;
  9018. bool editable;
  9019. bool elementEventSender;
  9020. bool enabled;
  9021. /* readonly */
  9022. bool enabledSelf;
  9023. /* readonly */
  9024. bool fixedHeight;
  9025. /* readonly */
  9026. bool fixedSize;
  9027. /* readonly */
  9028. bool fixedWidth;
  9029. bool focus;
  9030. FocusMode focusMode;
  9031. int height;
  9032. HorizontalAlignment horizontalAlignment;
  9033. IntVector2 hoverOffset;
  9034. /* readonly */
  9035. bool hovering;
  9036. IntRect imageBorder;
  9037. IntRect imageRect;
  9038. int indent;
  9039. int indentSpacing;
  9040. /* readonly */
  9041. int indentWidth;
  9042. bool internal;
  9043. /* readonly */
  9044. BorderImage knob;
  9045. IntRect layoutBorder;
  9046. Vector2 layoutFlexScale;
  9047. LayoutMode layoutMode;
  9048. int layoutSpacing;
  9049. int maxHeight;
  9050. IntVector2 maxSize;
  9051. int maxWidth;
  9052. int minHeight;
  9053. IntVector2 minSize;
  9054. int minWidth;
  9055. String name;
  9056. /* readonly */
  9057. uint numAllChildren;
  9058. /* readonly */
  9059. uint numAttributes;
  9060. /* readonly */
  9061. uint numChildren;
  9062. ObjectAnimation objectAnimation;
  9063. float opacity;
  9064. Orientation orientation;
  9065. UIElement parent;
  9066. IntVector2 position;
  9067. int priority;
  9068. float range;
  9069. /* readonly */
  9070. int refs;
  9071. float repeatRate;
  9072. /* readonly */
  9073. UIElement root;
  9074. /* readonly */
  9075. IntVector2 screenPosition;
  9076. bool selected;
  9077. IntVector2 size;
  9078. bool sortChildren;
  9079. String style;
  9080. bool temporary;
  9081. Texture texture;
  9082. bool tiled;
  9083. TraversalMode traversalMode;
  9084. /* readonly */
  9085. StringHash type;
  9086. /* readonly */
  9087. String typeName;
  9088. bool useDerivedOpacity;
  9089. float value;
  9090. /* readonly */
  9091. VariantMap vars;
  9092. VerticalAlignment verticalAlignment;
  9093. bool visible;
  9094. /* readonly */
  9095. bool visibleEffective;
  9096. /* readonly */
  9097. int weakRefs;
  9098. int width;
  9099. };
  9100. class SmoothedTransform
  9101. {
  9102. // Methods:
  9103. void ApplyAttributes();
  9104. void DrawDebugGeometry(DebugRenderer, bool);
  9105. Variant GetAttribute(const String&) const;
  9106. ValueAnimation GetAttributeAnimation(const String&) const;
  9107. float GetAttributeAnimationSpeed(const String&) const;
  9108. float GetAttributeAnimationTime(const String&) const;
  9109. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9110. Variant GetAttributeDefault(const String&) const;
  9111. bool GetInterceptNetworkUpdate(const String&) const;
  9112. bool Load(File, bool = false);
  9113. bool Load(VectorBuffer&, bool = false);
  9114. bool LoadXML(const XMLElement&, bool = false);
  9115. void MarkNetworkUpdate() const;
  9116. void Remove();
  9117. void RemoveAttributeAnimation(const String&);
  9118. void RemoveInstanceDefault();
  9119. void RemoveObjectAnimation();
  9120. void ResetToDefault();
  9121. bool Save(File) const;
  9122. bool Save(VectorBuffer&) const;
  9123. bool SaveXML(XMLElement&) const;
  9124. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9125. void SetAnimationTime(float);
  9126. bool SetAttribute(const String&, const Variant&);
  9127. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9128. void SetAttributeAnimationSpeed(const String&, float);
  9129. void SetAttributeAnimationTime(const String&, float);
  9130. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9131. void SetInterceptNetworkUpdate(const String&, bool);
  9132. void Update(float, float);
  9133. // Properties:
  9134. bool animationEnabled;
  9135. /* readonly */
  9136. Array<Variant> attributeDefaults;
  9137. /* readonly */
  9138. Array<AttributeInfo> attributeInfos;
  9139. Array<Variant> attributes;
  9140. /* readonly */
  9141. String category;
  9142. bool enabled;
  9143. /* readonly */
  9144. bool enabledEffective;
  9145. /* readonly */
  9146. uint id;
  9147. /* readonly */
  9148. bool inProgress;
  9149. /* readonly */
  9150. Node node;
  9151. /* readonly */
  9152. uint numAttributes;
  9153. ObjectAnimation objectAnimation;
  9154. /* readonly */
  9155. int refs;
  9156. Vector3 targetPosition;
  9157. Quaternion targetRotation;
  9158. Vector3 targetWorldPosition;
  9159. Quaternion targetWorldRotation;
  9160. bool temporary;
  9161. /* readonly */
  9162. StringHash type;
  9163. /* readonly */
  9164. String typeName;
  9165. /* readonly */
  9166. int weakRefs;
  9167. };
  9168. class Sound
  9169. {
  9170. // Methods:
  9171. bool Load(File);
  9172. bool Load(VectorBuffer&);
  9173. bool Save(File) const;
  9174. bool Save(VectorBuffer&) const;
  9175. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9176. // Properties:
  9177. /* readonly */
  9178. String category;
  9179. /* readonly */
  9180. bool compressed;
  9181. /* readonly */
  9182. float frequency;
  9183. /* readonly */
  9184. float length;
  9185. bool looped;
  9186. /* readonly */
  9187. uint memoryUse;
  9188. String name;
  9189. /* readonly */
  9190. int refs;
  9191. /* readonly */
  9192. uint sampleSize;
  9193. /* readonly */
  9194. bool sixteenBit;
  9195. /* readonly */
  9196. bool stereo;
  9197. /* readonly */
  9198. StringHash type;
  9199. /* readonly */
  9200. String typeName;
  9201. /* readonly */
  9202. uint useTimer;
  9203. /* readonly */
  9204. int weakRefs;
  9205. };
  9206. class SoundListener
  9207. {
  9208. // Methods:
  9209. void ApplyAttributes();
  9210. void DrawDebugGeometry(DebugRenderer, bool);
  9211. Variant GetAttribute(const String&) const;
  9212. ValueAnimation GetAttributeAnimation(const String&) const;
  9213. float GetAttributeAnimationSpeed(const String&) const;
  9214. float GetAttributeAnimationTime(const String&) const;
  9215. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9216. Variant GetAttributeDefault(const String&) const;
  9217. bool GetInterceptNetworkUpdate(const String&) const;
  9218. bool Load(File, bool = false);
  9219. bool Load(VectorBuffer&, bool = false);
  9220. bool LoadXML(const XMLElement&, bool = false);
  9221. void MarkNetworkUpdate() const;
  9222. void Remove();
  9223. void RemoveAttributeAnimation(const String&);
  9224. void RemoveInstanceDefault();
  9225. void RemoveObjectAnimation();
  9226. void ResetToDefault();
  9227. bool Save(File) const;
  9228. bool Save(VectorBuffer&) const;
  9229. bool SaveXML(XMLElement&) const;
  9230. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9231. void SetAnimationTime(float);
  9232. bool SetAttribute(const String&, const Variant&);
  9233. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9234. void SetAttributeAnimationSpeed(const String&, float);
  9235. void SetAttributeAnimationTime(const String&, float);
  9236. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9237. void SetInterceptNetworkUpdate(const String&, bool);
  9238. // Properties:
  9239. bool animationEnabled;
  9240. /* readonly */
  9241. Array<Variant> attributeDefaults;
  9242. /* readonly */
  9243. Array<AttributeInfo> attributeInfos;
  9244. Array<Variant> attributes;
  9245. /* readonly */
  9246. String category;
  9247. bool enabled;
  9248. /* readonly */
  9249. bool enabledEffective;
  9250. /* readonly */
  9251. uint id;
  9252. /* readonly */
  9253. Node node;
  9254. /* readonly */
  9255. uint numAttributes;
  9256. ObjectAnimation objectAnimation;
  9257. /* readonly */
  9258. int refs;
  9259. bool temporary;
  9260. /* readonly */
  9261. StringHash type;
  9262. /* readonly */
  9263. String typeName;
  9264. /* readonly */
  9265. int weakRefs;
  9266. };
  9267. class SoundSource
  9268. {
  9269. // Methods:
  9270. void ApplyAttributes();
  9271. void DrawDebugGeometry(DebugRenderer, bool);
  9272. Variant GetAttribute(const String&) const;
  9273. ValueAnimation GetAttributeAnimation(const String&) const;
  9274. float GetAttributeAnimationSpeed(const String&) const;
  9275. float GetAttributeAnimationTime(const String&) const;
  9276. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9277. Variant GetAttributeDefault(const String&) const;
  9278. bool GetInterceptNetworkUpdate(const String&) const;
  9279. bool Load(File, bool = false);
  9280. bool Load(VectorBuffer&, bool = false);
  9281. bool LoadXML(const XMLElement&, bool = false);
  9282. void MarkNetworkUpdate() const;
  9283. void Play(Sound);
  9284. void Play(Sound, float);
  9285. void Play(Sound, float, float);
  9286. void Play(Sound, float, float, float);
  9287. void Remove();
  9288. void RemoveAttributeAnimation(const String&);
  9289. void RemoveInstanceDefault();
  9290. void RemoveObjectAnimation();
  9291. void ResetToDefault();
  9292. bool Save(File) const;
  9293. bool Save(VectorBuffer&) const;
  9294. bool SaveXML(XMLElement&) const;
  9295. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9296. void SetAnimationTime(float);
  9297. bool SetAttribute(const String&, const Variant&);
  9298. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9299. void SetAttributeAnimationSpeed(const String&, float);
  9300. void SetAttributeAnimationTime(const String&, float);
  9301. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9302. void SetInterceptNetworkUpdate(const String&, bool);
  9303. void Stop();
  9304. // Properties:
  9305. bool animationEnabled;
  9306. /* readonly */
  9307. float attenuation;
  9308. /* readonly */
  9309. Array<Variant> attributeDefaults;
  9310. /* readonly */
  9311. Array<AttributeInfo> attributeInfos;
  9312. Array<Variant> attributes;
  9313. bool autoRemove;
  9314. /* readonly */
  9315. String category;
  9316. bool enabled;
  9317. /* readonly */
  9318. bool enabledEffective;
  9319. float frequency;
  9320. float gain;
  9321. /* readonly */
  9322. uint id;
  9323. /* readonly */
  9324. Node node;
  9325. /* readonly */
  9326. uint numAttributes;
  9327. ObjectAnimation objectAnimation;
  9328. float panning;
  9329. /* readonly */
  9330. bool playing;
  9331. /* readonly */
  9332. int refs;
  9333. /* readonly */
  9334. Sound sound;
  9335. String soundType;
  9336. bool temporary;
  9337. /* readonly */
  9338. float timePosition;
  9339. /* readonly */
  9340. StringHash type;
  9341. /* readonly */
  9342. String typeName;
  9343. /* readonly */
  9344. int weakRefs;
  9345. };
  9346. class SoundSource3D
  9347. {
  9348. // Methods:
  9349. void ApplyAttributes();
  9350. void DrawDebugGeometry(DebugRenderer, bool);
  9351. Variant GetAttribute(const String&) const;
  9352. ValueAnimation GetAttributeAnimation(const String&) const;
  9353. float GetAttributeAnimationSpeed(const String&) const;
  9354. float GetAttributeAnimationTime(const String&) const;
  9355. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9356. Variant GetAttributeDefault(const String&) const;
  9357. bool GetInterceptNetworkUpdate(const String&) const;
  9358. bool Load(File, bool = false);
  9359. bool Load(VectorBuffer&, bool = false);
  9360. bool LoadXML(const XMLElement&, bool = false);
  9361. void MarkNetworkUpdate() const;
  9362. void Play(Sound);
  9363. void Play(Sound, float);
  9364. void Play(Sound, float, float);
  9365. void Play(Sound, float, float, float);
  9366. void Remove();
  9367. void RemoveAttributeAnimation(const String&);
  9368. void RemoveInstanceDefault();
  9369. void RemoveObjectAnimation();
  9370. void ResetToDefault();
  9371. bool Save(File) const;
  9372. bool Save(VectorBuffer&) const;
  9373. bool SaveXML(XMLElement&) const;
  9374. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9375. void SetAngleAttenuation(float, float);
  9376. void SetAnimationTime(float);
  9377. bool SetAttribute(const String&, const Variant&);
  9378. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9379. void SetAttributeAnimationSpeed(const String&, float);
  9380. void SetAttributeAnimationTime(const String&, float);
  9381. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9382. void SetDistanceAttenuation(float, float, float);
  9383. void SetInterceptNetworkUpdate(const String&, bool);
  9384. void Stop();
  9385. // Properties:
  9386. bool animationEnabled;
  9387. /* readonly */
  9388. float attenuation;
  9389. /* readonly */
  9390. Array<Variant> attributeDefaults;
  9391. /* readonly */
  9392. Array<AttributeInfo> attributeInfos;
  9393. Array<Variant> attributes;
  9394. bool autoRemove;
  9395. /* readonly */
  9396. String category;
  9397. bool enabled;
  9398. /* readonly */
  9399. bool enabledEffective;
  9400. float farDistance;
  9401. float frequency;
  9402. float gain;
  9403. /* readonly */
  9404. uint id;
  9405. float innerAngle;
  9406. float nearDistance;
  9407. /* readonly */
  9408. Node node;
  9409. /* readonly */
  9410. uint numAttributes;
  9411. ObjectAnimation objectAnimation;
  9412. float outerAngle;
  9413. float panning;
  9414. /* readonly */
  9415. bool playing;
  9416. /* readonly */
  9417. int refs;
  9418. float rolloffFactor;
  9419. /* readonly */
  9420. Sound sound;
  9421. String soundType;
  9422. bool temporary;
  9423. /* readonly */
  9424. float timePosition;
  9425. /* readonly */
  9426. StringHash type;
  9427. /* readonly */
  9428. String typeName;
  9429. /* readonly */
  9430. int weakRefs;
  9431. };
  9432. class Sphere
  9433. {
  9434. // Methods:
  9435. void Clear();
  9436. void Define(const BoundingBox&);
  9437. void Define(const Frustum&);
  9438. void Define(const Polyhedron&);
  9439. void Define(const Sphere&);
  9440. void Define(const Vector3&, float);
  9441. float Distance(const Vector3&) const;
  9442. Intersection IsInside(const BoundingBox&) const;
  9443. Intersection IsInside(const Sphere&) const;
  9444. Intersection IsInside(const Vector3&) const;
  9445. Intersection IsInsideFast(const BoundingBox&) const;
  9446. Intersection IsInsideFast(const Sphere&) const;
  9447. void Merge(const BoundingBox&);
  9448. void Merge(const Frustum&);
  9449. void Merge(const Sphere&);
  9450. void Merge(const Vector3&);
  9451. // Properties:
  9452. Vector3 center;
  9453. bool defined;
  9454. float radius;
  9455. };
  9456. class Spline
  9457. {
  9458. // Methods:
  9459. void AddKnot(const Variant&);
  9460. void AddKnot(const Variant&, uint);
  9461. void Clear();
  9462. Variant GetPoint(float);
  9463. void RemoveKnot();
  9464. void RemoveKnot(uint);
  9465. // Properties:
  9466. InterpolationMode interpolationMode;
  9467. Array<Variant> knot;
  9468. Array<Variant> knots;
  9469. };
  9470. class SplinePath
  9471. {
  9472. // Methods:
  9473. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9474. void ApplyAttributes();
  9475. void ClearControlPoints();
  9476. void DrawDebugGeometry(DebugRenderer, bool);
  9477. Variant GetAttribute(const String&) const;
  9478. ValueAnimation GetAttributeAnimation(const String&) const;
  9479. float GetAttributeAnimationSpeed(const String&) const;
  9480. float GetAttributeAnimationTime(const String&) const;
  9481. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9482. Variant GetAttributeDefault(const String&) const;
  9483. bool GetInterceptNetworkUpdate(const String&) const;
  9484. Vector3 GetPoint(float) const;
  9485. Vector3 GetPosition() const;
  9486. bool Load(File, bool = false);
  9487. bool Load(VectorBuffer&, bool = false);
  9488. bool LoadXML(const XMLElement&, bool = false);
  9489. void MarkNetworkUpdate() const;
  9490. void Move(float);
  9491. void Remove();
  9492. void RemoveAttributeAnimation(const String&);
  9493. void RemoveControlPoint(Node);
  9494. void RemoveInstanceDefault();
  9495. void RemoveObjectAnimation();
  9496. void Reset();
  9497. void ResetToDefault();
  9498. bool Save(File) const;
  9499. bool Save(VectorBuffer&) const;
  9500. bool SaveXML(XMLElement&) const;
  9501. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9502. void SetAnimationTime(float);
  9503. bool SetAttribute(const String&, const Variant&);
  9504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9505. void SetAttributeAnimationSpeed(const String&, float);
  9506. void SetAttributeAnimationTime(const String&, float);
  9507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9508. void SetInterceptNetworkUpdate(const String&, bool);
  9509. void SetPosition(float);
  9510. // Properties:
  9511. bool animationEnabled;
  9512. /* readonly */
  9513. Array<Variant> attributeDefaults;
  9514. /* readonly */
  9515. Array<AttributeInfo> attributeInfos;
  9516. Array<Variant> attributes;
  9517. /* readonly */
  9518. String category;
  9519. Node controlledNode;
  9520. bool enabled;
  9521. /* readonly */
  9522. bool enabledEffective;
  9523. /* readonly */
  9524. uint id;
  9525. InterpolationMode interpolationMode;
  9526. /* readonly */
  9527. bool isFinished;
  9528. /* readonly */
  9529. float length;
  9530. /* readonly */
  9531. Node node;
  9532. /* readonly */
  9533. uint numAttributes;
  9534. ObjectAnimation objectAnimation;
  9535. /* readonly */
  9536. int refs;
  9537. float speed;
  9538. bool temporary;
  9539. /* readonly */
  9540. StringHash type;
  9541. /* readonly */
  9542. String typeName;
  9543. /* readonly */
  9544. int weakRefs;
  9545. };
  9546. class Sprite
  9547. {
  9548. // Methods:
  9549. void AddChild(UIElement);
  9550. void ApplyAttributes();
  9551. void BringToFront();
  9552. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9553. uint FindChild(UIElement) const;
  9554. Variant GetAttribute(const String&) const;
  9555. ValueAnimation GetAttributeAnimation(const String&) const;
  9556. float GetAttributeAnimationSpeed(const String&) const;
  9557. float GetAttributeAnimationTime(const String&) const;
  9558. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9559. Variant GetAttributeDefault(const String&) const;
  9560. UIElement GetChild(const String&, bool = false) const;
  9561. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9562. Array<UIElement> GetChildren(bool = false) const;
  9563. UIElement GetElementEventSender() const;
  9564. bool GetInterceptNetworkUpdate(const String&) const;
  9565. uint GetNumChildren(bool) const;
  9566. void InsertChild(uint, UIElement);
  9567. bool Load(File, bool = false);
  9568. bool Load(VectorBuffer&, bool = false);
  9569. bool LoadChildXML(XMLFile, XMLFile = null);
  9570. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9571. bool LoadXML(File);
  9572. bool LoadXML(VectorBuffer&);
  9573. bool LoadXML(XMLFile, XMLFile);
  9574. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9575. bool LoadXML(const XMLElement&, bool = false);
  9576. void MarkNetworkUpdate() const;
  9577. void Remove();
  9578. void RemoveAllChildren();
  9579. void RemoveAttributeAnimation(const String&);
  9580. void RemoveChild(UIElement, uint = 0);
  9581. void RemoveChild(uint);
  9582. void RemoveInstanceDefault();
  9583. void RemoveObjectAnimation();
  9584. void ResetToDefault();
  9585. bool Save(File) const;
  9586. bool Save(VectorBuffer&) const;
  9587. bool SaveXML(File, const String& = "\t");
  9588. bool SaveXML(VectorBuffer&, const String& = "\t");
  9589. bool SaveXML(XMLElement&) const;
  9590. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9591. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9592. void SetAnimationTime(float);
  9593. bool SetAttribute(const String&, const Variant&);
  9594. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9595. void SetAttributeAnimationSpeed(const String&, float);
  9596. void SetAttributeAnimationTime(const String&, float);
  9597. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9598. void SetFixedHeight(int);
  9599. void SetFixedSize(int, int);
  9600. void SetFixedWidth(int);
  9601. void SetFullImageRect();
  9602. void SetHotSpot(int, int);
  9603. void SetInterceptNetworkUpdate(const String&, bool);
  9604. void SetMaxSize(int, int);
  9605. void SetMinSize(int, int);
  9606. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9607. void SetPosition(float, float);
  9608. void SetScale(float);
  9609. void SetScale(float, float);
  9610. void SetSize(int, int);
  9611. bool SetStyle(const String&, XMLFile = null);
  9612. bool SetStyle(const XMLElement&);
  9613. bool SetStyleAuto(XMLFile = null);
  9614. const Variant& GetVar(const StringHash&);
  9615. // Properties:
  9616. bool animationEnabled;
  9617. /* readonly */
  9618. Array<Variant> attributeDefaults;
  9619. /* readonly */
  9620. Array<AttributeInfo> attributeInfos;
  9621. Array<Variant> attributes;
  9622. BlendMode blendMode;
  9623. bool bringToBack;
  9624. bool bringToFront;
  9625. /* readonly */
  9626. String category;
  9627. /* readonly */
  9628. Array<UIElement> children;
  9629. /* writeonly */
  9630. Color color;
  9631. /* readonly */
  9632. bool colorGradient;
  9633. Array<Color> colors;
  9634. XMLFile defaultStyle;
  9635. /* readonly */
  9636. float derivedOpacity;
  9637. /* readonly */
  9638. uint dragButtonCombo;
  9639. /* readonly */
  9640. int dragButtonCount;
  9641. bool elementEventSender;
  9642. int height;
  9643. HorizontalAlignment horizontalAlignment;
  9644. IntVector2 hotSpot;
  9645. IntRect imageRect;
  9646. String name;
  9647. /* readonly */
  9648. uint numAllChildren;
  9649. /* readonly */
  9650. uint numAttributes;
  9651. /* readonly */
  9652. uint numChildren;
  9653. ObjectAnimation objectAnimation;
  9654. float opacity;
  9655. UIElement parent;
  9656. Vector2 position;
  9657. int priority;
  9658. /* readonly */
  9659. int refs;
  9660. /* readonly */
  9661. UIElement root;
  9662. float rotation;
  9663. Vector2 scale;
  9664. IntVector2 size;
  9665. bool sortChildren;
  9666. String style;
  9667. bool temporary;
  9668. Texture texture;
  9669. /* readonly */
  9670. StringHash type;
  9671. /* readonly */
  9672. String typeName;
  9673. bool useDerivedOpacity;
  9674. /* readonly */
  9675. VariantMap vars;
  9676. VerticalAlignment verticalAlignment;
  9677. bool visible;
  9678. /* readonly */
  9679. bool visibleEffective;
  9680. /* readonly */
  9681. int weakRefs;
  9682. int width;
  9683. };
  9684. class Sprite2D
  9685. {
  9686. // Methods:
  9687. bool Load(File);
  9688. bool Load(VectorBuffer&);
  9689. bool Save(File) const;
  9690. bool Save(VectorBuffer&) const;
  9691. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9692. // Properties:
  9693. /* readonly */
  9694. String category;
  9695. Vector2 hotSpot;
  9696. /* readonly */
  9697. uint memoryUse;
  9698. String name;
  9699. IntVector2 offset;
  9700. IntRect rectangle;
  9701. /* readonly */
  9702. int refs;
  9703. Texture2D texture;
  9704. /* readonly */
  9705. StringHash type;
  9706. /* readonly */
  9707. String typeName;
  9708. /* readonly */
  9709. uint useTimer;
  9710. /* readonly */
  9711. int weakRefs;
  9712. };
  9713. class SpriteSheet2D
  9714. {
  9715. // Methods:
  9716. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  9717. Sprite2D GetSprite(const String&);
  9718. bool Load(File);
  9719. bool Load(VectorBuffer&);
  9720. bool Save(File) const;
  9721. bool Save(VectorBuffer&) const;
  9722. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9723. // Properties:
  9724. /* readonly */
  9725. String category;
  9726. /* readonly */
  9727. uint memoryUse;
  9728. String name;
  9729. /* readonly */
  9730. int refs;
  9731. /* readonly */
  9732. Texture2D texture;
  9733. /* readonly */
  9734. StringHash type;
  9735. /* readonly */
  9736. String typeName;
  9737. /* readonly */
  9738. uint useTimer;
  9739. /* readonly */
  9740. int weakRefs;
  9741. };
  9742. class StaticModel
  9743. {
  9744. // Methods:
  9745. void ApplyAttributes();
  9746. void ApplyMaterialList(const String& = String ( ));
  9747. void DrawDebugGeometry(DebugRenderer, bool);
  9748. Variant GetAttribute(const String&) const;
  9749. ValueAnimation GetAttributeAnimation(const String&) const;
  9750. float GetAttributeAnimationSpeed(const String&) const;
  9751. float GetAttributeAnimationTime(const String&) const;
  9752. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9753. Variant GetAttributeDefault(const String&) const;
  9754. bool GetInterceptNetworkUpdate(const String&) const;
  9755. bool IsInView(Camera) const;
  9756. bool IsInside(const Vector3&) const;
  9757. bool IsInsideLocal(const Vector3&) const;
  9758. bool Load(File, bool = false);
  9759. bool Load(VectorBuffer&, bool = false);
  9760. bool LoadXML(const XMLElement&, bool = false);
  9761. void MarkNetworkUpdate() const;
  9762. void Remove();
  9763. void RemoveAttributeAnimation(const String&);
  9764. void RemoveInstanceDefault();
  9765. void RemoveObjectAnimation();
  9766. void ResetToDefault();
  9767. bool Save(File) const;
  9768. bool Save(VectorBuffer&) const;
  9769. bool SaveXML(XMLElement&) const;
  9770. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9771. void SetAnimationTime(float);
  9772. bool SetAttribute(const String&, const Variant&);
  9773. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9774. void SetAttributeAnimationSpeed(const String&, float);
  9775. void SetAttributeAnimationTime(const String&, float);
  9776. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9777. void SetInterceptNetworkUpdate(const String&, bool);
  9778. // Properties:
  9779. bool animationEnabled;
  9780. /* readonly */
  9781. Array<Variant> attributeDefaults;
  9782. /* readonly */
  9783. Array<AttributeInfo> attributeInfos;
  9784. Array<Variant> attributes;
  9785. /* readonly */
  9786. BoundingBox boundingBox;
  9787. bool castShadows;
  9788. /* readonly */
  9789. String category;
  9790. float drawDistance;
  9791. bool enabled;
  9792. /* readonly */
  9793. bool enabledEffective;
  9794. /* readonly */
  9795. uint id;
  9796. /* readonly */
  9797. bool inView;
  9798. uint lightMask;
  9799. float lodBias;
  9800. /* writeonly */
  9801. Material material;
  9802. Array<Material> materials;
  9803. uint maxLights;
  9804. Model model;
  9805. /* readonly */
  9806. Node node;
  9807. /* readonly */
  9808. uint numAttributes;
  9809. /* readonly */
  9810. uint numGeometries;
  9811. ObjectAnimation objectAnimation;
  9812. bool occludee;
  9813. bool occluder;
  9814. uint occlusionLodLevel;
  9815. /* readonly */
  9816. int refs;
  9817. float shadowDistance;
  9818. uint shadowMask;
  9819. bool temporary;
  9820. /* readonly */
  9821. StringHash type;
  9822. /* readonly */
  9823. String typeName;
  9824. uint viewMask;
  9825. /* readonly */
  9826. int weakRefs;
  9827. /* readonly */
  9828. BoundingBox worldBoundingBox;
  9829. uint zoneMask;
  9830. };
  9831. class StaticModelGroup
  9832. {
  9833. // Methods:
  9834. void AddInstanceNode(Node);
  9835. void ApplyAttributes();
  9836. void ApplyMaterialList(const String& = String ( ));
  9837. void DrawDebugGeometry(DebugRenderer, bool);
  9838. Variant GetAttribute(const String&) const;
  9839. ValueAnimation GetAttributeAnimation(const String&) const;
  9840. float GetAttributeAnimationSpeed(const String&) const;
  9841. float GetAttributeAnimationTime(const String&) const;
  9842. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9843. Variant GetAttributeDefault(const String&) const;
  9844. bool GetInterceptNetworkUpdate(const String&) const;
  9845. bool IsInView(Camera) const;
  9846. bool Load(File, bool = false);
  9847. bool Load(VectorBuffer&, bool = false);
  9848. bool LoadXML(const XMLElement&, bool = false);
  9849. void MarkNetworkUpdate() const;
  9850. void Remove();
  9851. void RemoveAllInstanceNodes();
  9852. void RemoveAttributeAnimation(const String&);
  9853. void RemoveInstanceDefault();
  9854. void RemoveInstanceNode(Node);
  9855. void RemoveObjectAnimation();
  9856. void ResetToDefault();
  9857. bool Save(File) const;
  9858. bool Save(VectorBuffer&) const;
  9859. bool SaveXML(XMLElement&) const;
  9860. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9861. void SetAnimationTime(float);
  9862. bool SetAttribute(const String&, const Variant&);
  9863. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9864. void SetAttributeAnimationSpeed(const String&, float);
  9865. void SetAttributeAnimationTime(const String&, float);
  9866. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9867. void SetInterceptNetworkUpdate(const String&, bool);
  9868. // Properties:
  9869. bool animationEnabled;
  9870. /* readonly */
  9871. Array<Variant> attributeDefaults;
  9872. /* readonly */
  9873. Array<AttributeInfo> attributeInfos;
  9874. Array<Variant> attributes;
  9875. /* readonly */
  9876. BoundingBox boundingBox;
  9877. bool castShadows;
  9878. /* readonly */
  9879. String category;
  9880. float drawDistance;
  9881. bool enabled;
  9882. /* readonly */
  9883. bool enabledEffective;
  9884. /* readonly */
  9885. uint id;
  9886. /* readonly */
  9887. bool inView;
  9888. /* readonly */
  9889. Array<Node> instanceNodes;
  9890. uint lightMask;
  9891. float lodBias;
  9892. /* writeonly */
  9893. Material material;
  9894. Array<Material> materials;
  9895. uint maxLights;
  9896. Model model;
  9897. /* readonly */
  9898. Node node;
  9899. /* readonly */
  9900. uint numAttributes;
  9901. /* readonly */
  9902. uint numGeometries;
  9903. /* readonly */
  9904. uint numInstanceNodes;
  9905. ObjectAnimation objectAnimation;
  9906. bool occludee;
  9907. bool occluder;
  9908. uint occlusionLodLevel;
  9909. /* readonly */
  9910. int refs;
  9911. float shadowDistance;
  9912. uint shadowMask;
  9913. bool temporary;
  9914. /* readonly */
  9915. StringHash type;
  9916. /* readonly */
  9917. String typeName;
  9918. uint viewMask;
  9919. /* readonly */
  9920. int weakRefs;
  9921. /* readonly */
  9922. BoundingBox worldBoundingBox;
  9923. /* readonly */
  9924. Zone zone;
  9925. uint zoneMask;
  9926. };
  9927. class StaticSprite2D
  9928. {
  9929. // Methods:
  9930. void ApplyAttributes();
  9931. void DrawDebugGeometry(DebugRenderer, bool);
  9932. Variant GetAttribute(const String&) const;
  9933. ValueAnimation GetAttributeAnimation(const String&) const;
  9934. float GetAttributeAnimationSpeed(const String&) const;
  9935. float GetAttributeAnimationTime(const String&) const;
  9936. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9937. Variant GetAttributeDefault(const String&) const;
  9938. bool GetInterceptNetworkUpdate(const String&) const;
  9939. bool IsInView(Camera) const;
  9940. bool Load(File, bool = false);
  9941. bool Load(VectorBuffer&, bool = false);
  9942. bool LoadXML(const XMLElement&, bool = false);
  9943. void MarkNetworkUpdate() const;
  9944. void Remove();
  9945. void RemoveAttributeAnimation(const String&);
  9946. void RemoveInstanceDefault();
  9947. void RemoveObjectAnimation();
  9948. void ResetToDefault();
  9949. bool Save(File) const;
  9950. bool Save(VectorBuffer&) const;
  9951. bool SaveXML(XMLElement&) const;
  9952. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9953. void SetAnimationTime(float);
  9954. bool SetAttribute(const String&, const Variant&);
  9955. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9956. void SetAttributeAnimationSpeed(const String&, float);
  9957. void SetAttributeAnimationTime(const String&, float);
  9958. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9959. void SetFlip(bool, bool);
  9960. void SetInterceptNetworkUpdate(const String&, bool);
  9961. // Properties:
  9962. float alpha;
  9963. bool animationEnabled;
  9964. /* readonly */
  9965. Array<Variant> attributeDefaults;
  9966. /* readonly */
  9967. Array<AttributeInfo> attributeInfos;
  9968. Array<Variant> attributes;
  9969. BlendMode blendMode;
  9970. /* readonly */
  9971. BoundingBox boundingBox;
  9972. bool castShadows;
  9973. /* readonly */
  9974. String category;
  9975. Color color;
  9976. Material customMaterial;
  9977. float drawDistance;
  9978. bool enabled;
  9979. /* readonly */
  9980. bool enabledEffective;
  9981. bool flipX;
  9982. bool flipY;
  9983. Vector2 hotSpot;
  9984. /* readonly */
  9985. uint id;
  9986. /* readonly */
  9987. bool inView;
  9988. int layer;
  9989. uint lightMask;
  9990. float lodBias;
  9991. uint maxLights;
  9992. /* readonly */
  9993. Node node;
  9994. /* readonly */
  9995. uint numAttributes;
  9996. ObjectAnimation objectAnimation;
  9997. bool occludee;
  9998. bool occluder;
  9999. int orderInLayer;
  10000. /* readonly */
  10001. int refs;
  10002. float shadowDistance;
  10003. uint shadowMask;
  10004. Sprite2D sprite;
  10005. bool temporary;
  10006. /* readonly */
  10007. StringHash type;
  10008. /* readonly */
  10009. String typeName;
  10010. bool useHotSpot;
  10011. uint viewMask;
  10012. /* readonly */
  10013. int weakRefs;
  10014. /* readonly */
  10015. BoundingBox worldBoundingBox;
  10016. uint zoneMask;
  10017. };
  10018. class String
  10019. {
  10020. // Methods:
  10021. void AppendUTF8(uint);
  10022. uint AtUTF8(uint) const;
  10023. uint ByteOffsetUTF8(uint) const;
  10024. void Clear();
  10025. int Compare(const String&, bool = true) const;
  10026. bool Contains(const String&, bool = true) const;
  10027. bool Contains(uint8, bool = true) const;
  10028. bool EndsWith(const String&, bool = true) const;
  10029. uint Find(const String&, uint = 0, bool = true) const;
  10030. uint Find(uint8, uint = 0, bool = true) const;
  10031. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10032. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10033. void Join(Array<String>&, const String&);
  10034. uint NextUTF8Char(uint&) const;
  10035. void Replace(const String&, const String&, bool = true);
  10036. void Replace(uint8, uint8, bool = true);
  10037. void ReplaceUTF8(uint, uint);
  10038. String Replaced(const String&, const String&, bool = true) const;
  10039. String Replaced(uint8, uint8, bool = true) const;
  10040. void Resize(uint);
  10041. void SetUTF8FromLatin1(const String&);
  10042. Array<String> Split(uint8) const;
  10043. bool StartsWith(const String&, bool = true) const;
  10044. String Substring(uint) const;
  10045. String Substring(uint, uint) const;
  10046. String SubstringUTF8(uint) const;
  10047. String SubstringUTF8(uint, uint) const;
  10048. bool ToBool() const;
  10049. Color ToColor() const;
  10050. double ToDouble() const;
  10051. float ToFloat() const;
  10052. int ToInt() const;
  10053. IntRect ToIntRect() const;
  10054. IntVector2 ToIntVector2() const;
  10055. String ToLower() const;
  10056. Matrix3 ToMatrix3() const;
  10057. Matrix3x4 ToMatrix3x4() const;
  10058. Matrix4 ToMatrix4() const;
  10059. Quaternion ToQuaternion() const;
  10060. uint ToUInt() const;
  10061. String ToUpper() const;
  10062. Vector2 ToVector2() const;
  10063. Vector3 ToVector3() const;
  10064. Vector4 ToVector4(bool = false) const;
  10065. Variant ToVectorVariant() const;
  10066. String Trimmed() const;
  10067. // Properties:
  10068. /* readonly */
  10069. bool empty;
  10070. /* readonly */
  10071. uint length;
  10072. /* readonly */
  10073. uint utf8Length;
  10074. };
  10075. class StringHash
  10076. {
  10077. // Methods:
  10078. String ToString() const;
  10079. // Properties:
  10080. /* readonly */
  10081. uint value;
  10082. };
  10083. class Technique
  10084. {
  10085. // Methods:
  10086. Pass CreatePass(const String&);
  10087. Pass GetPass(const String&);
  10088. Pass GetSupportedPass(const String&);
  10089. bool HasPass(const String&) const;
  10090. bool Load(File);
  10091. bool Load(VectorBuffer&);
  10092. void RemovePass(const String&);
  10093. bool Save(File) const;
  10094. bool Save(VectorBuffer&) const;
  10095. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10096. // Properties:
  10097. /* readonly */
  10098. String category;
  10099. bool desktop;
  10100. /* readonly */
  10101. uint memoryUse;
  10102. String name;
  10103. /* readonly */
  10104. uint numPasses;
  10105. /* readonly */
  10106. Array<String> passNames;
  10107. /* readonly */
  10108. Array<Pass> passes;
  10109. /* readonly */
  10110. int refs;
  10111. /* readonly */
  10112. bool supported;
  10113. /* readonly */
  10114. StringHash type;
  10115. /* readonly */
  10116. String typeName;
  10117. /* readonly */
  10118. uint useTimer;
  10119. /* readonly */
  10120. int weakRefs;
  10121. };
  10122. class TechniqueEntry
  10123. {
  10124. // Properties:
  10125. float lodDistance;
  10126. int qualityLevel;
  10127. Technique technique;
  10128. };
  10129. class Terrain
  10130. {
  10131. // Methods:
  10132. void ApplyAttributes();
  10133. void ApplyHeightMap();
  10134. void DrawDebugGeometry(DebugRenderer, bool);
  10135. Variant GetAttribute(const String&) const;
  10136. ValueAnimation GetAttributeAnimation(const String&) const;
  10137. float GetAttributeAnimationSpeed(const String&) const;
  10138. float GetAttributeAnimationTime(const String&) const;
  10139. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10140. Variant GetAttributeDefault(const String&) const;
  10141. float GetHeight(const Vector3&) const;
  10142. bool GetInterceptNetworkUpdate(const String&) const;
  10143. Vector3 GetNormal(const Vector3&) const;
  10144. TerrainPatch GetPatch(int, int) const;
  10145. bool Load(File, bool = false);
  10146. bool Load(VectorBuffer&, bool = false);
  10147. bool LoadXML(const XMLElement&, bool = false);
  10148. void MarkNetworkUpdate() const;
  10149. void Remove();
  10150. void RemoveAttributeAnimation(const String&);
  10151. void RemoveInstanceDefault();
  10152. void RemoveObjectAnimation();
  10153. void ResetToDefault();
  10154. bool Save(File) const;
  10155. bool Save(VectorBuffer&) const;
  10156. bool SaveXML(XMLElement&) const;
  10157. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10158. void SetAnimationTime(float);
  10159. bool SetAttribute(const String&, const Variant&);
  10160. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10161. void SetAttributeAnimationSpeed(const String&, float);
  10162. void SetAttributeAnimationTime(const String&, float);
  10163. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10164. void SetInterceptNetworkUpdate(const String&, bool);
  10165. IntVector2 WorldToHeightMap(const Vector3&) const;
  10166. // Properties:
  10167. bool animationEnabled;
  10168. /* readonly */
  10169. Array<Variant> attributeDefaults;
  10170. /* readonly */
  10171. Array<AttributeInfo> attributeInfos;
  10172. Array<Variant> attributes;
  10173. bool castShadows;
  10174. /* readonly */
  10175. String category;
  10176. float drawDistance;
  10177. bool enabled;
  10178. /* readonly */
  10179. bool enabledEffective;
  10180. Image heightMap;
  10181. /* readonly */
  10182. uint id;
  10183. uint lightMask;
  10184. float lodBias;
  10185. Material material;
  10186. uint maxLights;
  10187. uint maxLodLevels;
  10188. /* readonly */
  10189. Node node;
  10190. /* readonly */
  10191. uint numAttributes;
  10192. /* readonly */
  10193. IntVector2 numPatches;
  10194. /* readonly */
  10195. IntVector2 numVertices;
  10196. ObjectAnimation objectAnimation;
  10197. bool occludee;
  10198. bool occluder;
  10199. uint occlusionLodLevel;
  10200. int patchSize;
  10201. /* readonly */
  10202. Array<TerrainPatch> patches;
  10203. /* readonly */
  10204. int refs;
  10205. float shadowDistance;
  10206. uint shadowMask;
  10207. bool smoothing;
  10208. Vector3 spacing;
  10209. bool temporary;
  10210. /* readonly */
  10211. StringHash type;
  10212. /* readonly */
  10213. String typeName;
  10214. uint viewMask;
  10215. /* readonly */
  10216. int weakRefs;
  10217. uint zoneMask;
  10218. };
  10219. class TerrainPatch
  10220. {
  10221. // Methods:
  10222. void ApplyAttributes();
  10223. void DrawDebugGeometry(DebugRenderer, bool);
  10224. Variant GetAttribute(const String&) const;
  10225. ValueAnimation GetAttributeAnimation(const String&) const;
  10226. float GetAttributeAnimationSpeed(const String&) const;
  10227. float GetAttributeAnimationTime(const String&) const;
  10228. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10229. Variant GetAttributeDefault(const String&) const;
  10230. bool GetInterceptNetworkUpdate(const String&) const;
  10231. bool IsInView(Camera) const;
  10232. bool Load(File, bool = false);
  10233. bool Load(VectorBuffer&, bool = false);
  10234. bool LoadXML(const XMLElement&, bool = false);
  10235. void MarkNetworkUpdate() const;
  10236. void Remove();
  10237. void RemoveAttributeAnimation(const String&);
  10238. void RemoveInstanceDefault();
  10239. void RemoveObjectAnimation();
  10240. void ResetToDefault();
  10241. bool Save(File) const;
  10242. bool Save(VectorBuffer&) const;
  10243. bool SaveXML(XMLElement&) const;
  10244. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10245. void SetAnimationTime(float);
  10246. bool SetAttribute(const String&, const Variant&);
  10247. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10248. void SetAttributeAnimationSpeed(const String&, float);
  10249. void SetAttributeAnimationTime(const String&, float);
  10250. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10251. void SetInterceptNetworkUpdate(const String&, bool);
  10252. // Properties:
  10253. bool animationEnabled;
  10254. /* readonly */
  10255. Array<Variant> attributeDefaults;
  10256. /* readonly */
  10257. Array<AttributeInfo> attributeInfos;
  10258. Array<Variant> attributes;
  10259. /* readonly */
  10260. BoundingBox boundingBox;
  10261. bool castShadows;
  10262. /* readonly */
  10263. String category;
  10264. float drawDistance;
  10265. bool enabled;
  10266. /* readonly */
  10267. bool enabledEffective;
  10268. /* readonly */
  10269. uint id;
  10270. /* readonly */
  10271. bool inView;
  10272. uint lightMask;
  10273. float lodBias;
  10274. uint maxLights;
  10275. /* readonly */
  10276. Node node;
  10277. /* readonly */
  10278. uint numAttributes;
  10279. ObjectAnimation objectAnimation;
  10280. bool occludee;
  10281. bool occluder;
  10282. /* readonly */
  10283. int refs;
  10284. float shadowDistance;
  10285. uint shadowMask;
  10286. bool temporary;
  10287. /* readonly */
  10288. StringHash type;
  10289. /* readonly */
  10290. String typeName;
  10291. uint viewMask;
  10292. /* readonly */
  10293. int weakRefs;
  10294. /* readonly */
  10295. BoundingBox worldBoundingBox;
  10296. uint zoneMask;
  10297. };
  10298. class Text
  10299. {
  10300. // Methods:
  10301. void AddChild(UIElement);
  10302. void ApplyAttributes();
  10303. void BringToFront();
  10304. void ClearSelection();
  10305. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10306. void DisableLayoutUpdate();
  10307. IntVector2 ElementToScreen(const IntVector2&);
  10308. void EnableLayoutUpdate();
  10309. uint FindChild(UIElement) const;
  10310. Variant GetAttribute(const String&) const;
  10311. ValueAnimation GetAttributeAnimation(const String&) const;
  10312. float GetAttributeAnimationSpeed(const String&) const;
  10313. float GetAttributeAnimationTime(const String&) const;
  10314. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10315. Variant GetAttributeDefault(const String&) const;
  10316. UIElement GetChild(const String&, bool = false) const;
  10317. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10318. Array<UIElement> GetChildren(bool = false) const;
  10319. UIElement GetElementEventSender() const;
  10320. bool GetInterceptNetworkUpdate(const String&) const;
  10321. uint GetNumChildren(bool) const;
  10322. void InsertChild(uint, UIElement);
  10323. bool IsInside(IntVector2, bool);
  10324. bool IsInsideCombined(IntVector2, bool);
  10325. bool Load(File, bool = false);
  10326. bool Load(VectorBuffer&, bool = false);
  10327. bool LoadChildXML(XMLFile, XMLFile = null);
  10328. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10329. bool LoadXML(File);
  10330. bool LoadXML(VectorBuffer&);
  10331. bool LoadXML(XMLFile, XMLFile);
  10332. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10333. bool LoadXML(const XMLElement&, bool = false);
  10334. void MarkNetworkUpdate() const;
  10335. void Remove();
  10336. void RemoveAllChildren();
  10337. void RemoveAttributeAnimation(const String&);
  10338. void RemoveChild(UIElement, uint = 0);
  10339. void RemoveChild(uint);
  10340. void RemoveInstanceDefault();
  10341. void RemoveObjectAnimation();
  10342. void ResetDeepEnabled();
  10343. void ResetToDefault();
  10344. bool Save(File) const;
  10345. bool Save(VectorBuffer&) const;
  10346. bool SaveXML(File, const String& = "\t");
  10347. bool SaveXML(VectorBuffer&, const String& = "\t");
  10348. bool SaveXML(XMLElement&) const;
  10349. IntVector2 ScreenToElement(const IntVector2&);
  10350. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10351. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10352. void SetAnimationTime(float);
  10353. bool SetAttribute(const String&, const Variant&);
  10354. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10355. void SetAttributeAnimationSpeed(const String&, float);
  10356. void SetAttributeAnimationTime(const String&, float);
  10357. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10358. void SetDeepEnabled(bool);
  10359. void SetEnabledRecursive(bool);
  10360. void SetFixedHeight(int);
  10361. void SetFixedSize(int, int);
  10362. void SetFixedWidth(int);
  10363. bool SetFont(Font, int);
  10364. bool SetFont(const String&, int);
  10365. void SetInterceptNetworkUpdate(const String&, bool);
  10366. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10367. void SetMaxSize(int, int);
  10368. void SetMinSize(int, int);
  10369. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10370. void SetPosition(int, int);
  10371. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10372. void SetSize(int, int);
  10373. bool SetStyle(const String&, XMLFile = null);
  10374. bool SetStyle(const XMLElement&);
  10375. bool SetStyleAuto(XMLFile = null);
  10376. void UpdateLayout();
  10377. const Variant& GetVar(const StringHash&);
  10378. // Properties:
  10379. bool animationEnabled;
  10380. /* readonly */
  10381. Array<Variant> attributeDefaults;
  10382. /* readonly */
  10383. Array<AttributeInfo> attributeInfos;
  10384. Array<Variant> attributes;
  10385. bool autoLocalizable;
  10386. bool bringToBack;
  10387. bool bringToFront;
  10388. /* readonly */
  10389. String category;
  10390. /* readonly */
  10391. Array<IntVector2> charPositions;
  10392. /* readonly */
  10393. Array<IntVector2> charSizes;
  10394. /* readonly */
  10395. IntVector2 childOffset;
  10396. /* readonly */
  10397. Array<UIElement> children;
  10398. IntRect clipBorder;
  10399. bool clipChildren;
  10400. /* writeonly */
  10401. Color color;
  10402. /* readonly */
  10403. bool colorGradient;
  10404. Array<Color> colors;
  10405. /* readonly */
  10406. IntRect combinedScreenRect;
  10407. XMLFile defaultStyle;
  10408. /* readonly */
  10409. float derivedOpacity;
  10410. /* readonly */
  10411. uint dragButtonCombo;
  10412. /* readonly */
  10413. int dragButtonCount;
  10414. uint dragDropMode;
  10415. bool editable;
  10416. Color effectColor;
  10417. bool elementEventSender;
  10418. bool enabled;
  10419. /* readonly */
  10420. bool enabledSelf;
  10421. /* readonly */
  10422. bool fixedHeight;
  10423. /* readonly */
  10424. bool fixedSize;
  10425. /* readonly */
  10426. bool fixedWidth;
  10427. bool focus;
  10428. FocusMode focusMode;
  10429. /* readonly */
  10430. Font font;
  10431. /* readonly */
  10432. int fontSize;
  10433. int height;
  10434. HorizontalAlignment horizontalAlignment;
  10435. Color hoverColor;
  10436. /* readonly */
  10437. bool hovering;
  10438. int indent;
  10439. int indentSpacing;
  10440. /* readonly */
  10441. int indentWidth;
  10442. bool internal;
  10443. IntRect layoutBorder;
  10444. Vector2 layoutFlexScale;
  10445. LayoutMode layoutMode;
  10446. int layoutSpacing;
  10447. int maxHeight;
  10448. IntVector2 maxSize;
  10449. int maxWidth;
  10450. int minHeight;
  10451. IntVector2 minSize;
  10452. int minWidth;
  10453. String name;
  10454. /* readonly */
  10455. uint numAllChildren;
  10456. /* readonly */
  10457. uint numAttributes;
  10458. /* readonly */
  10459. uint numChars;
  10460. /* readonly */
  10461. uint numChildren;
  10462. /* readonly */
  10463. uint numRows;
  10464. ObjectAnimation objectAnimation;
  10465. float opacity;
  10466. UIElement parent;
  10467. IntVector2 position;
  10468. int priority;
  10469. /* readonly */
  10470. int refs;
  10471. /* readonly */
  10472. UIElement root;
  10473. /* readonly */
  10474. int rowHeight;
  10475. float rowSpacing;
  10476. /* readonly */
  10477. Array<int> rowWidths;
  10478. /* readonly */
  10479. IntVector2 screenPosition;
  10480. bool selected;
  10481. Color selectionColor;
  10482. /* readonly */
  10483. uint selectionLength;
  10484. /* readonly */
  10485. uint selectionStart;
  10486. IntVector2 size;
  10487. bool sortChildren;
  10488. String style;
  10489. bool temporary;
  10490. String text;
  10491. HorizontalAlignment textAlignment;
  10492. TextEffect textEffect;
  10493. TraversalMode traversalMode;
  10494. /* readonly */
  10495. StringHash type;
  10496. /* readonly */
  10497. String typeName;
  10498. bool useDerivedOpacity;
  10499. /* readonly */
  10500. VariantMap vars;
  10501. VerticalAlignment verticalAlignment;
  10502. bool visible;
  10503. /* readonly */
  10504. bool visibleEffective;
  10505. /* readonly */
  10506. int weakRefs;
  10507. int width;
  10508. bool wordwrap;
  10509. };
  10510. class Text3D
  10511. {
  10512. // Methods:
  10513. void ApplyAttributes();
  10514. void DrawDebugGeometry(DebugRenderer, bool);
  10515. Variant GetAttribute(const String&) const;
  10516. ValueAnimation GetAttributeAnimation(const String&) const;
  10517. float GetAttributeAnimationSpeed(const String&) const;
  10518. float GetAttributeAnimationTime(const String&) const;
  10519. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10520. Variant GetAttributeDefault(const String&) const;
  10521. bool GetInterceptNetworkUpdate(const String&) const;
  10522. bool IsInView(Camera) const;
  10523. bool Load(File, bool = false);
  10524. bool Load(VectorBuffer&, bool = false);
  10525. bool LoadXML(const XMLElement&, bool = false);
  10526. void MarkNetworkUpdate() const;
  10527. void Remove();
  10528. void RemoveAttributeAnimation(const String&);
  10529. void RemoveInstanceDefault();
  10530. void RemoveObjectAnimation();
  10531. void ResetToDefault();
  10532. bool Save(File) const;
  10533. bool Save(VectorBuffer&) const;
  10534. bool SaveXML(XMLElement&) const;
  10535. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10536. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10537. void SetAnimationTime(float);
  10538. bool SetAttribute(const String&, const Variant&);
  10539. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10540. void SetAttributeAnimationSpeed(const String&, float);
  10541. void SetAttributeAnimationTime(const String&, float);
  10542. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10543. bool SetFont(Font, int);
  10544. bool SetFont(const String&, int);
  10545. void SetInterceptNetworkUpdate(const String&, bool);
  10546. // Properties:
  10547. bool animationEnabled;
  10548. /* readonly */
  10549. Array<Variant> attributeDefaults;
  10550. /* readonly */
  10551. Array<AttributeInfo> attributeInfos;
  10552. Array<Variant> attributes;
  10553. /* readonly */
  10554. BoundingBox boundingBox;
  10555. bool castShadows;
  10556. /* readonly */
  10557. String category;
  10558. /* readonly */
  10559. Array<IntVector2> charPositions;
  10560. /* readonly */
  10561. Array<IntVector2> charSizes;
  10562. /* writeonly */
  10563. Color color;
  10564. Array<Color> colors;
  10565. float drawDistance;
  10566. Color effectColor;
  10567. float effectDepthBias;
  10568. bool enabled;
  10569. /* readonly */
  10570. bool enabledEffective;
  10571. FaceCameraMode faceCameraMode;
  10572. /* readonly */
  10573. Font font;
  10574. /* readonly */
  10575. int fontSize;
  10576. HorizontalAlignment horizontalAlignment;
  10577. /* readonly */
  10578. uint id;
  10579. /* readonly */
  10580. bool inView;
  10581. uint lightMask;
  10582. float lodBias;
  10583. Material material;
  10584. uint maxLights;
  10585. /* readonly */
  10586. Node node;
  10587. /* readonly */
  10588. uint numAttributes;
  10589. /* readonly */
  10590. uint numChars;
  10591. /* readonly */
  10592. uint numRows;
  10593. ObjectAnimation objectAnimation;
  10594. bool occludee;
  10595. bool occluder;
  10596. float opacity;
  10597. /* readonly */
  10598. int refs;
  10599. /* readonly */
  10600. int rowHeight;
  10601. float rowSpacing;
  10602. /* readonly */
  10603. Array<int> rowWidths;
  10604. float shadowDistance;
  10605. uint shadowMask;
  10606. bool temporary;
  10607. String text;
  10608. HorizontalAlignment textAlignment;
  10609. TextEffect textEffect;
  10610. /* readonly */
  10611. StringHash type;
  10612. /* readonly */
  10613. String typeName;
  10614. VerticalAlignment verticalAlignment;
  10615. uint viewMask;
  10616. /* readonly */
  10617. int weakRefs;
  10618. int width;
  10619. bool wordwrap;
  10620. /* readonly */
  10621. BoundingBox worldBoundingBox;
  10622. uint zoneMask;
  10623. };
  10624. class Texture
  10625. {
  10626. // Methods:
  10627. void ClearDataLost();
  10628. bool Load(File);
  10629. bool Load(VectorBuffer&);
  10630. bool Save(File) const;
  10631. bool Save(VectorBuffer&) const;
  10632. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10633. void SetNumLevels(uint);
  10634. // Properties:
  10635. Array<TextureAddressMode> addressMode;
  10636. Texture backupTexture;
  10637. Color borderColor;
  10638. /* readonly */
  10639. String category;
  10640. /* readonly */
  10641. uint components;
  10642. /* readonly */
  10643. bool compressed;
  10644. /* readonly */
  10645. bool dataLost;
  10646. TextureFilterMode filterMode;
  10647. /* readonly */
  10648. uint format;
  10649. /* readonly */
  10650. int height;
  10651. /* readonly */
  10652. Array<int> levelHeight;
  10653. /* readonly */
  10654. Array<int> levelWidth;
  10655. /* readonly */
  10656. uint levels;
  10657. /* readonly */
  10658. uint memoryUse;
  10659. Array<int> mipsToSkip;
  10660. String name;
  10661. /* readonly */
  10662. int refs;
  10663. bool sRGB;
  10664. /* readonly */
  10665. StringHash type;
  10666. /* readonly */
  10667. String typeName;
  10668. /* readonly */
  10669. TextureUsage usage;
  10670. /* readonly */
  10671. uint useTimer;
  10672. /* readonly */
  10673. int weakRefs;
  10674. /* readonly */
  10675. int width;
  10676. };
  10677. class Texture2D
  10678. {
  10679. // Methods:
  10680. void ClearDataLost();
  10681. Image GetImage() const;
  10682. bool Load(File);
  10683. bool Load(VectorBuffer&);
  10684. bool Save(File) const;
  10685. bool Save(VectorBuffer&) const;
  10686. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10687. bool SetData(Image, bool = false);
  10688. void SetNumLevels(uint);
  10689. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10690. // Properties:
  10691. Array<TextureAddressMode> addressMode;
  10692. Texture backupTexture;
  10693. Color borderColor;
  10694. /* readonly */
  10695. String category;
  10696. /* readonly */
  10697. uint components;
  10698. /* readonly */
  10699. bool compressed;
  10700. /* readonly */
  10701. bool dataLost;
  10702. TextureFilterMode filterMode;
  10703. /* readonly */
  10704. uint format;
  10705. /* readonly */
  10706. int height;
  10707. /* readonly */
  10708. Array<int> levelHeight;
  10709. /* readonly */
  10710. Array<int> levelWidth;
  10711. /* readonly */
  10712. uint levels;
  10713. /* readonly */
  10714. uint memoryUse;
  10715. Array<int> mipsToSkip;
  10716. String name;
  10717. /* readonly */
  10718. int refs;
  10719. /* readonly */
  10720. RenderSurface renderSurface;
  10721. bool sRGB;
  10722. /* readonly */
  10723. StringHash type;
  10724. /* readonly */
  10725. String typeName;
  10726. /* readonly */
  10727. TextureUsage usage;
  10728. /* readonly */
  10729. uint useTimer;
  10730. /* readonly */
  10731. int weakRefs;
  10732. /* readonly */
  10733. int width;
  10734. };
  10735. class Texture3D
  10736. {
  10737. // Methods:
  10738. void ClearDataLost();
  10739. bool Load(File);
  10740. bool Load(VectorBuffer&);
  10741. bool Save(File) const;
  10742. bool Save(VectorBuffer&) const;
  10743. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10744. bool SetData(Image, bool = false);
  10745. void SetNumLevels(uint);
  10746. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10747. // Properties:
  10748. Array<TextureAddressMode> addressMode;
  10749. Texture backupTexture;
  10750. Color borderColor;
  10751. /* readonly */
  10752. String category;
  10753. /* readonly */
  10754. uint components;
  10755. /* readonly */
  10756. bool compressed;
  10757. /* readonly */
  10758. bool dataLost;
  10759. TextureFilterMode filterMode;
  10760. /* readonly */
  10761. uint format;
  10762. /* readonly */
  10763. int height;
  10764. /* readonly */
  10765. Array<int> levelHeight;
  10766. /* readonly */
  10767. Array<int> levelWidth;
  10768. /* readonly */
  10769. uint levels;
  10770. /* readonly */
  10771. uint memoryUse;
  10772. Array<int> mipsToSkip;
  10773. String name;
  10774. /* readonly */
  10775. int refs;
  10776. /* readonly */
  10777. RenderSurface renderSurface;
  10778. bool sRGB;
  10779. /* readonly */
  10780. StringHash type;
  10781. /* readonly */
  10782. String typeName;
  10783. /* readonly */
  10784. TextureUsage usage;
  10785. /* readonly */
  10786. uint useTimer;
  10787. /* readonly */
  10788. int weakRefs;
  10789. /* readonly */
  10790. int width;
  10791. };
  10792. class TextureCube
  10793. {
  10794. // Methods:
  10795. void ClearDataLost();
  10796. bool Load(File);
  10797. bool Load(VectorBuffer&);
  10798. bool Save(File) const;
  10799. bool Save(VectorBuffer&) const;
  10800. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10801. bool SetData(CubeMapFace, Image, bool = false);
  10802. void SetNumLevels(uint);
  10803. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  10804. // Properties:
  10805. Array<TextureAddressMode> addressMode;
  10806. Texture backupTexture;
  10807. Color borderColor;
  10808. /* readonly */
  10809. String category;
  10810. /* readonly */
  10811. uint components;
  10812. /* readonly */
  10813. bool compressed;
  10814. /* readonly */
  10815. bool dataLost;
  10816. TextureFilterMode filterMode;
  10817. /* readonly */
  10818. uint format;
  10819. /* readonly */
  10820. int height;
  10821. /* readonly */
  10822. Array<int> levelHeight;
  10823. /* readonly */
  10824. Array<int> levelWidth;
  10825. /* readonly */
  10826. uint levels;
  10827. /* readonly */
  10828. uint memoryUse;
  10829. Array<int> mipsToSkip;
  10830. String name;
  10831. /* readonly */
  10832. int refs;
  10833. /* readonly */
  10834. Array<RenderSurface> renderSurfaces;
  10835. bool sRGB;
  10836. /* readonly */
  10837. StringHash type;
  10838. /* readonly */
  10839. String typeName;
  10840. /* readonly */
  10841. TextureUsage usage;
  10842. /* readonly */
  10843. uint useTimer;
  10844. /* readonly */
  10845. int weakRefs;
  10846. /* readonly */
  10847. int width;
  10848. };
  10849. class TextureFrame
  10850. {
  10851. // Properties:
  10852. float time;
  10853. Rect uv;
  10854. };
  10855. class Tile2D
  10856. {
  10857. // Methods:
  10858. bool HasProperty(const String&) const;
  10859. const String& GetProperty(const String&) const;
  10860. // Properties:
  10861. /* readonly */
  10862. int gid;
  10863. /* readonly */
  10864. int refs;
  10865. /* readonly */
  10866. Sprite2D sprite;
  10867. /* readonly */
  10868. int weakRefs;
  10869. };
  10870. class TileMap2D
  10871. {
  10872. // Methods:
  10873. void ApplyAttributes();
  10874. void DrawDebugGeometry(DebugRenderer, bool);
  10875. Variant GetAttribute(const String&) const;
  10876. ValueAnimation GetAttributeAnimation(const String&) const;
  10877. float GetAttributeAnimationSpeed(const String&) const;
  10878. float GetAttributeAnimationTime(const String&) const;
  10879. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10880. Variant GetAttributeDefault(const String&) const;
  10881. bool GetInterceptNetworkUpdate(const String&) const;
  10882. TileMapLayer2D GetLayer(uint) const;
  10883. bool Load(File, bool = false);
  10884. bool Load(VectorBuffer&, bool = false);
  10885. bool LoadXML(const XMLElement&, bool = false);
  10886. void MarkNetworkUpdate() const;
  10887. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  10888. void Remove();
  10889. void RemoveAttributeAnimation(const String&);
  10890. void RemoveInstanceDefault();
  10891. void RemoveObjectAnimation();
  10892. void ResetToDefault();
  10893. bool Save(File) const;
  10894. bool Save(VectorBuffer&) const;
  10895. bool SaveXML(XMLElement&) const;
  10896. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10897. void SetAnimationTime(float);
  10898. bool SetAttribute(const String&, const Variant&);
  10899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10900. void SetAttributeAnimationSpeed(const String&, float);
  10901. void SetAttributeAnimationTime(const String&, float);
  10902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10903. void SetInterceptNetworkUpdate(const String&, bool);
  10904. Vector2 TileIndexToPosition(int, int) const;
  10905. // Properties:
  10906. bool animationEnabled;
  10907. /* readonly */
  10908. Array<Variant> attributeDefaults;
  10909. /* readonly */
  10910. Array<AttributeInfo> attributeInfos;
  10911. Array<Variant> attributes;
  10912. /* readonly */
  10913. String category;
  10914. bool enabled;
  10915. /* readonly */
  10916. bool enabledEffective;
  10917. /* readonly */
  10918. uint id;
  10919. /* readonly */
  10920. TileMapInfo2D info;
  10921. /* readonly */
  10922. Node node;
  10923. /* readonly */
  10924. uint numAttributes;
  10925. /* readonly */
  10926. uint numLayers;
  10927. ObjectAnimation objectAnimation;
  10928. /* readonly */
  10929. int refs;
  10930. bool temporary;
  10931. TmxFile2D tmxFile;
  10932. /* readonly */
  10933. StringHash type;
  10934. /* readonly */
  10935. String typeName;
  10936. /* readonly */
  10937. int weakRefs;
  10938. };
  10939. class TileMapInfo2D
  10940. {
  10941. // Properties:
  10942. int height;
  10943. /* readonly */
  10944. float mapHeight;
  10945. /* readonly */
  10946. float mapWidth;
  10947. Orientation2D orientation;
  10948. float tileHeight;
  10949. float tileWidth;
  10950. int width;
  10951. };
  10952. class TileMapLayer2D
  10953. {
  10954. // Methods:
  10955. void ApplyAttributes();
  10956. void DrawDebugGeometry(DebugRenderer, bool);
  10957. Variant GetAttribute(const String&) const;
  10958. ValueAnimation GetAttributeAnimation(const String&) const;
  10959. float GetAttributeAnimationSpeed(const String&) const;
  10960. float GetAttributeAnimationTime(const String&) const;
  10961. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10962. Variant GetAttributeDefault(const String&) const;
  10963. bool GetInterceptNetworkUpdate(const String&) const;
  10964. TileMapObject2D GetObject(uint) const;
  10965. Node GetObjectNode(uint) const;
  10966. Tile2D GetTile(int, int) const;
  10967. Node GetTileNode(int, int) const;
  10968. bool HasProperty(const String&) const;
  10969. bool Load(File, bool = false);
  10970. bool Load(VectorBuffer&, bool = false);
  10971. bool LoadXML(const XMLElement&, bool = false);
  10972. void MarkNetworkUpdate() const;
  10973. void Remove();
  10974. void RemoveAttributeAnimation(const String&);
  10975. void RemoveInstanceDefault();
  10976. void RemoveObjectAnimation();
  10977. void ResetToDefault();
  10978. bool Save(File) const;
  10979. bool Save(VectorBuffer&) const;
  10980. bool SaveXML(XMLElement&) const;
  10981. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10982. void SetAnimationTime(float);
  10983. bool SetAttribute(const String&, const Variant&);
  10984. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10985. void SetAttributeAnimationSpeed(const String&, float);
  10986. void SetAttributeAnimationTime(const String&, float);
  10987. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10988. void SetInterceptNetworkUpdate(const String&, bool);
  10989. const String& GetProperty(const String&) const;
  10990. // Properties:
  10991. bool animationEnabled;
  10992. /* readonly */
  10993. Array<Variant> attributeDefaults;
  10994. /* readonly */
  10995. Array<AttributeInfo> attributeInfos;
  10996. Array<Variant> attributes;
  10997. /* readonly */
  10998. String category;
  10999. int drawOrder;
  11000. bool enabled;
  11001. /* readonly */
  11002. bool enabledEffective;
  11003. /* readonly */
  11004. int height;
  11005. /* readonly */
  11006. uint id;
  11007. /* readonly */
  11008. Node imageNode;
  11009. /* readonly */
  11010. TileMapLayerType2D layerType;
  11011. /* readonly */
  11012. Node node;
  11013. /* readonly */
  11014. uint numAttributes;
  11015. /* readonly */
  11016. uint numObjects;
  11017. ObjectAnimation objectAnimation;
  11018. /* readonly */
  11019. int refs;
  11020. bool temporary;
  11021. /* readonly */
  11022. StringHash type;
  11023. /* readonly */
  11024. String typeName;
  11025. bool visible;
  11026. /* readonly */
  11027. int weakRefs;
  11028. /* readonly */
  11029. int width;
  11030. };
  11031. class TileMapObject2D
  11032. {
  11033. // Methods:
  11034. bool HasProperty(const String&) const;
  11035. const String& GetProperty(const String&) const;
  11036. const Vector2& GetPoint(uint) const;
  11037. // Properties:
  11038. /* readonly */
  11039. String name;
  11040. /* readonly */
  11041. uint numPoints;
  11042. /* readonly */
  11043. TileObjectType2D objectType;
  11044. /* readonly */
  11045. Vector2 position;
  11046. /* readonly */
  11047. int refs;
  11048. /* readonly */
  11049. Vector2 size;
  11050. /* readonly */
  11051. int tileGid;
  11052. /* readonly */
  11053. Sprite2D tileSprite;
  11054. /* readonly */
  11055. String type;
  11056. /* readonly */
  11057. int weakRefs;
  11058. };
  11059. class Time
  11060. {
  11061. // Methods:
  11062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11063. // Properties:
  11064. /* readonly */
  11065. String category;
  11066. /* readonly */
  11067. float elapsedTime;
  11068. /* readonly */
  11069. uint frameNumber;
  11070. /* readonly */
  11071. int refs;
  11072. /* readonly */
  11073. uint systemTime;
  11074. /* readonly */
  11075. uint timeSinceEpoch;
  11076. /* readonly */
  11077. String timeStamp;
  11078. /* readonly */
  11079. float timeStep;
  11080. /* readonly */
  11081. StringHash type;
  11082. /* readonly */
  11083. String typeName;
  11084. /* readonly */
  11085. int weakRefs;
  11086. };
  11087. class Timer
  11088. {
  11089. // Methods:
  11090. uint GetMSec(bool);
  11091. void Reset();
  11092. };
  11093. class TmxFile2D
  11094. {
  11095. // Methods:
  11096. bool Load(File);
  11097. bool Load(VectorBuffer&);
  11098. bool Save(File) const;
  11099. bool Save(VectorBuffer&) const;
  11100. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11101. // Properties:
  11102. /* readonly */
  11103. String category;
  11104. /* readonly */
  11105. uint memoryUse;
  11106. String name;
  11107. /* readonly */
  11108. int refs;
  11109. /* readonly */
  11110. StringHash type;
  11111. /* readonly */
  11112. String typeName;
  11113. /* readonly */
  11114. uint useTimer;
  11115. /* readonly */
  11116. int weakRefs;
  11117. };
  11118. class ToolTip
  11119. {
  11120. // Methods:
  11121. void AddChild(UIElement);
  11122. void ApplyAttributes();
  11123. void BringToFront();
  11124. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11125. void DisableLayoutUpdate();
  11126. IntVector2 ElementToScreen(const IntVector2&);
  11127. void EnableLayoutUpdate();
  11128. uint FindChild(UIElement) const;
  11129. Variant GetAttribute(const String&) const;
  11130. ValueAnimation GetAttributeAnimation(const String&) const;
  11131. float GetAttributeAnimationSpeed(const String&) const;
  11132. float GetAttributeAnimationTime(const String&) const;
  11133. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11134. Variant GetAttributeDefault(const String&) const;
  11135. UIElement GetChild(const String&, bool = false) const;
  11136. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11137. Array<UIElement> GetChildren(bool = false) const;
  11138. UIElement GetElementEventSender() const;
  11139. bool GetInterceptNetworkUpdate(const String&) const;
  11140. uint GetNumChildren(bool) const;
  11141. void InsertChild(uint, UIElement);
  11142. bool IsInside(IntVector2, bool);
  11143. bool IsInsideCombined(IntVector2, bool);
  11144. bool Load(File, bool = false);
  11145. bool Load(VectorBuffer&, bool = false);
  11146. bool LoadChildXML(XMLFile, XMLFile = null);
  11147. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11148. bool LoadXML(File);
  11149. bool LoadXML(VectorBuffer&);
  11150. bool LoadXML(XMLFile, XMLFile);
  11151. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11152. bool LoadXML(const XMLElement&, bool = false);
  11153. void MarkNetworkUpdate() const;
  11154. void Remove();
  11155. void RemoveAllChildren();
  11156. void RemoveAttributeAnimation(const String&);
  11157. void RemoveChild(UIElement, uint = 0);
  11158. void RemoveChild(uint);
  11159. void RemoveInstanceDefault();
  11160. void RemoveObjectAnimation();
  11161. void ResetDeepEnabled();
  11162. void ResetToDefault();
  11163. bool Save(File) const;
  11164. bool Save(VectorBuffer&) const;
  11165. bool SaveXML(File, const String& = "\t");
  11166. bool SaveXML(VectorBuffer&, const String& = "\t");
  11167. bool SaveXML(XMLElement&) const;
  11168. IntVector2 ScreenToElement(const IntVector2&);
  11169. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11170. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11171. void SetAnimationTime(float);
  11172. bool SetAttribute(const String&, const Variant&);
  11173. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11174. void SetAttributeAnimationSpeed(const String&, float);
  11175. void SetAttributeAnimationTime(const String&, float);
  11176. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11177. void SetDeepEnabled(bool);
  11178. void SetEnabledRecursive(bool);
  11179. void SetFixedHeight(int);
  11180. void SetFixedSize(int, int);
  11181. void SetFixedWidth(int);
  11182. void SetInterceptNetworkUpdate(const String&, bool);
  11183. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11184. void SetMaxSize(int, int);
  11185. void SetMinSize(int, int);
  11186. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11187. void SetPosition(int, int);
  11188. void SetSize(int, int);
  11189. bool SetStyle(const String&, XMLFile = null);
  11190. bool SetStyle(const XMLElement&);
  11191. bool SetStyleAuto(XMLFile = null);
  11192. void UpdateLayout();
  11193. const Variant& GetVar(const StringHash&);
  11194. // Properties:
  11195. bool animationEnabled;
  11196. /* readonly */
  11197. Array<Variant> attributeDefaults;
  11198. /* readonly */
  11199. Array<AttributeInfo> attributeInfos;
  11200. Array<Variant> attributes;
  11201. bool bringToBack;
  11202. bool bringToFront;
  11203. /* readonly */
  11204. String category;
  11205. /* readonly */
  11206. IntVector2 childOffset;
  11207. /* readonly */
  11208. Array<UIElement> children;
  11209. IntRect clipBorder;
  11210. bool clipChildren;
  11211. /* writeonly */
  11212. Color color;
  11213. /* readonly */
  11214. bool colorGradient;
  11215. Array<Color> colors;
  11216. /* readonly */
  11217. IntRect combinedScreenRect;
  11218. XMLFile defaultStyle;
  11219. float delay;
  11220. /* readonly */
  11221. float derivedOpacity;
  11222. /* readonly */
  11223. uint dragButtonCombo;
  11224. /* readonly */
  11225. int dragButtonCount;
  11226. uint dragDropMode;
  11227. bool editable;
  11228. bool elementEventSender;
  11229. bool enabled;
  11230. /* readonly */
  11231. bool enabledSelf;
  11232. /* readonly */
  11233. bool fixedHeight;
  11234. /* readonly */
  11235. bool fixedSize;
  11236. /* readonly */
  11237. bool fixedWidth;
  11238. bool focus;
  11239. FocusMode focusMode;
  11240. int height;
  11241. HorizontalAlignment horizontalAlignment;
  11242. /* readonly */
  11243. bool hovering;
  11244. int indent;
  11245. int indentSpacing;
  11246. /* readonly */
  11247. int indentWidth;
  11248. bool internal;
  11249. IntRect layoutBorder;
  11250. Vector2 layoutFlexScale;
  11251. LayoutMode layoutMode;
  11252. int layoutSpacing;
  11253. int maxHeight;
  11254. IntVector2 maxSize;
  11255. int maxWidth;
  11256. int minHeight;
  11257. IntVector2 minSize;
  11258. int minWidth;
  11259. String name;
  11260. /* readonly */
  11261. uint numAllChildren;
  11262. /* readonly */
  11263. uint numAttributes;
  11264. /* readonly */
  11265. uint numChildren;
  11266. ObjectAnimation objectAnimation;
  11267. float opacity;
  11268. UIElement parent;
  11269. IntVector2 position;
  11270. int priority;
  11271. /* readonly */
  11272. int refs;
  11273. /* readonly */
  11274. UIElement root;
  11275. /* readonly */
  11276. IntVector2 screenPosition;
  11277. bool selected;
  11278. IntVector2 size;
  11279. bool sortChildren;
  11280. String style;
  11281. bool temporary;
  11282. TraversalMode traversalMode;
  11283. /* readonly */
  11284. StringHash type;
  11285. /* readonly */
  11286. String typeName;
  11287. bool useDerivedOpacity;
  11288. /* readonly */
  11289. VariantMap vars;
  11290. VerticalAlignment verticalAlignment;
  11291. bool visible;
  11292. /* readonly */
  11293. bool visibleEffective;
  11294. /* readonly */
  11295. int weakRefs;
  11296. int width;
  11297. };
  11298. class TouchState
  11299. {
  11300. // Properties:
  11301. IntVector2 delta;
  11302. IntVector2 lastPosition;
  11303. IntVector2 position;
  11304. float pressure;
  11305. int touchID;
  11306. /* readonly */
  11307. UIElement touchedElement;
  11308. };
  11309. class UI
  11310. {
  11311. // Methods:
  11312. void Clear();
  11313. void DebugDraw(UIElement);
  11314. UIElement GetElementAt(const IntVector2&, bool = true);
  11315. UIElement GetElementAt(int, int, bool = true);
  11316. bool HasModalElement() const;
  11317. bool IsDragging() const;
  11318. UIElement LoadLayout(File);
  11319. UIElement LoadLayout(File, XMLFile);
  11320. UIElement LoadLayout(VectorBuffer&);
  11321. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11322. UIElement LoadLayout(XMLFile);
  11323. UIElement LoadLayout(XMLFile, XMLFile);
  11324. bool SaveLayout(File, UIElement);
  11325. bool SaveLayout(VectorBuffer&, UIElement);
  11326. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11327. void SetFocusElement(UIElement, bool = false);
  11328. const Array<UIElement> GetDragElements();
  11329. // Properties:
  11330. /* readonly */
  11331. String category;
  11332. String clipBoardText;
  11333. Cursor cursor;
  11334. /* readonly */
  11335. IntVector2 cursorPosition;
  11336. float defaultToolTipDelay;
  11337. float doubleClickInterval;
  11338. int dragBeginDistance;
  11339. float dragBeginInterval;
  11340. UIElement focusElement;
  11341. bool forceAutoHint;
  11342. /* readonly */
  11343. UIElement frontElement;
  11344. int maxFontTextureSize;
  11345. /* readonly */
  11346. UIElement modalRoot;
  11347. bool nonFocusedMouseWheel;
  11348. /* readonly */
  11349. int refs;
  11350. /* readonly */
  11351. UIElement root;
  11352. /* readonly */
  11353. StringHash type;
  11354. /* readonly */
  11355. String typeName;
  11356. bool useMutableGlyphs;
  11357. bool useScreenKeyboard;
  11358. bool useSystemClipboard;
  11359. /* readonly */
  11360. int weakRefs;
  11361. };
  11362. class UIElement
  11363. {
  11364. // Methods:
  11365. void AddChild(UIElement);
  11366. void ApplyAttributes();
  11367. void BringToFront();
  11368. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11369. void DisableLayoutUpdate();
  11370. IntVector2 ElementToScreen(const IntVector2&);
  11371. void EnableLayoutUpdate();
  11372. uint FindChild(UIElement) const;
  11373. Variant GetAttribute(const String&) const;
  11374. ValueAnimation GetAttributeAnimation(const String&) const;
  11375. float GetAttributeAnimationSpeed(const String&) const;
  11376. float GetAttributeAnimationTime(const String&) const;
  11377. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11378. Variant GetAttributeDefault(const String&) const;
  11379. UIElement GetChild(const String&, bool = false) const;
  11380. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11381. Array<UIElement> GetChildren(bool = false) const;
  11382. UIElement GetElementEventSender() const;
  11383. bool GetInterceptNetworkUpdate(const String&) const;
  11384. uint GetNumChildren(bool) const;
  11385. void InsertChild(uint, UIElement);
  11386. bool IsInside(IntVector2, bool);
  11387. bool IsInsideCombined(IntVector2, bool);
  11388. bool Load(File, bool = false);
  11389. bool Load(VectorBuffer&, bool = false);
  11390. bool LoadChildXML(XMLFile, XMLFile = null);
  11391. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11392. bool LoadXML(File);
  11393. bool LoadXML(VectorBuffer&);
  11394. bool LoadXML(XMLFile, XMLFile);
  11395. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11396. bool LoadXML(const XMLElement&, bool = false);
  11397. void MarkNetworkUpdate() const;
  11398. void Remove();
  11399. void RemoveAllChildren();
  11400. void RemoveAttributeAnimation(const String&);
  11401. void RemoveChild(UIElement, uint = 0);
  11402. void RemoveChild(uint);
  11403. void RemoveInstanceDefault();
  11404. void RemoveObjectAnimation();
  11405. void ResetDeepEnabled();
  11406. void ResetToDefault();
  11407. bool Save(File) const;
  11408. bool Save(VectorBuffer&) const;
  11409. bool SaveXML(File, const String& = "\t");
  11410. bool SaveXML(VectorBuffer&, const String& = "\t");
  11411. bool SaveXML(XMLElement&) const;
  11412. IntVector2 ScreenToElement(const IntVector2&);
  11413. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11414. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11415. void SetAnimationTime(float);
  11416. bool SetAttribute(const String&, const Variant&);
  11417. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11418. void SetAttributeAnimationSpeed(const String&, float);
  11419. void SetAttributeAnimationTime(const String&, float);
  11420. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11421. void SetDeepEnabled(bool);
  11422. void SetEnabledRecursive(bool);
  11423. void SetFixedHeight(int);
  11424. void SetFixedSize(int, int);
  11425. void SetFixedWidth(int);
  11426. void SetInterceptNetworkUpdate(const String&, bool);
  11427. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11428. void SetMaxSize(int, int);
  11429. void SetMinSize(int, int);
  11430. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11431. void SetPosition(int, int);
  11432. void SetSize(int, int);
  11433. bool SetStyle(const String&, XMLFile = null);
  11434. bool SetStyle(const XMLElement&);
  11435. bool SetStyleAuto(XMLFile = null);
  11436. void UpdateLayout();
  11437. const Variant& GetVar(const StringHash&);
  11438. // Properties:
  11439. bool animationEnabled;
  11440. /* readonly */
  11441. Array<Variant> attributeDefaults;
  11442. /* readonly */
  11443. Array<AttributeInfo> attributeInfos;
  11444. Array<Variant> attributes;
  11445. bool bringToBack;
  11446. bool bringToFront;
  11447. /* readonly */
  11448. String category;
  11449. /* readonly */
  11450. IntVector2 childOffset;
  11451. /* readonly */
  11452. Array<UIElement> children;
  11453. IntRect clipBorder;
  11454. bool clipChildren;
  11455. /* writeonly */
  11456. Color color;
  11457. /* readonly */
  11458. bool colorGradient;
  11459. Array<Color> colors;
  11460. /* readonly */
  11461. IntRect combinedScreenRect;
  11462. XMLFile defaultStyle;
  11463. /* readonly */
  11464. float derivedOpacity;
  11465. /* readonly */
  11466. uint dragButtonCombo;
  11467. /* readonly */
  11468. int dragButtonCount;
  11469. uint dragDropMode;
  11470. bool editable;
  11471. bool elementEventSender;
  11472. bool enabled;
  11473. /* readonly */
  11474. bool enabledSelf;
  11475. /* readonly */
  11476. bool fixedHeight;
  11477. /* readonly */
  11478. bool fixedSize;
  11479. /* readonly */
  11480. bool fixedWidth;
  11481. bool focus;
  11482. FocusMode focusMode;
  11483. int height;
  11484. HorizontalAlignment horizontalAlignment;
  11485. /* readonly */
  11486. bool hovering;
  11487. int indent;
  11488. int indentSpacing;
  11489. /* readonly */
  11490. int indentWidth;
  11491. bool internal;
  11492. IntRect layoutBorder;
  11493. Vector2 layoutFlexScale;
  11494. LayoutMode layoutMode;
  11495. int layoutSpacing;
  11496. int maxHeight;
  11497. IntVector2 maxSize;
  11498. int maxWidth;
  11499. int minHeight;
  11500. IntVector2 minSize;
  11501. int minWidth;
  11502. String name;
  11503. /* readonly */
  11504. uint numAllChildren;
  11505. /* readonly */
  11506. uint numAttributes;
  11507. /* readonly */
  11508. uint numChildren;
  11509. ObjectAnimation objectAnimation;
  11510. float opacity;
  11511. UIElement parent;
  11512. IntVector2 position;
  11513. int priority;
  11514. /* readonly */
  11515. int refs;
  11516. /* readonly */
  11517. UIElement root;
  11518. /* readonly */
  11519. IntVector2 screenPosition;
  11520. bool selected;
  11521. IntVector2 size;
  11522. bool sortChildren;
  11523. String style;
  11524. bool temporary;
  11525. TraversalMode traversalMode;
  11526. /* readonly */
  11527. StringHash type;
  11528. /* readonly */
  11529. String typeName;
  11530. bool useDerivedOpacity;
  11531. /* readonly */
  11532. VariantMap vars;
  11533. VerticalAlignment verticalAlignment;
  11534. bool visible;
  11535. /* readonly */
  11536. bool visibleEffective;
  11537. /* readonly */
  11538. int weakRefs;
  11539. int width;
  11540. };
  11541. class ValueAnimation
  11542. {
  11543. // Methods:
  11544. bool Load(File);
  11545. bool Load(VectorBuffer&);
  11546. bool Save(File) const;
  11547. bool Save(VectorBuffer&) const;
  11548. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11549. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  11550. void SetKeyFrame(float, const Variant&);
  11551. // Properties:
  11552. /* readonly */
  11553. String category;
  11554. InterpMethod interpolationMethod;
  11555. /* readonly */
  11556. uint memoryUse;
  11557. String name;
  11558. /* readonly */
  11559. int refs;
  11560. float splineTension;
  11561. /* readonly */
  11562. StringHash type;
  11563. /* readonly */
  11564. String typeName;
  11565. /* readonly */
  11566. uint useTimer;
  11567. VariantType valueType;
  11568. /* readonly */
  11569. int weakRefs;
  11570. };
  11571. class Variant
  11572. {
  11573. // Methods:
  11574. void Clear();
  11575. const Color& GetColor() const;
  11576. void FromString(VariantType, const String&);
  11577. void FromString(const String&, const String&);
  11578. bool GetBool() const;
  11579. double GetDouble() const;
  11580. float GetFloat() const;
  11581. int GetInt() const;
  11582. RefCounted GetPtr() const;
  11583. ScriptObject GetScriptObject() const;
  11584. StringHash GetStringHash() const;
  11585. Array<String> GetStringVector() const;
  11586. uint GetUInt() const;
  11587. Array<Variant> GetVariantVector() const;
  11588. const IntRect& GetIntRect() const;
  11589. const IntVector2& GetIntVector2() const;
  11590. const Matrix3& GetMatrix3() const;
  11591. const Matrix3x4& GetMatrix3x4() const;
  11592. const Matrix4& GetMatrix4() const;
  11593. const Quaternion& GetQuaternion() const;
  11594. const ResourceRef& GetResourceRef() const;
  11595. const ResourceRefList& GetResourceRefList() const;
  11596. const String& GetString() const;
  11597. String ToString() const;
  11598. const VariantMap& GetVariantMap() const;
  11599. const Vector2& GetVector2() const;
  11600. const Vector3& GetVector3() const;
  11601. const Vector4& GetVector4() const;
  11602. const VectorBuffer GetBuffer() const;
  11603. // Properties:
  11604. /* readonly */
  11605. bool empty;
  11606. /* readonly */
  11607. VariantType type;
  11608. /* readonly */
  11609. String typeName;
  11610. /* readonly */
  11611. bool zero;
  11612. };
  11613. class VariantMap
  11614. {
  11615. // Methods:
  11616. void Clear();
  11617. bool Contains(StringHash) const;
  11618. bool Contains(const String&) const;
  11619. bool Erase(StringHash);
  11620. bool Erase(const String&);
  11621. // Properties:
  11622. /* readonly */
  11623. Array<StringHash> keys;
  11624. /* readonly */
  11625. uint length;
  11626. /* readonly */
  11627. Array<Variant> values;
  11628. };
  11629. class Vector2
  11630. {
  11631. // Methods:
  11632. Vector2 Abs() const;
  11633. float AbsDotProduct(const Vector2&) const;
  11634. float DotProduct(const Vector2&) const;
  11635. bool Equals(const Vector2&) const;
  11636. bool IsNaN() const;
  11637. Vector2 Lerp(const Vector2&, float) const;
  11638. void Normalize();
  11639. Vector2 Normalized() const;
  11640. String ToString() const;
  11641. // Properties:
  11642. /* readonly */
  11643. Array<float> data;
  11644. /* readonly */
  11645. float length;
  11646. /* readonly */
  11647. float lengthSquared;
  11648. float x;
  11649. float y;
  11650. };
  11651. class Vector3
  11652. {
  11653. // Methods:
  11654. Vector3 Abs() const;
  11655. float AbsDotProduct(const Vector3&) const;
  11656. float Angle(const Vector3&) const;
  11657. Vector3 CrossProduct(const Vector3&) const;
  11658. float DotProduct(const Vector3&) const;
  11659. bool Equals(const Vector3&) const;
  11660. bool IsNaN() const;
  11661. Vector3 Lerp(const Vector3&, float) const;
  11662. void Normalize();
  11663. Vector3 Normalized() const;
  11664. String ToString() const;
  11665. // Properties:
  11666. /* readonly */
  11667. Array<float> data;
  11668. /* readonly */
  11669. float length;
  11670. /* readonly */
  11671. float lengthSquared;
  11672. float x;
  11673. float y;
  11674. float z;
  11675. };
  11676. class Vector4
  11677. {
  11678. // Methods:
  11679. Vector4 Abs() const;
  11680. float AbsDotProduct(const Vector4&) const;
  11681. float DotProduct(const Vector4&) const;
  11682. bool Equals(const Vector4&) const;
  11683. bool IsNaN() const;
  11684. Vector4 Lerp(const Vector4&, float) const;
  11685. String ToString() const;
  11686. // Properties:
  11687. /* readonly */
  11688. Array<float> data;
  11689. float w;
  11690. float x;
  11691. float y;
  11692. float z;
  11693. };
  11694. class VectorBuffer
  11695. {
  11696. // Methods:
  11697. void Clear();
  11698. Array<uint8> Read(uint);
  11699. bool ReadBool();
  11700. BoundingBox ReadBoundingBox();
  11701. int8 ReadByte();
  11702. Color ReadColor();
  11703. double ReadDouble();
  11704. String ReadFileID();
  11705. float ReadFloat();
  11706. int ReadInt();
  11707. IntRect ReadIntRect();
  11708. IntVector2 ReadIntVector2();
  11709. String ReadLine();
  11710. Matrix3 ReadMatrix3();
  11711. Matrix3x4 ReadMatrix3x4();
  11712. Matrix4 ReadMatrix4();
  11713. uint ReadNetID();
  11714. Quaternion ReadPackedQuaternion();
  11715. Vector3 ReadPackedVector3(float);
  11716. Quaternion ReadQuaternion();
  11717. int16 ReadShort();
  11718. String ReadString();
  11719. StringHash ReadStringHash();
  11720. uint8 ReadUByte();
  11721. uint ReadUInt();
  11722. uint16 ReadUShort();
  11723. uint ReadVLE();
  11724. Variant ReadVariant();
  11725. VariantMap ReadVariantMap();
  11726. Vector2 ReadVector2();
  11727. Vector3 ReadVector3();
  11728. Vector4 ReadVector4();
  11729. VectorBuffer ReadVectorBuffer(uint);
  11730. void Resize(uint);
  11731. uint Seek(uint);
  11732. void SetData(Deserializer, uint);
  11733. uint Write(Array<uint8>);
  11734. bool WriteBool(bool);
  11735. bool WriteBoundingBox(const BoundingBox&);
  11736. bool WriteByte(int8);
  11737. bool WriteColor(const Color&);
  11738. bool WriteDouble(double);
  11739. bool WriteFileID(const String&);
  11740. bool WriteFloat(float);
  11741. bool WriteInt(int);
  11742. bool WriteIntRect(const IntRect&);
  11743. bool WriteIntVector2(const IntVector2&);
  11744. bool WriteLine(const String&);
  11745. bool WriteMatrix3(const Matrix3&);
  11746. bool WriteMatrix3x4(const Matrix3x4&);
  11747. bool WriteMatrix4(const Matrix4&);
  11748. bool WriteNetID(uint);
  11749. bool WritePackedQuaternion(const Quaternion&);
  11750. bool WritePackedVector3(const Vector3&, float);
  11751. bool WriteQuaternion(const Quaternion&);
  11752. bool WriteShort(int16);
  11753. bool WriteString(const String&);
  11754. bool WriteStringHash(const StringHash&);
  11755. bool WriteUByte(uint8);
  11756. bool WriteUInt(uint);
  11757. bool WriteUShort(uint16);
  11758. bool WriteVLE(uint);
  11759. bool WriteVariant(const Variant&);
  11760. bool WriteVariantMap(const VariantMap&);
  11761. bool WriteVector2(const Vector2&);
  11762. bool WriteVector3(const Vector3&);
  11763. bool WriteVector4(const Vector4&);
  11764. bool WriteVectorBuffer(const VectorBuffer&);
  11765. // Properties:
  11766. /* readonly */
  11767. uint checksum;
  11768. /* readonly */
  11769. bool eof;
  11770. /* readonly */
  11771. String name;
  11772. /* readonly */
  11773. uint position;
  11774. /* readonly */
  11775. uint size;
  11776. };
  11777. class VertexBuffer
  11778. {
  11779. // Methods:
  11780. VectorBuffer GetData();
  11781. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11782. bool SetData(VectorBuffer&);
  11783. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  11784. void SetSize(uint, uint, bool = false);
  11785. // Properties:
  11786. /* readonly */
  11787. String category;
  11788. /* readonly */
  11789. bool dynamic;
  11790. /* readonly */
  11791. uint elementMask;
  11792. /* readonly */
  11793. int refs;
  11794. bool shadowed;
  11795. /* readonly */
  11796. StringHash type;
  11797. /* readonly */
  11798. String typeName;
  11799. /* readonly */
  11800. uint vertexCount;
  11801. /* readonly */
  11802. uint vertexSize;
  11803. /* readonly */
  11804. int weakRefs;
  11805. };
  11806. class View3D
  11807. {
  11808. // Methods:
  11809. void AddChild(UIElement);
  11810. void ApplyAttributes();
  11811. void BringToFront();
  11812. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11813. void DisableLayoutUpdate();
  11814. IntVector2 ElementToScreen(const IntVector2&);
  11815. void EnableLayoutUpdate();
  11816. uint FindChild(UIElement) const;
  11817. Variant GetAttribute(const String&) const;
  11818. ValueAnimation GetAttributeAnimation(const String&) const;
  11819. float GetAttributeAnimationSpeed(const String&) const;
  11820. float GetAttributeAnimationTime(const String&) const;
  11821. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11822. Variant GetAttributeDefault(const String&) const;
  11823. UIElement GetChild(const String&, bool = false) const;
  11824. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11825. Array<UIElement> GetChildren(bool = false) const;
  11826. UIElement GetElementEventSender() const;
  11827. bool GetInterceptNetworkUpdate(const String&) const;
  11828. uint GetNumChildren(bool) const;
  11829. void InsertChild(uint, UIElement);
  11830. bool IsInside(IntVector2, bool);
  11831. bool IsInsideCombined(IntVector2, bool);
  11832. bool Load(File, bool = false);
  11833. bool Load(VectorBuffer&, bool = false);
  11834. bool LoadChildXML(XMLFile, XMLFile = null);
  11835. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11836. bool LoadXML(File);
  11837. bool LoadXML(VectorBuffer&);
  11838. bool LoadXML(XMLFile, XMLFile);
  11839. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11840. bool LoadXML(const XMLElement&, bool = false);
  11841. void MarkNetworkUpdate() const;
  11842. void QueueUpdate();
  11843. void Remove();
  11844. void RemoveAllChildren();
  11845. void RemoveAttributeAnimation(const String&);
  11846. void RemoveChild(UIElement, uint = 0);
  11847. void RemoveChild(uint);
  11848. void RemoveInstanceDefault();
  11849. void RemoveObjectAnimation();
  11850. void ResetDeepEnabled();
  11851. void ResetToDefault();
  11852. bool Save(File) const;
  11853. bool Save(VectorBuffer&) const;
  11854. bool SaveXML(File, const String& = "\t");
  11855. bool SaveXML(VectorBuffer&, const String& = "\t");
  11856. bool SaveXML(XMLElement&) const;
  11857. IntVector2 ScreenToElement(const IntVector2&);
  11858. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11859. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11860. void SetAnimationTime(float);
  11861. bool SetAttribute(const String&, const Variant&);
  11862. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11863. void SetAttributeAnimationSpeed(const String&, float);
  11864. void SetAttributeAnimationTime(const String&, float);
  11865. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11866. void SetDeepEnabled(bool);
  11867. void SetEnabledRecursive(bool);
  11868. void SetFixedHeight(int);
  11869. void SetFixedSize(int, int);
  11870. void SetFixedWidth(int);
  11871. void SetFullImageRect();
  11872. void SetHoverOffset(int, int);
  11873. void SetInterceptNetworkUpdate(const String&, bool);
  11874. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11875. void SetMaxSize(int, int);
  11876. void SetMinSize(int, int);
  11877. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11878. void SetPosition(int, int);
  11879. void SetSize(int, int);
  11880. bool SetStyle(const String&, XMLFile = null);
  11881. bool SetStyle(const XMLElement&);
  11882. bool SetStyleAuto(XMLFile = null);
  11883. void SetView(Scene, Camera, bool = true);
  11884. void UpdateLayout();
  11885. const Variant& GetVar(const StringHash&);
  11886. // Properties:
  11887. bool animationEnabled;
  11888. /* readonly */
  11889. Array<Variant> attributeDefaults;
  11890. /* readonly */
  11891. Array<AttributeInfo> attributeInfos;
  11892. Array<Variant> attributes;
  11893. bool autoUpdate;
  11894. BlendMode blendMode;
  11895. IntRect border;
  11896. bool bringToBack;
  11897. bool bringToFront;
  11898. /* readonly */
  11899. Node cameraNode;
  11900. /* readonly */
  11901. String category;
  11902. /* readonly */
  11903. IntVector2 childOffset;
  11904. /* readonly */
  11905. Array<UIElement> children;
  11906. IntRect clipBorder;
  11907. bool clipChildren;
  11908. /* writeonly */
  11909. Color color;
  11910. /* readonly */
  11911. bool colorGradient;
  11912. Array<Color> colors;
  11913. /* readonly */
  11914. IntRect combinedScreenRect;
  11915. XMLFile defaultStyle;
  11916. /* readonly */
  11917. Texture2D depthTexture;
  11918. /* readonly */
  11919. float derivedOpacity;
  11920. /* readonly */
  11921. uint dragButtonCombo;
  11922. /* readonly */
  11923. int dragButtonCount;
  11924. uint dragDropMode;
  11925. bool editable;
  11926. bool elementEventSender;
  11927. bool enabled;
  11928. /* readonly */
  11929. bool enabledSelf;
  11930. /* readonly */
  11931. bool fixedHeight;
  11932. bool fixedHeightResizing;
  11933. /* readonly */
  11934. bool fixedSize;
  11935. /* readonly */
  11936. bool fixedWidth;
  11937. bool fixedWidthResizing;
  11938. bool focus;
  11939. FocusMode focusMode;
  11940. uint format;
  11941. int height;
  11942. HorizontalAlignment horizontalAlignment;
  11943. IntVector2 hoverOffset;
  11944. /* readonly */
  11945. bool hovering;
  11946. IntRect imageBorder;
  11947. IntRect imageRect;
  11948. int indent;
  11949. int indentSpacing;
  11950. /* readonly */
  11951. int indentWidth;
  11952. bool internal;
  11953. IntRect layoutBorder;
  11954. Vector2 layoutFlexScale;
  11955. LayoutMode layoutMode;
  11956. int layoutSpacing;
  11957. int maxHeight;
  11958. IntVector2 maxSize;
  11959. int maxWidth;
  11960. int minHeight;
  11961. IntVector2 minSize;
  11962. int minWidth;
  11963. bool modal;
  11964. bool modalAutoDismiss;
  11965. Color modalFrameColor;
  11966. IntVector2 modalFrameSize;
  11967. Color modalShadeColor;
  11968. bool movable;
  11969. String name;
  11970. /* readonly */
  11971. uint numAllChildren;
  11972. /* readonly */
  11973. uint numAttributes;
  11974. /* readonly */
  11975. uint numChildren;
  11976. ObjectAnimation objectAnimation;
  11977. float opacity;
  11978. UIElement parent;
  11979. IntVector2 position;
  11980. int priority;
  11981. /* readonly */
  11982. int refs;
  11983. /* readonly */
  11984. Texture2D renderTexture;
  11985. bool resizable;
  11986. IntRect resizeBorder;
  11987. /* readonly */
  11988. UIElement root;
  11989. /* readonly */
  11990. Scene scene;
  11991. /* readonly */
  11992. IntVector2 screenPosition;
  11993. bool selected;
  11994. IntVector2 size;
  11995. bool sortChildren;
  11996. String style;
  11997. bool temporary;
  11998. Texture texture;
  11999. bool tiled;
  12000. TraversalMode traversalMode;
  12001. /* readonly */
  12002. StringHash type;
  12003. /* readonly */
  12004. String typeName;
  12005. bool useDerivedOpacity;
  12006. /* readonly */
  12007. VariantMap vars;
  12008. VerticalAlignment verticalAlignment;
  12009. /* readonly */
  12010. Viewport viewport;
  12011. bool visible;
  12012. /* readonly */
  12013. bool visibleEffective;
  12014. /* readonly */
  12015. int weakRefs;
  12016. int width;
  12017. };
  12018. class Viewport
  12019. {
  12020. // Methods:
  12021. Ray GetScreenRay(int, int) const;
  12022. Vector3 ScreenToWorldPoint(int, int, float) const;
  12023. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12024. void SetRenderPath(XMLFile);
  12025. Vector2 WorldToScreenPoint(const Vector3&) const;
  12026. // Properties:
  12027. Camera camera;
  12028. /* readonly */
  12029. String category;
  12030. Camera cullCamera;
  12031. bool drawDebug;
  12032. IntRect rect;
  12033. /* readonly */
  12034. int refs;
  12035. RenderPath renderPath;
  12036. Scene scene;
  12037. /* readonly */
  12038. StringHash type;
  12039. /* readonly */
  12040. String typeName;
  12041. /* readonly */
  12042. int weakRefs;
  12043. };
  12044. class WeakHandle
  12045. {
  12046. // Methods:
  12047. RefCounted Get() const;
  12048. // Properties:
  12049. /* readonly */
  12050. bool expired;
  12051. /* readonly */
  12052. int refs;
  12053. /* readonly */
  12054. int weakRefs;
  12055. };
  12056. class Window
  12057. {
  12058. // Methods:
  12059. void AddChild(UIElement);
  12060. void ApplyAttributes();
  12061. void BringToFront();
  12062. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12063. void DisableLayoutUpdate();
  12064. IntVector2 ElementToScreen(const IntVector2&);
  12065. void EnableLayoutUpdate();
  12066. uint FindChild(UIElement) const;
  12067. Variant GetAttribute(const String&) const;
  12068. ValueAnimation GetAttributeAnimation(const String&) const;
  12069. float GetAttributeAnimationSpeed(const String&) const;
  12070. float GetAttributeAnimationTime(const String&) const;
  12071. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12072. Variant GetAttributeDefault(const String&) const;
  12073. UIElement GetChild(const String&, bool = false) const;
  12074. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12075. Array<UIElement> GetChildren(bool = false) const;
  12076. UIElement GetElementEventSender() const;
  12077. bool GetInterceptNetworkUpdate(const String&) const;
  12078. uint GetNumChildren(bool) const;
  12079. void InsertChild(uint, UIElement);
  12080. bool IsInside(IntVector2, bool);
  12081. bool IsInsideCombined(IntVector2, bool);
  12082. bool Load(File, bool = false);
  12083. bool Load(VectorBuffer&, bool = false);
  12084. bool LoadChildXML(XMLFile, XMLFile = null);
  12085. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12086. bool LoadXML(File);
  12087. bool LoadXML(VectorBuffer&);
  12088. bool LoadXML(XMLFile, XMLFile);
  12089. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12090. bool LoadXML(const XMLElement&, bool = false);
  12091. void MarkNetworkUpdate() const;
  12092. void Remove();
  12093. void RemoveAllChildren();
  12094. void RemoveAttributeAnimation(const String&);
  12095. void RemoveChild(UIElement, uint = 0);
  12096. void RemoveChild(uint);
  12097. void RemoveInstanceDefault();
  12098. void RemoveObjectAnimation();
  12099. void ResetDeepEnabled();
  12100. void ResetToDefault();
  12101. bool Save(File) const;
  12102. bool Save(VectorBuffer&) const;
  12103. bool SaveXML(File, const String& = "\t");
  12104. bool SaveXML(VectorBuffer&, const String& = "\t");
  12105. bool SaveXML(XMLElement&) const;
  12106. IntVector2 ScreenToElement(const IntVector2&);
  12107. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12108. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12109. void SetAnimationTime(float);
  12110. bool SetAttribute(const String&, const Variant&);
  12111. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12112. void SetAttributeAnimationSpeed(const String&, float);
  12113. void SetAttributeAnimationTime(const String&, float);
  12114. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12115. void SetDeepEnabled(bool);
  12116. void SetEnabledRecursive(bool);
  12117. void SetFixedHeight(int);
  12118. void SetFixedSize(int, int);
  12119. void SetFixedWidth(int);
  12120. void SetFullImageRect();
  12121. void SetHoverOffset(int, int);
  12122. void SetInterceptNetworkUpdate(const String&, bool);
  12123. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12124. void SetMaxSize(int, int);
  12125. void SetMinSize(int, int);
  12126. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12127. void SetPosition(int, int);
  12128. void SetSize(int, int);
  12129. bool SetStyle(const String&, XMLFile = null);
  12130. bool SetStyle(const XMLElement&);
  12131. bool SetStyleAuto(XMLFile = null);
  12132. void UpdateLayout();
  12133. const Variant& GetVar(const StringHash&);
  12134. // Properties:
  12135. bool animationEnabled;
  12136. /* readonly */
  12137. Array<Variant> attributeDefaults;
  12138. /* readonly */
  12139. Array<AttributeInfo> attributeInfos;
  12140. Array<Variant> attributes;
  12141. BlendMode blendMode;
  12142. IntRect border;
  12143. bool bringToBack;
  12144. bool bringToFront;
  12145. /* readonly */
  12146. String category;
  12147. /* readonly */
  12148. IntVector2 childOffset;
  12149. /* readonly */
  12150. Array<UIElement> children;
  12151. IntRect clipBorder;
  12152. bool clipChildren;
  12153. /* writeonly */
  12154. Color color;
  12155. /* readonly */
  12156. bool colorGradient;
  12157. Array<Color> colors;
  12158. /* readonly */
  12159. IntRect combinedScreenRect;
  12160. XMLFile defaultStyle;
  12161. /* readonly */
  12162. float derivedOpacity;
  12163. /* readonly */
  12164. uint dragButtonCombo;
  12165. /* readonly */
  12166. int dragButtonCount;
  12167. uint dragDropMode;
  12168. bool editable;
  12169. bool elementEventSender;
  12170. bool enabled;
  12171. /* readonly */
  12172. bool enabledSelf;
  12173. /* readonly */
  12174. bool fixedHeight;
  12175. bool fixedHeightResizing;
  12176. /* readonly */
  12177. bool fixedSize;
  12178. /* readonly */
  12179. bool fixedWidth;
  12180. bool fixedWidthResizing;
  12181. bool focus;
  12182. FocusMode focusMode;
  12183. int height;
  12184. HorizontalAlignment horizontalAlignment;
  12185. IntVector2 hoverOffset;
  12186. /* readonly */
  12187. bool hovering;
  12188. IntRect imageBorder;
  12189. IntRect imageRect;
  12190. int indent;
  12191. int indentSpacing;
  12192. /* readonly */
  12193. int indentWidth;
  12194. bool internal;
  12195. IntRect layoutBorder;
  12196. Vector2 layoutFlexScale;
  12197. LayoutMode layoutMode;
  12198. int layoutSpacing;
  12199. int maxHeight;
  12200. IntVector2 maxSize;
  12201. int maxWidth;
  12202. int minHeight;
  12203. IntVector2 minSize;
  12204. int minWidth;
  12205. bool modal;
  12206. bool modalAutoDismiss;
  12207. Color modalFrameColor;
  12208. IntVector2 modalFrameSize;
  12209. Color modalShadeColor;
  12210. bool movable;
  12211. String name;
  12212. /* readonly */
  12213. uint numAllChildren;
  12214. /* readonly */
  12215. uint numAttributes;
  12216. /* readonly */
  12217. uint numChildren;
  12218. ObjectAnimation objectAnimation;
  12219. float opacity;
  12220. UIElement parent;
  12221. IntVector2 position;
  12222. int priority;
  12223. /* readonly */
  12224. int refs;
  12225. bool resizable;
  12226. IntRect resizeBorder;
  12227. /* readonly */
  12228. UIElement root;
  12229. /* readonly */
  12230. IntVector2 screenPosition;
  12231. bool selected;
  12232. IntVector2 size;
  12233. bool sortChildren;
  12234. String style;
  12235. bool temporary;
  12236. Texture texture;
  12237. bool tiled;
  12238. TraversalMode traversalMode;
  12239. /* readonly */
  12240. StringHash type;
  12241. /* readonly */
  12242. String typeName;
  12243. bool useDerivedOpacity;
  12244. /* readonly */
  12245. VariantMap vars;
  12246. VerticalAlignment verticalAlignment;
  12247. bool visible;
  12248. /* readonly */
  12249. bool visibleEffective;
  12250. /* readonly */
  12251. int weakRefs;
  12252. int width;
  12253. };
  12254. class XMLElement
  12255. {
  12256. // Methods:
  12257. XMLElement CreateChild(const String&);
  12258. String GetAttribute(const String& = String ( )) const;
  12259. String GetAttributeLower(const String&) const;
  12260. Array<String> GetAttributeNames() const;
  12261. String GetAttributeUpper(const String&) const;
  12262. bool GetBool(const String&) const;
  12263. BoundingBox GetBoundingBox() const;
  12264. XMLElement GetChild(const String& = String ( )) const;
  12265. Color GetColor(const String&) const;
  12266. double GetDouble(const String&) const;
  12267. float GetFloat(const String&) const;
  12268. int GetInt(const String&) const;
  12269. Matrix3 GetMatrix3(const String&) const;
  12270. Matrix3x4 GetMatrix3x4(const String&) const;
  12271. Matrix4 GetMatrix4(const String&) const;
  12272. XMLElement GetNext(const String& = String ( )) const;
  12273. Quaternion GetQuaternion(const String&) const;
  12274. ResourceRef GetResourceRef() const;
  12275. ResourceRefList GetResourceRefList() const;
  12276. uint GetUInt(const String&) const;
  12277. String GetValue() const;
  12278. Variant GetVariant() const;
  12279. VariantMap GetVariantMap() const;
  12280. Array<Variant> GetVariantVector() const;
  12281. Vector2 GetVector2(const String&) const;
  12282. Vector3 GetVector3(const String&) const;
  12283. Vector4 GetVector4(const String&) const;
  12284. Variant GetVectorVariant(const String&) const;
  12285. bool HasAttribute(const String&) const;
  12286. bool HasChild(const String&) const;
  12287. bool RemoveAttribute(const String& = String ( ));
  12288. bool RemoveChild(const String&);
  12289. bool RemoveChild(const XMLElement&);
  12290. bool RemoveChildren(const String& = String ( ));
  12291. XPathResultSet Select(const String&);
  12292. XPathResultSet SelectPrepared(const XPathQuery&);
  12293. XMLElement SelectSingle(const String&);
  12294. XMLElement SelectSinglePrepared(const XPathQuery&);
  12295. bool SetAttribute(const String&);
  12296. bool SetAttribute(const String&, const String&);
  12297. bool SetBool(const String&, bool);
  12298. bool SetBoundingBox(const BoundingBox&);
  12299. bool SetColor(const String&, const Color&);
  12300. bool SetDouble(const String&, double);
  12301. bool SetFloat(const String&, float);
  12302. bool SetInt(const String&, int);
  12303. bool SetMatrix3(const String&, const Matrix3&);
  12304. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12305. bool SetMatrix4(const String&, const Matrix4&);
  12306. bool SetQuaternion(const String&, const Quaternion&);
  12307. bool SetResourceRef(const String&, const ResourceRef&);
  12308. bool SetResourceRefList(const String&, const ResourceRefList&);
  12309. bool SetUInt(const String&, uint);
  12310. bool SetValue(const String&);
  12311. bool SetVariant(const Variant&);
  12312. bool SetVariantMap(const VariantMap&);
  12313. bool SetVariantVector(Array<Variant>);
  12314. bool SetVector2(const String&, const Vector2&);
  12315. bool SetVector3(const String&, const Vector3&);
  12316. bool SetVector4(const String&, const Vector4&);
  12317. bool SetVectorVariant(const String&, const Variant&);
  12318. // Properties:
  12319. /* readonly */
  12320. XMLFile file;
  12321. /* readonly */
  12322. bool isNull;
  12323. /* readonly */
  12324. String name;
  12325. /* readonly */
  12326. XMLElement nextResult;
  12327. /* readonly */
  12328. bool notNull;
  12329. /* readonly */
  12330. uint numAttributes;
  12331. /* readonly */
  12332. XMLElement parent;
  12333. String value;
  12334. };
  12335. class XMLFile
  12336. {
  12337. // Methods:
  12338. XMLElement CreateRoot(const String&);
  12339. bool FromString(const String&);
  12340. XMLElement GetRoot(const String& = String ( ));
  12341. bool Load(File);
  12342. bool Load(VectorBuffer&);
  12343. void Patch(XMLElement);
  12344. void Patch(XMLFile);
  12345. bool Save(File) const;
  12346. bool Save(File, const String&) const;
  12347. bool Save(VectorBuffer&) const;
  12348. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12349. String ToString(const String& = String ( "\t" )) const;
  12350. // Properties:
  12351. /* readonly */
  12352. String category;
  12353. /* readonly */
  12354. uint memoryUse;
  12355. String name;
  12356. /* readonly */
  12357. int refs;
  12358. /* readonly */
  12359. XMLElement root;
  12360. /* readonly */
  12361. StringHash type;
  12362. /* readonly */
  12363. String typeName;
  12364. /* readonly */
  12365. uint useTimer;
  12366. /* readonly */
  12367. int weakRefs;
  12368. };
  12369. class XPathQuery
  12370. {
  12371. // Methods:
  12372. void Bind();
  12373. void Clear();
  12374. XPathResultSet Evaluate(XMLElement);
  12375. bool EvaluateToBool(XMLElement);
  12376. float EvaluateToFloat(XMLElement);
  12377. String EvaluateToString(XMLElement);
  12378. bool SetQuery(const String&, const String& = String ( ), bool = true);
  12379. bool SetVariable(const String&, bool);
  12380. bool SetVariable(const String&, const String&);
  12381. bool SetVariable(const String&, const XPathResultSet&);
  12382. bool SetVariable(const String&, float);
  12383. // Properties:
  12384. String query;
  12385. };
  12386. class XPathResultSet
  12387. {
  12388. // Properties:
  12389. /* readonly */
  12390. bool empty;
  12391. /* readonly */
  12392. XMLElement firstResult;
  12393. /* readonly */
  12394. uint size;
  12395. };
  12396. class Zone
  12397. {
  12398. // Methods:
  12399. void ApplyAttributes();
  12400. void DrawDebugGeometry(DebugRenderer, bool);
  12401. Variant GetAttribute(const String&) const;
  12402. ValueAnimation GetAttributeAnimation(const String&) const;
  12403. float GetAttributeAnimationSpeed(const String&) const;
  12404. float GetAttributeAnimationTime(const String&) const;
  12405. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12406. Variant GetAttributeDefault(const String&) const;
  12407. bool GetInterceptNetworkUpdate(const String&) const;
  12408. bool IsInView(Camera) const;
  12409. bool Load(File, bool = false);
  12410. bool Load(VectorBuffer&, bool = false);
  12411. bool LoadXML(const XMLElement&, bool = false);
  12412. void MarkNetworkUpdate() const;
  12413. void Remove();
  12414. void RemoveAttributeAnimation(const String&);
  12415. void RemoveInstanceDefault();
  12416. void RemoveObjectAnimation();
  12417. void ResetToDefault();
  12418. bool Save(File) const;
  12419. bool Save(VectorBuffer&) const;
  12420. bool SaveXML(XMLElement&) const;
  12421. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12422. void SetAnimationTime(float);
  12423. bool SetAttribute(const String&, const Variant&);
  12424. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12425. void SetAttributeAnimationSpeed(const String&, float);
  12426. void SetAttributeAnimationTime(const String&, float);
  12427. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12428. void SetInterceptNetworkUpdate(const String&, bool);
  12429. // Properties:
  12430. Color ambientColor;
  12431. /* readonly */
  12432. Color ambientEndColor;
  12433. bool ambientGradient;
  12434. /* readonly */
  12435. Color ambientStartColor;
  12436. bool animationEnabled;
  12437. /* readonly */
  12438. Array<Variant> attributeDefaults;
  12439. /* readonly */
  12440. Array<AttributeInfo> attributeInfos;
  12441. Array<Variant> attributes;
  12442. BoundingBox boundingBox;
  12443. bool castShadows;
  12444. /* readonly */
  12445. String category;
  12446. float drawDistance;
  12447. bool enabled;
  12448. /* readonly */
  12449. bool enabledEffective;
  12450. Color fogColor;
  12451. float fogEnd;
  12452. float fogHeight;
  12453. float fogHeightScale;
  12454. float fogStart;
  12455. bool heightFog;
  12456. /* readonly */
  12457. uint id;
  12458. /* readonly */
  12459. bool inView;
  12460. /* readonly */
  12461. Matrix3x4 inverseWorldTransform;
  12462. uint lightMask;
  12463. float lodBias;
  12464. uint maxLights;
  12465. /* readonly */
  12466. Node node;
  12467. /* readonly */
  12468. uint numAttributes;
  12469. ObjectAnimation objectAnimation;
  12470. bool occludee;
  12471. bool occluder;
  12472. bool override;
  12473. int priority;
  12474. /* readonly */
  12475. int refs;
  12476. float shadowDistance;
  12477. uint shadowMask;
  12478. bool temporary;
  12479. /* readonly */
  12480. StringHash type;
  12481. /* readonly */
  12482. String typeName;
  12483. uint viewMask;
  12484. /* readonly */
  12485. int weakRefs;
  12486. /* readonly */
  12487. BoundingBox worldBoundingBox;
  12488. uint zoneMask;
  12489. Texture zoneTexture;
  12490. };
  12491. // Enumerations
  12492. enum BlendMode
  12493. {
  12494. BLEND_REPLACE,
  12495. BLEND_ADD,
  12496. BLEND_MULTIPLY,
  12497. BLEND_ALPHA,
  12498. BLEND_ADDALPHA,
  12499. BLEND_PREMULALPHA,
  12500. BLEND_INVDESTALPHA,
  12501. BLEND_SUBTRACT,
  12502. BLEND_SUBTRACTALPHA,
  12503. };
  12504. enum BodyType2D
  12505. {
  12506. BT_STATIC,
  12507. BT_KINEMATIC,
  12508. BT_DYNAMIC,
  12509. };
  12510. enum CollisionEventMode
  12511. {
  12512. COLLISION_NEVER,
  12513. COLLISION_ACTIVE,
  12514. COLLISION_ALWAYS,
  12515. };
  12516. enum CompareMode
  12517. {
  12518. CMP_ALWAYS,
  12519. CMP_EQUAL,
  12520. CMP_NOTEQUAL,
  12521. CMP_LESS,
  12522. CMP_LESSEQUAL,
  12523. CMP_GREATER,
  12524. CMP_GREATEREQUAL,
  12525. };
  12526. enum CompressedFormat
  12527. {
  12528. CF_NONE,
  12529. CF_RGBA,
  12530. CF_DXT1,
  12531. CF_DXT3,
  12532. CF_DXT5,
  12533. CF_ETC1,
  12534. CF_PVRTC_RGB_2BPP,
  12535. CF_PVRTC_RGBA_2BPP,
  12536. CF_PVRTC_RGB_4BPP,
  12537. CF_PVRTC_RGBA_4BPP,
  12538. };
  12539. enum ConstraintType
  12540. {
  12541. CONSTRAINT_POINT,
  12542. CONSTRAINT_HINGE,
  12543. CONSTRAINT_SLIDER,
  12544. CONSTRAINT_CONETWIST,
  12545. };
  12546. enum Corner
  12547. {
  12548. C_TOPLEFT,
  12549. C_TOPRIGHT,
  12550. C_BOTTOMLEFT,
  12551. C_BOTTOMRIGHT,
  12552. };
  12553. enum CreateMode
  12554. {
  12555. REPLICATED,
  12556. LOCAL,
  12557. };
  12558. enum CrowdAgentRequestedTarget
  12559. {
  12560. CA_REQUESTEDTARGET_NONE,
  12561. CA_REQUESTEDTARGET_POSITION,
  12562. CA_REQUESTEDTARGET_VELOCITY,
  12563. };
  12564. enum CrowdAgentState
  12565. {
  12566. CA_STATE_INVALID,
  12567. CA_STATE_WALKING,
  12568. CA_STATE_OFFMESH,
  12569. };
  12570. enum CrowdAgentTargetState
  12571. {
  12572. CA_TARGET_NONE,
  12573. CA_TARGET_FAILED,
  12574. CA_TARGET_VALID,
  12575. CA_TARGET_REQUESTING,
  12576. CA_TARGET_WAITINGFORQUEUE,
  12577. CA_TARGET_WAITINGFORPATH,
  12578. CA_TARGET_VELOCITY,
  12579. };
  12580. enum CubeMapFace
  12581. {
  12582. FACE_POSITIVE_X,
  12583. FACE_NEGATIVE_X,
  12584. FACE_POSITIVE_Y,
  12585. FACE_NEGATIVE_Y,
  12586. FACE_POSITIVE_Z,
  12587. FACE_NEGATIVE_Z,
  12588. };
  12589. enum CullMode
  12590. {
  12591. CULL_NONE,
  12592. CULL_CCW,
  12593. CULL_CW,
  12594. };
  12595. enum CursorShape
  12596. {
  12597. CS_NORMAL,
  12598. CS_IBEAM,
  12599. CS_CROSS,
  12600. CS_RESIZEVERTICAL,
  12601. CS_RESIZEDIAGONAL_TOPRIGHT,
  12602. CS_RESIZEHORIZONTAL,
  12603. CS_RESIZEDIAGONAL_TOPLEFT,
  12604. CS_RESIZE_ALL,
  12605. CS_ACCEPTDROP,
  12606. CS_REJECTDROP,
  12607. CS_BUSY,
  12608. CS_BUSY_ARROW,
  12609. };
  12610. enum DBAPI
  12611. {
  12612. DBAPI_SQLITE,
  12613. DBAPI_ODBC,
  12614. };
  12615. enum DumpMode
  12616. {
  12617. DOXYGEN,
  12618. C_HEADER,
  12619. };
  12620. enum EmitterType
  12621. {
  12622. EMITTER_SPHERE,
  12623. EMITTER_BOX,
  12624. };
  12625. enum EmitterType2D
  12626. {
  12627. EMITTER_TYPE_GRAVITY,
  12628. EMITTER_TYPE_RADIAL,
  12629. };
  12630. enum FaceCameraMode
  12631. {
  12632. FC_NONE,
  12633. FC_ROTATE_XYZ,
  12634. FC_ROTATE_Y,
  12635. FC_LOOKAT_XYZ,
  12636. FC_LOOKAT_Y,
  12637. };
  12638. enum FileMode
  12639. {
  12640. FILE_READ,
  12641. FILE_WRITE,
  12642. FILE_READWRITE,
  12643. };
  12644. enum FillMode
  12645. {
  12646. FILL_SOLID,
  12647. FILL_WIREFRAME,
  12648. FILL_POINT,
  12649. };
  12650. enum FocusMode
  12651. {
  12652. FM_NOTFOCUSABLE,
  12653. FM_RESETFOCUS,
  12654. FM_FOCUSABLE,
  12655. FM_FOCUSABLE_DEFOCUSABLE,
  12656. };
  12657. enum HighlightMode
  12658. {
  12659. HM_NEVER,
  12660. HM_FOCUS,
  12661. HM_ALWAYS,
  12662. };
  12663. enum HorizontalAlignment
  12664. {
  12665. HA_LEFT,
  12666. HA_CENTER,
  12667. HA_RIGHT,
  12668. };
  12669. enum HttpRequestState
  12670. {
  12671. HTTP_INITIALIZING,
  12672. HTTP_ERROR,
  12673. HTTP_OPEN,
  12674. HTTP_CLOSED,
  12675. };
  12676. enum InterpMethod
  12677. {
  12678. IM_LINEAR,
  12679. IM_SPLINE,
  12680. };
  12681. enum InterpolationMode
  12682. {
  12683. BEZIER_CURVE,
  12684. CATMULL_ROM_CURVE,
  12685. LINEAR_CURVE,
  12686. CATMULL_ROM_FULL_CURVE,
  12687. };
  12688. enum Intersection
  12689. {
  12690. OUTSIDE,
  12691. INTERSECTS,
  12692. INSIDE,
  12693. };
  12694. enum JSONValueType
  12695. {
  12696. JSON_NULL,
  12697. JSON_BOOL,
  12698. JSON_NUMBER,
  12699. JSON_STRING,
  12700. JSON_ARRAY,
  12701. JSON_OBJECT,
  12702. };
  12703. enum LayoutMode
  12704. {
  12705. LM_FREE,
  12706. LM_HORIZONTAL,
  12707. LM_VERTICAL,
  12708. };
  12709. enum LightType
  12710. {
  12711. LIGHT_DIRECTIONAL,
  12712. LIGHT_SPOT,
  12713. LIGHT_POINT,
  12714. };
  12715. enum LoadMode
  12716. {
  12717. LOAD_RESOURCES_ONLY,
  12718. LOAD_SCENE,
  12719. LOAD_SCENE_AND_RESOURCES,
  12720. };
  12721. enum LoopMode2D
  12722. {
  12723. LM_DEFAULT,
  12724. LM_FORCE_LOOPED,
  12725. LM_FORCE_CLAMPED,
  12726. };
  12727. enum MouseMode
  12728. {
  12729. MM_ABSOLUTE,
  12730. MM_RELATIVE,
  12731. MM_WRAP,
  12732. MM_FREE,
  12733. };
  12734. enum NavigationPushiness
  12735. {
  12736. NAVIGATIONPUSHINESS_LOW,
  12737. NAVIGATIONPUSHINESS_MEDIUM,
  12738. NAVIGATIONPUSHINESS_HIGH,
  12739. };
  12740. enum NavigationQuality
  12741. {
  12742. NAVIGATIONQUALITY_LOW,
  12743. NAVIGATIONQUALITY_MEDIUM,
  12744. NAVIGATIONQUALITY_HIGH,
  12745. };
  12746. enum NavmeshPartitionType
  12747. {
  12748. NAVMESH_PARTITION_WATERSHED,
  12749. NAVMESH_PARTITION_MONOTONE,
  12750. };
  12751. enum Orientation
  12752. {
  12753. O_HORIZONTAL,
  12754. O_VERTICAL,
  12755. };
  12756. enum Orientation2D
  12757. {
  12758. O_ORTHOGONAL,
  12759. O_ISOMETRIC,
  12760. O_STAGGERED,
  12761. };
  12762. enum PassLightingMode
  12763. {
  12764. LIGHTING_UNLIT,
  12765. LIGHTING_PERVERTEX,
  12766. LIGHTING_PERPIXEL,
  12767. };
  12768. enum PrimitiveType
  12769. {
  12770. TRIANGLE_LIST,
  12771. LINE_LIST,
  12772. POINT_LIST,
  12773. TRIANGLE_STRIP,
  12774. LINE_STRIP,
  12775. TRIANGLE_FAN,
  12776. };
  12777. enum RayQueryLevel
  12778. {
  12779. RAY_AABB,
  12780. RAY_OBB,
  12781. RAY_TRIANGLE,
  12782. RAY_TRIANGLE_UV,
  12783. };
  12784. enum RenderCommandSortMode
  12785. {
  12786. SORT_FRONTTOBACK,
  12787. SORT_BACKTOFRONT,
  12788. };
  12789. enum RenderCommandType
  12790. {
  12791. CMD_NONE,
  12792. CMD_CLEAR,
  12793. CMD_SCENEPASS,
  12794. CMD_QUAD,
  12795. CMD_FORWARDLIGHTS,
  12796. CMD_LIGHTVOLUMES,
  12797. CMD_RENDERUI,
  12798. };
  12799. enum RenderSurfaceUpdateMode
  12800. {
  12801. SURFACE_MANUALUPDATE,
  12802. SURFACE_UPDATEVISIBLE,
  12803. SURFACE_UPDATEALWAYS,
  12804. };
  12805. enum RenderTargetSizeMode
  12806. {
  12807. SIZE_ABSOLUTE,
  12808. SIZE_VIEWPORTDIVISOR,
  12809. SIZE_VIEWPORTMULTIPLIER,
  12810. };
  12811. enum ShapeType
  12812. {
  12813. SHAPE_BOX,
  12814. SHAPE_SPHERE,
  12815. SHAPE_STATICPLANE,
  12816. SHAPE_CYLINDER,
  12817. SHAPE_CAPSULE,
  12818. SHAPE_CONE,
  12819. SHAPE_TRIANGLEMESH,
  12820. SHAPE_CONVEXHULL,
  12821. SHAPE_TERRAIN,
  12822. };
  12823. enum TextEffect
  12824. {
  12825. TE_NONE,
  12826. TE_SHADOW,
  12827. TE_STROKE,
  12828. };
  12829. enum TextureAddressMode
  12830. {
  12831. ADDRESS_WRAP,
  12832. ADDRESS_MIRROR,
  12833. ADDRESS_CLAMP,
  12834. ADDRESS_BORDER,
  12835. };
  12836. enum TextureCoordinate
  12837. {
  12838. COORD_U,
  12839. COORD_V,
  12840. COORD_W,
  12841. };
  12842. enum TextureFilterMode
  12843. {
  12844. FILTER_NEAREST,
  12845. FILTER_BILINEAR,
  12846. FILTER_TRILINEAR,
  12847. FILTER_ANISOTROPIC,
  12848. FILTER_DEFAULT,
  12849. };
  12850. enum TextureUnit
  12851. {
  12852. TU_DIFFUSE,
  12853. TU_ALBEDOBUFFER,
  12854. TU_NORMAL,
  12855. TU_NORMALBUFFER,
  12856. TU_SPECULAR,
  12857. TU_EMISSIVE,
  12858. TU_ENVIRONMENT,
  12859. TU_LIGHTRAMP,
  12860. TU_LIGHTSHAPE,
  12861. TU_SHADOWMAP,
  12862. TU_CUSTOM1,
  12863. TU_CUSTOM2,
  12864. TU_VOLUMEMAP,
  12865. TU_FACESELECT,
  12866. TU_INDIRECTION,
  12867. TU_DEPTHBUFFER,
  12868. TU_LIGHTBUFFER,
  12869. TU_ZONE,
  12870. MAX_MATERIAL_TEXTURE_UNITS,
  12871. MAX_TEXTURE_UNITS,
  12872. };
  12873. enum TextureUsage
  12874. {
  12875. TEXTURE_STATIC,
  12876. TEXTURE_DYNAMIC,
  12877. TEXTURE_RENDERTARGET,
  12878. TEXTURE_DEPTHSTENCIL,
  12879. };
  12880. enum TileMapLayerType2D
  12881. {
  12882. LT_TILE_LAYER,
  12883. LT_OBJECT_GROUP,
  12884. LT_IMAGE_LAYER,
  12885. LT_INVALID,
  12886. };
  12887. enum TileObjectType2D
  12888. {
  12889. OT_RECTANGLE,
  12890. OT_ELLIPSE,
  12891. OT_POLYGON,
  12892. OT_POLYLINE,
  12893. OT_TILE,
  12894. OT_INVALID,
  12895. };
  12896. enum TransformSpace
  12897. {
  12898. TS_LOCAL,
  12899. TS_PARENT,
  12900. TS_WORLD,
  12901. };
  12902. enum TraversalMode
  12903. {
  12904. TM_BREADTH_FIRST,
  12905. TM_DEPTH_FIRST,
  12906. };
  12907. enum VariantType
  12908. {
  12909. VAR_NONE,
  12910. VAR_INT,
  12911. VAR_BOOL,
  12912. VAR_FLOAT,
  12913. VAR_VECTOR2,
  12914. VAR_VECTOR3,
  12915. VAR_VECTOR4,
  12916. VAR_QUATERNION,
  12917. VAR_COLOR,
  12918. VAR_STRING,
  12919. VAR_BUFFER,
  12920. VAR_VOIDPTR,
  12921. VAR_RESOURCEREF,
  12922. VAR_RESOURCEREFLIST,
  12923. VAR_VARIANTVECTOR,
  12924. VAR_VARIANTMAP,
  12925. VAR_INTRECT,
  12926. VAR_INTVECTOR2,
  12927. VAR_PTR,
  12928. VAR_MATRIX3,
  12929. VAR_MATRIX3X4,
  12930. VAR_MATRIX4,
  12931. VAR_DOUBLE,
  12932. VAR_STRINGVECTOR,
  12933. };
  12934. enum VerticalAlignment
  12935. {
  12936. VA_TOP,
  12937. VA_CENTER,
  12938. VA_BOTTOM,
  12939. };
  12940. enum WrapMode
  12941. {
  12942. WM_LOOP,
  12943. WM_ONCE,
  12944. WM_CLAMP,
  12945. };
  12946. // Global functions
  12947. float Abs(float);
  12948. float Acos(float);
  12949. String AddTrailingSlash(const String&);
  12950. float Asin(float);
  12951. float Atan(float);
  12952. float Atan2(float, float);
  12953. float Ceil(float);
  12954. float Clamp(float, float, float);
  12955. int Clamp(int, int, int);
  12956. void ClearDelayedExecute(const String& = String ( ));
  12957. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  12958. float Cos(float);
  12959. uint CountSetBits(uint);
  12960. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  12961. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  12962. bool Equals(float, float);
  12963. void ErrorDialog(const String&, const String&);
  12964. float Floor(float);
  12965. uint GetAlphaFormat();
  12966. Array<String> GetArguments();
  12967. String GetConsoleInput();
  12968. uint GetDepthStencilFormat();
  12969. Object GetEventSender();
  12970. String GetExtension(const String&, bool = true);
  12971. String GetFileName(const String&);
  12972. String GetFileNameAndExtension(const String&, bool = false);
  12973. String GetFileSizeString(uint64);
  12974. uint GetFloat16Format();
  12975. uint GetFloat32Format();
  12976. uint GetFormat(const String&);
  12977. String GetInternalPath(const String&);
  12978. uint GetLinearDepthFormat();
  12979. uint GetLuminanceAlphaFormat();
  12980. uint GetLuminanceFormat();
  12981. uint GetMaxBones();
  12982. uint GetNumLogicalCPUs();
  12983. uint GetNumPhysicalCPUs();
  12984. Array<String> GetObjectCategories();
  12985. Array<String> GetObjectsByCategory(const String&);
  12986. String GetParentPath(const String&);
  12987. String GetPath(const String&);
  12988. String GetPlatform();
  12989. uint GetRG16Format();
  12990. uint GetRGBA16Format();
  12991. uint GetRGBAFloat16Format();
  12992. uint GetRGBAFloat32Format();
  12993. uint GetRGBAFormat();
  12994. uint GetRGBFormat();
  12995. uint GetRGFloat16Format();
  12996. uint GetRGFloat32Format();
  12997. uint GetRandomSeed();
  12998. uint GetReadableDepthFormat();
  12999. String GetTextureUnitName(TextureUnit);
  13000. bool IsAbsolutePath(const String&);
  13001. bool IsAlpha(uint);
  13002. bool IsDigit(uint);
  13003. bool IsNaN(float);
  13004. bool IsPowerOfTwo(uint);
  13005. String Join(Array<String>&, const String&);
  13006. float Lerp(float, float, float);
  13007. void MarkNetworkUpdate();
  13008. float Max(float, float);
  13009. int Max(int, int);
  13010. float Min(float, float);
  13011. int Min(int, int);
  13012. float Mod(float, float);
  13013. uint NextPowerOfTwo(uint);
  13014. void OpenConsoleWindow();
  13015. float Pow(float, float);
  13016. void Print(bool, bool = false);
  13017. void Print(const String&, bool = false);
  13018. void Print(const Variant&, bool = false);
  13019. void Print(float, bool = false);
  13020. void Print(int, bool = false);
  13021. void Print(uint, bool = false);
  13022. void PrintCallStack(bool = false);
  13023. float Random();
  13024. float Random(float);
  13025. float Random(float, float);
  13026. int RandomInt();
  13027. int RandomInt(int);
  13028. int RandomInt(int, int);
  13029. float RandomNormal(float, float);
  13030. void Remove();
  13031. String RemoveTrailingSlash(const String&);
  13032. String ReplaceExtension(const String&, const String&);
  13033. uint SDBMHash(uint, uint8);
  13034. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13035. void SetRandomSeed(uint);
  13036. float Sign(float);
  13037. float Sin(float);
  13038. float SmoothStep(float, float, float);
  13039. float Sqrt(float);
  13040. const String& GetTypeName(StringHash);
  13041. void SubscribeToEvent(Object, const String&, const String&);
  13042. void SubscribeToEvent(const String&, const String&);
  13043. float Tan(float);
  13044. uint ToLower(uint);
  13045. String ToStringHex(int);
  13046. uint ToUpper(uint);
  13047. void UnsubscribeFromAllEvents();
  13048. void UnsubscribeFromAllEventsExcept(Array<String>);
  13049. void UnsubscribeFromEvent(Object, const String&);
  13050. void UnsubscribeFromEvent(const String&);
  13051. void UnsubscribeFromEvents(Object);
  13052. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13053. // Global properties
  13054. DBAPI DBAPI;
  13055. Audio audio;
  13056. ResourceCache cache;
  13057. Console console;
  13058. Database database;
  13059. DebugHud debugHud;
  13060. DebugRenderer debugRenderer;
  13061. Engine engine;
  13062. FileSystem fileSystem;
  13063. Graphics graphics;
  13064. Input input;
  13065. Localization localization;
  13066. Log log;
  13067. Network network;
  13068. Node node;
  13069. Octree octree;
  13070. PhysicsWorld physicsWorld;
  13071. PhysicsWorld2D physicsWorld2D;
  13072. Renderer renderer;
  13073. ResourceCache resourceCache;
  13074. Scene scene;
  13075. Script script;
  13076. ScriptFile scriptFile;
  13077. ScriptInstance self;
  13078. Time time;
  13079. UI ui;
  13080. // Global constants
  13081. uint AM_COMPONENTID;
  13082. uint AM_DEFAULT;
  13083. uint AM_FILE;
  13084. uint AM_LATESTDATA;
  13085. uint AM_NET;
  13086. uint AM_NODEID;
  13087. uint AM_NODEIDVECTOR;
  13088. uint AM_NOEDIT;
  13089. Color BLACK;
  13090. Color BLUE;
  13091. uint8 CHANNEL_POSITION;
  13092. uint8 CHANNEL_ROTATION;
  13093. uint8 CHANNEL_SCALE;
  13094. uint CLEAR_COLOR;
  13095. uint CLEAR_DEPTH;
  13096. uint CLEAR_STENCIL;
  13097. int CONTROLLER_AXIS_LEFTX;
  13098. int CONTROLLER_AXIS_LEFTY;
  13099. int CONTROLLER_AXIS_RIGHTX;
  13100. int CONTROLLER_AXIS_RIGHTY;
  13101. int CONTROLLER_AXIS_TRIGGERLEFT;
  13102. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13103. int CONTROLLER_BUTTON_A;
  13104. int CONTROLLER_BUTTON_B;
  13105. int CONTROLLER_BUTTON_BACK;
  13106. int CONTROLLER_BUTTON_DPAD_DOWN;
  13107. int CONTROLLER_BUTTON_DPAD_LEFT;
  13108. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13109. int CONTROLLER_BUTTON_DPAD_UP;
  13110. int CONTROLLER_BUTTON_GUIDE;
  13111. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13112. int CONTROLLER_BUTTON_LEFTSTICK;
  13113. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13114. int CONTROLLER_BUTTON_RIGHTSTICK;
  13115. int CONTROLLER_BUTTON_START;
  13116. int CONTROLLER_BUTTON_X;
  13117. int CONTROLLER_BUTTON_Y;
  13118. Color CYAN;
  13119. uint DD_DISABLED;
  13120. uint DD_SOURCE;
  13121. uint DD_SOURCE_AND_TARGET;
  13122. uint DD_TARGET;
  13123. uint DEBUGHUD_SHOW_ALL;
  13124. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13125. uint DEBUGHUD_SHOW_MEMORY;
  13126. uint DEBUGHUD_SHOW_MODE;
  13127. uint DEBUGHUD_SHOW_NONE;
  13128. uint DEBUGHUD_SHOW_PROFILER;
  13129. uint DEBUGHUD_SHOW_STATS;
  13130. uint DEFAULT_LIGHTMASK;
  13131. uint DEFAULT_VIEWMASK;
  13132. uint DRAWABLE_ANY;
  13133. uint DRAWABLE_GEOMETRY;
  13134. uint DRAWABLE_GEOMETRY2D;
  13135. uint DRAWABLE_LIGHT;
  13136. uint DRAWABLE_ZONE;
  13137. uint FIRST_LOCAL_ID;
  13138. uint FIRST_REPLICATED_ID;
  13139. Color GRAY;
  13140. Color GREEN;
  13141. int HAT_CENTER;
  13142. int HAT_DOWN;
  13143. int HAT_LEFT;
  13144. int HAT_RIGHT;
  13145. int HAT_UP;
  13146. int KEY_0;
  13147. int KEY_1;
  13148. int KEY_2;
  13149. int KEY_3;
  13150. int KEY_4;
  13151. int KEY_5;
  13152. int KEY_6;
  13153. int KEY_7;
  13154. int KEY_8;
  13155. int KEY_9;
  13156. int KEY_A;
  13157. int KEY_ALT;
  13158. int KEY_APPLICATION;
  13159. int KEY_B;
  13160. int KEY_BACKSPACE;
  13161. int KEY_C;
  13162. int KEY_CAPSLOCK;
  13163. int KEY_CTRL;
  13164. int KEY_D;
  13165. int KEY_DELETE;
  13166. int KEY_DOWN;
  13167. int KEY_E;
  13168. int KEY_END;
  13169. int KEY_ESC;
  13170. int KEY_F;
  13171. int KEY_F1;
  13172. int KEY_F10;
  13173. int KEY_F11;
  13174. int KEY_F12;
  13175. int KEY_F13;
  13176. int KEY_F14;
  13177. int KEY_F15;
  13178. int KEY_F16;
  13179. int KEY_F17;
  13180. int KEY_F18;
  13181. int KEY_F19;
  13182. int KEY_F2;
  13183. int KEY_F20;
  13184. int KEY_F21;
  13185. int KEY_F22;
  13186. int KEY_F23;
  13187. int KEY_F24;
  13188. int KEY_F3;
  13189. int KEY_F4;
  13190. int KEY_F5;
  13191. int KEY_F6;
  13192. int KEY_F7;
  13193. int KEY_F8;
  13194. int KEY_F9;
  13195. int KEY_G;
  13196. int KEY_GUI;
  13197. int KEY_H;
  13198. int KEY_HOME;
  13199. int KEY_I;
  13200. int KEY_INSERT;
  13201. int KEY_J;
  13202. int KEY_K;
  13203. int KEY_KP_0;
  13204. int KEY_KP_1;
  13205. int KEY_KP_2;
  13206. int KEY_KP_3;
  13207. int KEY_KP_4;
  13208. int KEY_KP_5;
  13209. int KEY_KP_6;
  13210. int KEY_KP_7;
  13211. int KEY_KP_8;
  13212. int KEY_KP_9;
  13213. int KEY_KP_DIVIDE;
  13214. int KEY_KP_ENTER;
  13215. int KEY_KP_MINUS;
  13216. int KEY_KP_MULTIPLY;
  13217. int KEY_KP_PERIOD;
  13218. int KEY_KP_PLUS;
  13219. int KEY_L;
  13220. int KEY_LALT;
  13221. int KEY_LCTRL;
  13222. int KEY_LEFT;
  13223. int KEY_LGUI;
  13224. int KEY_LSHIFT;
  13225. int KEY_M;
  13226. int KEY_N;
  13227. int KEY_NUMLOCKCLEAR;
  13228. int KEY_O;
  13229. int KEY_P;
  13230. int KEY_PAGEDOWN;
  13231. int KEY_PAGEUP;
  13232. int KEY_PAUSE;
  13233. int KEY_PRINTSCREEN;
  13234. int KEY_Q;
  13235. int KEY_R;
  13236. int KEY_RALT;
  13237. int KEY_RCTRL;
  13238. int KEY_RETURN;
  13239. int KEY_RETURN2;
  13240. int KEY_RGUI;
  13241. int KEY_RIGHT;
  13242. int KEY_RSHIFT;
  13243. int KEY_S;
  13244. int KEY_SCROLLLOCK;
  13245. int KEY_SELECT;
  13246. int KEY_SHIFT;
  13247. int KEY_SPACE;
  13248. int KEY_T;
  13249. int KEY_TAB;
  13250. int KEY_U;
  13251. int KEY_UP;
  13252. int KEY_V;
  13253. int KEY_W;
  13254. int KEY_X;
  13255. int KEY_Y;
  13256. int KEY_Z;
  13257. uint LAST_LOCAL_ID;
  13258. uint LAST_REPLICATED_ID;
  13259. int LOG_DEBUG;
  13260. int LOG_ERROR;
  13261. int LOG_INFO;
  13262. int LOG_NONE;
  13263. int LOG_WARNING;
  13264. Color MAGENTA;
  13265. uint MASK_BLENDINDICES;
  13266. uint MASK_BLENDWEIGHTS;
  13267. uint MASK_COLOR;
  13268. uint MASK_CUBETEXCOORD1;
  13269. uint MASK_CUBETEXCOORD2;
  13270. uint MASK_DEFAULT;
  13271. uint MASK_INSTANCEMATRIX1;
  13272. uint MASK_INSTANCEMATRIX2;
  13273. uint MASK_INSTANCEMATRIX3;
  13274. uint MASK_NONE;
  13275. uint MASK_NORMAL;
  13276. uint MASK_POSITION;
  13277. uint MASK_TANGENT;
  13278. uint MASK_TEXCOORD1;
  13279. uint MASK_TEXCOORD2;
  13280. int MOUSEB_LEFT;
  13281. int MOUSEB_MIDDLE;
  13282. int MOUSEB_RIGHT;
  13283. float M_DEGTORAD;
  13284. float M_DEGTORAD_2;
  13285. float M_EPSILON;
  13286. float M_HALF_PI;
  13287. float M_INFINITY;
  13288. float M_LARGE_EPSILON;
  13289. float M_LARGE_VALUE;
  13290. int M_MAX_INT;
  13291. uint M_MAX_UNSIGNED;
  13292. int M_MIN_INT;
  13293. uint M_MIN_UNSIGNED;
  13294. float M_PI;
  13295. float M_RADTODEG;
  13296. float PIXEL_SIZE;
  13297. int QUALITY_HIGH;
  13298. int QUALITY_LOW;
  13299. int QUALITY_MAX;
  13300. int QUALITY_MEDIUM;
  13301. int QUAL_ALT;
  13302. int QUAL_ANY;
  13303. int QUAL_CTRL;
  13304. int QUAL_SHIFT;
  13305. Color RED;
  13306. int SCANCODE_0;
  13307. int SCANCODE_1;
  13308. int SCANCODE_2;
  13309. int SCANCODE_3;
  13310. int SCANCODE_4;
  13311. int SCANCODE_5;
  13312. int SCANCODE_6;
  13313. int SCANCODE_7;
  13314. int SCANCODE_8;
  13315. int SCANCODE_9;
  13316. int SCANCODE_A;
  13317. int SCANCODE_AC_BACK;
  13318. int SCANCODE_AC_BOOKMARKS;
  13319. int SCANCODE_AC_FORWARD;
  13320. int SCANCODE_AC_HOME;
  13321. int SCANCODE_AC_REFRESH;
  13322. int SCANCODE_AC_SEARCH;
  13323. int SCANCODE_AC_STOP;
  13324. int SCANCODE_AGAIN;
  13325. int SCANCODE_ALT;
  13326. int SCANCODE_ALTERASE;
  13327. int SCANCODE_APOSTROPHE;
  13328. int SCANCODE_APP1;
  13329. int SCANCODE_APP2;
  13330. int SCANCODE_APPLICATION;
  13331. int SCANCODE_AUDIOMUTE;
  13332. int SCANCODE_AUDIONEXT;
  13333. int SCANCODE_AUDIOPLAY;
  13334. int SCANCODE_AUDIOPREV;
  13335. int SCANCODE_AUDIOSTOP;
  13336. int SCANCODE_B;
  13337. int SCANCODE_BACKSLASH;
  13338. int SCANCODE_BACKSPACE;
  13339. int SCANCODE_BRIGHTNESSDOWN;
  13340. int SCANCODE_BRIGHTNESSUP;
  13341. int SCANCODE_C;
  13342. int SCANCODE_CALCULATOR;
  13343. int SCANCODE_CANCEL;
  13344. int SCANCODE_CAPSLOCK;
  13345. int SCANCODE_CLEAR;
  13346. int SCANCODE_CLEARAGAIN;
  13347. int SCANCODE_COMMA;
  13348. int SCANCODE_COMPUTER;
  13349. int SCANCODE_COPY;
  13350. int SCANCODE_CRSEL;
  13351. int SCANCODE_CTRL;
  13352. int SCANCODE_CURRENCYSUBUNIT;
  13353. int SCANCODE_CURRENCYUNIT;
  13354. int SCANCODE_CUT;
  13355. int SCANCODE_D;
  13356. int SCANCODE_DECIMALSEPARATOR;
  13357. int SCANCODE_DELETE;
  13358. int SCANCODE_DISPLAYSWITCH;
  13359. int SCANCODE_DOWN;
  13360. int SCANCODE_E;
  13361. int SCANCODE_EJECT;
  13362. int SCANCODE_END;
  13363. int SCANCODE_EQUALS;
  13364. int SCANCODE_ESCAPE;
  13365. int SCANCODE_EXECUTE;
  13366. int SCANCODE_EXSEL;
  13367. int SCANCODE_F;
  13368. int SCANCODE_F1;
  13369. int SCANCODE_F10;
  13370. int SCANCODE_F11;
  13371. int SCANCODE_F12;
  13372. int SCANCODE_F13;
  13373. int SCANCODE_F14;
  13374. int SCANCODE_F15;
  13375. int SCANCODE_F16;
  13376. int SCANCODE_F17;
  13377. int SCANCODE_F18;
  13378. int SCANCODE_F19;
  13379. int SCANCODE_F2;
  13380. int SCANCODE_F20;
  13381. int SCANCODE_F21;
  13382. int SCANCODE_F22;
  13383. int SCANCODE_F23;
  13384. int SCANCODE_F24;
  13385. int SCANCODE_F3;
  13386. int SCANCODE_F4;
  13387. int SCANCODE_F5;
  13388. int SCANCODE_F6;
  13389. int SCANCODE_F7;
  13390. int SCANCODE_F8;
  13391. int SCANCODE_F9;
  13392. int SCANCODE_FIND;
  13393. int SCANCODE_G;
  13394. int SCANCODE_GRAVE;
  13395. int SCANCODE_GUI;
  13396. int SCANCODE_H;
  13397. int SCANCODE_HELP;
  13398. int SCANCODE_HOME;
  13399. int SCANCODE_I;
  13400. int SCANCODE_INSERT;
  13401. int SCANCODE_INTERNATIONAL1;
  13402. int SCANCODE_INTERNATIONAL2;
  13403. int SCANCODE_INTERNATIONAL3;
  13404. int SCANCODE_INTERNATIONAL4;
  13405. int SCANCODE_INTERNATIONAL5;
  13406. int SCANCODE_INTERNATIONAL6;
  13407. int SCANCODE_INTERNATIONAL7;
  13408. int SCANCODE_INTERNATIONAL8;
  13409. int SCANCODE_INTERNATIONAL9;
  13410. int SCANCODE_J;
  13411. int SCANCODE_K;
  13412. int SCANCODE_KBDILLUMDOWN;
  13413. int SCANCODE_KBDILLUMTOGGLE;
  13414. int SCANCODE_KBDILLUMUP;
  13415. int SCANCODE_KP_0;
  13416. int SCANCODE_KP_00;
  13417. int SCANCODE_KP_000;
  13418. int SCANCODE_KP_1;
  13419. int SCANCODE_KP_2;
  13420. int SCANCODE_KP_3;
  13421. int SCANCODE_KP_4;
  13422. int SCANCODE_KP_5;
  13423. int SCANCODE_KP_6;
  13424. int SCANCODE_KP_7;
  13425. int SCANCODE_KP_8;
  13426. int SCANCODE_KP_9;
  13427. int SCANCODE_KP_A;
  13428. int SCANCODE_KP_AMPERSAND;
  13429. int SCANCODE_KP_AT;
  13430. int SCANCODE_KP_B;
  13431. int SCANCODE_KP_BACKSPACE;
  13432. int SCANCODE_KP_BINARY;
  13433. int SCANCODE_KP_C;
  13434. int SCANCODE_KP_CLEAR;
  13435. int SCANCODE_KP_CLEARENTRY;
  13436. int SCANCODE_KP_COLON;
  13437. int SCANCODE_KP_COMMA;
  13438. int SCANCODE_KP_D;
  13439. int SCANCODE_KP_DBLAMPERSAND;
  13440. int SCANCODE_KP_DBLVERTICALBAR;
  13441. int SCANCODE_KP_DECIMAL;
  13442. int SCANCODE_KP_DIVIDE;
  13443. int SCANCODE_KP_E;
  13444. int SCANCODE_KP_ENTER;
  13445. int SCANCODE_KP_EQUALS;
  13446. int SCANCODE_KP_EQUALSAS400;
  13447. int SCANCODE_KP_EXCLAM;
  13448. int SCANCODE_KP_F;
  13449. int SCANCODE_KP_GREATER;
  13450. int SCANCODE_KP_HASH;
  13451. int SCANCODE_KP_HEXADECIMAL;
  13452. int SCANCODE_KP_LEFTBRACE;
  13453. int SCANCODE_KP_LEFTPAREN;
  13454. int SCANCODE_KP_LESS;
  13455. int SCANCODE_KP_MEMADD;
  13456. int SCANCODE_KP_MEMCLEAR;
  13457. int SCANCODE_KP_MEMDIVIDE;
  13458. int SCANCODE_KP_MEMMULTIPLY;
  13459. int SCANCODE_KP_MEMRECALL;
  13460. int SCANCODE_KP_MEMSTORE;
  13461. int SCANCODE_KP_MEMSUBTRACT;
  13462. int SCANCODE_KP_MINUS;
  13463. int SCANCODE_KP_MULTIPLY;
  13464. int SCANCODE_KP_OCTAL;
  13465. int SCANCODE_KP_PERCENT;
  13466. int SCANCODE_KP_PERIOD;
  13467. int SCANCODE_KP_PLUS;
  13468. int SCANCODE_KP_PLUSMINUS;
  13469. int SCANCODE_KP_POWER;
  13470. int SCANCODE_KP_RIGHTBRACE;
  13471. int SCANCODE_KP_RIGHTPAREN;
  13472. int SCANCODE_KP_SPACE;
  13473. int SCANCODE_KP_TAB;
  13474. int SCANCODE_KP_VERTICALBAR;
  13475. int SCANCODE_KP_XOR;
  13476. int SCANCODE_L;
  13477. int SCANCODE_LALT;
  13478. int SCANCODE_LANG1;
  13479. int SCANCODE_LANG2;
  13480. int SCANCODE_LANG3;
  13481. int SCANCODE_LANG4;
  13482. int SCANCODE_LANG5;
  13483. int SCANCODE_LANG6;
  13484. int SCANCODE_LANG7;
  13485. int SCANCODE_LANG8;
  13486. int SCANCODE_LANG9;
  13487. int SCANCODE_LCTRL;
  13488. int SCANCODE_LEFT;
  13489. int SCANCODE_LEFTBRACKET;
  13490. int SCANCODE_LGUI;
  13491. int SCANCODE_LSHIFT;
  13492. int SCANCODE_M;
  13493. int SCANCODE_MAIL;
  13494. int SCANCODE_MEDIASELECT;
  13495. int SCANCODE_MENU;
  13496. int SCANCODE_MINUS;
  13497. int SCANCODE_MODE;
  13498. int SCANCODE_MUTE;
  13499. int SCANCODE_N;
  13500. int SCANCODE_NONUSBACKSLASH;
  13501. int SCANCODE_NONUSHASH;
  13502. int SCANCODE_NUMLOCKCLEAR;
  13503. int SCANCODE_O;
  13504. int SCANCODE_OPER;
  13505. int SCANCODE_OUT;
  13506. int SCANCODE_P;
  13507. int SCANCODE_PAGEDOWN;
  13508. int SCANCODE_PAGEUP;
  13509. int SCANCODE_PASTE;
  13510. int SCANCODE_PAUSE;
  13511. int SCANCODE_PERIOD;
  13512. int SCANCODE_POWER;
  13513. int SCANCODE_PRINTSCREEN;
  13514. int SCANCODE_PRIOR;
  13515. int SCANCODE_Q;
  13516. int SCANCODE_R;
  13517. int SCANCODE_RALT;
  13518. int SCANCODE_RCTRL;
  13519. int SCANCODE_RETURN;
  13520. int SCANCODE_RETURN2;
  13521. int SCANCODE_RGUI;
  13522. int SCANCODE_RIGHT;
  13523. int SCANCODE_RIGHTBRACKET;
  13524. int SCANCODE_RSHIFT;
  13525. int SCANCODE_S;
  13526. int SCANCODE_SCROLLLOCK;
  13527. int SCANCODE_SELECT;
  13528. int SCANCODE_SEMICOLON;
  13529. int SCANCODE_SEPARATOR;
  13530. int SCANCODE_SHIFT;
  13531. int SCANCODE_SLASH;
  13532. int SCANCODE_SLEEP;
  13533. int SCANCODE_SPACE;
  13534. int SCANCODE_STOP;
  13535. int SCANCODE_SYSREQ;
  13536. int SCANCODE_T;
  13537. int SCANCODE_TAB;
  13538. int SCANCODE_THOUSANDSSEPARATOR;
  13539. int SCANCODE_U;
  13540. int SCANCODE_UNDO;
  13541. int SCANCODE_UNKNOWN;
  13542. int SCANCODE_UP;
  13543. int SCANCODE_V;
  13544. int SCANCODE_VOLUMEDOWN;
  13545. int SCANCODE_VOLUMEUP;
  13546. int SCANCODE_W;
  13547. int SCANCODE_WWW;
  13548. int SCANCODE_X;
  13549. int SCANCODE_Y;
  13550. int SCANCODE_Z;
  13551. uint SCAN_DIRS;
  13552. uint SCAN_FILES;
  13553. uint SCAN_HIDDEN;
  13554. int SHADOWQUALITY_HIGH_16BIT;
  13555. int SHADOWQUALITY_HIGH_24BIT;
  13556. int SHADOWQUALITY_LOW_16BIT;
  13557. int SHADOWQUALITY_LOW_24BIT;
  13558. String SOUND_AMBIENT;
  13559. String SOUND_EFFECT;
  13560. String SOUND_MASTER;
  13561. String SOUND_MUSIC;
  13562. String SOUND_VOICE;
  13563. Color TRANSPARENT;
  13564. uint VO_DISABLE_OCCLUSION;
  13565. uint VO_DISABLE_SHADOWS;
  13566. uint VO_LOW_MATERIAL_QUALITY;
  13567. uint VO_NONE;
  13568. Color WHITE;
  13569. Color YELLOW;
  13570. VariantMap globalVars;