2
0

AngelScriptAPI.h 340 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047
  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. bool maxLayers;
  4361. uint maxObstacles;
  4362. /* readonly */
  4363. Node node;
  4364. /* readonly */
  4365. uint numAttributes;
  4366. /* readonly */
  4367. IntVector2 numTiles;
  4368. ObjectAnimation objectAnimation;
  4369. Vector3 padding;
  4370. NavmeshPartitionType partitionType;
  4371. /* readonly */
  4372. int refs;
  4373. float regionMergeSize;
  4374. float regionMinSize;
  4375. bool temporary;
  4376. int tileSize;
  4377. /* readonly */
  4378. StringHash type;
  4379. /* readonly */
  4380. String typeName;
  4381. /* readonly */
  4382. int weakRefs;
  4383. /* readonly */
  4384. BoundingBox worldBoundingBox;
  4385. };
  4386. class Engine
  4387. {
  4388. // Methods:
  4389. Console CreateConsole();
  4390. DebugHud CreateDebugHud();
  4391. void DumpMemory();
  4392. void DumpProfiler();
  4393. void DumpResources(bool = false);
  4394. void Exit();
  4395. void RunFrame();
  4396. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4397. // Properties:
  4398. bool autoExit;
  4399. /* readonly */
  4400. String category;
  4401. /* readonly */
  4402. bool exiting;
  4403. /* readonly */
  4404. bool headless;
  4405. /* readonly */
  4406. bool initialized;
  4407. int maxFps;
  4408. int maxInactiveFps;
  4409. int minFps;
  4410. bool pauseMinimized;
  4411. /* readonly */
  4412. int refs;
  4413. int timeStepSmoothing;
  4414. /* readonly */
  4415. StringHash type;
  4416. /* readonly */
  4417. String typeName;
  4418. /* readonly */
  4419. int weakRefs;
  4420. };
  4421. class File
  4422. {
  4423. // Methods:
  4424. void Close();
  4425. bool Open(const String&, FileMode = FILE_READ);
  4426. Array<uint8> Read(uint);
  4427. bool ReadBool();
  4428. BoundingBox ReadBoundingBox();
  4429. int8 ReadByte();
  4430. Color ReadColor();
  4431. double ReadDouble();
  4432. String ReadFileID();
  4433. float ReadFloat();
  4434. int ReadInt();
  4435. IntRect ReadIntRect();
  4436. IntVector2 ReadIntVector2();
  4437. String ReadLine();
  4438. Matrix3 ReadMatrix3();
  4439. Matrix3x4 ReadMatrix3x4();
  4440. Matrix4 ReadMatrix4();
  4441. uint ReadNetID();
  4442. Quaternion ReadPackedQuaternion();
  4443. Vector3 ReadPackedVector3(float);
  4444. Quaternion ReadQuaternion();
  4445. int16 ReadShort();
  4446. String ReadString();
  4447. StringHash ReadStringHash();
  4448. uint8 ReadUByte();
  4449. uint ReadUInt();
  4450. uint16 ReadUShort();
  4451. uint ReadVLE();
  4452. Variant ReadVariant();
  4453. VariantMap ReadVariantMap();
  4454. Vector2 ReadVector2();
  4455. Vector3 ReadVector3();
  4456. Vector4 ReadVector4();
  4457. VectorBuffer ReadVectorBuffer(uint);
  4458. uint Seek(uint);
  4459. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4460. uint Write(Array<uint8>);
  4461. bool WriteBool(bool);
  4462. bool WriteBoundingBox(const BoundingBox&);
  4463. bool WriteByte(int8);
  4464. bool WriteColor(const Color&);
  4465. bool WriteDouble(double);
  4466. bool WriteFileID(const String&);
  4467. bool WriteFloat(float);
  4468. bool WriteInt(int);
  4469. bool WriteIntRect(const IntRect&);
  4470. bool WriteIntVector2(const IntVector2&);
  4471. bool WriteLine(const String&);
  4472. bool WriteMatrix3(const Matrix3&);
  4473. bool WriteMatrix3x4(const Matrix3x4&);
  4474. bool WriteMatrix4(const Matrix4&);
  4475. bool WriteNetID(uint);
  4476. bool WritePackedQuaternion(const Quaternion&);
  4477. bool WritePackedVector3(const Vector3&, float);
  4478. bool WriteQuaternion(const Quaternion&);
  4479. bool WriteShort(int16);
  4480. bool WriteString(const String&);
  4481. bool WriteStringHash(const StringHash&);
  4482. bool WriteUByte(uint8);
  4483. bool WriteUInt(uint);
  4484. bool WriteUShort(uint16);
  4485. bool WriteVLE(uint);
  4486. bool WriteVariant(const Variant&);
  4487. bool WriteVariantMap(const VariantMap&);
  4488. bool WriteVector2(const Vector2&);
  4489. bool WriteVector3(const Vector3&);
  4490. bool WriteVector4(const Vector4&);
  4491. bool WriteVectorBuffer(const VectorBuffer&);
  4492. // Properties:
  4493. /* readonly */
  4494. String category;
  4495. /* readonly */
  4496. uint checksum;
  4497. /* readonly */
  4498. bool eof;
  4499. /* readonly */
  4500. FileMode mode;
  4501. /* readonly */
  4502. String name;
  4503. /* readonly */
  4504. bool open;
  4505. /* readonly */
  4506. bool packaged;
  4507. /* readonly */
  4508. uint position;
  4509. /* readonly */
  4510. int refs;
  4511. /* readonly */
  4512. uint size;
  4513. /* readonly */
  4514. StringHash type;
  4515. /* readonly */
  4516. String typeName;
  4517. /* readonly */
  4518. int weakRefs;
  4519. };
  4520. class FileSelector
  4521. {
  4522. // Methods:
  4523. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4524. void SetButtonTexts(const String&, const String&);
  4525. void SetFilters(Array<String>, uint);
  4526. void UpdateElements();
  4527. // Properties:
  4528. /* readonly */
  4529. Button cancelButton;
  4530. /* readonly */
  4531. String category;
  4532. XMLFile defaultStyle;
  4533. bool directoryMode;
  4534. /* readonly */
  4535. ListView fileList;
  4536. String fileName;
  4537. /* readonly */
  4538. LineEdit fileNameEdit;
  4539. /* readonly */
  4540. String filter;
  4541. /* readonly */
  4542. uint filterIndex;
  4543. /* readonly */
  4544. DropDownList filterList;
  4545. /* readonly */
  4546. Button okButton;
  4547. String path;
  4548. /* readonly */
  4549. LineEdit pathEdit;
  4550. /* readonly */
  4551. int refs;
  4552. String title;
  4553. /* readonly */
  4554. Text titleText;
  4555. /* readonly */
  4556. StringHash type;
  4557. /* readonly */
  4558. String typeName;
  4559. /* readonly */
  4560. int weakRefs;
  4561. /* readonly */
  4562. Window window;
  4563. };
  4564. class FileSystem
  4565. {
  4566. // Methods:
  4567. bool Copy(const String&, const String&);
  4568. bool CreateDir(const String&);
  4569. bool Delete(const String&);
  4570. bool DirExists(const String&) const;
  4571. bool FileExists(const String&) const;
  4572. String GetAppPreferencesDir(const String&, const String&) const;
  4573. uint GetLastModifiedTime(const String&) const;
  4574. bool Rename(const String&, const String&);
  4575. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4576. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4577. bool SetLastModifiedTime(const String&, uint);
  4578. int SystemCommand(const String&, bool = false);
  4579. uint SystemCommandAsync(const String&);
  4580. bool SystemOpen(const String&, const String&);
  4581. int SystemRun(const String&, Array<String>);
  4582. uint SystemRunAsync(const String&, Array<String>);
  4583. // Properties:
  4584. /* readonly */
  4585. String category;
  4586. String currentDir;
  4587. bool executeConsoleCommands;
  4588. /* readonly */
  4589. String programDir;
  4590. /* readonly */
  4591. int refs;
  4592. /* readonly */
  4593. StringHash type;
  4594. /* readonly */
  4595. String typeName;
  4596. /* readonly */
  4597. String userDocumentsDir;
  4598. /* readonly */
  4599. int weakRefs;
  4600. };
  4601. class FocusParameters
  4602. {
  4603. // Properties:
  4604. bool autoSize;
  4605. bool focus;
  4606. float minView;
  4607. bool nonUniform;
  4608. float quantize;
  4609. };
  4610. class Font
  4611. {
  4612. // Methods:
  4613. IntVector2 GetTotalGlyphOffset(int) const;
  4614. bool Load(File);
  4615. bool Load(VectorBuffer&);
  4616. bool Save(File) const;
  4617. bool Save(VectorBuffer&) const;
  4618. bool SaveXML(File, int, bool = false, const String& = "\t");
  4619. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4620. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4621. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4622. // Properties:
  4623. IntVector2 absoluteGlyphOffset;
  4624. /* readonly */
  4625. String category;
  4626. /* readonly */
  4627. uint memoryUse;
  4628. String name;
  4629. /* readonly */
  4630. int refs;
  4631. Vector2 scaledGlyphOffset;
  4632. /* readonly */
  4633. StringHash type;
  4634. /* readonly */
  4635. String typeName;
  4636. /* readonly */
  4637. uint useTimer;
  4638. /* readonly */
  4639. int weakRefs;
  4640. };
  4641. class Frustum
  4642. {
  4643. // Methods:
  4644. void Define(const BoundingBox&, const Matrix3x4&);
  4645. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4646. void Define(float, float, float, float, float, const Matrix3x4&);
  4647. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4648. float Distance(const Vector3&) const;
  4649. Intersection IsInside(const BoundingBox&);
  4650. Intersection IsInside(const Sphere&);
  4651. Intersection IsInside(const Vector3&);
  4652. Intersection IsInsideFast(const BoundingBox&) const;
  4653. Intersection IsInsideFast(const Sphere&) const;
  4654. void Transform(const Matrix3&);
  4655. void Transform(const Matrix3x4&);
  4656. Frustum Transformed(const Matrix3&) const;
  4657. Frustum Transformed(const Matrix3x4&) const;
  4658. // Properties:
  4659. /* readonly */
  4660. Array<Vector3> vertices;
  4661. };
  4662. class Geometry
  4663. {
  4664. // Methods:
  4665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4666. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4667. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4668. void SetIndexBuffer(IndexBuffer);
  4669. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4670. // Properties:
  4671. /* readonly */
  4672. String category;
  4673. /* readonly */
  4674. bool empty;
  4675. IndexBuffer indexBuffer;
  4676. /* readonly */
  4677. uint indexCount;
  4678. /* readonly */
  4679. uint indexStart;
  4680. float lodDistance;
  4681. uint numVertexBuffers;
  4682. /* readonly */
  4683. PrimitiveType primitiveType;
  4684. /* readonly */
  4685. int refs;
  4686. /* readonly */
  4687. StringHash type;
  4688. /* readonly */
  4689. String typeName;
  4690. /* readonly */
  4691. Array<VertexBuffer> vertexBuffers;
  4692. /* readonly */
  4693. uint vertexCount;
  4694. /* readonly */
  4695. Array<uint> vertexElementMasks;
  4696. /* readonly */
  4697. uint vertexStart;
  4698. /* readonly */
  4699. int weakRefs;
  4700. };
  4701. class Graphics
  4702. {
  4703. // Methods:
  4704. void BeginDumpShaders(const String&);
  4705. void Close();
  4706. void EndDumpShaders();
  4707. void Maximize();
  4708. void Minimize();
  4709. void PrecacheShaders(File);
  4710. void PrecacheShaders(VectorBuffer&);
  4711. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4712. bool SetMode(int, int);
  4713. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4714. void SetWindowPosition(int, int);
  4715. bool TakeScreenShot(Image);
  4716. bool ToggleFullscreen();
  4717. // Properties:
  4718. /* readonly */
  4719. String apiName;
  4720. /* readonly */
  4721. bool borderless;
  4722. /* readonly */
  4723. String category;
  4724. /* readonly */
  4725. bool deferredSupport;
  4726. /* readonly */
  4727. IntVector2 desktopResolution;
  4728. /* readonly */
  4729. bool deviceLost;
  4730. bool flushGPU;
  4731. /* readonly */
  4732. bool fullscreen;
  4733. /* readonly */
  4734. bool hardwareShadowSupport;
  4735. /* readonly */
  4736. int height;
  4737. /* readonly */
  4738. bool initialized;
  4739. /* readonly */
  4740. bool instancingSupport;
  4741. /* readonly */
  4742. bool lightPrepassSupport;
  4743. /* readonly */
  4744. int multiSample;
  4745. /* readonly */
  4746. Array<int> multiSampleLevels;
  4747. /* readonly */
  4748. uint numBatches;
  4749. /* readonly */
  4750. uint numPrimitives;
  4751. String orientations;
  4752. /* readonly */
  4753. bool readableDepthSupport;
  4754. /* readonly */
  4755. int refs;
  4756. /* readonly */
  4757. bool resizable;
  4758. /* readonly */
  4759. Array<IntVector2> resolutions;
  4760. bool sRGB;
  4761. /* readonly */
  4762. bool sRGBSupport;
  4763. /* readonly */
  4764. bool sRGBWriteSupport;
  4765. /* readonly */
  4766. bool tripleBuffer;
  4767. /* readonly */
  4768. StringHash type;
  4769. /* readonly */
  4770. String typeName;
  4771. /* readonly */
  4772. bool vsync;
  4773. /* readonly */
  4774. int weakRefs;
  4775. /* readonly */
  4776. int width;
  4777. /* writeonly */
  4778. Image windowIcon;
  4779. IntVector2 windowPosition;
  4780. String windowTitle;
  4781. };
  4782. class HttpRequest
  4783. {
  4784. // Methods:
  4785. Array<uint8> Read(uint);
  4786. bool ReadBool();
  4787. BoundingBox ReadBoundingBox();
  4788. int8 ReadByte();
  4789. Color ReadColor();
  4790. double ReadDouble();
  4791. String ReadFileID();
  4792. float ReadFloat();
  4793. int ReadInt();
  4794. IntRect ReadIntRect();
  4795. IntVector2 ReadIntVector2();
  4796. String ReadLine();
  4797. Matrix3 ReadMatrix3();
  4798. Matrix3x4 ReadMatrix3x4();
  4799. Matrix4 ReadMatrix4();
  4800. uint ReadNetID();
  4801. Quaternion ReadPackedQuaternion();
  4802. Vector3 ReadPackedVector3(float);
  4803. Quaternion ReadQuaternion();
  4804. int16 ReadShort();
  4805. String ReadString();
  4806. StringHash ReadStringHash();
  4807. uint8 ReadUByte();
  4808. uint ReadUInt();
  4809. uint16 ReadUShort();
  4810. uint ReadVLE();
  4811. Variant ReadVariant();
  4812. VariantMap ReadVariantMap();
  4813. Vector2 ReadVector2();
  4814. Vector3 ReadVector3();
  4815. Vector4 ReadVector4();
  4816. VectorBuffer ReadVectorBuffer(uint);
  4817. uint Seek(uint);
  4818. // Properties:
  4819. /* readonly */
  4820. uint availableSize;
  4821. /* readonly */
  4822. uint checksum;
  4823. /* readonly */
  4824. bool eof;
  4825. /* readonly */
  4826. String error;
  4827. /* readonly */
  4828. String name;
  4829. /* readonly */
  4830. bool open;
  4831. /* readonly */
  4832. uint position;
  4833. /* readonly */
  4834. int refs;
  4835. /* readonly */
  4836. uint size;
  4837. /* readonly */
  4838. HttpRequestState state;
  4839. /* readonly */
  4840. String url;
  4841. /* readonly */
  4842. String verb;
  4843. /* readonly */
  4844. int weakRefs;
  4845. };
  4846. class Image
  4847. {
  4848. // Methods:
  4849. void Clear(const Color&);
  4850. void ClearInt(uint);
  4851. bool FlipHorizontal();
  4852. bool FlipVertical();
  4853. Color GetPixel(int, int) const;
  4854. Color GetPixel(int, int, int) const;
  4855. Color GetPixelBilinear(float, float) const;
  4856. uint GetPixelInt(int, int) const;
  4857. uint GetPixelInt(int, int, int) const;
  4858. Color GetPixelTrilinear(float, float, float) const;
  4859. Image GetSubimage(const IntRect&) const;
  4860. bool Load(File);
  4861. bool Load(VectorBuffer&);
  4862. bool LoadColorLUT(File);
  4863. bool LoadColorLUT(VectorBuffer&);
  4864. bool Resize(int, int);
  4865. bool Save(File) const;
  4866. bool Save(VectorBuffer&) const;
  4867. bool SaveBMP(const String&) const;
  4868. bool SaveJPG(const String&, int) const;
  4869. bool SavePNG(const String&) const;
  4870. bool SaveTGA(const String&) const;
  4871. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4872. void SetPixel(int, int, const Color&);
  4873. void SetPixel(int, int, int, const Color&);
  4874. void SetPixelInt(int, int, int, uint);
  4875. void SetPixelInt(int, int, uint);
  4876. bool SetSize(int, int, int, uint);
  4877. bool SetSize(int, int, uint);
  4878. // Properties:
  4879. /* readonly */
  4880. bool array;
  4881. /* readonly */
  4882. String category;
  4883. /* readonly */
  4884. uint components;
  4885. /* readonly */
  4886. bool compressed;
  4887. /* readonly */
  4888. CompressedFormat compressedFormat;
  4889. /* readonly */
  4890. bool cubemap;
  4891. /* readonly */
  4892. int depth;
  4893. /* readonly */
  4894. int height;
  4895. /* readonly */
  4896. uint memoryUse;
  4897. String name;
  4898. /* readonly */
  4899. uint numCompressedLevels;
  4900. /* readonly */
  4901. int refs;
  4902. /* readonly */
  4903. bool sRGB;
  4904. /* readonly */
  4905. StringHash type;
  4906. /* readonly */
  4907. String typeName;
  4908. /* readonly */
  4909. uint useTimer;
  4910. /* readonly */
  4911. int weakRefs;
  4912. /* readonly */
  4913. int width;
  4914. };
  4915. class IndexBuffer
  4916. {
  4917. // Methods:
  4918. VectorBuffer GetData();
  4919. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4920. bool SetData(VectorBuffer&);
  4921. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  4922. void SetSize(uint, bool, bool = false);
  4923. // Properties:
  4924. /* readonly */
  4925. String category;
  4926. /* readonly */
  4927. bool dynamic;
  4928. /* readonly */
  4929. uint indexCount;
  4930. /* readonly */
  4931. uint indexSize;
  4932. /* readonly */
  4933. int refs;
  4934. bool shadowed;
  4935. /* readonly */
  4936. StringHash type;
  4937. /* readonly */
  4938. String typeName;
  4939. /* readonly */
  4940. int weakRefs;
  4941. };
  4942. class Input
  4943. {
  4944. // Methods:
  4945. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  4946. int GetKeyFromName(const String&) const;
  4947. int GetKeyFromScancode(int) const;
  4948. String GetKeyName(int) const;
  4949. int GetScancodeFromKey(int) const;
  4950. int GetScancodeFromName(const String&) const;
  4951. String GetScancodeName(int) const;
  4952. uint LoadGestures(File);
  4953. uint LoadGestures(VectorBuffer&);
  4954. bool RecordGesture();
  4955. void RemoveAllGestures();
  4956. bool RemoveGesture(uint);
  4957. bool RemoveScreenJoystick(int);
  4958. void ResetMouseVisible();
  4959. bool SaveGesture(File, uint);
  4960. bool SaveGesture(VectorBuffer&, uint);
  4961. bool SaveGestures(File);
  4962. bool SaveGestures(VectorBuffer&);
  4963. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4964. void SetMouseVisible(bool, bool = false);
  4965. // Properties:
  4966. /* readonly */
  4967. String category;
  4968. /* readonly */
  4969. bool focus;
  4970. /* readonly */
  4971. Array<JoystickState> joysticks;
  4972. /* readonly */
  4973. Array<JoystickState> joysticksByIndex;
  4974. /* readonly */
  4975. Array<bool> keyDown;
  4976. /* readonly */
  4977. Array<bool> keyPress;
  4978. /* readonly */
  4979. bool minimized;
  4980. /* readonly */
  4981. Array<bool> mouseButtonDown;
  4982. /* readonly */
  4983. Array<bool> mouseButtonPress;
  4984. bool mouseGrabbed;
  4985. MouseMode mouseMode;
  4986. /* readonly */
  4987. IntVector2 mouseMove;
  4988. /* readonly */
  4989. int mouseMoveWheel;
  4990. /* readonly */
  4991. int mouseMoveX;
  4992. /* readonly */
  4993. int mouseMoveY;
  4994. /* readonly */
  4995. IntVector2 mousePosition;
  4996. bool mouseVisible;
  4997. /* readonly */
  4998. uint numJoysticks;
  4999. /* readonly */
  5000. uint numTouches;
  5001. /* readonly */
  5002. Array<bool> qualifierDown;
  5003. /* readonly */
  5004. Array<bool> qualifierPress;
  5005. /* readonly */
  5006. int qualifiers;
  5007. /* readonly */
  5008. int refs;
  5009. /* readonly */
  5010. Array<bool> scancodeDown;
  5011. /* readonly */
  5012. Array<bool> scancodePress;
  5013. Array<bool> screenJoystickVisible;
  5014. /* readonly */
  5015. bool screenKeyboardSupport;
  5016. bool screenKeyboardVisible;
  5017. bool toggleFullscreen;
  5018. bool touchEmulation;
  5019. /* readonly */
  5020. Array<TouchState> touches;
  5021. /* readonly */
  5022. StringHash type;
  5023. /* readonly */
  5024. String typeName;
  5025. /* readonly */
  5026. int weakRefs;
  5027. };
  5028. class IntRect
  5029. {
  5030. // Methods:
  5031. Intersection IsInside(const IntVector2&) const;
  5032. // Properties:
  5033. int bottom;
  5034. /* readonly */
  5035. Array<int> data;
  5036. /* readonly */
  5037. int height;
  5038. int left;
  5039. int right;
  5040. /* readonly */
  5041. IntVector2 size;
  5042. int top;
  5043. /* readonly */
  5044. int width;
  5045. };
  5046. class IntVector2
  5047. {
  5048. // Methods:
  5049. String ToString() const;
  5050. // Properties:
  5051. /* readonly */
  5052. Array<int> data;
  5053. int x;
  5054. int y;
  5055. };
  5056. class JSONFile
  5057. {
  5058. // Methods:
  5059. const JSONValue& GetRoot() const;
  5060. bool Load(File);
  5061. bool Load(VectorBuffer&);
  5062. bool Save(File) const;
  5063. bool Save(File, const String&) const;
  5064. bool Save(VectorBuffer&) const;
  5065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5066. // Properties:
  5067. /* readonly */
  5068. String category;
  5069. /* readonly */
  5070. uint memoryUse;
  5071. String name;
  5072. /* readonly */
  5073. int refs;
  5074. /* readonly */
  5075. StringHash type;
  5076. /* readonly */
  5077. String typeName;
  5078. /* readonly */
  5079. uint useTimer;
  5080. /* readonly */
  5081. int weakRefs;
  5082. };
  5083. class JSONValue
  5084. {
  5085. // Methods:
  5086. void Clear();
  5087. bool Contains(const String&) const;
  5088. void Erase(const String&);
  5089. void Erase(uint, uint = 1);
  5090. bool GetBool() const;
  5091. double GetDouble() const;
  5092. float GetFloat() const;
  5093. int GetInt() const;
  5094. uint GetUInt() const;
  5095. void Insert(uint, const JSONValue&);
  5096. const JSONValue& Get(const String&) const;
  5097. void Pop();
  5098. void Push(const JSONValue&);
  5099. void Resize(uint);
  5100. void Set(const String&, const JSONValue&);
  5101. const String& GetString() const;
  5102. // Properties:
  5103. /* readonly */
  5104. bool isArray;
  5105. /* readonly */
  5106. bool isBool;
  5107. /* readonly */
  5108. bool isNull;
  5109. /* readonly */
  5110. bool isNumber;
  5111. /* readonly */
  5112. bool isObject;
  5113. /* readonly */
  5114. bool isString;
  5115. /* readonly */
  5116. uint size;
  5117. /* readonly */
  5118. JSONValueType valueType;
  5119. };
  5120. class JoystickState
  5121. {
  5122. // Properties:
  5123. /* readonly */
  5124. Array<float> axisPosition;
  5125. /* readonly */
  5126. Array<bool> buttonDown;
  5127. /* readonly */
  5128. Array<bool> buttonPress;
  5129. /* readonly */
  5130. bool controller;
  5131. /* readonly */
  5132. Array<int> hatPosition;
  5133. int joystickID;
  5134. String name;
  5135. /* readonly */
  5136. uint numAxes;
  5137. /* readonly */
  5138. uint numButtons;
  5139. /* readonly */
  5140. uint numHats;
  5141. };
  5142. class Light
  5143. {
  5144. // Methods:
  5145. void ApplyAttributes();
  5146. void DrawDebugGeometry(DebugRenderer, bool);
  5147. Variant GetAttribute(const String&) const;
  5148. ValueAnimation GetAttributeAnimation(const String&) const;
  5149. float GetAttributeAnimationSpeed(const String&) const;
  5150. float GetAttributeAnimationTime(const String&) const;
  5151. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5152. Variant GetAttributeDefault(const String&) const;
  5153. bool GetInterceptNetworkUpdate(const String&) const;
  5154. bool IsInView(Camera) const;
  5155. bool Load(File, bool = false);
  5156. bool Load(VectorBuffer&, bool = false);
  5157. bool LoadXML(const XMLElement&, bool = false);
  5158. void MarkNetworkUpdate() const;
  5159. void Remove();
  5160. void RemoveAttributeAnimation(const String&);
  5161. void RemoveInstanceDefault();
  5162. void RemoveObjectAnimation();
  5163. void ResetToDefault();
  5164. bool Save(File) const;
  5165. bool Save(VectorBuffer&) const;
  5166. bool SaveXML(XMLElement&) const;
  5167. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5168. void SetAnimationTime(float);
  5169. bool SetAttribute(const String&, const Variant&);
  5170. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5171. void SetAttributeAnimationSpeed(const String&, float);
  5172. void SetAttributeAnimationTime(const String&, float);
  5173. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5174. void SetInterceptNetworkUpdate(const String&, bool);
  5175. // Properties:
  5176. bool animationEnabled;
  5177. float aspectRatio;
  5178. /* readonly */
  5179. Array<Variant> attributeDefaults;
  5180. /* readonly */
  5181. Array<AttributeInfo> attributeInfos;
  5182. Array<Variant> attributes;
  5183. /* readonly */
  5184. BoundingBox boundingBox;
  5185. float brightness;
  5186. bool castShadows;
  5187. /* readonly */
  5188. String category;
  5189. Color color;
  5190. float drawDistance;
  5191. /* readonly */
  5192. Color effectiveColor;
  5193. /* readonly */
  5194. float effectiveSpecularIntensity;
  5195. bool enabled;
  5196. /* readonly */
  5197. bool enabledEffective;
  5198. float fadeDistance;
  5199. float fov;
  5200. /* readonly */
  5201. Frustum frustum;
  5202. /* readonly */
  5203. uint id;
  5204. /* readonly */
  5205. bool inView;
  5206. uint lightMask;
  5207. LightType lightType;
  5208. float lodBias;
  5209. uint maxLights;
  5210. /* readonly */
  5211. bool negative;
  5212. /* readonly */
  5213. Node node;
  5214. /* readonly */
  5215. uint numAttributes;
  5216. /* readonly */
  5217. int numShadowSplits;
  5218. ObjectAnimation objectAnimation;
  5219. bool occludee;
  5220. bool occluder;
  5221. bool perVertex;
  5222. Texture rampTexture;
  5223. float range;
  5224. /* readonly */
  5225. int refs;
  5226. BiasParameters shadowBias;
  5227. CascadeParameters shadowCascade;
  5228. float shadowDistance;
  5229. float shadowFadeDistance;
  5230. FocusParameters shadowFocus;
  5231. float shadowIntensity;
  5232. uint shadowMask;
  5233. float shadowNearFarRatio;
  5234. float shadowResolution;
  5235. Texture shapeTexture;
  5236. float specularIntensity;
  5237. bool temporary;
  5238. /* readonly */
  5239. StringHash type;
  5240. /* readonly */
  5241. String typeName;
  5242. uint viewMask;
  5243. /* readonly */
  5244. int weakRefs;
  5245. /* readonly */
  5246. BoundingBox worldBoundingBox;
  5247. uint zoneMask;
  5248. };
  5249. class LineEdit
  5250. {
  5251. // Methods:
  5252. void AddChild(UIElement);
  5253. void ApplyAttributes();
  5254. void BringToFront();
  5255. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5256. void DisableLayoutUpdate();
  5257. IntVector2 ElementToScreen(const IntVector2&);
  5258. void EnableLayoutUpdate();
  5259. uint FindChild(UIElement) const;
  5260. Variant GetAttribute(const String&) const;
  5261. ValueAnimation GetAttributeAnimation(const String&) const;
  5262. float GetAttributeAnimationSpeed(const String&) const;
  5263. float GetAttributeAnimationTime(const String&) const;
  5264. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5265. Variant GetAttributeDefault(const String&) const;
  5266. UIElement GetChild(const String&, bool = false) const;
  5267. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5268. Array<UIElement> GetChildren(bool = false) const;
  5269. UIElement GetElementEventSender() const;
  5270. bool GetInterceptNetworkUpdate(const String&) const;
  5271. uint GetNumChildren(bool) const;
  5272. void InsertChild(uint, UIElement);
  5273. bool IsInside(IntVector2, bool);
  5274. bool IsInsideCombined(IntVector2, bool);
  5275. bool Load(File, bool = false);
  5276. bool Load(VectorBuffer&, bool = false);
  5277. bool LoadChildXML(XMLFile, XMLFile = null);
  5278. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5279. bool LoadXML(File);
  5280. bool LoadXML(VectorBuffer&);
  5281. bool LoadXML(XMLFile, XMLFile);
  5282. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5283. bool LoadXML(const XMLElement&, bool = false);
  5284. void MarkNetworkUpdate() const;
  5285. void Remove();
  5286. void RemoveAllChildren();
  5287. void RemoveAttributeAnimation(const String&);
  5288. void RemoveChild(UIElement, uint = 0);
  5289. void RemoveChild(uint);
  5290. void RemoveInstanceDefault();
  5291. void RemoveObjectAnimation();
  5292. void ResetDeepEnabled();
  5293. void ResetToDefault();
  5294. bool Save(File) const;
  5295. bool Save(VectorBuffer&) const;
  5296. bool SaveXML(File, const String& = "\t");
  5297. bool SaveXML(VectorBuffer&, const String& = "\t");
  5298. bool SaveXML(XMLElement&) const;
  5299. IntVector2 ScreenToElement(const IntVector2&);
  5300. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5301. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5302. void SetAnimationTime(float);
  5303. bool SetAttribute(const String&, const Variant&);
  5304. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5305. void SetAttributeAnimationSpeed(const String&, float);
  5306. void SetAttributeAnimationTime(const String&, float);
  5307. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5308. void SetDeepEnabled(bool);
  5309. void SetEnabledRecursive(bool);
  5310. void SetFixedHeight(int);
  5311. void SetFixedSize(int, int);
  5312. void SetFixedWidth(int);
  5313. void SetFullImageRect();
  5314. void SetHoverOffset(int, int);
  5315. void SetInterceptNetworkUpdate(const String&, bool);
  5316. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5317. void SetMaxSize(int, int);
  5318. void SetMinSize(int, int);
  5319. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5320. void SetPosition(int, int);
  5321. void SetSize(int, int);
  5322. bool SetStyle(const String&, XMLFile = null);
  5323. bool SetStyle(const XMLElement&);
  5324. bool SetStyleAuto(XMLFile = null);
  5325. void UpdateLayout();
  5326. const Variant& GetVar(const StringHash&);
  5327. // Properties:
  5328. bool animationEnabled;
  5329. /* readonly */
  5330. Array<Variant> attributeDefaults;
  5331. /* readonly */
  5332. Array<AttributeInfo> attributeInfos;
  5333. Array<Variant> attributes;
  5334. BlendMode blendMode;
  5335. IntRect border;
  5336. bool bringToBack;
  5337. bool bringToFront;
  5338. /* readonly */
  5339. String category;
  5340. /* readonly */
  5341. IntVector2 childOffset;
  5342. /* readonly */
  5343. Array<UIElement> children;
  5344. IntRect clipBorder;
  5345. bool clipChildren;
  5346. /* writeonly */
  5347. Color color;
  5348. /* readonly */
  5349. bool colorGradient;
  5350. Array<Color> colors;
  5351. /* readonly */
  5352. IntRect combinedScreenRect;
  5353. /* readonly */
  5354. BorderImage cursor;
  5355. float cursorBlinkRate;
  5356. bool cursorMovable;
  5357. uint cursorPosition;
  5358. XMLFile defaultStyle;
  5359. /* readonly */
  5360. float derivedOpacity;
  5361. /* readonly */
  5362. uint dragButtonCombo;
  5363. /* readonly */
  5364. int dragButtonCount;
  5365. uint dragDropMode;
  5366. uint echoCharacter;
  5367. bool editable;
  5368. bool elementEventSender;
  5369. bool enabled;
  5370. /* readonly */
  5371. bool enabledSelf;
  5372. /* readonly */
  5373. bool fixedHeight;
  5374. /* readonly */
  5375. bool fixedSize;
  5376. /* readonly */
  5377. bool fixedWidth;
  5378. bool focus;
  5379. FocusMode focusMode;
  5380. int height;
  5381. HorizontalAlignment horizontalAlignment;
  5382. IntVector2 hoverOffset;
  5383. /* readonly */
  5384. bool hovering;
  5385. IntRect imageBorder;
  5386. IntRect imageRect;
  5387. int indent;
  5388. int indentSpacing;
  5389. /* readonly */
  5390. int indentWidth;
  5391. bool internal;
  5392. IntRect layoutBorder;
  5393. Vector2 layoutFlexScale;
  5394. LayoutMode layoutMode;
  5395. int layoutSpacing;
  5396. int maxHeight;
  5397. uint maxLength;
  5398. IntVector2 maxSize;
  5399. int maxWidth;
  5400. int minHeight;
  5401. IntVector2 minSize;
  5402. int minWidth;
  5403. String name;
  5404. /* readonly */
  5405. uint numAllChildren;
  5406. /* readonly */
  5407. uint numAttributes;
  5408. /* readonly */
  5409. uint numChildren;
  5410. ObjectAnimation objectAnimation;
  5411. float opacity;
  5412. UIElement parent;
  5413. IntVector2 position;
  5414. int priority;
  5415. /* readonly */
  5416. int refs;
  5417. /* readonly */
  5418. UIElement root;
  5419. /* readonly */
  5420. IntVector2 screenPosition;
  5421. bool selected;
  5422. IntVector2 size;
  5423. bool sortChildren;
  5424. String style;
  5425. bool temporary;
  5426. String text;
  5427. bool textCopyable;
  5428. /* readonly */
  5429. Text textElement;
  5430. bool textSelectable;
  5431. Texture texture;
  5432. bool tiled;
  5433. TraversalMode traversalMode;
  5434. /* readonly */
  5435. StringHash type;
  5436. /* readonly */
  5437. String typeName;
  5438. bool useDerivedOpacity;
  5439. /* readonly */
  5440. VariantMap vars;
  5441. VerticalAlignment verticalAlignment;
  5442. bool visible;
  5443. /* readonly */
  5444. bool visibleEffective;
  5445. /* readonly */
  5446. int weakRefs;
  5447. int width;
  5448. };
  5449. class ListView
  5450. {
  5451. // Methods:
  5452. void AddChild(UIElement);
  5453. void AddItem(UIElement);
  5454. void AddSelection(uint);
  5455. void ApplyAttributes();
  5456. void BringToFront();
  5457. void ChangeSelection(int, bool);
  5458. void ClearSelection();
  5459. void CopySelectedItemsToClipboard();
  5460. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5461. void DisableLayoutUpdate();
  5462. IntVector2 ElementToScreen(const IntVector2&);
  5463. void EnableLayoutUpdate();
  5464. void Expand(uint, bool, bool = false);
  5465. uint FindChild(UIElement) const;
  5466. uint FindItem(UIElement);
  5467. Variant GetAttribute(const String&) const;
  5468. ValueAnimation GetAttributeAnimation(const String&) const;
  5469. float GetAttributeAnimationSpeed(const String&) const;
  5470. float GetAttributeAnimationTime(const String&) const;
  5471. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5472. Variant GetAttributeDefault(const String&) const;
  5473. UIElement GetChild(const String&, bool = false) const;
  5474. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5475. Array<UIElement> GetChildren(bool = false) const;
  5476. UIElement GetElementEventSender() const;
  5477. bool GetInterceptNetworkUpdate(const String&) const;
  5478. Array<UIElement> GetItems() const;
  5479. uint GetNumChildren(bool) const;
  5480. void InsertChild(uint, UIElement);
  5481. void InsertItem(uint, UIElement, UIElement = null);
  5482. bool IsExpanded(uint) const;
  5483. bool IsInside(IntVector2, bool);
  5484. bool IsInsideCombined(IntVector2, bool);
  5485. bool IsSelected(uint) const;
  5486. bool Load(File, bool = false);
  5487. bool Load(VectorBuffer&, bool = false);
  5488. bool LoadChildXML(XMLFile, XMLFile = null);
  5489. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5490. bool LoadXML(File);
  5491. bool LoadXML(VectorBuffer&);
  5492. bool LoadXML(XMLFile, XMLFile);
  5493. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5494. bool LoadXML(const XMLElement&, bool = false);
  5495. void MarkNetworkUpdate() const;
  5496. void Remove();
  5497. void RemoveAllChildren();
  5498. void RemoveAllItems();
  5499. void RemoveAttributeAnimation(const String&);
  5500. void RemoveChild(UIElement, uint = 0);
  5501. void RemoveChild(uint);
  5502. void RemoveInstanceDefault();
  5503. void RemoveItem(UIElement, uint = 0);
  5504. void RemoveItem(uint);
  5505. void RemoveObjectAnimation();
  5506. void RemoveSelection(uint);
  5507. void ResetDeepEnabled();
  5508. void ResetToDefault();
  5509. bool Save(File) const;
  5510. bool Save(VectorBuffer&) const;
  5511. bool SaveXML(File, const String& = "\t");
  5512. bool SaveXML(VectorBuffer&, const String& = "\t");
  5513. bool SaveXML(XMLElement&) const;
  5514. IntVector2 ScreenToElement(const IntVector2&);
  5515. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5516. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5517. void SetAnimationTime(float);
  5518. bool SetAttribute(const String&, const Variant&);
  5519. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5520. void SetAttributeAnimationSpeed(const String&, float);
  5521. void SetAttributeAnimationTime(const String&, float);
  5522. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5523. void SetDeepEnabled(bool);
  5524. void SetEnabledRecursive(bool);
  5525. void SetFixedHeight(int);
  5526. void SetFixedSize(int, int);
  5527. void SetFixedWidth(int);
  5528. void SetInterceptNetworkUpdate(const String&, bool);
  5529. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5530. void SetMaxSize(int, int);
  5531. void SetMinSize(int, int);
  5532. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5533. void SetPosition(int, int);
  5534. void SetScrollBarsVisible(bool, bool);
  5535. void SetSelections(Array<uint>);
  5536. void SetSize(int, int);
  5537. bool SetStyle(const String&, XMLFile = null);
  5538. bool SetStyle(const XMLElement&);
  5539. bool SetStyleAuto(XMLFile = null);
  5540. void SetViewPosition(int, int);
  5541. void ToggleExpand(uint, bool = false);
  5542. void ToggleSelection(uint);
  5543. void UpdateLayout();
  5544. const Variant& GetVar(const StringHash&);
  5545. // Properties:
  5546. bool animationEnabled;
  5547. /* readonly */
  5548. Array<Variant> attributeDefaults;
  5549. /* readonly */
  5550. Array<AttributeInfo> attributeInfos;
  5551. Array<Variant> attributes;
  5552. bool autoDisableChildren;
  5553. float autoDisableThreshold;
  5554. int baseIndent;
  5555. bool bringToBack;
  5556. bool bringToFront;
  5557. /* readonly */
  5558. String category;
  5559. /* readonly */
  5560. IntVector2 childOffset;
  5561. /* readonly */
  5562. Array<UIElement> children;
  5563. bool clearSelectionOnDefocus;
  5564. IntRect clipBorder;
  5565. bool clipChildren;
  5566. /* writeonly */
  5567. Color color;
  5568. /* readonly */
  5569. bool colorGradient;
  5570. Array<Color> colors;
  5571. /* readonly */
  5572. IntRect combinedScreenRect;
  5573. /* readonly */
  5574. UIElement contentElement;
  5575. XMLFile defaultStyle;
  5576. /* readonly */
  5577. float derivedOpacity;
  5578. /* readonly */
  5579. uint dragButtonCombo;
  5580. /* readonly */
  5581. int dragButtonCount;
  5582. uint dragDropMode;
  5583. bool editable;
  5584. bool elementEventSender;
  5585. bool enabled;
  5586. /* readonly */
  5587. bool enabledSelf;
  5588. /* readonly */
  5589. bool fixedHeight;
  5590. /* readonly */
  5591. bool fixedSize;
  5592. /* readonly */
  5593. bool fixedWidth;
  5594. bool focus;
  5595. FocusMode focusMode;
  5596. int height;
  5597. bool hierarchyMode;
  5598. HighlightMode highlightMode;
  5599. HorizontalAlignment horizontalAlignment;
  5600. /* readonly */
  5601. ScrollBar horizontalScrollBar;
  5602. /* readonly */
  5603. bool hovering;
  5604. int indent;
  5605. int indentSpacing;
  5606. /* readonly */
  5607. int indentWidth;
  5608. bool internal;
  5609. /* readonly */
  5610. Array<UIElement> items;
  5611. IntRect layoutBorder;
  5612. Vector2 layoutFlexScale;
  5613. LayoutMode layoutMode;
  5614. int layoutSpacing;
  5615. int maxHeight;
  5616. IntVector2 maxSize;
  5617. int maxWidth;
  5618. int minHeight;
  5619. IntVector2 minSize;
  5620. int minWidth;
  5621. bool multiselect;
  5622. String name;
  5623. /* readonly */
  5624. uint numAllChildren;
  5625. /* readonly */
  5626. uint numAttributes;
  5627. /* readonly */
  5628. uint numChildren;
  5629. /* readonly */
  5630. uint numItems;
  5631. ObjectAnimation objectAnimation;
  5632. float opacity;
  5633. float pageStep;
  5634. UIElement parent;
  5635. IntVector2 position;
  5636. int priority;
  5637. /* readonly */
  5638. int refs;
  5639. /* readonly */
  5640. UIElement root;
  5641. /* readonly */
  5642. IntVector2 screenPosition;
  5643. bool scrollBarsAutoVisible;
  5644. float scrollDeceleration;
  5645. /* readonly */
  5646. BorderImage scrollPanel;
  5647. float scrollSnapEpsilon;
  5648. float scrollStep;
  5649. bool selectOnClickEnd;
  5650. bool selected;
  5651. /* readonly */
  5652. UIElement selectedItem;
  5653. /* readonly */
  5654. Array<UIElement> selectedItems;
  5655. uint selection;
  5656. /* readonly */
  5657. Array<uint> selections;
  5658. IntVector2 size;
  5659. bool sortChildren;
  5660. String style;
  5661. bool temporary;
  5662. TraversalMode traversalMode;
  5663. /* readonly */
  5664. StringHash type;
  5665. /* readonly */
  5666. String typeName;
  5667. bool useDerivedOpacity;
  5668. /* readonly */
  5669. VariantMap vars;
  5670. VerticalAlignment verticalAlignment;
  5671. /* readonly */
  5672. ScrollBar verticalScrollBar;
  5673. IntVector2 viewPosition;
  5674. bool visible;
  5675. /* readonly */
  5676. bool visibleEffective;
  5677. /* readonly */
  5678. int weakRefs;
  5679. int width;
  5680. };
  5681. class Localization
  5682. {
  5683. // Methods:
  5684. String Get(const String&);
  5685. String GetLanguage(int);
  5686. int GetLanguageIndex(const String&);
  5687. void LoadJSON(const JSONValue&);
  5688. void LoadJSONFile(const String&);
  5689. void Reset();
  5690. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5691. void SetLanguage(const String&);
  5692. void SetLanguage(int);
  5693. // Properties:
  5694. /* readonly */
  5695. String category;
  5696. /* readonly */
  5697. String language;
  5698. /* readonly */
  5699. int languageIndex;
  5700. /* readonly */
  5701. int numLanguages;
  5702. /* readonly */
  5703. int refs;
  5704. /* readonly */
  5705. StringHash type;
  5706. /* readonly */
  5707. String typeName;
  5708. /* readonly */
  5709. int weakRefs;
  5710. };
  5711. class Log
  5712. {
  5713. // Methods:
  5714. void Close();
  5715. void Debug(const String&);
  5716. void Error(const String&);
  5717. void Info(const String&);
  5718. void Open(const String&);
  5719. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5720. void Warning(const String&);
  5721. void Write(const String&, bool = false);
  5722. // Properties:
  5723. /* readonly */
  5724. String category;
  5725. /* readonly */
  5726. String lastMessage;
  5727. int level;
  5728. bool quiet;
  5729. /* readonly */
  5730. int refs;
  5731. bool timeStamp;
  5732. /* readonly */
  5733. StringHash type;
  5734. /* readonly */
  5735. String typeName;
  5736. /* readonly */
  5737. int weakRefs;
  5738. };
  5739. class Material
  5740. {
  5741. // Methods:
  5742. Material Clone(const String& = String ( )) const;
  5743. Pass GetPass(uint, const String&);
  5744. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5745. float GetShaderParameterAnimationSpeed(const String&) const;
  5746. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5747. bool Load(File);
  5748. bool Load(VectorBuffer&);
  5749. bool Load(const XMLElement&);
  5750. void RemoveShaderParameter(const String&);
  5751. bool Save(File) const;
  5752. bool Save(VectorBuffer&) const;
  5753. bool Save(XMLElement&) const;
  5754. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5755. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5756. void SetShaderParameterAnimationSpeed(const String&, float);
  5757. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5758. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5759. void SetUVTransform(const Vector2&, float, const Vector2&);
  5760. void SetUVTransform(const Vector2&, float, float);
  5761. void SortTechniques();
  5762. // Properties:
  5763. /* readonly */
  5764. String category;
  5765. CullMode cullMode;
  5766. BiasParameters depthBias;
  5767. FillMode fillMode;
  5768. /* readonly */
  5769. uint memoryUse;
  5770. String name;
  5771. uint numTechniques;
  5772. /* readonly */
  5773. bool occlusion;
  5774. /* readonly */
  5775. int refs;
  5776. uint8 renderOrder;
  5777. Scene scene;
  5778. /* readonly */
  5779. Array<String> shaderParameterNames;
  5780. Array<Variant> shaderParameters;
  5781. CullMode shadowCullMode;
  5782. /* readonly */
  5783. Array<TechniqueEntry> techniqueEntries;
  5784. /* readonly */
  5785. Array<Technique> techniques;
  5786. Array<Texture> textures;
  5787. /* readonly */
  5788. StringHash type;
  5789. /* readonly */
  5790. String typeName;
  5791. /* readonly */
  5792. uint useTimer;
  5793. /* readonly */
  5794. int weakRefs;
  5795. };
  5796. class Matrix3
  5797. {
  5798. // Methods:
  5799. bool Equals(const Matrix3&) const;
  5800. Matrix3 Inverse() const;
  5801. Vector3 Scale() const;
  5802. Matrix3 Scaled(const Vector3&) const;
  5803. void SetScale(const Vector3&);
  5804. void SetScale(float);
  5805. String ToString() const;
  5806. Matrix3 Transpose() const;
  5807. // Properties:
  5808. float m00;
  5809. float m01;
  5810. float m02;
  5811. float m10;
  5812. float m11;
  5813. float m12;
  5814. float m20;
  5815. float m21;
  5816. float m22;
  5817. };
  5818. class Matrix3x4
  5819. {
  5820. // Methods:
  5821. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5822. bool Equals(const Matrix3x4&) const;
  5823. Matrix3x4 Inverse() const;
  5824. Quaternion Rotation() const;
  5825. Matrix3 RotationMatrix() const;
  5826. Vector3 Scale() const;
  5827. void SetRotation(const Matrix3&);
  5828. void SetScale(const Vector3&);
  5829. void SetScale(float);
  5830. void SetTranslation(const Vector3&);
  5831. Matrix3 ToMatrix3() const;
  5832. Matrix4 ToMatrix4() const;
  5833. String ToString() const;
  5834. Vector3 Translation() const;
  5835. // Properties:
  5836. float m00;
  5837. float m01;
  5838. float m02;
  5839. float m03;
  5840. float m10;
  5841. float m11;
  5842. float m12;
  5843. float m13;
  5844. float m20;
  5845. float m21;
  5846. float m22;
  5847. float m23;
  5848. };
  5849. class Matrix4
  5850. {
  5851. // Methods:
  5852. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5853. bool Equals(const Matrix4&) const;
  5854. Matrix4 Inverse() const;
  5855. Quaternion Rotation() const;
  5856. Matrix3 RotationMatrix() const;
  5857. Vector3 Scale() const;
  5858. void SetRotation(const Matrix3&);
  5859. void SetScale(const Vector3&);
  5860. void SetScale(float);
  5861. void SetTranslation(const Vector3&);
  5862. Matrix3 ToMatrix3() const;
  5863. String ToString() const;
  5864. Vector3 Translation() const;
  5865. Matrix4 Transpose() const;
  5866. // Properties:
  5867. float m00;
  5868. float m01;
  5869. float m02;
  5870. float m03;
  5871. float m10;
  5872. float m11;
  5873. float m12;
  5874. float m13;
  5875. float m20;
  5876. float m21;
  5877. float m22;
  5878. float m23;
  5879. float m30;
  5880. float m31;
  5881. float m32;
  5882. float m33;
  5883. };
  5884. class Menu
  5885. {
  5886. // Methods:
  5887. void AddChild(UIElement);
  5888. void ApplyAttributes();
  5889. void BringToFront();
  5890. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5891. void DisableLayoutUpdate();
  5892. IntVector2 ElementToScreen(const IntVector2&);
  5893. void EnableLayoutUpdate();
  5894. uint FindChild(UIElement) const;
  5895. Variant GetAttribute(const String&) const;
  5896. ValueAnimation GetAttributeAnimation(const String&) const;
  5897. float GetAttributeAnimationSpeed(const String&) const;
  5898. float GetAttributeAnimationTime(const String&) const;
  5899. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5900. Variant GetAttributeDefault(const String&) const;
  5901. UIElement GetChild(const String&, bool = false) const;
  5902. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5903. Array<UIElement> GetChildren(bool = false) const;
  5904. UIElement GetElementEventSender() const;
  5905. bool GetInterceptNetworkUpdate(const String&) const;
  5906. uint GetNumChildren(bool) const;
  5907. void InsertChild(uint, UIElement);
  5908. bool IsInside(IntVector2, bool);
  5909. bool IsInsideCombined(IntVector2, bool);
  5910. bool Load(File, bool = false);
  5911. bool Load(VectorBuffer&, bool = false);
  5912. bool LoadChildXML(XMLFile, XMLFile = null);
  5913. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5914. bool LoadXML(File);
  5915. bool LoadXML(VectorBuffer&);
  5916. bool LoadXML(XMLFile, XMLFile);
  5917. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5918. bool LoadXML(const XMLElement&, bool = false);
  5919. void MarkNetworkUpdate() const;
  5920. void Remove();
  5921. void RemoveAllChildren();
  5922. void RemoveAttributeAnimation(const String&);
  5923. void RemoveChild(UIElement, uint = 0);
  5924. void RemoveChild(uint);
  5925. void RemoveInstanceDefault();
  5926. void RemoveObjectAnimation();
  5927. void ResetDeepEnabled();
  5928. void ResetToDefault();
  5929. bool Save(File) const;
  5930. bool Save(VectorBuffer&) const;
  5931. bool SaveXML(File, const String& = "\t");
  5932. bool SaveXML(VectorBuffer&, const String& = "\t");
  5933. bool SaveXML(XMLElement&) const;
  5934. IntVector2 ScreenToElement(const IntVector2&);
  5935. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5936. void SetAccelerator(int, int);
  5937. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5938. void SetAnimationTime(float);
  5939. bool SetAttribute(const String&, const Variant&);
  5940. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5941. void SetAttributeAnimationSpeed(const String&, float);
  5942. void SetAttributeAnimationTime(const String&, float);
  5943. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5944. void SetDeepEnabled(bool);
  5945. void SetEnabledRecursive(bool);
  5946. void SetFixedHeight(int);
  5947. void SetFixedSize(int, int);
  5948. void SetFixedWidth(int);
  5949. void SetFullImageRect();
  5950. void SetHoverOffset(int, int);
  5951. void SetInterceptNetworkUpdate(const String&, bool);
  5952. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5953. void SetMaxSize(int, int);
  5954. void SetMinSize(int, int);
  5955. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5956. void SetPopupOffset(int, int);
  5957. void SetPosition(int, int);
  5958. void SetPressedChildOffset(int, int);
  5959. void SetPressedOffset(int, int);
  5960. void SetRepeat(float, float);
  5961. void SetSize(int, int);
  5962. bool SetStyle(const String&, XMLFile = null);
  5963. bool SetStyle(const XMLElement&);
  5964. bool SetStyleAuto(XMLFile = null);
  5965. void UpdateLayout();
  5966. const Variant& GetVar(const StringHash&);
  5967. // Properties:
  5968. /* readonly */
  5969. int acceleratorKey;
  5970. /* readonly */
  5971. int acceleratorQualifiers;
  5972. bool animationEnabled;
  5973. /* readonly */
  5974. Array<Variant> attributeDefaults;
  5975. /* readonly */
  5976. Array<AttributeInfo> attributeInfos;
  5977. Array<Variant> attributes;
  5978. BlendMode blendMode;
  5979. IntRect border;
  5980. bool bringToBack;
  5981. bool bringToFront;
  5982. /* readonly */
  5983. String category;
  5984. /* readonly */
  5985. IntVector2 childOffset;
  5986. /* readonly */
  5987. Array<UIElement> children;
  5988. IntRect clipBorder;
  5989. bool clipChildren;
  5990. /* writeonly */
  5991. Color color;
  5992. /* readonly */
  5993. bool colorGradient;
  5994. Array<Color> colors;
  5995. /* readonly */
  5996. IntRect combinedScreenRect;
  5997. XMLFile defaultStyle;
  5998. /* readonly */
  5999. float derivedOpacity;
  6000. /* readonly */
  6001. uint dragButtonCombo;
  6002. /* readonly */
  6003. int dragButtonCount;
  6004. uint dragDropMode;
  6005. bool editable;
  6006. bool elementEventSender;
  6007. bool enabled;
  6008. /* readonly */
  6009. bool enabledSelf;
  6010. /* readonly */
  6011. bool fixedHeight;
  6012. /* readonly */
  6013. bool fixedSize;
  6014. /* readonly */
  6015. bool fixedWidth;
  6016. bool focus;
  6017. FocusMode focusMode;
  6018. int height;
  6019. HorizontalAlignment horizontalAlignment;
  6020. IntVector2 hoverOffset;
  6021. /* readonly */
  6022. bool hovering;
  6023. IntRect imageBorder;
  6024. IntRect imageRect;
  6025. int indent;
  6026. int indentSpacing;
  6027. /* readonly */
  6028. int indentWidth;
  6029. bool internal;
  6030. IntRect layoutBorder;
  6031. Vector2 layoutFlexScale;
  6032. LayoutMode layoutMode;
  6033. int layoutSpacing;
  6034. int maxHeight;
  6035. IntVector2 maxSize;
  6036. int maxWidth;
  6037. int minHeight;
  6038. IntVector2 minSize;
  6039. int minWidth;
  6040. String name;
  6041. /* readonly */
  6042. uint numAllChildren;
  6043. /* readonly */
  6044. uint numAttributes;
  6045. /* readonly */
  6046. uint numChildren;
  6047. ObjectAnimation objectAnimation;
  6048. float opacity;
  6049. UIElement parent;
  6050. UIElement popup;
  6051. IntVector2 popupOffset;
  6052. IntVector2 position;
  6053. /* readonly */
  6054. bool pressed;
  6055. IntVector2 pressedChildOffset;
  6056. IntVector2 pressedOffset;
  6057. int priority;
  6058. /* readonly */
  6059. int refs;
  6060. float repeatDelay;
  6061. float repeatRate;
  6062. /* readonly */
  6063. UIElement root;
  6064. /* readonly */
  6065. IntVector2 screenPosition;
  6066. bool selected;
  6067. bool showPopup;
  6068. IntVector2 size;
  6069. bool sortChildren;
  6070. String style;
  6071. bool temporary;
  6072. Texture texture;
  6073. bool tiled;
  6074. TraversalMode traversalMode;
  6075. /* readonly */
  6076. StringHash type;
  6077. /* readonly */
  6078. String typeName;
  6079. bool useDerivedOpacity;
  6080. /* readonly */
  6081. VariantMap vars;
  6082. VerticalAlignment verticalAlignment;
  6083. bool visible;
  6084. /* readonly */
  6085. bool visibleEffective;
  6086. /* readonly */
  6087. int weakRefs;
  6088. int width;
  6089. };
  6090. class MessageBox
  6091. {
  6092. // Methods:
  6093. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6094. // Properties:
  6095. /* readonly */
  6096. String category;
  6097. String message;
  6098. /* readonly */
  6099. int refs;
  6100. String title;
  6101. /* readonly */
  6102. StringHash type;
  6103. /* readonly */
  6104. String typeName;
  6105. /* readonly */
  6106. int weakRefs;
  6107. /* readonly */
  6108. UIElement window;
  6109. };
  6110. class Model
  6111. {
  6112. // Methods:
  6113. Model Clone(const String& = String ( )) const;
  6114. Geometry GetGeometry(uint, uint) const;
  6115. bool Load(File);
  6116. bool Load(VectorBuffer&);
  6117. bool Save(File) const;
  6118. bool Save(VectorBuffer&) const;
  6119. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6120. bool SetGeometry(uint, uint, Geometry);
  6121. // Properties:
  6122. BoundingBox boundingBox;
  6123. /* readonly */
  6124. String category;
  6125. Array<Vector3> geometryCenters;
  6126. /* readonly */
  6127. uint memoryUse;
  6128. String name;
  6129. uint numGeometries;
  6130. Array<uint> numGeometryLodLevels;
  6131. /* readonly */
  6132. uint numMorphs;
  6133. /* readonly */
  6134. int refs;
  6135. /* readonly */
  6136. Skeleton skeleton;
  6137. /* readonly */
  6138. StringHash type;
  6139. /* readonly */
  6140. String typeName;
  6141. /* readonly */
  6142. uint useTimer;
  6143. /* readonly */
  6144. int weakRefs;
  6145. };
  6146. class NavArea
  6147. {
  6148. // Methods:
  6149. void ApplyAttributes();
  6150. void DrawDebugGeometry(DebugRenderer, bool);
  6151. Variant GetAttribute(const String&) const;
  6152. ValueAnimation GetAttributeAnimation(const String&) const;
  6153. float GetAttributeAnimationSpeed(const String&) const;
  6154. float GetAttributeAnimationTime(const String&) const;
  6155. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6156. Variant GetAttributeDefault(const String&) const;
  6157. bool GetInterceptNetworkUpdate(const String&) const;
  6158. bool Load(File, bool = false);
  6159. bool Load(VectorBuffer&, bool = false);
  6160. bool LoadXML(const XMLElement&, bool = false);
  6161. void MarkNetworkUpdate() const;
  6162. void Remove();
  6163. void RemoveAttributeAnimation(const String&);
  6164. void RemoveInstanceDefault();
  6165. void RemoveObjectAnimation();
  6166. void ResetToDefault();
  6167. bool Save(File) const;
  6168. bool Save(VectorBuffer&) const;
  6169. bool SaveXML(XMLElement&) const;
  6170. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6171. void SetAnimationTime(float);
  6172. bool SetAttribute(const String&, const Variant&);
  6173. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6174. void SetAttributeAnimationSpeed(const String&, float);
  6175. void SetAttributeAnimationTime(const String&, float);
  6176. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6177. void SetInterceptNetworkUpdate(const String&, bool);
  6178. // Properties:
  6179. bool animationEnabled;
  6180. uint areaID;
  6181. /* readonly */
  6182. Array<Variant> attributeDefaults;
  6183. /* readonly */
  6184. Array<AttributeInfo> attributeInfos;
  6185. Array<Variant> attributes;
  6186. BoundingBox boundingBox;
  6187. /* readonly */
  6188. String category;
  6189. bool enabled;
  6190. /* readonly */
  6191. bool enabledEffective;
  6192. /* readonly */
  6193. uint id;
  6194. /* readonly */
  6195. Node node;
  6196. /* readonly */
  6197. uint numAttributes;
  6198. ObjectAnimation objectAnimation;
  6199. /* readonly */
  6200. int refs;
  6201. bool temporary;
  6202. /* readonly */
  6203. StringHash type;
  6204. /* readonly */
  6205. String typeName;
  6206. /* readonly */
  6207. int weakRefs;
  6208. /* readonly */
  6209. BoundingBox worldBoundingBox;
  6210. };
  6211. class Navigable
  6212. {
  6213. // Methods:
  6214. void ApplyAttributes();
  6215. void DrawDebugGeometry(DebugRenderer, bool);
  6216. Variant GetAttribute(const String&) const;
  6217. ValueAnimation GetAttributeAnimation(const String&) const;
  6218. float GetAttributeAnimationSpeed(const String&) const;
  6219. float GetAttributeAnimationTime(const String&) const;
  6220. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6221. Variant GetAttributeDefault(const String&) const;
  6222. bool GetInterceptNetworkUpdate(const String&) const;
  6223. bool Load(File, bool = false);
  6224. bool Load(VectorBuffer&, bool = false);
  6225. bool LoadXML(const XMLElement&, bool = false);
  6226. void MarkNetworkUpdate() const;
  6227. void Remove();
  6228. void RemoveAttributeAnimation(const String&);
  6229. void RemoveInstanceDefault();
  6230. void RemoveObjectAnimation();
  6231. void ResetToDefault();
  6232. bool Save(File) const;
  6233. bool Save(VectorBuffer&) const;
  6234. bool SaveXML(XMLElement&) const;
  6235. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6236. void SetAnimationTime(float);
  6237. bool SetAttribute(const String&, const Variant&);
  6238. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6239. void SetAttributeAnimationSpeed(const String&, float);
  6240. void SetAttributeAnimationTime(const String&, float);
  6241. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6242. void SetInterceptNetworkUpdate(const String&, bool);
  6243. // Properties:
  6244. bool animationEnabled;
  6245. /* readonly */
  6246. Array<Variant> attributeDefaults;
  6247. /* readonly */
  6248. Array<AttributeInfo> attributeInfos;
  6249. Array<Variant> attributes;
  6250. /* readonly */
  6251. String category;
  6252. bool enabled;
  6253. /* readonly */
  6254. bool enabledEffective;
  6255. /* readonly */
  6256. uint id;
  6257. /* readonly */
  6258. Node node;
  6259. /* readonly */
  6260. uint numAttributes;
  6261. ObjectAnimation objectAnimation;
  6262. bool recursive;
  6263. /* readonly */
  6264. int refs;
  6265. bool temporary;
  6266. /* readonly */
  6267. StringHash type;
  6268. /* readonly */
  6269. String typeName;
  6270. /* readonly */
  6271. int weakRefs;
  6272. };
  6273. class NavigationMesh
  6274. {
  6275. // Methods:
  6276. void ApplyAttributes();
  6277. bool Build();
  6278. bool Build(const BoundingBox&);
  6279. void DrawDebugGeometry(DebugRenderer, bool);
  6280. void DrawDebugGeometry(bool);
  6281. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6282. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6283. float GetAreaCost(uint) const;
  6284. Variant GetAttribute(const String&) const;
  6285. ValueAnimation GetAttributeAnimation(const String&) const;
  6286. float GetAttributeAnimationSpeed(const String&) const;
  6287. float GetAttributeAnimationTime(const String&) const;
  6288. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6289. Variant GetAttributeDefault(const String&) const;
  6290. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6291. bool GetInterceptNetworkUpdate(const String&) const;
  6292. Vector3 GetRandomPoint();
  6293. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6294. bool Load(File, bool = false);
  6295. bool Load(VectorBuffer&, bool = false);
  6296. bool LoadXML(const XMLElement&, bool = false);
  6297. void MarkNetworkUpdate() const;
  6298. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6299. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6300. void Remove();
  6301. void RemoveAttributeAnimation(const String&);
  6302. void RemoveInstanceDefault();
  6303. void RemoveObjectAnimation();
  6304. void ResetToDefault();
  6305. bool Save(File) const;
  6306. bool Save(VectorBuffer&) const;
  6307. bool SaveXML(XMLElement&) const;
  6308. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6309. void SetAnimationTime(float);
  6310. void SetAreaCost(uint, float);
  6311. bool SetAttribute(const String&, const Variant&);
  6312. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6313. void SetAttributeAnimationSpeed(const String&, float);
  6314. void SetAttributeAnimationTime(const String&, float);
  6315. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6316. void SetInterceptNetworkUpdate(const String&, bool);
  6317. // Properties:
  6318. float agentHeight;
  6319. float agentMaxClimb;
  6320. float agentMaxSlope;
  6321. float agentRadius;
  6322. bool animationEnabled;
  6323. /* readonly */
  6324. Array<Variant> attributeDefaults;
  6325. /* readonly */
  6326. Array<AttributeInfo> attributeInfos;
  6327. Array<Variant> attributes;
  6328. /* readonly */
  6329. BoundingBox boundingBox;
  6330. /* readonly */
  6331. String category;
  6332. float cellHeight;
  6333. float cellSize;
  6334. float detailSampleDistance;
  6335. float detailSampleMaxError;
  6336. bool drawNavAreas;
  6337. bool drawOffMeshConnections;
  6338. float edgeMaxError;
  6339. float edgeMaxLength;
  6340. bool enabled;
  6341. /* readonly */
  6342. bool enabledEffective;
  6343. /* readonly */
  6344. uint id;
  6345. /* readonly */
  6346. bool initialized;
  6347. /* readonly */
  6348. Node node;
  6349. /* readonly */
  6350. uint numAttributes;
  6351. /* readonly */
  6352. IntVector2 numTiles;
  6353. ObjectAnimation objectAnimation;
  6354. Vector3 padding;
  6355. NavmeshPartitionType partitionType;
  6356. /* readonly */
  6357. int refs;
  6358. float regionMergeSize;
  6359. float regionMinSize;
  6360. bool temporary;
  6361. int tileSize;
  6362. /* readonly */
  6363. StringHash type;
  6364. /* readonly */
  6365. String typeName;
  6366. /* readonly */
  6367. int weakRefs;
  6368. /* readonly */
  6369. BoundingBox worldBoundingBox;
  6370. };
  6371. class Network
  6372. {
  6373. // Methods:
  6374. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6375. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6376. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6377. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6378. bool CheckRemoteEvent(const String&) const;
  6379. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6380. void Disconnect(int = 0);
  6381. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6382. void RegisterRemoteEvent(const String&) const;
  6383. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6384. void SendPackageToClients(Scene, PackageFile);
  6385. bool StartServer(uint16);
  6386. void StopServer();
  6387. void UnregisterAllRemoteEvents();
  6388. void UnregisterRemoteEvent(const String&) const;
  6389. // Properties:
  6390. /* readonly */
  6391. String category;
  6392. /* readonly */
  6393. Array<Connection> clientConnections;
  6394. String packageCacheDir;
  6395. /* readonly */
  6396. int refs;
  6397. /* readonly */
  6398. Connection serverConnection;
  6399. /* readonly */
  6400. bool serverRunning;
  6401. int simulatedLatency;
  6402. float simulatedPacketLoss;
  6403. /* readonly */
  6404. StringHash type;
  6405. /* readonly */
  6406. String typeName;
  6407. int updateFps;
  6408. /* readonly */
  6409. int weakRefs;
  6410. };
  6411. class NetworkPriority
  6412. {
  6413. // Methods:
  6414. void ApplyAttributes();
  6415. void DrawDebugGeometry(DebugRenderer, bool);
  6416. Variant GetAttribute(const String&) const;
  6417. ValueAnimation GetAttributeAnimation(const String&) const;
  6418. float GetAttributeAnimationSpeed(const String&) const;
  6419. float GetAttributeAnimationTime(const String&) const;
  6420. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6421. Variant GetAttributeDefault(const String&) const;
  6422. bool GetInterceptNetworkUpdate(const String&) const;
  6423. bool Load(File, bool = false);
  6424. bool Load(VectorBuffer&, bool = false);
  6425. bool LoadXML(const XMLElement&, bool = false);
  6426. void MarkNetworkUpdate() const;
  6427. void Remove();
  6428. void RemoveAttributeAnimation(const String&);
  6429. void RemoveInstanceDefault();
  6430. void RemoveObjectAnimation();
  6431. void ResetToDefault();
  6432. bool Save(File) const;
  6433. bool Save(VectorBuffer&) const;
  6434. bool SaveXML(XMLElement&) const;
  6435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6436. void SetAnimationTime(float);
  6437. bool SetAttribute(const String&, const Variant&);
  6438. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6439. void SetAttributeAnimationSpeed(const String&, float);
  6440. void SetAttributeAnimationTime(const String&, float);
  6441. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6442. void SetInterceptNetworkUpdate(const String&, bool);
  6443. // Properties:
  6444. bool alwaysUpdateOwner;
  6445. bool animationEnabled;
  6446. /* readonly */
  6447. Array<Variant> attributeDefaults;
  6448. /* readonly */
  6449. Array<AttributeInfo> attributeInfos;
  6450. Array<Variant> attributes;
  6451. float basePriority;
  6452. /* readonly */
  6453. String category;
  6454. float distanceFactor;
  6455. bool enabled;
  6456. /* readonly */
  6457. bool enabledEffective;
  6458. /* readonly */
  6459. uint id;
  6460. float minPriority;
  6461. /* readonly */
  6462. Node node;
  6463. /* readonly */
  6464. uint numAttributes;
  6465. ObjectAnimation objectAnimation;
  6466. /* readonly */
  6467. int refs;
  6468. bool temporary;
  6469. /* readonly */
  6470. StringHash type;
  6471. /* readonly */
  6472. String typeName;
  6473. /* readonly */
  6474. int weakRefs;
  6475. };
  6476. class Node
  6477. {
  6478. // Methods:
  6479. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6480. void ApplyAttributes();
  6481. Node Clone(CreateMode = REPLICATED);
  6482. Component CloneComponent(Component, CreateMode, uint = 0);
  6483. Component CloneComponent(Component, uint = 0);
  6484. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6485. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6486. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6487. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6488. Variant GetAttribute(const String&) const;
  6489. ValueAnimation GetAttributeAnimation(const String&) const;
  6490. float GetAttributeAnimationSpeed(const String&) const;
  6491. float GetAttributeAnimationTime(const String&) const;
  6492. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6493. Variant GetAttributeDefault(const String&) const;
  6494. Node GetChild(const String&, bool = false) const;
  6495. Array<Node> GetChildren(bool = false) const;
  6496. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6497. Array<Node> GetChildrenWithScript(bool = false) const;
  6498. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6499. Component GetComponent(const String&, bool = false) const;
  6500. Array<Component> GetComponents() const;
  6501. Array<Component> GetComponents(const String&, bool = false) const;
  6502. bool GetInterceptNetworkUpdate(const String&) const;
  6503. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6504. Component GetParentComponent(const String&, bool = false) const;
  6505. ScriptObject GetScriptObject() const;
  6506. ScriptObject GetScriptObject(const String&) const;
  6507. bool HasComponent(const String&) const;
  6508. bool Load(File, bool = false);
  6509. bool Load(VectorBuffer&, bool = false);
  6510. bool LoadXML(const XMLElement&, bool = false);
  6511. Vector3 LocalToWorld(const Vector3&) const;
  6512. Vector3 LocalToWorld(const Vector4&) const;
  6513. Vector2 LocalToWorld2D(const Vector2&) const;
  6514. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6515. void MarkDirty();
  6516. void MarkNetworkUpdate() const;
  6517. void Pitch(float, TransformSpace = TS_LOCAL);
  6518. void Remove();
  6519. void RemoveAllChildren();
  6520. void RemoveAllComponents();
  6521. void RemoveAttributeAnimation(const String&);
  6522. void RemoveChild(Node);
  6523. void RemoveChildren(bool, bool, bool);
  6524. void RemoveComponent(Component);
  6525. void RemoveComponent(const String&);
  6526. void RemoveComponents(bool, bool);
  6527. void RemoveComponents(const String&);
  6528. void RemoveInstanceDefault();
  6529. void RemoveObjectAnimation();
  6530. void ResetDeepEnabled();
  6531. void ResetToDefault();
  6532. void Roll(float, TransformSpace = TS_LOCAL);
  6533. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6534. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6535. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6536. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6537. bool Save(File) const;
  6538. bool Save(VectorBuffer&) const;
  6539. bool SaveXML(File, const String& = "\t");
  6540. bool SaveXML(VectorBuffer&, const String& = "\t");
  6541. bool SaveXML(XMLElement&) const;
  6542. void Scale(const Vector3&);
  6543. void Scale(float);
  6544. void Scale2D(const Vector2&);
  6545. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6546. void SetAnimationTime(float);
  6547. bool SetAttribute(const String&, const Variant&);
  6548. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6549. void SetAttributeAnimationSpeed(const String&, float);
  6550. void SetAttributeAnimationTime(const String&, float);
  6551. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6552. void SetDeepEnabled(bool);
  6553. void SetEnabledRecursive(bool);
  6554. void SetInterceptNetworkUpdate(const String&, bool);
  6555. void SetPosition2D(float, float);
  6556. void SetScale(float);
  6557. void SetScale2D(float, float);
  6558. void SetTransform(const Vector3&, const Quaternion&);
  6559. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6560. void SetTransform(const Vector3&, const Quaternion&, float);
  6561. void SetTransform2D(const Vector2&, float);
  6562. void SetTransform2D(const Vector2&, float, const Vector2&);
  6563. void SetTransform2D(const Vector2&, float, float);
  6564. void SetWorldTransform(const Vector3&, const Quaternion&);
  6565. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6566. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6567. void SetWorldTransform2D(const Vector2&, float);
  6568. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6569. void SetWorldTransform2D(const Vector2&, float, float);
  6570. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6571. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6572. Vector3 WorldToLocal(const Vector3&) const;
  6573. Vector3 WorldToLocal(const Vector4&) const;
  6574. Vector2 WorldToLocal2D(const Vector2&) const;
  6575. void Yaw(float, TransformSpace = TS_LOCAL);
  6576. // Properties:
  6577. bool animationEnabled;
  6578. /* readonly */
  6579. Array<Variant> attributeDefaults;
  6580. /* readonly */
  6581. Array<AttributeInfo> attributeInfos;
  6582. Array<Variant> attributes;
  6583. /* readonly */
  6584. String category;
  6585. /* readonly */
  6586. Array<Node> children;
  6587. /* readonly */
  6588. Array<Component> components;
  6589. Vector3 direction;
  6590. bool enabled;
  6591. /* readonly */
  6592. bool enabledSelf;
  6593. /* readonly */
  6594. uint id;
  6595. String name;
  6596. /* readonly */
  6597. uint numAllChildren;
  6598. /* readonly */
  6599. uint numAttributes;
  6600. /* readonly */
  6601. uint numChildren;
  6602. /* readonly */
  6603. uint numComponents;
  6604. ObjectAnimation objectAnimation;
  6605. Connection owner;
  6606. Node parent;
  6607. Vector3 position;
  6608. Vector2 position2D;
  6609. /* readonly */
  6610. int refs;
  6611. /* readonly */
  6612. Vector3 right;
  6613. Quaternion rotation;
  6614. float rotation2D;
  6615. Vector3 scale;
  6616. Vector2 scale2D;
  6617. /* readonly */
  6618. Scene scene;
  6619. /* readonly */
  6620. ScriptObject scriptObject;
  6621. bool temporary;
  6622. /* readonly */
  6623. Matrix3x4 transform;
  6624. /* readonly */
  6625. StringHash type;
  6626. /* readonly */
  6627. String typeName;
  6628. /* readonly */
  6629. Vector3 up;
  6630. /* readonly */
  6631. VariantMap vars;
  6632. /* readonly */
  6633. int weakRefs;
  6634. Vector3 worldDirection;
  6635. Vector3 worldPosition;
  6636. Vector2 worldPosition2D;
  6637. /* readonly */
  6638. Vector3 worldRight;
  6639. Quaternion worldRotation;
  6640. float worldRotation2D;
  6641. Vector3 worldScale;
  6642. Vector2 worldScale2D;
  6643. /* readonly */
  6644. Matrix3x4 worldTransform;
  6645. /* readonly */
  6646. Vector3 worldUp;
  6647. };
  6648. class Object
  6649. {
  6650. // Methods:
  6651. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6652. // Properties:
  6653. /* readonly */
  6654. String category;
  6655. /* readonly */
  6656. int refs;
  6657. /* readonly */
  6658. StringHash type;
  6659. /* readonly */
  6660. String typeName;
  6661. /* readonly */
  6662. int weakRefs;
  6663. };
  6664. class ObjectAnimation
  6665. {
  6666. // Methods:
  6667. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6668. ValueAnimation GetAttributeAnimation(const String&) const;
  6669. float GetAttributeAnimationSpeed(const String&) const;
  6670. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6671. bool Load(File);
  6672. bool Load(VectorBuffer&);
  6673. void RemoveAttributeAnimation(ValueAnimation);
  6674. void RemoveAttributeAnimation(const String&);
  6675. bool Save(File) const;
  6676. bool Save(VectorBuffer&) const;
  6677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6678. // Properties:
  6679. /* readonly */
  6680. Array<Variant> attributeAnimations;
  6681. /* readonly */
  6682. String category;
  6683. /* readonly */
  6684. uint memoryUse;
  6685. String name;
  6686. /* readonly */
  6687. int refs;
  6688. /* readonly */
  6689. Array<Variant> speeds;
  6690. /* readonly */
  6691. StringHash type;
  6692. /* readonly */
  6693. String typeName;
  6694. /* readonly */
  6695. uint useTimer;
  6696. /* readonly */
  6697. int weakRefs;
  6698. /* readonly */
  6699. Array<Variant> wrapModes;
  6700. };
  6701. class Obstacle
  6702. {
  6703. // Methods:
  6704. void ApplyAttributes();
  6705. void DrawDebugGeometry(DebugRenderer, bool);
  6706. void DrawDebugGeometry(bool);
  6707. Variant GetAttribute(const String&) const;
  6708. ValueAnimation GetAttributeAnimation(const String&) const;
  6709. float GetAttributeAnimationSpeed(const String&) const;
  6710. float GetAttributeAnimationTime(const String&) const;
  6711. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6712. Variant GetAttributeDefault(const String&) const;
  6713. bool GetInterceptNetworkUpdate(const String&) const;
  6714. bool Load(File, bool = false);
  6715. bool Load(VectorBuffer&, bool = false);
  6716. bool LoadXML(const XMLElement&, bool = false);
  6717. void MarkNetworkUpdate() const;
  6718. void Remove();
  6719. void RemoveAttributeAnimation(const String&);
  6720. void RemoveInstanceDefault();
  6721. void RemoveObjectAnimation();
  6722. void ResetToDefault();
  6723. bool Save(File) const;
  6724. bool Save(VectorBuffer&) const;
  6725. bool SaveXML(XMLElement&) const;
  6726. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6727. void SetAnimationTime(float);
  6728. bool SetAttribute(const String&, const Variant&);
  6729. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6730. void SetAttributeAnimationSpeed(const String&, float);
  6731. void SetAttributeAnimationTime(const String&, float);
  6732. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6733. void SetInterceptNetworkUpdate(const String&, bool);
  6734. // Properties:
  6735. bool animationEnabled;
  6736. /* readonly */
  6737. Array<Variant> attributeDefaults;
  6738. /* readonly */
  6739. Array<AttributeInfo> attributeInfos;
  6740. Array<Variant> attributes;
  6741. /* readonly */
  6742. String category;
  6743. bool enabled;
  6744. /* readonly */
  6745. bool enabledEffective;
  6746. float height;
  6747. /* readonly */
  6748. uint id;
  6749. /* readonly */
  6750. Node node;
  6751. /* readonly */
  6752. uint numAttributes;
  6753. ObjectAnimation objectAnimation;
  6754. /* readonly */
  6755. uint obstacleId;
  6756. float radius;
  6757. /* readonly */
  6758. int refs;
  6759. bool temporary;
  6760. /* readonly */
  6761. StringHash type;
  6762. /* readonly */
  6763. String typeName;
  6764. /* readonly */
  6765. int weakRefs;
  6766. };
  6767. class Octree
  6768. {
  6769. // Methods:
  6770. void AddManualDrawable(Drawable);
  6771. void ApplyAttributes();
  6772. void DrawDebugGeometry(DebugRenderer, bool);
  6773. void DrawDebugGeometry(bool) const;
  6774. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6775. Variant GetAttribute(const String&) const;
  6776. ValueAnimation GetAttributeAnimation(const String&) const;
  6777. float GetAttributeAnimationSpeed(const String&) const;
  6778. float GetAttributeAnimationTime(const String&) const;
  6779. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6780. Variant GetAttributeDefault(const String&) const;
  6781. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6782. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6783. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6784. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6785. bool GetInterceptNetworkUpdate(const String&) const;
  6786. bool Load(File, bool = false);
  6787. bool Load(VectorBuffer&, bool = false);
  6788. bool LoadXML(const XMLElement&, bool = false);
  6789. void MarkNetworkUpdate() const;
  6790. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6791. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6792. void Remove();
  6793. void RemoveAttributeAnimation(const String&);
  6794. void RemoveInstanceDefault();
  6795. void RemoveManualDrawable(Drawable);
  6796. void RemoveObjectAnimation();
  6797. void ResetToDefault();
  6798. bool Save(File) const;
  6799. bool Save(VectorBuffer&) const;
  6800. bool SaveXML(XMLElement&) const;
  6801. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6802. void SetAnimationTime(float);
  6803. bool SetAttribute(const String&, const Variant&);
  6804. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6805. void SetAttributeAnimationSpeed(const String&, float);
  6806. void SetAttributeAnimationTime(const String&, float);
  6807. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6808. void SetInterceptNetworkUpdate(const String&, bool);
  6809. void SetSize(const BoundingBox&, uint);
  6810. // Properties:
  6811. bool animationEnabled;
  6812. /* readonly */
  6813. Array<Variant> attributeDefaults;
  6814. /* readonly */
  6815. Array<AttributeInfo> attributeInfos;
  6816. Array<Variant> attributes;
  6817. /* readonly */
  6818. String category;
  6819. bool enabled;
  6820. /* readonly */
  6821. bool enabledEffective;
  6822. /* readonly */
  6823. uint id;
  6824. /* readonly */
  6825. Node node;
  6826. /* readonly */
  6827. uint numAttributes;
  6828. /* readonly */
  6829. uint numLevels;
  6830. ObjectAnimation objectAnimation;
  6831. /* readonly */
  6832. int refs;
  6833. bool temporary;
  6834. /* readonly */
  6835. StringHash type;
  6836. /* readonly */
  6837. String typeName;
  6838. /* readonly */
  6839. int weakRefs;
  6840. /* readonly */
  6841. BoundingBox worldBoundingBox;
  6842. };
  6843. class OffMeshConnection
  6844. {
  6845. // Methods:
  6846. void ApplyAttributes();
  6847. void DrawDebugGeometry(DebugRenderer, bool);
  6848. Variant GetAttribute(const String&) const;
  6849. ValueAnimation GetAttributeAnimation(const String&) const;
  6850. float GetAttributeAnimationSpeed(const String&) const;
  6851. float GetAttributeAnimationTime(const String&) const;
  6852. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6853. Variant GetAttributeDefault(const String&) const;
  6854. bool GetInterceptNetworkUpdate(const String&) const;
  6855. bool Load(File, bool = false);
  6856. bool Load(VectorBuffer&, bool = false);
  6857. bool LoadXML(const XMLElement&, bool = false);
  6858. void MarkNetworkUpdate() const;
  6859. void Remove();
  6860. void RemoveAttributeAnimation(const String&);
  6861. void RemoveInstanceDefault();
  6862. void RemoveObjectAnimation();
  6863. void ResetToDefault();
  6864. bool Save(File) const;
  6865. bool Save(VectorBuffer&) const;
  6866. bool SaveXML(XMLElement&) const;
  6867. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6868. void SetAnimationTime(float);
  6869. bool SetAttribute(const String&, const Variant&);
  6870. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6871. void SetAttributeAnimationSpeed(const String&, float);
  6872. void SetAttributeAnimationTime(const String&, float);
  6873. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6874. void SetInterceptNetworkUpdate(const String&, bool);
  6875. // Properties:
  6876. bool animationEnabled;
  6877. uint areaID;
  6878. /* readonly */
  6879. Array<Variant> attributeDefaults;
  6880. /* readonly */
  6881. Array<AttributeInfo> attributeInfos;
  6882. Array<Variant> attributes;
  6883. bool bidirectional;
  6884. /* readonly */
  6885. String category;
  6886. bool enabled;
  6887. /* readonly */
  6888. bool enabledEffective;
  6889. Node endPoint;
  6890. /* readonly */
  6891. uint id;
  6892. uint mask;
  6893. /* readonly */
  6894. Node node;
  6895. /* readonly */
  6896. uint numAttributes;
  6897. ObjectAnimation objectAnimation;
  6898. float radius;
  6899. /* readonly */
  6900. int refs;
  6901. bool temporary;
  6902. /* readonly */
  6903. StringHash type;
  6904. /* readonly */
  6905. String typeName;
  6906. /* readonly */
  6907. int weakRefs;
  6908. };
  6909. class PackageFile
  6910. {
  6911. // Methods:
  6912. bool Exists(const String&) const;
  6913. Array<String> GetEntryNames() const;
  6914. bool Open(const String&, uint = 0) const;
  6915. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6916. bool compressed() const;
  6917. // Properties:
  6918. /* readonly */
  6919. String category;
  6920. /* readonly */
  6921. uint checksum;
  6922. /* readonly */
  6923. String name;
  6924. /* readonly */
  6925. uint numFiles;
  6926. /* readonly */
  6927. int refs;
  6928. /* readonly */
  6929. uint totalSize;
  6930. /* readonly */
  6931. StringHash type;
  6932. /* readonly */
  6933. String typeName;
  6934. /* readonly */
  6935. int weakRefs;
  6936. };
  6937. class ParticleEffect
  6938. {
  6939. // Methods:
  6940. void AddColorFrame(ColorFrame);
  6941. void AddColorTime(Color&, float);
  6942. void AddTextureFrame(TextureFrame);
  6943. void AddTextureTime(Rect&, float);
  6944. ColorFrame GetColorFrame(uint) const;
  6945. TextureFrame GetTextureFrame(uint) const;
  6946. bool Load(File);
  6947. bool Load(VectorBuffer&);
  6948. bool Load(const XMLElement&);
  6949. void RemoveColorFrame(uint);
  6950. void RemoveTextureFrame(uint);
  6951. bool Save(File) const;
  6952. bool Save(VectorBuffer&) const;
  6953. bool Save(XMLElement&) const;
  6954. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6955. void SetColorFrame(uint, ColorFrame);
  6956. void SetTextureFrame(uint, TextureFrame);
  6957. void SortColorFrames();
  6958. void SortTextureFrames();
  6959. // Properties:
  6960. float activeTime;
  6961. float animationLodBias;
  6962. /* readonly */
  6963. String category;
  6964. Vector3 constantForce;
  6965. float dampingForce;
  6966. Vector3 emitterSize;
  6967. EmitterType emitterType;
  6968. float inactiveTime;
  6969. Material material;
  6970. Vector3 maxDirection;
  6971. float maxEmissionRate;
  6972. Vector2 maxParticleSize;
  6973. float maxRotation;
  6974. float maxRotationSpeed;
  6975. float maxTimeToLive;
  6976. float maxVelocity;
  6977. /* readonly */
  6978. uint memoryUse;
  6979. Vector3 minDirection;
  6980. float minEmissionRate;
  6981. Vector2 minParticleSize;
  6982. float minRotation;
  6983. float minRotationSpeed;
  6984. float minTimeToLive;
  6985. float minVelocity;
  6986. String name;
  6987. uint numColorFrames;
  6988. uint numParticles;
  6989. uint numTextureFrames;
  6990. /* readonly */
  6991. int refs;
  6992. bool relative;
  6993. bool scaled;
  6994. float sizeAdd;
  6995. float sizeMul;
  6996. bool sorted;
  6997. /* readonly */
  6998. StringHash type;
  6999. /* readonly */
  7000. String typeName;
  7001. bool updateInvisible;
  7002. /* readonly */
  7003. uint useTimer;
  7004. /* readonly */
  7005. int weakRefs;
  7006. };
  7007. class ParticleEffect2D
  7008. {
  7009. // Methods:
  7010. bool Load(File);
  7011. bool Load(VectorBuffer&);
  7012. bool Save(File) const;
  7013. bool Save(VectorBuffer&) const;
  7014. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7015. // Properties:
  7016. /* readonly */
  7017. String category;
  7018. /* readonly */
  7019. uint memoryUse;
  7020. String name;
  7021. /* readonly */
  7022. int refs;
  7023. /* readonly */
  7024. StringHash type;
  7025. /* readonly */
  7026. String typeName;
  7027. /* readonly */
  7028. uint useTimer;
  7029. /* readonly */
  7030. int weakRefs;
  7031. };
  7032. class ParticleEmitter
  7033. {
  7034. // Methods:
  7035. void ApplyAttributes();
  7036. void ApplyEffect();
  7037. void Commit();
  7038. void DrawDebugGeometry(DebugRenderer, bool);
  7039. Variant GetAttribute(const String&) const;
  7040. ValueAnimation GetAttributeAnimation(const String&) const;
  7041. float GetAttributeAnimationSpeed(const String&) const;
  7042. float GetAttributeAnimationTime(const String&) const;
  7043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7044. Variant GetAttributeDefault(const String&) const;
  7045. bool GetInterceptNetworkUpdate(const String&) const;
  7046. bool IsInView(Camera) const;
  7047. bool Load(File, bool = false);
  7048. bool Load(VectorBuffer&, bool = false);
  7049. bool LoadXML(const XMLElement&, bool = false);
  7050. void MarkNetworkUpdate() const;
  7051. void Remove();
  7052. void RemoveAllParticles();
  7053. void RemoveAttributeAnimation(const String&);
  7054. void RemoveInstanceDefault();
  7055. void RemoveObjectAnimation();
  7056. void Reset();
  7057. void ResetEmissionTimer();
  7058. void ResetToDefault();
  7059. bool Save(File) const;
  7060. bool Save(VectorBuffer&) const;
  7061. bool SaveXML(XMLElement&) const;
  7062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7063. void SetAnimationTime(float);
  7064. bool SetAttribute(const String&, const Variant&);
  7065. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7066. void SetAttributeAnimationSpeed(const String&, float);
  7067. void SetAttributeAnimationTime(const String&, float);
  7068. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7069. void SetInterceptNetworkUpdate(const String&, bool);
  7070. // Properties:
  7071. bool animationEnabled;
  7072. float animationLodBias;
  7073. /* readonly */
  7074. Array<Variant> attributeDefaults;
  7075. /* readonly */
  7076. Array<AttributeInfo> attributeInfos;
  7077. Array<Variant> attributes;
  7078. /* readonly */
  7079. Array<Billboard> billboards;
  7080. /* readonly */
  7081. BoundingBox boundingBox;
  7082. bool castShadows;
  7083. /* readonly */
  7084. String category;
  7085. float drawDistance;
  7086. ParticleEffect effect;
  7087. bool emitting;
  7088. bool enabled;
  7089. /* readonly */
  7090. bool enabledEffective;
  7091. FaceCameraMode faceCameraMode;
  7092. /* readonly */
  7093. uint id;
  7094. /* readonly */
  7095. bool inView;
  7096. uint lightMask;
  7097. float lodBias;
  7098. Material material;
  7099. uint maxLights;
  7100. /* readonly */
  7101. Node node;
  7102. /* readonly */
  7103. uint numAttributes;
  7104. uint numBillboards;
  7105. uint numParticles;
  7106. ObjectAnimation objectAnimation;
  7107. bool occludee;
  7108. bool occluder;
  7109. /* readonly */
  7110. int refs;
  7111. bool relative;
  7112. bool scaled;
  7113. bool serializeParticles;
  7114. float shadowDistance;
  7115. uint shadowMask;
  7116. bool sorted;
  7117. bool temporary;
  7118. /* readonly */
  7119. StringHash type;
  7120. /* readonly */
  7121. String typeName;
  7122. uint viewMask;
  7123. /* readonly */
  7124. int weakRefs;
  7125. /* readonly */
  7126. BoundingBox worldBoundingBox;
  7127. /* readonly */
  7128. Zone zone;
  7129. uint zoneMask;
  7130. };
  7131. class ParticleEmitter2D
  7132. {
  7133. // Methods:
  7134. void ApplyAttributes();
  7135. void DrawDebugGeometry(DebugRenderer, bool);
  7136. Variant GetAttribute(const String&) const;
  7137. ValueAnimation GetAttributeAnimation(const String&) const;
  7138. float GetAttributeAnimationSpeed(const String&) const;
  7139. float GetAttributeAnimationTime(const String&) const;
  7140. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7141. Variant GetAttributeDefault(const String&) const;
  7142. bool GetInterceptNetworkUpdate(const String&) const;
  7143. bool IsInView(Camera) const;
  7144. bool Load(File, bool = false);
  7145. bool Load(VectorBuffer&, bool = false);
  7146. bool LoadXML(const XMLElement&, bool = false);
  7147. void MarkNetworkUpdate() const;
  7148. void Remove();
  7149. void RemoveAttributeAnimation(const String&);
  7150. void RemoveInstanceDefault();
  7151. void RemoveObjectAnimation();
  7152. void ResetToDefault();
  7153. bool Save(File) const;
  7154. bool Save(VectorBuffer&) const;
  7155. bool SaveXML(XMLElement&) const;
  7156. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7157. void SetAnimationTime(float);
  7158. bool SetAttribute(const String&, const Variant&);
  7159. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7160. void SetAttributeAnimationSpeed(const String&, float);
  7161. void SetAttributeAnimationTime(const String&, float);
  7162. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7163. void SetInterceptNetworkUpdate(const String&, bool);
  7164. // Properties:
  7165. bool animationEnabled;
  7166. /* readonly */
  7167. Array<Variant> attributeDefaults;
  7168. /* readonly */
  7169. Array<AttributeInfo> attributeInfos;
  7170. Array<Variant> attributes;
  7171. BlendMode blendMode;
  7172. /* readonly */
  7173. BoundingBox boundingBox;
  7174. bool castShadows;
  7175. /* readonly */
  7176. String category;
  7177. float drawDistance;
  7178. ParticleEffect2D effect;
  7179. bool enabled;
  7180. /* readonly */
  7181. bool enabledEffective;
  7182. /* readonly */
  7183. uint id;
  7184. /* readonly */
  7185. bool inView;
  7186. int layer;
  7187. uint lightMask;
  7188. float lodBias;
  7189. uint maxLights;
  7190. /* readonly */
  7191. Node node;
  7192. /* readonly */
  7193. uint numAttributes;
  7194. ObjectAnimation objectAnimation;
  7195. bool occludee;
  7196. bool occluder;
  7197. int orderInLayer;
  7198. /* readonly */
  7199. int refs;
  7200. float shadowDistance;
  7201. uint shadowMask;
  7202. Sprite2D sprite;
  7203. bool temporary;
  7204. /* readonly */
  7205. StringHash type;
  7206. /* readonly */
  7207. String typeName;
  7208. uint viewMask;
  7209. /* readonly */
  7210. int weakRefs;
  7211. /* readonly */
  7212. BoundingBox worldBoundingBox;
  7213. uint zoneMask;
  7214. };
  7215. class Pass
  7216. {
  7217. // Properties:
  7218. bool alphaMask;
  7219. BlendMode blendMode;
  7220. CompareMode depthTestMode;
  7221. bool depthWrite;
  7222. bool desktop;
  7223. PassLightingMode lightingMode;
  7224. String pixelShader;
  7225. String pixelShaderDefines;
  7226. /* readonly */
  7227. int refs;
  7228. String vertexShader;
  7229. String vertexShaderDefines;
  7230. /* readonly */
  7231. int weakRefs;
  7232. };
  7233. class PhysicsRaycastResult
  7234. {
  7235. // Properties:
  7236. /* readonly */
  7237. RigidBody body;
  7238. float distance;
  7239. Vector3 normal;
  7240. Vector3 position;
  7241. };
  7242. class PhysicsRaycastResult2D
  7243. {
  7244. // Properties:
  7245. /* readonly */
  7246. RigidBody2D body;
  7247. float distance;
  7248. Vector2 normal;
  7249. Vector2 position;
  7250. };
  7251. class PhysicsWorld
  7252. {
  7253. // Methods:
  7254. void ApplyAttributes();
  7255. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7256. void DrawDebugGeometry(DebugRenderer, bool);
  7257. void DrawDebugGeometry(bool);
  7258. Variant GetAttribute(const String&) const;
  7259. ValueAnimation GetAttributeAnimation(const String&) const;
  7260. float GetAttributeAnimationSpeed(const String&) const;
  7261. float GetAttributeAnimationTime(const String&) const;
  7262. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7263. Variant GetAttributeDefault(const String&) const;
  7264. bool GetInterceptNetworkUpdate(const String&) const;
  7265. Array<RigidBody> GetRigidBodies(RigidBody);
  7266. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7267. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7268. bool Load(File, bool = false);
  7269. bool Load(VectorBuffer&, bool = false);
  7270. bool LoadXML(const XMLElement&, bool = false);
  7271. void MarkNetworkUpdate() const;
  7272. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7273. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7274. void Remove();
  7275. void RemoveAttributeAnimation(const String&);
  7276. void RemoveCachedGeometry(Model);
  7277. void RemoveInstanceDefault();
  7278. void RemoveObjectAnimation();
  7279. void ResetToDefault();
  7280. bool Save(File) const;
  7281. bool Save(VectorBuffer&) const;
  7282. bool SaveXML(XMLElement&) const;
  7283. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7284. void SetAnimationTime(float);
  7285. bool SetAttribute(const String&, const Variant&);
  7286. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7287. void SetAttributeAnimationSpeed(const String&, float);
  7288. void SetAttributeAnimationTime(const String&, float);
  7289. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7290. void SetInterceptNetworkUpdate(const String&, bool);
  7291. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7292. void Update(float);
  7293. void UpdateCollisions();
  7294. // Properties:
  7295. bool animationEnabled;
  7296. /* readonly */
  7297. Array<Variant> attributeDefaults;
  7298. /* readonly */
  7299. Array<AttributeInfo> attributeInfos;
  7300. Array<Variant> attributes;
  7301. /* readonly */
  7302. String category;
  7303. bool enabled;
  7304. /* readonly */
  7305. bool enabledEffective;
  7306. int fps;
  7307. Vector3 gravity;
  7308. /* readonly */
  7309. uint id;
  7310. bool internalEdge;
  7311. bool interpolation;
  7312. int maxSubSteps;
  7313. /* readonly */
  7314. Node node;
  7315. /* readonly */
  7316. uint numAttributes;
  7317. int numIterations;
  7318. ObjectAnimation objectAnimation;
  7319. /* readonly */
  7320. int refs;
  7321. bool splitImpulse;
  7322. bool temporary;
  7323. /* readonly */
  7324. StringHash type;
  7325. /* readonly */
  7326. String typeName;
  7327. bool updateEnabled;
  7328. /* readonly */
  7329. int weakRefs;
  7330. };
  7331. class PhysicsWorld2D
  7332. {
  7333. // Methods:
  7334. void ApplyAttributes();
  7335. void DrawDebugGeometry() const;
  7336. void DrawDebugGeometry(DebugRenderer, bool);
  7337. Variant GetAttribute(const String&) const;
  7338. ValueAnimation GetAttributeAnimation(const String&) const;
  7339. float GetAttributeAnimationSpeed(const String&) const;
  7340. float GetAttributeAnimationTime(const String&) const;
  7341. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7342. Variant GetAttributeDefault(const String&) const;
  7343. bool GetInterceptNetworkUpdate(const String&) const;
  7344. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7345. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7346. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7347. bool Load(File, bool = false);
  7348. bool Load(VectorBuffer&, bool = false);
  7349. bool LoadXML(const XMLElement&, bool = false);
  7350. void MarkNetworkUpdate() const;
  7351. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7352. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7353. void Remove();
  7354. void RemoveAttributeAnimation(const String&);
  7355. void RemoveInstanceDefault();
  7356. void RemoveObjectAnimation();
  7357. void ResetToDefault();
  7358. bool Save(File) const;
  7359. bool Save(VectorBuffer&) const;
  7360. bool SaveXML(XMLElement&) const;
  7361. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7362. void SetAnimationTime(float);
  7363. bool SetAttribute(const String&, const Variant&);
  7364. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7365. void SetAttributeAnimationSpeed(const String&, float);
  7366. void SetAttributeAnimationTime(const String&, float);
  7367. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7368. void SetInterceptNetworkUpdate(const String&, bool);
  7369. // Properties:
  7370. bool allowSleeping;
  7371. bool animationEnabled;
  7372. /* readonly */
  7373. Array<Variant> attributeDefaults;
  7374. /* readonly */
  7375. Array<AttributeInfo> attributeInfos;
  7376. Array<Variant> attributes;
  7377. bool autoClearForces;
  7378. /* readonly */
  7379. String category;
  7380. bool continuousPhysics;
  7381. bool drawAabb;
  7382. bool drawCenterOfMass;
  7383. bool drawJoint;
  7384. bool drawPair;
  7385. bool drawShape;
  7386. bool enabled;
  7387. /* readonly */
  7388. bool enabledEffective;
  7389. Vector2 gravity;
  7390. /* readonly */
  7391. uint id;
  7392. /* readonly */
  7393. Node node;
  7394. /* readonly */
  7395. uint numAttributes;
  7396. ObjectAnimation objectAnimation;
  7397. uint positionIterations;
  7398. /* readonly */
  7399. int refs;
  7400. bool subStepping;
  7401. bool temporary;
  7402. /* readonly */
  7403. StringHash type;
  7404. /* readonly */
  7405. String typeName;
  7406. bool updateEnabled;
  7407. uint velocityIterations;
  7408. bool warmStarting;
  7409. /* readonly */
  7410. int weakRefs;
  7411. };
  7412. class Plane
  7413. {
  7414. // Methods:
  7415. void Define(const Vector3&, const Vector3&);
  7416. void Define(const Vector3&, const Vector3&, const Vector3&);
  7417. void Define(const Vector4&);
  7418. float Distance(const Vector3&) const;
  7419. Vector3 Project(const Vector3&) const;
  7420. Vector3 Reflect(const Vector3&) const;
  7421. Vector4 ToVector4() const;
  7422. void Transform(const Matrix3&);
  7423. void Transform(const Matrix3x4&);
  7424. void Transform(const Matrix4&);
  7425. Plane Transformed(const Matrix3&) const;
  7426. Plane Transformed(const Matrix3x4&) const;
  7427. Plane Transformed(const Matrix4&) const;
  7428. // Properties:
  7429. Vector3 absNormal;
  7430. float d;
  7431. Vector3 normal;
  7432. /* readonly */
  7433. Matrix3x4 reflectionMatrix;
  7434. };
  7435. class Polyhedron
  7436. {
  7437. // Methods:
  7438. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7439. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7440. void AddFace(const Array<Vector3>);
  7441. void Clear();
  7442. void Clip(const BoundingBox&);
  7443. void Clip(const Frustum&);
  7444. void Define(const BoundingBox&);
  7445. void Define(const Frustum&);
  7446. void Transform(const Matrix3&);
  7447. void Transform(const Matrix3x4&);
  7448. Polyhedron Transformed(const Matrix3&) const;
  7449. Polyhedron Transformed(const Matrix3x4&) const;
  7450. // Properties:
  7451. /* readonly */
  7452. Array<Array<Vector3>> face;
  7453. /* readonly */
  7454. uint numFaces;
  7455. };
  7456. class PropertySet2D
  7457. {
  7458. // Methods:
  7459. bool HasProperty(const String&) const;
  7460. const String& GetProperty(const String&) const;
  7461. // Properties:
  7462. /* readonly */
  7463. int refs;
  7464. /* readonly */
  7465. int weakRefs;
  7466. };
  7467. class Quaternion
  7468. {
  7469. // Methods:
  7470. float DotProduct(const Quaternion&) const;
  7471. bool Equals(const Quaternion&) const;
  7472. void FromAngleAxis(float, const Vector3&);
  7473. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7474. void FromEulerAngles(float, float, float);
  7475. bool FromLookRotation(const Vector3&, const Vector3&);
  7476. void FromRotationTo(const Vector3&, const Vector3&);
  7477. Quaternion Inverse() const;
  7478. bool IsNaN() const;
  7479. Quaternion Nlerp(Quaternion, float, bool) const;
  7480. void Normalize();
  7481. Quaternion Normalized() const;
  7482. Quaternion Slerp(Quaternion, float) const;
  7483. String ToString() const;
  7484. // Properties:
  7485. /* readonly */
  7486. Vector3 eulerAngles;
  7487. /* readonly */
  7488. float pitch;
  7489. /* readonly */
  7490. float roll;
  7491. float w;
  7492. float x;
  7493. float y;
  7494. /* readonly */
  7495. float yaw;
  7496. float z;
  7497. };
  7498. class Ray
  7499. {
  7500. // Methods:
  7501. Vector3 ClosestPoint(const Ray&) const;
  7502. void Define(const Vector3&, const Vector3&);
  7503. float Distance(const Vector3&) const;
  7504. float HitDistance(const BoundingBox&) const;
  7505. float HitDistance(const Frustum&, bool = true) const;
  7506. float HitDistance(const Plane&) const;
  7507. float HitDistance(const Sphere&) const;
  7508. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7509. Vector3 Project(const Vector3&) const;
  7510. Ray Transformed(const Matrix3x4&) const;
  7511. // Properties:
  7512. Vector3 direction;
  7513. Vector3 origin;
  7514. };
  7515. class RayQueryResult
  7516. {
  7517. // Properties:
  7518. float distance;
  7519. /* readonly */
  7520. Drawable drawable;
  7521. /* readonly */
  7522. Node node;
  7523. Vector3 normal;
  7524. Vector3 position;
  7525. uint subObject;
  7526. Vector2 textureUV;
  7527. };
  7528. class Rect
  7529. {
  7530. // Methods:
  7531. void Clear();
  7532. void Clip(const Rect&);
  7533. void Define(const Vector2&);
  7534. void Define(const Vector2&, const Vector2&);
  7535. bool Defined() const;
  7536. bool Equals(const Rect&) const;
  7537. Intersection IsInside(const Vector2&) const;
  7538. void Merge(const Rect&);
  7539. void Merge(const Vector2&);
  7540. Vector4 ToVector4() const;
  7541. // Properties:
  7542. float bottom;
  7543. /* readonly */
  7544. Vector2 center;
  7545. /* readonly */
  7546. Vector2 halfSize;
  7547. float left;
  7548. Vector2 max;
  7549. Vector2 min;
  7550. float right;
  7551. /* readonly */
  7552. Vector2 size;
  7553. float top;
  7554. };
  7555. class RefCounted
  7556. {
  7557. // Properties:
  7558. /* readonly */
  7559. int refs;
  7560. /* readonly */
  7561. int weakRefs;
  7562. };
  7563. class RenderPath
  7564. {
  7565. // Methods:
  7566. void AddCommand(const RenderPathCommand&);
  7567. void AddRenderTarget(const RenderTargetInfo&);
  7568. bool Append(XMLFile);
  7569. RenderPath Clone();
  7570. void InsertCommand(uint, const RenderPathCommand&);
  7571. bool Load(XMLFile);
  7572. void RemoveCommand(uint);
  7573. void RemoveCommands(const String&);
  7574. void RemoveRenderTarget(const String&);
  7575. void RemoveRenderTarget(uint);
  7576. void RemoveRenderTargts(const String&);
  7577. void SetEnabled(const String&, bool);
  7578. void ToggleEnabled(const String&);
  7579. // Properties:
  7580. Array<RenderPathCommand> commands;
  7581. /* readonly */
  7582. uint numCommands;
  7583. /* readonly */
  7584. uint numRenderTargets;
  7585. /* readonly */
  7586. int refs;
  7587. Array<RenderTargetInfo> renderTargets;
  7588. Array<Variant> shaderParameters;
  7589. /* readonly */
  7590. int weakRefs;
  7591. };
  7592. class RenderPathCommand
  7593. {
  7594. // Methods:
  7595. void RemoveShaderParameter(const String&);
  7596. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7597. // Properties:
  7598. BlendMode blendMode;
  7599. Color clearColor;
  7600. float clearDepth;
  7601. uint clearFlags;
  7602. uint clearStencil;
  7603. String depthStencilName;
  7604. bool enabled;
  7605. bool markToStencil;
  7606. String metadata;
  7607. uint numOutputs;
  7608. Array<CubeMapFace> outputFaces;
  7609. Array<String> outputNames;
  7610. String pass;
  7611. String pixelShaderDefines;
  7612. String pixelShaderName;
  7613. Array<Variant> shaderParameters;
  7614. RenderCommandSortMode sortMode;
  7615. String tag;
  7616. Array<String> textureNames;
  7617. RenderCommandType type;
  7618. bool useFogColor;
  7619. bool useLitBase;
  7620. bool vertexLights;
  7621. String vertexShaderDefines;
  7622. String vertexShaderName;
  7623. };
  7624. class RenderSurface
  7625. {
  7626. // Methods:
  7627. void QueueUpdate();
  7628. // Properties:
  7629. /* readonly */
  7630. int height;
  7631. RenderSurface linkedDepthStencil;
  7632. RenderSurface linkedRenderTarget;
  7633. uint numViewports;
  7634. /* readonly */
  7635. Texture parentTexture;
  7636. RenderSurfaceUpdateMode updateMode;
  7637. /* readonly */
  7638. TextureUsage usage;
  7639. Array<Viewport> viewports;
  7640. /* readonly */
  7641. int width;
  7642. };
  7643. class RenderTargetInfo
  7644. {
  7645. // Properties:
  7646. bool cubemap;
  7647. bool enabled;
  7648. bool filtered;
  7649. uint format;
  7650. String name;
  7651. bool persistent;
  7652. bool sRGB;
  7653. Vector2 size;
  7654. RenderTargetSizeMode sizeMode;
  7655. String tag;
  7656. };
  7657. class Renderer
  7658. {
  7659. // Methods:
  7660. void DrawDebugGeometry(bool) const;
  7661. void ReloadShaders() const;
  7662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7663. void SetDefaultRenderPath(XMLFile);
  7664. // Properties:
  7665. /* readonly */
  7666. String category;
  7667. /* readonly */
  7668. Material defaultLightRamp;
  7669. /* readonly */
  7670. Material defaultLightSpot;
  7671. /* readonly */
  7672. Material defaultMaterial;
  7673. RenderPath defaultRenderPath;
  7674. /* readonly */
  7675. Zone defaultZone;
  7676. bool drawShadows;
  7677. bool dynamicInstancing;
  7678. bool hdrRendering;
  7679. int materialQuality;
  7680. int maxOccluderTriangles;
  7681. int maxShadowMaps;
  7682. int maxSortedInstances;
  7683. int minInstances;
  7684. float mobileShadowBiasAdd;
  7685. float mobileShadowBiasMul;
  7686. /* readonly */
  7687. uint numBatches;
  7688. /* readonly */
  7689. Array<uint> numGeometries;
  7690. /* readonly */
  7691. Array<uint> numLights;
  7692. /* readonly */
  7693. Array<uint> numOccluders;
  7694. /* readonly */
  7695. uint numPrimitives;
  7696. /* readonly */
  7697. Array<uint> numShadowMaps;
  7698. uint numViewports;
  7699. /* readonly */
  7700. uint numViews;
  7701. float occluderSizeThreshold;
  7702. int occlusionBufferSize;
  7703. /* readonly */
  7704. int refs;
  7705. bool reuseShadowMaps;
  7706. int shadowMapSize;
  7707. int shadowQuality;
  7708. bool specularLighting;
  7709. int textureAnisotropy;
  7710. TextureFilterMode textureFilterMode;
  7711. int textureQuality;
  7712. bool threadedOcclusion;
  7713. /* readonly */
  7714. StringHash type;
  7715. /* readonly */
  7716. String typeName;
  7717. Array<Viewport> viewports;
  7718. /* readonly */
  7719. int weakRefs;
  7720. };
  7721. class Resource
  7722. {
  7723. // Methods:
  7724. bool Load(File);
  7725. bool Load(VectorBuffer&);
  7726. bool Save(File) const;
  7727. bool Save(VectorBuffer&) const;
  7728. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7729. // Properties:
  7730. /* readonly */
  7731. String category;
  7732. /* readonly */
  7733. uint memoryUse;
  7734. String name;
  7735. /* readonly */
  7736. int refs;
  7737. /* readonly */
  7738. StringHash type;
  7739. /* readonly */
  7740. String typeName;
  7741. /* readonly */
  7742. uint useTimer;
  7743. /* readonly */
  7744. int weakRefs;
  7745. };
  7746. class ResourceCache
  7747. {
  7748. // Methods:
  7749. bool AddManualResource(Resource);
  7750. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  7751. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  7752. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  7753. bool BackgroundLoadResource(const String&, const String&, bool = true);
  7754. bool Exists(const String&) const;
  7755. Resource GetExistingResource(StringHash, const String&);
  7756. Resource GetExistingResource(const String&, const String&);
  7757. File GetFile(const String&);
  7758. String GetPreferredResourceDir(const String&) const;
  7759. Resource GetResource(StringHash, const String&, bool = true);
  7760. Resource GetResource(const String&, const String&, bool = true);
  7761. String GetResourceFileName(const String&) const;
  7762. void ReleaseAllResources(bool = false);
  7763. void ReleaseResource(const String&, const String&, bool = false);
  7764. void ReleaseResources(StringHash, bool = false);
  7765. void ReleaseResources(const String&, bool = false);
  7766. void ReleaseResources(const String&, const String&, bool = false);
  7767. bool ReloadResource(Resource);
  7768. void ReloadResourceWithDependencies(const String&);
  7769. void RemovePackageFile(PackageFile, bool = true, bool = false);
  7770. void RemovePackageFile(const String&, bool = true, bool = false);
  7771. void RemoveResourceDir(const String&);
  7772. String SanitateResourceDirName(const String&) const;
  7773. String SanitateResourceName(const String&) const;
  7774. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7775. // Properties:
  7776. bool autoReloadResources;
  7777. /* readonly */
  7778. String category;
  7779. int finishBackgroundResourcesMs;
  7780. Array<uint64> memoryBudget;
  7781. /* readonly */
  7782. Array<uint64> memoryUse;
  7783. /* readonly */
  7784. uint numBackgroundLoadResources;
  7785. /* readonly */
  7786. Array<PackageFile> packageFiles;
  7787. /* readonly */
  7788. int refs;
  7789. /* readonly */
  7790. Array<String> resourceDirs;
  7791. bool returnFailedResources;
  7792. /* readonly */
  7793. bool seachPackagesFirst;
  7794. /* writeonly */
  7795. bool searchPackagesFirst;
  7796. /* readonly */
  7797. uint64 totalMemoryUse;
  7798. /* readonly */
  7799. StringHash type;
  7800. /* readonly */
  7801. String typeName;
  7802. /* readonly */
  7803. int weakRefs;
  7804. };
  7805. class ResourceRef
  7806. {
  7807. // Properties:
  7808. String name;
  7809. StringHash type;
  7810. };
  7811. class ResourceRefList
  7812. {
  7813. // Methods:
  7814. void Resize(uint);
  7815. // Properties:
  7816. /* readonly */
  7817. bool empty;
  7818. /* readonly */
  7819. uint length;
  7820. Array<String> names;
  7821. StringHash type;
  7822. };
  7823. class RigidBody
  7824. {
  7825. // Methods:
  7826. void Activate();
  7827. void ApplyAttributes();
  7828. void ApplyForce(const Vector3&);
  7829. void ApplyForce(const Vector3&, const Vector3&);
  7830. void ApplyImpulse(const Vector3&);
  7831. void ApplyImpulse(const Vector3&, const Vector3&);
  7832. void ApplyTorque(const Vector3&);
  7833. void ApplyTorqueImpulse(const Vector3&);
  7834. void DisableMassUpdate();
  7835. void DrawDebugGeometry(DebugRenderer, bool);
  7836. void EnableMassUpdate();
  7837. Variant GetAttribute(const String&) const;
  7838. ValueAnimation GetAttributeAnimation(const String&) const;
  7839. float GetAttributeAnimationSpeed(const String&) const;
  7840. float GetAttributeAnimationTime(const String&) const;
  7841. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7842. Variant GetAttributeDefault(const String&) const;
  7843. bool GetInterceptNetworkUpdate(const String&) const;
  7844. Vector3 GetVelocityAtPoint(const Vector3&) const;
  7845. bool Load(File, bool = false);
  7846. bool Load(VectorBuffer&, bool = false);
  7847. bool LoadXML(const XMLElement&, bool = false);
  7848. void MarkNetworkUpdate() const;
  7849. void ReAddBodyToWorld();
  7850. void Remove();
  7851. void RemoveAttributeAnimation(const String&);
  7852. void RemoveInstanceDefault();
  7853. void RemoveObjectAnimation();
  7854. void ResetForces();
  7855. void ResetToDefault();
  7856. bool Save(File) const;
  7857. bool Save(VectorBuffer&) const;
  7858. bool SaveXML(XMLElement&) const;
  7859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7860. void SetAnimationTime(float);
  7861. bool SetAttribute(const String&, const Variant&);
  7862. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7863. void SetAttributeAnimationSpeed(const String&, float);
  7864. void SetAttributeAnimationTime(const String&, float);
  7865. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7866. void SetCollisionLayerAndMask(uint, uint);
  7867. void SetInterceptNetworkUpdate(const String&, bool);
  7868. void SetTransform(const Vector3&, const Quaternion&);
  7869. // Properties:
  7870. /* readonly */
  7871. bool active;
  7872. float angularDamping;
  7873. Vector3 angularFactor;
  7874. float angularRestThreshold;
  7875. Vector3 angularVelocity;
  7876. bool animationEnabled;
  7877. Vector3 anisotropicFriction;
  7878. /* readonly */
  7879. Array<Variant> attributeDefaults;
  7880. /* readonly */
  7881. Array<AttributeInfo> attributeInfos;
  7882. Array<Variant> attributes;
  7883. /* readonly */
  7884. String category;
  7885. float ccdMotionThreshold;
  7886. float ccdRadius;
  7887. /* readonly */
  7888. Vector3 centerOfMass;
  7889. /* readonly */
  7890. Array<RigidBody> collidingBodies;
  7891. CollisionEventMode collisionEventMode;
  7892. uint collisionLayer;
  7893. uint collisionMask;
  7894. float contactProcessingThreshold;
  7895. bool enabled;
  7896. /* readonly */
  7897. bool enabledEffective;
  7898. float friction;
  7899. Vector3 gravityOverride;
  7900. /* readonly */
  7901. uint id;
  7902. bool kinematic;
  7903. float linearDamping;
  7904. Vector3 linearFactor;
  7905. float linearRestThreshold;
  7906. Vector3 linearVelocity;
  7907. float mass;
  7908. /* readonly */
  7909. Node node;
  7910. /* readonly */
  7911. uint numAttributes;
  7912. ObjectAnimation objectAnimation;
  7913. Vector3 position;
  7914. /* readonly */
  7915. int refs;
  7916. float restitution;
  7917. float rollingFriction;
  7918. Quaternion rotation;
  7919. bool temporary;
  7920. bool trigger;
  7921. /* readonly */
  7922. StringHash type;
  7923. /* readonly */
  7924. String typeName;
  7925. bool useGravity;
  7926. /* readonly */
  7927. int weakRefs;
  7928. };
  7929. class RigidBody2D
  7930. {
  7931. // Methods:
  7932. void ApplyAngularImpulse(float, bool);
  7933. void ApplyAttributes();
  7934. void ApplyForce(const Vector2&, const Vector2&, bool);
  7935. void ApplyForceToCenter(const Vector2&, bool);
  7936. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  7937. void ApplyTorque(float, bool);
  7938. void DrawDebugGeometry(DebugRenderer, bool);
  7939. Variant GetAttribute(const String&) const;
  7940. ValueAnimation GetAttributeAnimation(const String&) const;
  7941. float GetAttributeAnimationSpeed(const String&) const;
  7942. float GetAttributeAnimationTime(const String&) const;
  7943. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7944. Variant GetAttributeDefault(const String&) const;
  7945. bool GetInterceptNetworkUpdate(const String&) const;
  7946. bool Load(File, bool = false);
  7947. bool Load(VectorBuffer&, bool = false);
  7948. bool LoadXML(const XMLElement&, bool = false);
  7949. void MarkNetworkUpdate() const;
  7950. void Remove();
  7951. void RemoveAttributeAnimation(const String&);
  7952. void RemoveInstanceDefault();
  7953. void RemoveObjectAnimation();
  7954. void ResetToDefault();
  7955. bool Save(File) const;
  7956. bool Save(VectorBuffer&) const;
  7957. bool SaveXML(XMLElement&) const;
  7958. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7959. void SetAnimationTime(float);
  7960. bool SetAttribute(const String&, const Variant&);
  7961. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7962. void SetAttributeAnimationSpeed(const String&, float);
  7963. void SetAttributeAnimationTime(const String&, float);
  7964. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7965. void SetInterceptNetworkUpdate(const String&, bool);
  7966. // Properties:
  7967. bool allowSleep;
  7968. float angularDamping;
  7969. bool animationEnabled;
  7970. /* readonly */
  7971. Array<Variant> attributeDefaults;
  7972. /* readonly */
  7973. Array<AttributeInfo> attributeInfos;
  7974. Array<Variant> attributes;
  7975. bool awake;
  7976. BodyType2D bodyType;
  7977. bool bullet;
  7978. /* readonly */
  7979. String category;
  7980. bool enabled;
  7981. /* readonly */
  7982. bool enabledEffective;
  7983. bool fixedRotation;
  7984. float gravityScale;
  7985. /* readonly */
  7986. uint id;
  7987. float inertia;
  7988. float linearDamping;
  7989. Vector2 linearVelocity;
  7990. float mass;
  7991. Vector2 massCenter;
  7992. /* readonly */
  7993. Node node;
  7994. /* readonly */
  7995. uint numAttributes;
  7996. ObjectAnimation objectAnimation;
  7997. /* readonly */
  7998. int refs;
  7999. bool temporary;
  8000. /* readonly */
  8001. StringHash type;
  8002. /* readonly */
  8003. String typeName;
  8004. bool useFixtureMass;
  8005. /* readonly */
  8006. int weakRefs;
  8007. };
  8008. class Scene
  8009. {
  8010. // Methods:
  8011. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8012. void AddRequiredPackageFile(PackageFile);
  8013. void ApplyAttributes();
  8014. void Clear(bool = true, bool = true);
  8015. void ClearRequiredPackageFiles();
  8016. Component CloneComponent(Component, CreateMode, uint = 0);
  8017. Component CloneComponent(Component, uint = 0);
  8018. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8019. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8020. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8021. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8022. Variant GetAttribute(const String&) const;
  8023. ValueAnimation GetAttributeAnimation(const String&) const;
  8024. float GetAttributeAnimationSpeed(const String&) const;
  8025. float GetAttributeAnimationTime(const String&) const;
  8026. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8027. Variant GetAttributeDefault(const String&) const;
  8028. Node GetChild(const String&, bool = false) const;
  8029. Array<Node> GetChildren(bool = false) const;
  8030. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8031. Array<Node> GetChildrenWithScript(bool = false) const;
  8032. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8033. Component GetComponent(const String&, bool = false) const;
  8034. Component GetComponent(uint) const;
  8035. Array<Component> GetComponents() const;
  8036. Array<Component> GetComponents(const String&, bool = false) const;
  8037. bool GetInterceptNetworkUpdate(const String&) const;
  8038. Node GetNode(uint) const;
  8039. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8040. Component GetParentComponent(const String&, bool = false) const;
  8041. ScriptObject GetScriptObject() const;
  8042. ScriptObject GetScriptObject(const String&) const;
  8043. bool HasComponent(const String&) const;
  8044. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8045. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8046. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8047. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8048. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8049. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8050. bool Load(File, bool = false);
  8051. bool Load(VectorBuffer&, bool = false);
  8052. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8053. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8054. bool LoadXML(File);
  8055. bool LoadXML(VectorBuffer&);
  8056. bool LoadXML(const XMLElement&, bool = false);
  8057. Vector3 LocalToWorld(const Vector3&) const;
  8058. Vector3 LocalToWorld(const Vector4&) const;
  8059. Vector2 LocalToWorld2D(const Vector2&) const;
  8060. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8061. void MarkNetworkUpdate() const;
  8062. void Pitch(float, TransformSpace = TS_LOCAL);
  8063. void RegisterVar(const String&);
  8064. void Remove();
  8065. void RemoveAllChildren();
  8066. void RemoveAllComponents();
  8067. void RemoveAttributeAnimation(const String&);
  8068. void RemoveChild(Node);
  8069. void RemoveChildren(bool, bool, bool);
  8070. void RemoveComponent(Component);
  8071. void RemoveComponent(const String&);
  8072. void RemoveComponents(bool, bool);
  8073. void RemoveComponents(const String&);
  8074. void RemoveInstanceDefault();
  8075. void RemoveObjectAnimation();
  8076. void ResetToDefault();
  8077. void Roll(float, TransformSpace = TS_LOCAL);
  8078. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8079. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8080. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8081. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8082. bool Save(File) const;
  8083. bool Save(VectorBuffer&) const;
  8084. bool SaveXML(File, const String& = "\t");
  8085. bool SaveXML(VectorBuffer&, const String& = "\t");
  8086. bool SaveXML(XMLElement&) const;
  8087. void Scale(const Vector3&);
  8088. void Scale(float);
  8089. void Scale2D(const Vector2&);
  8090. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8091. void SetAnimationTime(float);
  8092. bool SetAttribute(const String&, const Variant&);
  8093. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8094. void SetAttributeAnimationSpeed(const String&, float);
  8095. void SetAttributeAnimationTime(const String&, float);
  8096. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8097. void SetInterceptNetworkUpdate(const String&, bool);
  8098. void SetPosition2D(float, float);
  8099. void SetScale(float);
  8100. void SetScale2D(float, float);
  8101. void SetTransform(const Vector3&, const Quaternion&);
  8102. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8103. void SetTransform(const Vector3&, const Quaternion&, float);
  8104. void SetTransform2D(const Vector2&, float);
  8105. void SetTransform2D(const Vector2&, float, const Vector2&);
  8106. void SetTransform2D(const Vector2&, float, float);
  8107. void SetWorldTransform(const Vector3&, const Quaternion&);
  8108. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8109. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8110. void SetWorldTransform2D(const Vector2&, float);
  8111. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8112. void SetWorldTransform2D(const Vector2&, float, float);
  8113. void StopAsyncLoading();
  8114. const String& GetVarName(StringHash) const;
  8115. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8116. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8117. void UnregisterAllVars(const String&);
  8118. void UnregisterVar(const String&);
  8119. void Update(float);
  8120. Vector3 WorldToLocal(const Vector3&) const;
  8121. Vector3 WorldToLocal(const Vector4&) const;
  8122. Vector2 WorldToLocal2D(const Vector2&) const;
  8123. void Yaw(float, TransformSpace = TS_LOCAL);
  8124. // Properties:
  8125. bool animationEnabled;
  8126. /* readonly */
  8127. LoadMode asyncLoadMode;
  8128. /* readonly */
  8129. bool asyncLoading;
  8130. int asyncLoadingMs;
  8131. /* readonly */
  8132. float asyncProgress;
  8133. /* readonly */
  8134. Array<Variant> attributeDefaults;
  8135. /* readonly */
  8136. Array<AttributeInfo> attributeInfos;
  8137. Array<Variant> attributes;
  8138. /* readonly */
  8139. String category;
  8140. /* readonly */
  8141. uint checksum;
  8142. /* readonly */
  8143. Array<Node> children;
  8144. /* readonly */
  8145. Array<Component> components;
  8146. /* readonly */
  8147. DebugRenderer debugRenderer;
  8148. Vector3 direction;
  8149. float elapsedTime;
  8150. /* readonly */
  8151. String fileName;
  8152. /* readonly */
  8153. uint id;
  8154. String name;
  8155. /* readonly */
  8156. uint numAllChildren;
  8157. /* readonly */
  8158. uint numAttributes;
  8159. /* readonly */
  8160. uint numChildren;
  8161. /* readonly */
  8162. uint numComponents;
  8163. ObjectAnimation objectAnimation;
  8164. /* readonly */
  8165. Octree octree;
  8166. Node parent;
  8167. /* readonly */
  8168. PhysicsWorld physicsWorld;
  8169. /* readonly */
  8170. PhysicsWorld2D physicsWorld2D;
  8171. Vector3 position;
  8172. Vector2 position2D;
  8173. /* readonly */
  8174. int refs;
  8175. /* readonly */
  8176. Array<PackageFile> requiredPackageFiles;
  8177. /* readonly */
  8178. Vector3 right;
  8179. Quaternion rotation;
  8180. float rotation2D;
  8181. Vector3 scale;
  8182. Vector2 scale2D;
  8183. /* readonly */
  8184. ScriptObject scriptObject;
  8185. float smoothingConstant;
  8186. float snapThreshold;
  8187. bool temporary;
  8188. float timeScale;
  8189. /* readonly */
  8190. Matrix3x4 transform;
  8191. /* readonly */
  8192. StringHash type;
  8193. /* readonly */
  8194. String typeName;
  8195. /* readonly */
  8196. Vector3 up;
  8197. bool updateEnabled;
  8198. /* readonly */
  8199. VariantMap vars;
  8200. /* readonly */
  8201. int weakRefs;
  8202. Vector3 worldDirection;
  8203. Vector3 worldPosition;
  8204. Vector2 worldPosition2D;
  8205. /* readonly */
  8206. Vector3 worldRight;
  8207. Quaternion worldRotation;
  8208. float worldRotation2D;
  8209. Vector3 worldScale;
  8210. Vector2 worldScale2D;
  8211. /* readonly */
  8212. Matrix3x4 worldTransform;
  8213. /* readonly */
  8214. Vector3 worldUp;
  8215. };
  8216. class Script
  8217. {
  8218. // Methods:
  8219. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8220. bool Execute(const String&);
  8221. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8222. // Properties:
  8223. /* readonly */
  8224. String category;
  8225. Scene defaultScene;
  8226. ScriptFile defaultScriptFile;
  8227. bool executeConsoleCommands;
  8228. /* readonly */
  8229. int refs;
  8230. /* readonly */
  8231. StringHash type;
  8232. /* readonly */
  8233. String typeName;
  8234. /* readonly */
  8235. int weakRefs;
  8236. };
  8237. class ScriptFile
  8238. {
  8239. // Methods:
  8240. void ClearDelayedExecute(const String& = String ( ));
  8241. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8242. bool Execute(const String&, const Array<Variant> = null);
  8243. bool Load(File);
  8244. bool Load(VectorBuffer&);
  8245. bool Save(File) const;
  8246. bool Save(VectorBuffer&) const;
  8247. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8248. // Properties:
  8249. /* readonly */
  8250. String category;
  8251. /* readonly */
  8252. bool compiled;
  8253. /* readonly */
  8254. uint memoryUse;
  8255. String name;
  8256. /* readonly */
  8257. int refs;
  8258. /* readonly */
  8259. StringHash type;
  8260. /* readonly */
  8261. String typeName;
  8262. /* readonly */
  8263. uint useTimer;
  8264. /* readonly */
  8265. int weakRefs;
  8266. };
  8267. class ScriptInstance
  8268. {
  8269. // Methods:
  8270. void ApplyAttributes();
  8271. void ClearDelayedExecute(const String& = String ( ));
  8272. bool CreateObject(ScriptFile, const String&);
  8273. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8274. void DrawDebugGeometry(DebugRenderer, bool);
  8275. bool Execute(const String&, const Array<Variant> = null);
  8276. Variant GetAttribute(const String&) const;
  8277. ValueAnimation GetAttributeAnimation(const String&) const;
  8278. float GetAttributeAnimationSpeed(const String&) const;
  8279. float GetAttributeAnimationTime(const String&) const;
  8280. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8281. Variant GetAttributeDefault(const String&) const;
  8282. bool GetInterceptNetworkUpdate(const String&) const;
  8283. bool HasMethod(const String&) const;
  8284. bool IsA(const String&) const;
  8285. bool Load(File, bool = false);
  8286. bool Load(VectorBuffer&, bool = false);
  8287. bool LoadXML(const XMLElement&, bool = false);
  8288. void MarkNetworkUpdate() const;
  8289. void Remove();
  8290. void RemoveAttributeAnimation(const String&);
  8291. void RemoveInstanceDefault();
  8292. void RemoveObjectAnimation();
  8293. void ResetToDefault();
  8294. bool Save(File) const;
  8295. bool Save(VectorBuffer&) const;
  8296. bool SaveXML(XMLElement&) const;
  8297. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8298. void SetAnimationTime(float);
  8299. bool SetAttribute(const String&, const Variant&);
  8300. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8301. void SetAttributeAnimationSpeed(const String&, float);
  8302. void SetAttributeAnimationTime(const String&, float);
  8303. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8304. void SetInterceptNetworkUpdate(const String&, bool);
  8305. // Properties:
  8306. bool animationEnabled;
  8307. /* readonly */
  8308. Array<Variant> attributeDefaults;
  8309. /* readonly */
  8310. Array<AttributeInfo> attributeInfos;
  8311. Array<Variant> attributes;
  8312. /* readonly */
  8313. String category;
  8314. String className;
  8315. bool enabled;
  8316. /* readonly */
  8317. bool enabledEffective;
  8318. /* readonly */
  8319. uint id;
  8320. /* readonly */
  8321. Node node;
  8322. /* readonly */
  8323. uint numAttributes;
  8324. ObjectAnimation objectAnimation;
  8325. /* readonly */
  8326. int refs;
  8327. ScriptFile scriptFile;
  8328. /* readonly */
  8329. ScriptObject scriptObject;
  8330. bool temporary;
  8331. /* readonly */
  8332. StringHash type;
  8333. /* readonly */
  8334. String typeName;
  8335. /* readonly */
  8336. int weakRefs;
  8337. };
  8338. class ScriptObject
  8339. {
  8340. };
  8341. class ScrollBar
  8342. {
  8343. // Methods:
  8344. void AddChild(UIElement);
  8345. void ApplyAttributes();
  8346. void BringToFront();
  8347. void ChangeValue(float);
  8348. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8349. void DisableLayoutUpdate();
  8350. IntVector2 ElementToScreen(const IntVector2&);
  8351. void EnableLayoutUpdate();
  8352. uint FindChild(UIElement) const;
  8353. Variant GetAttribute(const String&) const;
  8354. ValueAnimation GetAttributeAnimation(const String&) const;
  8355. float GetAttributeAnimationSpeed(const String&) const;
  8356. float GetAttributeAnimationTime(const String&) const;
  8357. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8358. Variant GetAttributeDefault(const String&) const;
  8359. UIElement GetChild(const String&, bool = false) const;
  8360. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8361. Array<UIElement> GetChildren(bool = false) const;
  8362. UIElement GetElementEventSender() const;
  8363. bool GetInterceptNetworkUpdate(const String&) const;
  8364. uint GetNumChildren(bool) const;
  8365. void InsertChild(uint, UIElement);
  8366. bool IsInside(IntVector2, bool);
  8367. bool IsInsideCombined(IntVector2, bool);
  8368. bool Load(File, bool = false);
  8369. bool Load(VectorBuffer&, bool = false);
  8370. bool LoadChildXML(XMLFile, XMLFile = null);
  8371. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8372. bool LoadXML(File);
  8373. bool LoadXML(VectorBuffer&);
  8374. bool LoadXML(XMLFile, XMLFile);
  8375. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8376. bool LoadXML(const XMLElement&, bool = false);
  8377. void MarkNetworkUpdate() const;
  8378. void Remove();
  8379. void RemoveAllChildren();
  8380. void RemoveAttributeAnimation(const String&);
  8381. void RemoveChild(UIElement, uint = 0);
  8382. void RemoveChild(uint);
  8383. void RemoveInstanceDefault();
  8384. void RemoveObjectAnimation();
  8385. void ResetDeepEnabled();
  8386. void ResetToDefault();
  8387. bool Save(File) const;
  8388. bool Save(VectorBuffer&) const;
  8389. bool SaveXML(File, const String& = "\t");
  8390. bool SaveXML(VectorBuffer&, const String& = "\t");
  8391. bool SaveXML(XMLElement&) const;
  8392. IntVector2 ScreenToElement(const IntVector2&);
  8393. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8394. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8395. void SetAnimationTime(float);
  8396. bool SetAttribute(const String&, const Variant&);
  8397. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8398. void SetAttributeAnimationSpeed(const String&, float);
  8399. void SetAttributeAnimationTime(const String&, float);
  8400. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8401. void SetDeepEnabled(bool);
  8402. void SetEnabledRecursive(bool);
  8403. void SetFixedHeight(int);
  8404. void SetFixedSize(int, int);
  8405. void SetFixedWidth(int);
  8406. void SetInterceptNetworkUpdate(const String&, bool);
  8407. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8408. void SetMaxSize(int, int);
  8409. void SetMinSize(int, int);
  8410. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8411. void SetPosition(int, int);
  8412. void SetSize(int, int);
  8413. bool SetStyle(const String&, XMLFile = null);
  8414. bool SetStyle(const XMLElement&);
  8415. bool SetStyleAuto(XMLFile = null);
  8416. void StepBack();
  8417. void StepForward();
  8418. void UpdateLayout();
  8419. const Variant& GetVar(const StringHash&);
  8420. // Properties:
  8421. bool animationEnabled;
  8422. /* readonly */
  8423. Array<Variant> attributeDefaults;
  8424. /* readonly */
  8425. Array<AttributeInfo> attributeInfos;
  8426. Array<Variant> attributes;
  8427. /* readonly */
  8428. Button backButton;
  8429. bool bringToBack;
  8430. bool bringToFront;
  8431. /* readonly */
  8432. String category;
  8433. /* readonly */
  8434. IntVector2 childOffset;
  8435. /* readonly */
  8436. Array<UIElement> children;
  8437. IntRect clipBorder;
  8438. bool clipChildren;
  8439. /* writeonly */
  8440. Color color;
  8441. /* readonly */
  8442. bool colorGradient;
  8443. Array<Color> colors;
  8444. /* readonly */
  8445. IntRect combinedScreenRect;
  8446. XMLFile defaultStyle;
  8447. /* readonly */
  8448. float derivedOpacity;
  8449. /* readonly */
  8450. uint dragButtonCombo;
  8451. /* readonly */
  8452. int dragButtonCount;
  8453. uint dragDropMode;
  8454. bool editable;
  8455. /* readonly */
  8456. float effectiveScrollStep;
  8457. bool elementEventSender;
  8458. bool enabled;
  8459. /* readonly */
  8460. bool enabledSelf;
  8461. /* readonly */
  8462. bool fixedHeight;
  8463. /* readonly */
  8464. bool fixedSize;
  8465. /* readonly */
  8466. bool fixedWidth;
  8467. bool focus;
  8468. FocusMode focusMode;
  8469. /* readonly */
  8470. Button forwardButton;
  8471. int height;
  8472. HorizontalAlignment horizontalAlignment;
  8473. /* readonly */
  8474. bool hovering;
  8475. int indent;
  8476. int indentSpacing;
  8477. /* readonly */
  8478. int indentWidth;
  8479. bool internal;
  8480. IntRect layoutBorder;
  8481. Vector2 layoutFlexScale;
  8482. LayoutMode layoutMode;
  8483. int layoutSpacing;
  8484. int maxHeight;
  8485. IntVector2 maxSize;
  8486. int maxWidth;
  8487. int minHeight;
  8488. IntVector2 minSize;
  8489. int minWidth;
  8490. String name;
  8491. /* readonly */
  8492. uint numAllChildren;
  8493. /* readonly */
  8494. uint numAttributes;
  8495. /* readonly */
  8496. uint numChildren;
  8497. ObjectAnimation objectAnimation;
  8498. float opacity;
  8499. Orientation orientation;
  8500. UIElement parent;
  8501. IntVector2 position;
  8502. int priority;
  8503. float range;
  8504. /* readonly */
  8505. int refs;
  8506. /* readonly */
  8507. UIElement root;
  8508. /* readonly */
  8509. IntVector2 screenPosition;
  8510. float scrollStep;
  8511. bool selected;
  8512. IntVector2 size;
  8513. /* readonly */
  8514. Slider slider;
  8515. bool sortChildren;
  8516. float stepFactor;
  8517. String style;
  8518. bool temporary;
  8519. TraversalMode traversalMode;
  8520. /* readonly */
  8521. StringHash type;
  8522. /* readonly */
  8523. String typeName;
  8524. bool useDerivedOpacity;
  8525. float value;
  8526. /* readonly */
  8527. VariantMap vars;
  8528. VerticalAlignment verticalAlignment;
  8529. bool visible;
  8530. /* readonly */
  8531. bool visibleEffective;
  8532. /* readonly */
  8533. int weakRefs;
  8534. int width;
  8535. };
  8536. class ScrollView
  8537. {
  8538. // Methods:
  8539. void AddChild(UIElement);
  8540. void ApplyAttributes();
  8541. void BringToFront();
  8542. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8543. void DisableLayoutUpdate();
  8544. IntVector2 ElementToScreen(const IntVector2&);
  8545. void EnableLayoutUpdate();
  8546. uint FindChild(UIElement) const;
  8547. Variant GetAttribute(const String&) const;
  8548. ValueAnimation GetAttributeAnimation(const String&) const;
  8549. float GetAttributeAnimationSpeed(const String&) const;
  8550. float GetAttributeAnimationTime(const String&) const;
  8551. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8552. Variant GetAttributeDefault(const String&) const;
  8553. UIElement GetChild(const String&, bool = false) const;
  8554. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8555. Array<UIElement> GetChildren(bool = false) const;
  8556. UIElement GetElementEventSender() const;
  8557. bool GetInterceptNetworkUpdate(const String&) const;
  8558. uint GetNumChildren(bool) const;
  8559. void InsertChild(uint, UIElement);
  8560. bool IsInside(IntVector2, bool);
  8561. bool IsInsideCombined(IntVector2, bool);
  8562. bool Load(File, bool = false);
  8563. bool Load(VectorBuffer&, bool = false);
  8564. bool LoadChildXML(XMLFile, XMLFile = null);
  8565. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8566. bool LoadXML(File);
  8567. bool LoadXML(VectorBuffer&);
  8568. bool LoadXML(XMLFile, XMLFile);
  8569. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8570. bool LoadXML(const XMLElement&, bool = false);
  8571. void MarkNetworkUpdate() const;
  8572. void Remove();
  8573. void RemoveAllChildren();
  8574. void RemoveAttributeAnimation(const String&);
  8575. void RemoveChild(UIElement, uint = 0);
  8576. void RemoveChild(uint);
  8577. void RemoveInstanceDefault();
  8578. void RemoveObjectAnimation();
  8579. void ResetDeepEnabled();
  8580. void ResetToDefault();
  8581. bool Save(File) const;
  8582. bool Save(VectorBuffer&) const;
  8583. bool SaveXML(File, const String& = "\t");
  8584. bool SaveXML(VectorBuffer&, const String& = "\t");
  8585. bool SaveXML(XMLElement&) const;
  8586. IntVector2 ScreenToElement(const IntVector2&);
  8587. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8588. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8589. void SetAnimationTime(float);
  8590. bool SetAttribute(const String&, const Variant&);
  8591. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8592. void SetAttributeAnimationSpeed(const String&, float);
  8593. void SetAttributeAnimationTime(const String&, float);
  8594. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8595. void SetDeepEnabled(bool);
  8596. void SetEnabledRecursive(bool);
  8597. void SetFixedHeight(int);
  8598. void SetFixedSize(int, int);
  8599. void SetFixedWidth(int);
  8600. void SetInterceptNetworkUpdate(const String&, bool);
  8601. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8602. void SetMaxSize(int, int);
  8603. void SetMinSize(int, int);
  8604. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8605. void SetPosition(int, int);
  8606. void SetScrollBarsVisible(bool, bool);
  8607. void SetSize(int, int);
  8608. bool SetStyle(const String&, XMLFile = null);
  8609. bool SetStyle(const XMLElement&);
  8610. bool SetStyleAuto(XMLFile = null);
  8611. void SetViewPosition(int, int);
  8612. void UpdateLayout();
  8613. const Variant& GetVar(const StringHash&);
  8614. // Properties:
  8615. bool animationEnabled;
  8616. /* readonly */
  8617. Array<Variant> attributeDefaults;
  8618. /* readonly */
  8619. Array<AttributeInfo> attributeInfos;
  8620. Array<Variant> attributes;
  8621. bool autoDisableChildren;
  8622. float autoDisableThreshold;
  8623. bool bringToBack;
  8624. bool bringToFront;
  8625. /* readonly */
  8626. String category;
  8627. /* readonly */
  8628. IntVector2 childOffset;
  8629. /* readonly */
  8630. Array<UIElement> children;
  8631. IntRect clipBorder;
  8632. bool clipChildren;
  8633. /* writeonly */
  8634. Color color;
  8635. /* readonly */
  8636. bool colorGradient;
  8637. Array<Color> colors;
  8638. /* readonly */
  8639. IntRect combinedScreenRect;
  8640. UIElement contentElement;
  8641. XMLFile defaultStyle;
  8642. /* readonly */
  8643. float derivedOpacity;
  8644. /* readonly */
  8645. uint dragButtonCombo;
  8646. /* readonly */
  8647. int dragButtonCount;
  8648. uint dragDropMode;
  8649. bool editable;
  8650. bool elementEventSender;
  8651. bool enabled;
  8652. /* readonly */
  8653. bool enabledSelf;
  8654. /* readonly */
  8655. bool fixedHeight;
  8656. /* readonly */
  8657. bool fixedSize;
  8658. /* readonly */
  8659. bool fixedWidth;
  8660. bool focus;
  8661. FocusMode focusMode;
  8662. int height;
  8663. HorizontalAlignment horizontalAlignment;
  8664. /* readonly */
  8665. ScrollBar horizontalScrollBar;
  8666. /* readonly */
  8667. bool hovering;
  8668. int indent;
  8669. int indentSpacing;
  8670. /* readonly */
  8671. int indentWidth;
  8672. bool internal;
  8673. IntRect layoutBorder;
  8674. Vector2 layoutFlexScale;
  8675. LayoutMode layoutMode;
  8676. int layoutSpacing;
  8677. int maxHeight;
  8678. IntVector2 maxSize;
  8679. int maxWidth;
  8680. int minHeight;
  8681. IntVector2 minSize;
  8682. int minWidth;
  8683. String name;
  8684. /* readonly */
  8685. uint numAllChildren;
  8686. /* readonly */
  8687. uint numAttributes;
  8688. /* readonly */
  8689. uint numChildren;
  8690. ObjectAnimation objectAnimation;
  8691. float opacity;
  8692. float pageStep;
  8693. UIElement parent;
  8694. IntVector2 position;
  8695. int priority;
  8696. /* readonly */
  8697. int refs;
  8698. /* readonly */
  8699. UIElement root;
  8700. /* readonly */
  8701. IntVector2 screenPosition;
  8702. bool scrollBarsAutoVisible;
  8703. float scrollDeceleration;
  8704. /* readonly */
  8705. BorderImage scrollPanel;
  8706. float scrollSnapEpsilon;
  8707. float scrollStep;
  8708. bool selected;
  8709. IntVector2 size;
  8710. bool sortChildren;
  8711. String style;
  8712. bool temporary;
  8713. TraversalMode traversalMode;
  8714. /* readonly */
  8715. StringHash type;
  8716. /* readonly */
  8717. String typeName;
  8718. bool useDerivedOpacity;
  8719. /* readonly */
  8720. VariantMap vars;
  8721. VerticalAlignment verticalAlignment;
  8722. /* readonly */
  8723. ScrollBar verticalScrollBar;
  8724. IntVector2 viewPosition;
  8725. bool visible;
  8726. /* readonly */
  8727. bool visibleEffective;
  8728. /* readonly */
  8729. int weakRefs;
  8730. int width;
  8731. };
  8732. class Serializable
  8733. {
  8734. // Methods:
  8735. void ApplyAttributes();
  8736. Variant GetAttribute(const String&) const;
  8737. Variant GetAttributeDefault(const String&) const;
  8738. bool GetInterceptNetworkUpdate(const String&) const;
  8739. bool Load(File, bool = false);
  8740. bool Load(VectorBuffer&, bool = false);
  8741. bool LoadXML(const XMLElement&, bool = false);
  8742. void MarkNetworkUpdate() const;
  8743. void RemoveInstanceDefault();
  8744. void ResetToDefault();
  8745. bool Save(File) const;
  8746. bool Save(VectorBuffer&) const;
  8747. bool SaveXML(XMLElement&) const;
  8748. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8749. bool SetAttribute(const String&, const Variant&);
  8750. void SetInterceptNetworkUpdate(const String&, bool);
  8751. // Properties:
  8752. /* readonly */
  8753. Array<Variant> attributeDefaults;
  8754. /* readonly */
  8755. Array<AttributeInfo> attributeInfos;
  8756. Array<Variant> attributes;
  8757. /* readonly */
  8758. String category;
  8759. /* readonly */
  8760. uint numAttributes;
  8761. /* readonly */
  8762. int refs;
  8763. bool temporary;
  8764. /* readonly */
  8765. StringHash type;
  8766. /* readonly */
  8767. String typeName;
  8768. /* readonly */
  8769. int weakRefs;
  8770. };
  8771. class Serializer
  8772. {
  8773. // Methods:
  8774. uint Write(Array<uint8>);
  8775. bool WriteBool(bool);
  8776. bool WriteBoundingBox(const BoundingBox&);
  8777. bool WriteByte(int8);
  8778. bool WriteColor(const Color&);
  8779. bool WriteDouble(double);
  8780. bool WriteFileID(const String&);
  8781. bool WriteFloat(float);
  8782. bool WriteInt(int);
  8783. bool WriteIntRect(const IntRect&);
  8784. bool WriteIntVector2(const IntVector2&);
  8785. bool WriteLine(const String&);
  8786. bool WriteMatrix3(const Matrix3&);
  8787. bool WriteMatrix3x4(const Matrix3x4&);
  8788. bool WriteMatrix4(const Matrix4&);
  8789. bool WriteNetID(uint);
  8790. bool WritePackedQuaternion(const Quaternion&);
  8791. bool WritePackedVector3(const Vector3&, float);
  8792. bool WriteQuaternion(const Quaternion&);
  8793. bool WriteShort(int16);
  8794. bool WriteString(const String&);
  8795. bool WriteStringHash(const StringHash&);
  8796. bool WriteUByte(uint8);
  8797. bool WriteUInt(uint);
  8798. bool WriteUShort(uint16);
  8799. bool WriteVLE(uint);
  8800. bool WriteVariant(const Variant&);
  8801. bool WriteVariantMap(const VariantMap&);
  8802. bool WriteVector2(const Vector2&);
  8803. bool WriteVector3(const Vector3&);
  8804. bool WriteVector4(const Vector4&);
  8805. bool WriteVectorBuffer(const VectorBuffer&);
  8806. };
  8807. class Skeleton
  8808. {
  8809. // Methods:
  8810. Bone GetBone(const String&) const;
  8811. void Reset();
  8812. // Properties:
  8813. /* readonly */
  8814. Array<Bone> bones;
  8815. /* readonly */
  8816. uint numBones;
  8817. /* readonly */
  8818. Bone rootBone;
  8819. };
  8820. class Skybox
  8821. {
  8822. // Methods:
  8823. void ApplyAttributes();
  8824. void ApplyMaterialList(const String& = String ( ));
  8825. void DrawDebugGeometry(DebugRenderer, bool);
  8826. Variant GetAttribute(const String&) const;
  8827. ValueAnimation GetAttributeAnimation(const String&) const;
  8828. float GetAttributeAnimationSpeed(const String&) const;
  8829. float GetAttributeAnimationTime(const String&) const;
  8830. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8831. Variant GetAttributeDefault(const String&) const;
  8832. bool GetInterceptNetworkUpdate(const String&) const;
  8833. bool IsInView(Camera) const;
  8834. bool Load(File, bool = false);
  8835. bool Load(VectorBuffer&, bool = false);
  8836. bool LoadXML(const XMLElement&, bool = false);
  8837. void MarkNetworkUpdate() const;
  8838. void Remove();
  8839. void RemoveAttributeAnimation(const String&);
  8840. void RemoveInstanceDefault();
  8841. void RemoveObjectAnimation();
  8842. void ResetToDefault();
  8843. bool Save(File) const;
  8844. bool Save(VectorBuffer&) const;
  8845. bool SaveXML(XMLElement&) const;
  8846. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8847. void SetAnimationTime(float);
  8848. bool SetAttribute(const String&, const Variant&);
  8849. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8850. void SetAttributeAnimationSpeed(const String&, float);
  8851. void SetAttributeAnimationTime(const String&, float);
  8852. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8853. void SetInterceptNetworkUpdate(const String&, bool);
  8854. // Properties:
  8855. bool animationEnabled;
  8856. /* readonly */
  8857. Array<Variant> attributeDefaults;
  8858. /* readonly */
  8859. Array<AttributeInfo> attributeInfos;
  8860. Array<Variant> attributes;
  8861. /* readonly */
  8862. BoundingBox boundingBox;
  8863. bool castShadows;
  8864. /* readonly */
  8865. String category;
  8866. float drawDistance;
  8867. bool enabled;
  8868. /* readonly */
  8869. bool enabledEffective;
  8870. /* readonly */
  8871. uint id;
  8872. /* readonly */
  8873. bool inView;
  8874. uint lightMask;
  8875. float lodBias;
  8876. /* writeonly */
  8877. Material material;
  8878. Array<Material> materials;
  8879. uint maxLights;
  8880. Model model;
  8881. /* readonly */
  8882. Node node;
  8883. /* readonly */
  8884. uint numAttributes;
  8885. /* readonly */
  8886. uint numGeometries;
  8887. ObjectAnimation objectAnimation;
  8888. bool occludee;
  8889. bool occluder;
  8890. /* readonly */
  8891. int refs;
  8892. float shadowDistance;
  8893. uint shadowMask;
  8894. bool temporary;
  8895. /* readonly */
  8896. StringHash type;
  8897. /* readonly */
  8898. String typeName;
  8899. uint viewMask;
  8900. /* readonly */
  8901. int weakRefs;
  8902. /* readonly */
  8903. BoundingBox worldBoundingBox;
  8904. /* readonly */
  8905. Zone zone;
  8906. uint zoneMask;
  8907. };
  8908. class Slider
  8909. {
  8910. // Methods:
  8911. void AddChild(UIElement);
  8912. void ApplyAttributes();
  8913. void BringToFront();
  8914. void ChangeValue(float);
  8915. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8916. void DisableLayoutUpdate();
  8917. IntVector2 ElementToScreen(const IntVector2&);
  8918. void EnableLayoutUpdate();
  8919. uint FindChild(UIElement) const;
  8920. Variant GetAttribute(const String&) const;
  8921. ValueAnimation GetAttributeAnimation(const String&) const;
  8922. float GetAttributeAnimationSpeed(const String&) const;
  8923. float GetAttributeAnimationTime(const String&) const;
  8924. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8925. Variant GetAttributeDefault(const String&) const;
  8926. UIElement GetChild(const String&, bool = false) const;
  8927. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8928. Array<UIElement> GetChildren(bool = false) const;
  8929. UIElement GetElementEventSender() const;
  8930. bool GetInterceptNetworkUpdate(const String&) const;
  8931. uint GetNumChildren(bool) const;
  8932. void InsertChild(uint, UIElement);
  8933. bool IsInside(IntVector2, bool);
  8934. bool IsInsideCombined(IntVector2, bool);
  8935. bool Load(File, bool = false);
  8936. bool Load(VectorBuffer&, bool = false);
  8937. bool LoadChildXML(XMLFile, XMLFile = null);
  8938. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8939. bool LoadXML(File);
  8940. bool LoadXML(VectorBuffer&);
  8941. bool LoadXML(XMLFile, XMLFile);
  8942. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8943. bool LoadXML(const XMLElement&, bool = false);
  8944. void MarkNetworkUpdate() const;
  8945. void Remove();
  8946. void RemoveAllChildren();
  8947. void RemoveAttributeAnimation(const String&);
  8948. void RemoveChild(UIElement, uint = 0);
  8949. void RemoveChild(uint);
  8950. void RemoveInstanceDefault();
  8951. void RemoveObjectAnimation();
  8952. void ResetDeepEnabled();
  8953. void ResetToDefault();
  8954. bool Save(File) const;
  8955. bool Save(VectorBuffer&) const;
  8956. bool SaveXML(File, const String& = "\t");
  8957. bool SaveXML(VectorBuffer&, const String& = "\t");
  8958. bool SaveXML(XMLElement&) const;
  8959. IntVector2 ScreenToElement(const IntVector2&);
  8960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8961. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8962. void SetAnimationTime(float);
  8963. bool SetAttribute(const String&, const Variant&);
  8964. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8965. void SetAttributeAnimationSpeed(const String&, float);
  8966. void SetAttributeAnimationTime(const String&, float);
  8967. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8968. void SetDeepEnabled(bool);
  8969. void SetEnabledRecursive(bool);
  8970. void SetFixedHeight(int);
  8971. void SetFixedSize(int, int);
  8972. void SetFixedWidth(int);
  8973. void SetFullImageRect();
  8974. void SetHoverOffset(int, int);
  8975. void SetInterceptNetworkUpdate(const String&, bool);
  8976. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8977. void SetMaxSize(int, int);
  8978. void SetMinSize(int, int);
  8979. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8980. void SetPosition(int, int);
  8981. void SetSize(int, int);
  8982. bool SetStyle(const String&, XMLFile = null);
  8983. bool SetStyle(const XMLElement&);
  8984. bool SetStyleAuto(XMLFile = null);
  8985. void UpdateLayout();
  8986. const Variant& GetVar(const StringHash&);
  8987. // Properties:
  8988. bool animationEnabled;
  8989. /* readonly */
  8990. Array<Variant> attributeDefaults;
  8991. /* readonly */
  8992. Array<AttributeInfo> attributeInfos;
  8993. Array<Variant> attributes;
  8994. BlendMode blendMode;
  8995. IntRect border;
  8996. bool bringToBack;
  8997. bool bringToFront;
  8998. /* readonly */
  8999. String category;
  9000. /* readonly */
  9001. IntVector2 childOffset;
  9002. /* readonly */
  9003. Array<UIElement> children;
  9004. IntRect clipBorder;
  9005. bool clipChildren;
  9006. /* writeonly */
  9007. Color color;
  9008. /* readonly */
  9009. bool colorGradient;
  9010. Array<Color> colors;
  9011. /* readonly */
  9012. IntRect combinedScreenRect;
  9013. XMLFile defaultStyle;
  9014. /* readonly */
  9015. float derivedOpacity;
  9016. /* readonly */
  9017. uint dragButtonCombo;
  9018. /* readonly */
  9019. int dragButtonCount;
  9020. uint dragDropMode;
  9021. bool editable;
  9022. bool elementEventSender;
  9023. bool enabled;
  9024. /* readonly */
  9025. bool enabledSelf;
  9026. /* readonly */
  9027. bool fixedHeight;
  9028. /* readonly */
  9029. bool fixedSize;
  9030. /* readonly */
  9031. bool fixedWidth;
  9032. bool focus;
  9033. FocusMode focusMode;
  9034. int height;
  9035. HorizontalAlignment horizontalAlignment;
  9036. IntVector2 hoverOffset;
  9037. /* readonly */
  9038. bool hovering;
  9039. IntRect imageBorder;
  9040. IntRect imageRect;
  9041. int indent;
  9042. int indentSpacing;
  9043. /* readonly */
  9044. int indentWidth;
  9045. bool internal;
  9046. /* readonly */
  9047. BorderImage knob;
  9048. IntRect layoutBorder;
  9049. Vector2 layoutFlexScale;
  9050. LayoutMode layoutMode;
  9051. int layoutSpacing;
  9052. int maxHeight;
  9053. IntVector2 maxSize;
  9054. int maxWidth;
  9055. int minHeight;
  9056. IntVector2 minSize;
  9057. int minWidth;
  9058. String name;
  9059. /* readonly */
  9060. uint numAllChildren;
  9061. /* readonly */
  9062. uint numAttributes;
  9063. /* readonly */
  9064. uint numChildren;
  9065. ObjectAnimation objectAnimation;
  9066. float opacity;
  9067. Orientation orientation;
  9068. UIElement parent;
  9069. IntVector2 position;
  9070. int priority;
  9071. float range;
  9072. /* readonly */
  9073. int refs;
  9074. float repeatRate;
  9075. /* readonly */
  9076. UIElement root;
  9077. /* readonly */
  9078. IntVector2 screenPosition;
  9079. bool selected;
  9080. IntVector2 size;
  9081. bool sortChildren;
  9082. String style;
  9083. bool temporary;
  9084. Texture texture;
  9085. bool tiled;
  9086. TraversalMode traversalMode;
  9087. /* readonly */
  9088. StringHash type;
  9089. /* readonly */
  9090. String typeName;
  9091. bool useDerivedOpacity;
  9092. float value;
  9093. /* readonly */
  9094. VariantMap vars;
  9095. VerticalAlignment verticalAlignment;
  9096. bool visible;
  9097. /* readonly */
  9098. bool visibleEffective;
  9099. /* readonly */
  9100. int weakRefs;
  9101. int width;
  9102. };
  9103. class SmoothedTransform
  9104. {
  9105. // Methods:
  9106. void ApplyAttributes();
  9107. void DrawDebugGeometry(DebugRenderer, bool);
  9108. Variant GetAttribute(const String&) const;
  9109. ValueAnimation GetAttributeAnimation(const String&) const;
  9110. float GetAttributeAnimationSpeed(const String&) const;
  9111. float GetAttributeAnimationTime(const String&) const;
  9112. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9113. Variant GetAttributeDefault(const String&) const;
  9114. bool GetInterceptNetworkUpdate(const String&) const;
  9115. bool Load(File, bool = false);
  9116. bool Load(VectorBuffer&, bool = false);
  9117. bool LoadXML(const XMLElement&, bool = false);
  9118. void MarkNetworkUpdate() const;
  9119. void Remove();
  9120. void RemoveAttributeAnimation(const String&);
  9121. void RemoveInstanceDefault();
  9122. void RemoveObjectAnimation();
  9123. void ResetToDefault();
  9124. bool Save(File) const;
  9125. bool Save(VectorBuffer&) const;
  9126. bool SaveXML(XMLElement&) const;
  9127. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9128. void SetAnimationTime(float);
  9129. bool SetAttribute(const String&, const Variant&);
  9130. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9131. void SetAttributeAnimationSpeed(const String&, float);
  9132. void SetAttributeAnimationTime(const String&, float);
  9133. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9134. void SetInterceptNetworkUpdate(const String&, bool);
  9135. void Update(float, float);
  9136. // Properties:
  9137. bool animationEnabled;
  9138. /* readonly */
  9139. Array<Variant> attributeDefaults;
  9140. /* readonly */
  9141. Array<AttributeInfo> attributeInfos;
  9142. Array<Variant> attributes;
  9143. /* readonly */
  9144. String category;
  9145. bool enabled;
  9146. /* readonly */
  9147. bool enabledEffective;
  9148. /* readonly */
  9149. uint id;
  9150. /* readonly */
  9151. bool inProgress;
  9152. /* readonly */
  9153. Node node;
  9154. /* readonly */
  9155. uint numAttributes;
  9156. ObjectAnimation objectAnimation;
  9157. /* readonly */
  9158. int refs;
  9159. Vector3 targetPosition;
  9160. Quaternion targetRotation;
  9161. Vector3 targetWorldPosition;
  9162. Quaternion targetWorldRotation;
  9163. bool temporary;
  9164. /* readonly */
  9165. StringHash type;
  9166. /* readonly */
  9167. String typeName;
  9168. /* readonly */
  9169. int weakRefs;
  9170. };
  9171. class Sound
  9172. {
  9173. // Methods:
  9174. bool Load(File);
  9175. bool Load(VectorBuffer&);
  9176. bool Save(File) const;
  9177. bool Save(VectorBuffer&) const;
  9178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9179. // Properties:
  9180. /* readonly */
  9181. String category;
  9182. /* readonly */
  9183. bool compressed;
  9184. /* readonly */
  9185. float frequency;
  9186. /* readonly */
  9187. float length;
  9188. bool looped;
  9189. /* readonly */
  9190. uint memoryUse;
  9191. String name;
  9192. /* readonly */
  9193. int refs;
  9194. /* readonly */
  9195. uint sampleSize;
  9196. /* readonly */
  9197. bool sixteenBit;
  9198. /* readonly */
  9199. bool stereo;
  9200. /* readonly */
  9201. StringHash type;
  9202. /* readonly */
  9203. String typeName;
  9204. /* readonly */
  9205. uint useTimer;
  9206. /* readonly */
  9207. int weakRefs;
  9208. };
  9209. class SoundListener
  9210. {
  9211. // Methods:
  9212. void ApplyAttributes();
  9213. void DrawDebugGeometry(DebugRenderer, bool);
  9214. Variant GetAttribute(const String&) const;
  9215. ValueAnimation GetAttributeAnimation(const String&) const;
  9216. float GetAttributeAnimationSpeed(const String&) const;
  9217. float GetAttributeAnimationTime(const String&) const;
  9218. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9219. Variant GetAttributeDefault(const String&) const;
  9220. bool GetInterceptNetworkUpdate(const String&) const;
  9221. bool Load(File, bool = false);
  9222. bool Load(VectorBuffer&, bool = false);
  9223. bool LoadXML(const XMLElement&, bool = false);
  9224. void MarkNetworkUpdate() const;
  9225. void Remove();
  9226. void RemoveAttributeAnimation(const String&);
  9227. void RemoveInstanceDefault();
  9228. void RemoveObjectAnimation();
  9229. void ResetToDefault();
  9230. bool Save(File) const;
  9231. bool Save(VectorBuffer&) const;
  9232. bool SaveXML(XMLElement&) const;
  9233. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9234. void SetAnimationTime(float);
  9235. bool SetAttribute(const String&, const Variant&);
  9236. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9237. void SetAttributeAnimationSpeed(const String&, float);
  9238. void SetAttributeAnimationTime(const String&, float);
  9239. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9240. void SetInterceptNetworkUpdate(const String&, bool);
  9241. // Properties:
  9242. bool animationEnabled;
  9243. /* readonly */
  9244. Array<Variant> attributeDefaults;
  9245. /* readonly */
  9246. Array<AttributeInfo> attributeInfos;
  9247. Array<Variant> attributes;
  9248. /* readonly */
  9249. String category;
  9250. bool enabled;
  9251. /* readonly */
  9252. bool enabledEffective;
  9253. /* readonly */
  9254. uint id;
  9255. /* readonly */
  9256. Node node;
  9257. /* readonly */
  9258. uint numAttributes;
  9259. ObjectAnimation objectAnimation;
  9260. /* readonly */
  9261. int refs;
  9262. bool temporary;
  9263. /* readonly */
  9264. StringHash type;
  9265. /* readonly */
  9266. String typeName;
  9267. /* readonly */
  9268. int weakRefs;
  9269. };
  9270. class SoundSource
  9271. {
  9272. // Methods:
  9273. void ApplyAttributes();
  9274. void DrawDebugGeometry(DebugRenderer, bool);
  9275. Variant GetAttribute(const String&) const;
  9276. ValueAnimation GetAttributeAnimation(const String&) const;
  9277. float GetAttributeAnimationSpeed(const String&) const;
  9278. float GetAttributeAnimationTime(const String&) const;
  9279. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9280. Variant GetAttributeDefault(const String&) const;
  9281. bool GetInterceptNetworkUpdate(const String&) const;
  9282. bool Load(File, bool = false);
  9283. bool Load(VectorBuffer&, bool = false);
  9284. bool LoadXML(const XMLElement&, bool = false);
  9285. void MarkNetworkUpdate() const;
  9286. void Play(Sound);
  9287. void Play(Sound, float);
  9288. void Play(Sound, float, float);
  9289. void Play(Sound, float, float, float);
  9290. void Remove();
  9291. void RemoveAttributeAnimation(const String&);
  9292. void RemoveInstanceDefault();
  9293. void RemoveObjectAnimation();
  9294. void ResetToDefault();
  9295. bool Save(File) const;
  9296. bool Save(VectorBuffer&) const;
  9297. bool SaveXML(XMLElement&) const;
  9298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9299. void SetAnimationTime(float);
  9300. bool SetAttribute(const String&, const Variant&);
  9301. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9302. void SetAttributeAnimationSpeed(const String&, float);
  9303. void SetAttributeAnimationTime(const String&, float);
  9304. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9305. void SetInterceptNetworkUpdate(const String&, bool);
  9306. void Stop();
  9307. // Properties:
  9308. bool animationEnabled;
  9309. /* readonly */
  9310. float attenuation;
  9311. /* readonly */
  9312. Array<Variant> attributeDefaults;
  9313. /* readonly */
  9314. Array<AttributeInfo> attributeInfos;
  9315. Array<Variant> attributes;
  9316. bool autoRemove;
  9317. /* readonly */
  9318. String category;
  9319. bool enabled;
  9320. /* readonly */
  9321. bool enabledEffective;
  9322. float frequency;
  9323. float gain;
  9324. /* readonly */
  9325. uint id;
  9326. /* readonly */
  9327. Node node;
  9328. /* readonly */
  9329. uint numAttributes;
  9330. ObjectAnimation objectAnimation;
  9331. float panning;
  9332. /* readonly */
  9333. bool playing;
  9334. /* readonly */
  9335. int refs;
  9336. /* readonly */
  9337. Sound sound;
  9338. String soundType;
  9339. bool temporary;
  9340. /* readonly */
  9341. float timePosition;
  9342. /* readonly */
  9343. StringHash type;
  9344. /* readonly */
  9345. String typeName;
  9346. /* readonly */
  9347. int weakRefs;
  9348. };
  9349. class SoundSource3D
  9350. {
  9351. // Methods:
  9352. void ApplyAttributes();
  9353. void DrawDebugGeometry(DebugRenderer, bool);
  9354. Variant GetAttribute(const String&) const;
  9355. ValueAnimation GetAttributeAnimation(const String&) const;
  9356. float GetAttributeAnimationSpeed(const String&) const;
  9357. float GetAttributeAnimationTime(const String&) const;
  9358. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9359. Variant GetAttributeDefault(const String&) const;
  9360. bool GetInterceptNetworkUpdate(const String&) const;
  9361. bool Load(File, bool = false);
  9362. bool Load(VectorBuffer&, bool = false);
  9363. bool LoadXML(const XMLElement&, bool = false);
  9364. void MarkNetworkUpdate() const;
  9365. void Play(Sound);
  9366. void Play(Sound, float);
  9367. void Play(Sound, float, float);
  9368. void Play(Sound, float, float, float);
  9369. void Remove();
  9370. void RemoveAttributeAnimation(const String&);
  9371. void RemoveInstanceDefault();
  9372. void RemoveObjectAnimation();
  9373. void ResetToDefault();
  9374. bool Save(File) const;
  9375. bool Save(VectorBuffer&) const;
  9376. bool SaveXML(XMLElement&) const;
  9377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9378. void SetAngleAttenuation(float, float);
  9379. void SetAnimationTime(float);
  9380. bool SetAttribute(const String&, const Variant&);
  9381. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9382. void SetAttributeAnimationSpeed(const String&, float);
  9383. void SetAttributeAnimationTime(const String&, float);
  9384. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9385. void SetDistanceAttenuation(float, float, float);
  9386. void SetInterceptNetworkUpdate(const String&, bool);
  9387. void Stop();
  9388. // Properties:
  9389. bool animationEnabled;
  9390. /* readonly */
  9391. float attenuation;
  9392. /* readonly */
  9393. Array<Variant> attributeDefaults;
  9394. /* readonly */
  9395. Array<AttributeInfo> attributeInfos;
  9396. Array<Variant> attributes;
  9397. bool autoRemove;
  9398. /* readonly */
  9399. String category;
  9400. bool enabled;
  9401. /* readonly */
  9402. bool enabledEffective;
  9403. float farDistance;
  9404. float frequency;
  9405. float gain;
  9406. /* readonly */
  9407. uint id;
  9408. float innerAngle;
  9409. float nearDistance;
  9410. /* readonly */
  9411. Node node;
  9412. /* readonly */
  9413. uint numAttributes;
  9414. ObjectAnimation objectAnimation;
  9415. float outerAngle;
  9416. float panning;
  9417. /* readonly */
  9418. bool playing;
  9419. /* readonly */
  9420. int refs;
  9421. float rolloffFactor;
  9422. /* readonly */
  9423. Sound sound;
  9424. String soundType;
  9425. bool temporary;
  9426. /* readonly */
  9427. float timePosition;
  9428. /* readonly */
  9429. StringHash type;
  9430. /* readonly */
  9431. String typeName;
  9432. /* readonly */
  9433. int weakRefs;
  9434. };
  9435. class Sphere
  9436. {
  9437. // Methods:
  9438. void Clear();
  9439. void Define(const BoundingBox&);
  9440. void Define(const Frustum&);
  9441. void Define(const Polyhedron&);
  9442. void Define(const Sphere&);
  9443. void Define(const Vector3&, float);
  9444. bool Defined() const;
  9445. float Distance(const Vector3&) const;
  9446. Intersection IsInside(const BoundingBox&) const;
  9447. Intersection IsInside(const Sphere&) const;
  9448. Intersection IsInside(const Vector3&) const;
  9449. Intersection IsInsideFast(const BoundingBox&) const;
  9450. Intersection IsInsideFast(const Sphere&) const;
  9451. void Merge(const BoundingBox&);
  9452. void Merge(const Frustum&);
  9453. void Merge(const Sphere&);
  9454. void Merge(const Vector3&);
  9455. // Properties:
  9456. Vector3 center;
  9457. float radius;
  9458. };
  9459. class Spline
  9460. {
  9461. // Methods:
  9462. void AddKnot(const Variant&);
  9463. void AddKnot(const Variant&, uint);
  9464. void Clear();
  9465. Variant GetPoint(float);
  9466. void RemoveKnot();
  9467. void RemoveKnot(uint);
  9468. // Properties:
  9469. InterpolationMode interpolationMode;
  9470. Array<Variant> knot;
  9471. Array<Variant> knots;
  9472. };
  9473. class SplinePath
  9474. {
  9475. // Methods:
  9476. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9477. void ApplyAttributes();
  9478. void ClearControlPoints();
  9479. void DrawDebugGeometry(DebugRenderer, bool);
  9480. Variant GetAttribute(const String&) const;
  9481. ValueAnimation GetAttributeAnimation(const String&) const;
  9482. float GetAttributeAnimationSpeed(const String&) const;
  9483. float GetAttributeAnimationTime(const String&) const;
  9484. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9485. Variant GetAttributeDefault(const String&) const;
  9486. bool GetInterceptNetworkUpdate(const String&) const;
  9487. Vector3 GetPoint(float) const;
  9488. Vector3 GetPosition() const;
  9489. bool Load(File, bool = false);
  9490. bool Load(VectorBuffer&, bool = false);
  9491. bool LoadXML(const XMLElement&, bool = false);
  9492. void MarkNetworkUpdate() const;
  9493. void Move(float);
  9494. void Remove();
  9495. void RemoveAttributeAnimation(const String&);
  9496. void RemoveControlPoint(Node);
  9497. void RemoveInstanceDefault();
  9498. void RemoveObjectAnimation();
  9499. void Reset();
  9500. void ResetToDefault();
  9501. bool Save(File) const;
  9502. bool Save(VectorBuffer&) const;
  9503. bool SaveXML(XMLElement&) const;
  9504. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9505. void SetAnimationTime(float);
  9506. bool SetAttribute(const String&, const Variant&);
  9507. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9508. void SetAttributeAnimationSpeed(const String&, float);
  9509. void SetAttributeAnimationTime(const String&, float);
  9510. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9511. void SetInterceptNetworkUpdate(const String&, bool);
  9512. void SetPosition(float);
  9513. // Properties:
  9514. bool animationEnabled;
  9515. /* readonly */
  9516. Array<Variant> attributeDefaults;
  9517. /* readonly */
  9518. Array<AttributeInfo> attributeInfos;
  9519. Array<Variant> attributes;
  9520. /* readonly */
  9521. String category;
  9522. Node controlledNode;
  9523. bool enabled;
  9524. /* readonly */
  9525. bool enabledEffective;
  9526. /* readonly */
  9527. uint id;
  9528. InterpolationMode interpolationMode;
  9529. /* readonly */
  9530. bool isFinished;
  9531. /* readonly */
  9532. float length;
  9533. /* readonly */
  9534. Node node;
  9535. /* readonly */
  9536. uint numAttributes;
  9537. ObjectAnimation objectAnimation;
  9538. /* readonly */
  9539. int refs;
  9540. float speed;
  9541. bool temporary;
  9542. /* readonly */
  9543. StringHash type;
  9544. /* readonly */
  9545. String typeName;
  9546. /* readonly */
  9547. int weakRefs;
  9548. };
  9549. class Sprite
  9550. {
  9551. // Methods:
  9552. void AddChild(UIElement);
  9553. void ApplyAttributes();
  9554. void BringToFront();
  9555. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9556. uint FindChild(UIElement) const;
  9557. Variant GetAttribute(const String&) const;
  9558. ValueAnimation GetAttributeAnimation(const String&) const;
  9559. float GetAttributeAnimationSpeed(const String&) const;
  9560. float GetAttributeAnimationTime(const String&) const;
  9561. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9562. Variant GetAttributeDefault(const String&) const;
  9563. UIElement GetChild(const String&, bool = false) const;
  9564. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9565. Array<UIElement> GetChildren(bool = false) const;
  9566. UIElement GetElementEventSender() const;
  9567. bool GetInterceptNetworkUpdate(const String&) const;
  9568. uint GetNumChildren(bool) const;
  9569. void InsertChild(uint, UIElement);
  9570. bool Load(File, bool = false);
  9571. bool Load(VectorBuffer&, bool = false);
  9572. bool LoadChildXML(XMLFile, XMLFile = null);
  9573. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9574. bool LoadXML(File);
  9575. bool LoadXML(VectorBuffer&);
  9576. bool LoadXML(XMLFile, XMLFile);
  9577. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9578. bool LoadXML(const XMLElement&, bool = false);
  9579. void MarkNetworkUpdate() const;
  9580. void Remove();
  9581. void RemoveAllChildren();
  9582. void RemoveAttributeAnimation(const String&);
  9583. void RemoveChild(UIElement, uint = 0);
  9584. void RemoveChild(uint);
  9585. void RemoveInstanceDefault();
  9586. void RemoveObjectAnimation();
  9587. void ResetToDefault();
  9588. bool Save(File) const;
  9589. bool Save(VectorBuffer&) const;
  9590. bool SaveXML(File, const String& = "\t");
  9591. bool SaveXML(VectorBuffer&, const String& = "\t");
  9592. bool SaveXML(XMLElement&) const;
  9593. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9594. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9595. void SetAnimationTime(float);
  9596. bool SetAttribute(const String&, const Variant&);
  9597. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9598. void SetAttributeAnimationSpeed(const String&, float);
  9599. void SetAttributeAnimationTime(const String&, float);
  9600. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9601. void SetFixedHeight(int);
  9602. void SetFixedSize(int, int);
  9603. void SetFixedWidth(int);
  9604. void SetFullImageRect();
  9605. void SetHotSpot(int, int);
  9606. void SetInterceptNetworkUpdate(const String&, bool);
  9607. void SetMaxSize(int, int);
  9608. void SetMinSize(int, int);
  9609. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9610. void SetPosition(float, float);
  9611. void SetScale(float);
  9612. void SetScale(float, float);
  9613. void SetSize(int, int);
  9614. bool SetStyle(const String&, XMLFile = null);
  9615. bool SetStyle(const XMLElement&);
  9616. bool SetStyleAuto(XMLFile = null);
  9617. const Variant& GetVar(const StringHash&);
  9618. // Properties:
  9619. bool animationEnabled;
  9620. /* readonly */
  9621. Array<Variant> attributeDefaults;
  9622. /* readonly */
  9623. Array<AttributeInfo> attributeInfos;
  9624. Array<Variant> attributes;
  9625. BlendMode blendMode;
  9626. bool bringToBack;
  9627. bool bringToFront;
  9628. /* readonly */
  9629. String category;
  9630. /* readonly */
  9631. Array<UIElement> children;
  9632. /* writeonly */
  9633. Color color;
  9634. /* readonly */
  9635. bool colorGradient;
  9636. Array<Color> colors;
  9637. XMLFile defaultStyle;
  9638. /* readonly */
  9639. float derivedOpacity;
  9640. /* readonly */
  9641. uint dragButtonCombo;
  9642. /* readonly */
  9643. int dragButtonCount;
  9644. bool elementEventSender;
  9645. int height;
  9646. HorizontalAlignment horizontalAlignment;
  9647. IntVector2 hotSpot;
  9648. IntRect imageRect;
  9649. String name;
  9650. /* readonly */
  9651. uint numAllChildren;
  9652. /* readonly */
  9653. uint numAttributes;
  9654. /* readonly */
  9655. uint numChildren;
  9656. ObjectAnimation objectAnimation;
  9657. float opacity;
  9658. UIElement parent;
  9659. Vector2 position;
  9660. int priority;
  9661. /* readonly */
  9662. int refs;
  9663. /* readonly */
  9664. UIElement root;
  9665. float rotation;
  9666. Vector2 scale;
  9667. IntVector2 size;
  9668. bool sortChildren;
  9669. String style;
  9670. bool temporary;
  9671. Texture texture;
  9672. /* readonly */
  9673. StringHash type;
  9674. /* readonly */
  9675. String typeName;
  9676. bool useDerivedOpacity;
  9677. /* readonly */
  9678. VariantMap vars;
  9679. VerticalAlignment verticalAlignment;
  9680. bool visible;
  9681. /* readonly */
  9682. bool visibleEffective;
  9683. /* readonly */
  9684. int weakRefs;
  9685. int width;
  9686. };
  9687. class Sprite2D
  9688. {
  9689. // Methods:
  9690. bool Load(File);
  9691. bool Load(VectorBuffer&);
  9692. bool Save(File) const;
  9693. bool Save(VectorBuffer&) const;
  9694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9695. // Properties:
  9696. /* readonly */
  9697. String category;
  9698. Vector2 hotSpot;
  9699. /* readonly */
  9700. uint memoryUse;
  9701. String name;
  9702. IntVector2 offset;
  9703. IntRect rectangle;
  9704. /* readonly */
  9705. int refs;
  9706. Texture2D texture;
  9707. /* readonly */
  9708. StringHash type;
  9709. /* readonly */
  9710. String typeName;
  9711. /* readonly */
  9712. uint useTimer;
  9713. /* readonly */
  9714. int weakRefs;
  9715. };
  9716. class SpriteSheet2D
  9717. {
  9718. // Methods:
  9719. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  9720. Sprite2D GetSprite(const String&);
  9721. bool Load(File);
  9722. bool Load(VectorBuffer&);
  9723. bool Save(File) const;
  9724. bool Save(VectorBuffer&) const;
  9725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9726. // Properties:
  9727. /* readonly */
  9728. String category;
  9729. /* readonly */
  9730. uint memoryUse;
  9731. String name;
  9732. /* readonly */
  9733. int refs;
  9734. /* readonly */
  9735. Texture2D texture;
  9736. /* readonly */
  9737. StringHash type;
  9738. /* readonly */
  9739. String typeName;
  9740. /* readonly */
  9741. uint useTimer;
  9742. /* readonly */
  9743. int weakRefs;
  9744. };
  9745. class StaticModel
  9746. {
  9747. // Methods:
  9748. void ApplyAttributes();
  9749. void ApplyMaterialList(const String& = String ( ));
  9750. void DrawDebugGeometry(DebugRenderer, bool);
  9751. Variant GetAttribute(const String&) const;
  9752. ValueAnimation GetAttributeAnimation(const String&) const;
  9753. float GetAttributeAnimationSpeed(const String&) const;
  9754. float GetAttributeAnimationTime(const String&) const;
  9755. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9756. Variant GetAttributeDefault(const String&) const;
  9757. bool GetInterceptNetworkUpdate(const String&) const;
  9758. bool IsInView(Camera) const;
  9759. bool IsInside(const Vector3&) const;
  9760. bool IsInsideLocal(const Vector3&) const;
  9761. bool Load(File, bool = false);
  9762. bool Load(VectorBuffer&, bool = false);
  9763. bool LoadXML(const XMLElement&, bool = false);
  9764. void MarkNetworkUpdate() const;
  9765. void Remove();
  9766. void RemoveAttributeAnimation(const String&);
  9767. void RemoveInstanceDefault();
  9768. void RemoveObjectAnimation();
  9769. void ResetToDefault();
  9770. bool Save(File) const;
  9771. bool Save(VectorBuffer&) const;
  9772. bool SaveXML(XMLElement&) const;
  9773. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9774. void SetAnimationTime(float);
  9775. bool SetAttribute(const String&, const Variant&);
  9776. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9777. void SetAttributeAnimationSpeed(const String&, float);
  9778. void SetAttributeAnimationTime(const String&, float);
  9779. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9780. void SetInterceptNetworkUpdate(const String&, bool);
  9781. // Properties:
  9782. bool animationEnabled;
  9783. /* readonly */
  9784. Array<Variant> attributeDefaults;
  9785. /* readonly */
  9786. Array<AttributeInfo> attributeInfos;
  9787. Array<Variant> attributes;
  9788. /* readonly */
  9789. BoundingBox boundingBox;
  9790. bool castShadows;
  9791. /* readonly */
  9792. String category;
  9793. float drawDistance;
  9794. bool enabled;
  9795. /* readonly */
  9796. bool enabledEffective;
  9797. /* readonly */
  9798. uint id;
  9799. /* readonly */
  9800. bool inView;
  9801. uint lightMask;
  9802. float lodBias;
  9803. /* writeonly */
  9804. Material material;
  9805. Array<Material> materials;
  9806. uint maxLights;
  9807. Model model;
  9808. /* readonly */
  9809. Node node;
  9810. /* readonly */
  9811. uint numAttributes;
  9812. /* readonly */
  9813. uint numGeometries;
  9814. ObjectAnimation objectAnimation;
  9815. bool occludee;
  9816. bool occluder;
  9817. uint occlusionLodLevel;
  9818. /* readonly */
  9819. int refs;
  9820. float shadowDistance;
  9821. uint shadowMask;
  9822. bool temporary;
  9823. /* readonly */
  9824. StringHash type;
  9825. /* readonly */
  9826. String typeName;
  9827. uint viewMask;
  9828. /* readonly */
  9829. int weakRefs;
  9830. /* readonly */
  9831. BoundingBox worldBoundingBox;
  9832. uint zoneMask;
  9833. };
  9834. class StaticModelGroup
  9835. {
  9836. // Methods:
  9837. void AddInstanceNode(Node);
  9838. void ApplyAttributes();
  9839. void ApplyMaterialList(const String& = String ( ));
  9840. void DrawDebugGeometry(DebugRenderer, bool);
  9841. Variant GetAttribute(const String&) const;
  9842. ValueAnimation GetAttributeAnimation(const String&) const;
  9843. float GetAttributeAnimationSpeed(const String&) const;
  9844. float GetAttributeAnimationTime(const String&) const;
  9845. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9846. Variant GetAttributeDefault(const String&) const;
  9847. bool GetInterceptNetworkUpdate(const String&) const;
  9848. bool IsInView(Camera) const;
  9849. bool Load(File, bool = false);
  9850. bool Load(VectorBuffer&, bool = false);
  9851. bool LoadXML(const XMLElement&, bool = false);
  9852. void MarkNetworkUpdate() const;
  9853. void Remove();
  9854. void RemoveAllInstanceNodes();
  9855. void RemoveAttributeAnimation(const String&);
  9856. void RemoveInstanceDefault();
  9857. void RemoveInstanceNode(Node);
  9858. void RemoveObjectAnimation();
  9859. void ResetToDefault();
  9860. bool Save(File) const;
  9861. bool Save(VectorBuffer&) const;
  9862. bool SaveXML(XMLElement&) const;
  9863. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9864. void SetAnimationTime(float);
  9865. bool SetAttribute(const String&, const Variant&);
  9866. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9867. void SetAttributeAnimationSpeed(const String&, float);
  9868. void SetAttributeAnimationTime(const String&, float);
  9869. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9870. void SetInterceptNetworkUpdate(const String&, bool);
  9871. // Properties:
  9872. bool animationEnabled;
  9873. /* readonly */
  9874. Array<Variant> attributeDefaults;
  9875. /* readonly */
  9876. Array<AttributeInfo> attributeInfos;
  9877. Array<Variant> attributes;
  9878. /* readonly */
  9879. BoundingBox boundingBox;
  9880. bool castShadows;
  9881. /* readonly */
  9882. String category;
  9883. float drawDistance;
  9884. bool enabled;
  9885. /* readonly */
  9886. bool enabledEffective;
  9887. /* readonly */
  9888. uint id;
  9889. /* readonly */
  9890. bool inView;
  9891. /* readonly */
  9892. Array<Node> instanceNodes;
  9893. uint lightMask;
  9894. float lodBias;
  9895. /* writeonly */
  9896. Material material;
  9897. Array<Material> materials;
  9898. uint maxLights;
  9899. Model model;
  9900. /* readonly */
  9901. Node node;
  9902. /* readonly */
  9903. uint numAttributes;
  9904. /* readonly */
  9905. uint numGeometries;
  9906. /* readonly */
  9907. uint numInstanceNodes;
  9908. ObjectAnimation objectAnimation;
  9909. bool occludee;
  9910. bool occluder;
  9911. uint occlusionLodLevel;
  9912. /* readonly */
  9913. int refs;
  9914. float shadowDistance;
  9915. uint shadowMask;
  9916. bool temporary;
  9917. /* readonly */
  9918. StringHash type;
  9919. /* readonly */
  9920. String typeName;
  9921. uint viewMask;
  9922. /* readonly */
  9923. int weakRefs;
  9924. /* readonly */
  9925. BoundingBox worldBoundingBox;
  9926. /* readonly */
  9927. Zone zone;
  9928. uint zoneMask;
  9929. };
  9930. class StaticSprite2D
  9931. {
  9932. // Methods:
  9933. void ApplyAttributes();
  9934. void DrawDebugGeometry(DebugRenderer, bool);
  9935. Variant GetAttribute(const String&) const;
  9936. ValueAnimation GetAttributeAnimation(const String&) const;
  9937. float GetAttributeAnimationSpeed(const String&) const;
  9938. float GetAttributeAnimationTime(const String&) const;
  9939. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9940. Variant GetAttributeDefault(const String&) const;
  9941. bool GetInterceptNetworkUpdate(const String&) const;
  9942. bool IsInView(Camera) const;
  9943. bool Load(File, bool = false);
  9944. bool Load(VectorBuffer&, bool = false);
  9945. bool LoadXML(const XMLElement&, bool = false);
  9946. void MarkNetworkUpdate() const;
  9947. void Remove();
  9948. void RemoveAttributeAnimation(const String&);
  9949. void RemoveInstanceDefault();
  9950. void RemoveObjectAnimation();
  9951. void ResetToDefault();
  9952. bool Save(File) const;
  9953. bool Save(VectorBuffer&) const;
  9954. bool SaveXML(XMLElement&) const;
  9955. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9956. void SetAnimationTime(float);
  9957. bool SetAttribute(const String&, const Variant&);
  9958. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9959. void SetAttributeAnimationSpeed(const String&, float);
  9960. void SetAttributeAnimationTime(const String&, float);
  9961. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9962. void SetFlip(bool, bool);
  9963. void SetInterceptNetworkUpdate(const String&, bool);
  9964. // Properties:
  9965. float alpha;
  9966. bool animationEnabled;
  9967. /* readonly */
  9968. Array<Variant> attributeDefaults;
  9969. /* readonly */
  9970. Array<AttributeInfo> attributeInfos;
  9971. Array<Variant> attributes;
  9972. BlendMode blendMode;
  9973. /* readonly */
  9974. BoundingBox boundingBox;
  9975. bool castShadows;
  9976. /* readonly */
  9977. String category;
  9978. Color color;
  9979. Material customMaterial;
  9980. float drawDistance;
  9981. bool enabled;
  9982. /* readonly */
  9983. bool enabledEffective;
  9984. bool flipX;
  9985. bool flipY;
  9986. Vector2 hotSpot;
  9987. /* readonly */
  9988. uint id;
  9989. /* readonly */
  9990. bool inView;
  9991. int layer;
  9992. uint lightMask;
  9993. float lodBias;
  9994. uint maxLights;
  9995. /* readonly */
  9996. Node node;
  9997. /* readonly */
  9998. uint numAttributes;
  9999. ObjectAnimation objectAnimation;
  10000. bool occludee;
  10001. bool occluder;
  10002. int orderInLayer;
  10003. /* readonly */
  10004. int refs;
  10005. float shadowDistance;
  10006. uint shadowMask;
  10007. Sprite2D sprite;
  10008. bool temporary;
  10009. /* readonly */
  10010. StringHash type;
  10011. /* readonly */
  10012. String typeName;
  10013. bool useHotSpot;
  10014. uint viewMask;
  10015. /* readonly */
  10016. int weakRefs;
  10017. /* readonly */
  10018. BoundingBox worldBoundingBox;
  10019. uint zoneMask;
  10020. };
  10021. class String
  10022. {
  10023. // Methods:
  10024. void AppendUTF8(uint);
  10025. uint AtUTF8(uint) const;
  10026. uint ByteOffsetUTF8(uint) const;
  10027. void Clear();
  10028. int Compare(const String&, bool = true) const;
  10029. bool Contains(const String&, bool = true) const;
  10030. bool Contains(uint8, bool = true) const;
  10031. bool EndsWith(const String&, bool = true) const;
  10032. uint Find(const String&, uint = 0, bool = true) const;
  10033. uint Find(uint8, uint = 0, bool = true) const;
  10034. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10035. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10036. void Join(Array<String>&, const String&);
  10037. uint NextUTF8Char(uint&) const;
  10038. void Replace(const String&, const String&, bool = true);
  10039. void Replace(uint8, uint8, bool = true);
  10040. void ReplaceUTF8(uint, uint);
  10041. String Replaced(const String&, const String&, bool = true) const;
  10042. String Replaced(uint8, uint8, bool = true) const;
  10043. void Resize(uint);
  10044. void SetUTF8FromLatin1(const String&);
  10045. Array<String> Split(uint8, bool = false) const;
  10046. bool StartsWith(const String&, bool = true) const;
  10047. String Substring(uint) const;
  10048. String Substring(uint, uint) const;
  10049. String SubstringUTF8(uint) const;
  10050. String SubstringUTF8(uint, uint) const;
  10051. bool ToBool() const;
  10052. Color ToColor() const;
  10053. double ToDouble() const;
  10054. float ToFloat() const;
  10055. int ToInt() const;
  10056. IntRect ToIntRect() const;
  10057. IntVector2 ToIntVector2() const;
  10058. String ToLower() const;
  10059. Matrix3 ToMatrix3() const;
  10060. Matrix3x4 ToMatrix3x4() const;
  10061. Matrix4 ToMatrix4() const;
  10062. Quaternion ToQuaternion() const;
  10063. uint ToUInt() const;
  10064. String ToUpper() const;
  10065. Vector2 ToVector2() const;
  10066. Vector3 ToVector3() const;
  10067. Vector4 ToVector4(bool = false) const;
  10068. Variant ToVectorVariant() const;
  10069. String Trimmed() const;
  10070. // Properties:
  10071. /* readonly */
  10072. bool empty;
  10073. /* readonly */
  10074. uint length;
  10075. /* readonly */
  10076. uint utf8Length;
  10077. };
  10078. class StringHash
  10079. {
  10080. // Methods:
  10081. String ToString() const;
  10082. // Properties:
  10083. /* readonly */
  10084. uint value;
  10085. };
  10086. class Technique
  10087. {
  10088. // Methods:
  10089. Pass CreatePass(const String&);
  10090. Pass GetPass(const String&);
  10091. Pass GetSupportedPass(const String&);
  10092. bool HasPass(const String&) const;
  10093. bool Load(File);
  10094. bool Load(VectorBuffer&);
  10095. void RemovePass(const String&);
  10096. bool Save(File) const;
  10097. bool Save(VectorBuffer&) const;
  10098. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10099. // Properties:
  10100. /* readonly */
  10101. String category;
  10102. bool desktop;
  10103. /* readonly */
  10104. uint memoryUse;
  10105. String name;
  10106. /* readonly */
  10107. uint numPasses;
  10108. /* readonly */
  10109. Array<String> passNames;
  10110. /* readonly */
  10111. Array<Pass> passes;
  10112. /* readonly */
  10113. int refs;
  10114. /* readonly */
  10115. bool supported;
  10116. /* readonly */
  10117. StringHash type;
  10118. /* readonly */
  10119. String typeName;
  10120. /* readonly */
  10121. uint useTimer;
  10122. /* readonly */
  10123. int weakRefs;
  10124. };
  10125. class TechniqueEntry
  10126. {
  10127. // Properties:
  10128. float lodDistance;
  10129. int qualityLevel;
  10130. Technique technique;
  10131. };
  10132. class Terrain
  10133. {
  10134. // Methods:
  10135. void ApplyAttributes();
  10136. void ApplyHeightMap();
  10137. void DrawDebugGeometry(DebugRenderer, bool);
  10138. Variant GetAttribute(const String&) const;
  10139. ValueAnimation GetAttributeAnimation(const String&) const;
  10140. float GetAttributeAnimationSpeed(const String&) const;
  10141. float GetAttributeAnimationTime(const String&) const;
  10142. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10143. Variant GetAttributeDefault(const String&) const;
  10144. float GetHeight(const Vector3&) const;
  10145. bool GetInterceptNetworkUpdate(const String&) const;
  10146. Vector3 GetNormal(const Vector3&) const;
  10147. TerrainPatch GetPatch(int, int) const;
  10148. bool Load(File, bool = false);
  10149. bool Load(VectorBuffer&, bool = false);
  10150. bool LoadXML(const XMLElement&, bool = false);
  10151. void MarkNetworkUpdate() const;
  10152. void Remove();
  10153. void RemoveAttributeAnimation(const String&);
  10154. void RemoveInstanceDefault();
  10155. void RemoveObjectAnimation();
  10156. void ResetToDefault();
  10157. bool Save(File) const;
  10158. bool Save(VectorBuffer&) const;
  10159. bool SaveXML(XMLElement&) const;
  10160. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10161. void SetAnimationTime(float);
  10162. bool SetAttribute(const String&, const Variant&);
  10163. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10164. void SetAttributeAnimationSpeed(const String&, float);
  10165. void SetAttributeAnimationTime(const String&, float);
  10166. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10167. void SetInterceptNetworkUpdate(const String&, bool);
  10168. IntVector2 WorldToHeightMap(const Vector3&) const;
  10169. // Properties:
  10170. bool animationEnabled;
  10171. /* readonly */
  10172. Array<Variant> attributeDefaults;
  10173. /* readonly */
  10174. Array<AttributeInfo> attributeInfos;
  10175. Array<Variant> attributes;
  10176. bool castShadows;
  10177. /* readonly */
  10178. String category;
  10179. float drawDistance;
  10180. bool enabled;
  10181. /* readonly */
  10182. bool enabledEffective;
  10183. Image heightMap;
  10184. /* readonly */
  10185. uint id;
  10186. uint lightMask;
  10187. float lodBias;
  10188. Material material;
  10189. uint maxLights;
  10190. uint maxLodLevels;
  10191. /* readonly */
  10192. Node node;
  10193. /* readonly */
  10194. uint numAttributes;
  10195. /* readonly */
  10196. IntVector2 numPatches;
  10197. /* readonly */
  10198. IntVector2 numVertices;
  10199. ObjectAnimation objectAnimation;
  10200. bool occludee;
  10201. bool occluder;
  10202. uint occlusionLodLevel;
  10203. int patchSize;
  10204. /* readonly */
  10205. Array<TerrainPatch> patches;
  10206. /* readonly */
  10207. int refs;
  10208. float shadowDistance;
  10209. uint shadowMask;
  10210. bool smoothing;
  10211. Vector3 spacing;
  10212. bool temporary;
  10213. /* readonly */
  10214. StringHash type;
  10215. /* readonly */
  10216. String typeName;
  10217. uint viewMask;
  10218. /* readonly */
  10219. int weakRefs;
  10220. uint zoneMask;
  10221. };
  10222. class TerrainPatch
  10223. {
  10224. // Methods:
  10225. void ApplyAttributes();
  10226. void DrawDebugGeometry(DebugRenderer, bool);
  10227. Variant GetAttribute(const String&) const;
  10228. ValueAnimation GetAttributeAnimation(const String&) const;
  10229. float GetAttributeAnimationSpeed(const String&) const;
  10230. float GetAttributeAnimationTime(const String&) const;
  10231. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10232. Variant GetAttributeDefault(const String&) const;
  10233. bool GetInterceptNetworkUpdate(const String&) const;
  10234. bool IsInView(Camera) const;
  10235. bool Load(File, bool = false);
  10236. bool Load(VectorBuffer&, bool = false);
  10237. bool LoadXML(const XMLElement&, bool = false);
  10238. void MarkNetworkUpdate() const;
  10239. void Remove();
  10240. void RemoveAttributeAnimation(const String&);
  10241. void RemoveInstanceDefault();
  10242. void RemoveObjectAnimation();
  10243. void ResetToDefault();
  10244. bool Save(File) const;
  10245. bool Save(VectorBuffer&) const;
  10246. bool SaveXML(XMLElement&) const;
  10247. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10248. void SetAnimationTime(float);
  10249. bool SetAttribute(const String&, const Variant&);
  10250. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10251. void SetAttributeAnimationSpeed(const String&, float);
  10252. void SetAttributeAnimationTime(const String&, float);
  10253. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10254. void SetInterceptNetworkUpdate(const String&, bool);
  10255. // Properties:
  10256. bool animationEnabled;
  10257. /* readonly */
  10258. Array<Variant> attributeDefaults;
  10259. /* readonly */
  10260. Array<AttributeInfo> attributeInfos;
  10261. Array<Variant> attributes;
  10262. /* readonly */
  10263. BoundingBox boundingBox;
  10264. bool castShadows;
  10265. /* readonly */
  10266. String category;
  10267. float drawDistance;
  10268. bool enabled;
  10269. /* readonly */
  10270. bool enabledEffective;
  10271. /* readonly */
  10272. uint id;
  10273. /* readonly */
  10274. bool inView;
  10275. uint lightMask;
  10276. float lodBias;
  10277. uint maxLights;
  10278. /* readonly */
  10279. Node node;
  10280. /* readonly */
  10281. uint numAttributes;
  10282. ObjectAnimation objectAnimation;
  10283. bool occludee;
  10284. bool occluder;
  10285. /* readonly */
  10286. int refs;
  10287. float shadowDistance;
  10288. uint shadowMask;
  10289. bool temporary;
  10290. /* readonly */
  10291. StringHash type;
  10292. /* readonly */
  10293. String typeName;
  10294. uint viewMask;
  10295. /* readonly */
  10296. int weakRefs;
  10297. /* readonly */
  10298. BoundingBox worldBoundingBox;
  10299. uint zoneMask;
  10300. };
  10301. class Text
  10302. {
  10303. // Methods:
  10304. void AddChild(UIElement);
  10305. void ApplyAttributes();
  10306. void BringToFront();
  10307. void ClearSelection();
  10308. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10309. void DisableLayoutUpdate();
  10310. IntVector2 ElementToScreen(const IntVector2&);
  10311. void EnableLayoutUpdate();
  10312. uint FindChild(UIElement) const;
  10313. Variant GetAttribute(const String&) const;
  10314. ValueAnimation GetAttributeAnimation(const String&) const;
  10315. float GetAttributeAnimationSpeed(const String&) const;
  10316. float GetAttributeAnimationTime(const String&) const;
  10317. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10318. Variant GetAttributeDefault(const String&) const;
  10319. UIElement GetChild(const String&, bool = false) const;
  10320. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10321. Array<UIElement> GetChildren(bool = false) const;
  10322. UIElement GetElementEventSender() const;
  10323. bool GetInterceptNetworkUpdate(const String&) const;
  10324. uint GetNumChildren(bool) const;
  10325. void InsertChild(uint, UIElement);
  10326. bool IsInside(IntVector2, bool);
  10327. bool IsInsideCombined(IntVector2, bool);
  10328. bool Load(File, bool = false);
  10329. bool Load(VectorBuffer&, bool = false);
  10330. bool LoadChildXML(XMLFile, XMLFile = null);
  10331. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10332. bool LoadXML(File);
  10333. bool LoadXML(VectorBuffer&);
  10334. bool LoadXML(XMLFile, XMLFile);
  10335. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10336. bool LoadXML(const XMLElement&, bool = false);
  10337. void MarkNetworkUpdate() const;
  10338. void Remove();
  10339. void RemoveAllChildren();
  10340. void RemoveAttributeAnimation(const String&);
  10341. void RemoveChild(UIElement, uint = 0);
  10342. void RemoveChild(uint);
  10343. void RemoveInstanceDefault();
  10344. void RemoveObjectAnimation();
  10345. void ResetDeepEnabled();
  10346. void ResetToDefault();
  10347. bool Save(File) const;
  10348. bool Save(VectorBuffer&) const;
  10349. bool SaveXML(File, const String& = "\t");
  10350. bool SaveXML(VectorBuffer&, const String& = "\t");
  10351. bool SaveXML(XMLElement&) const;
  10352. IntVector2 ScreenToElement(const IntVector2&);
  10353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10354. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10355. void SetAnimationTime(float);
  10356. bool SetAttribute(const String&, const Variant&);
  10357. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10358. void SetAttributeAnimationSpeed(const String&, float);
  10359. void SetAttributeAnimationTime(const String&, float);
  10360. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10361. void SetDeepEnabled(bool);
  10362. void SetEnabledRecursive(bool);
  10363. void SetFixedHeight(int);
  10364. void SetFixedSize(int, int);
  10365. void SetFixedWidth(int);
  10366. bool SetFont(Font, int);
  10367. bool SetFont(const String&, int);
  10368. void SetInterceptNetworkUpdate(const String&, bool);
  10369. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10370. void SetMaxSize(int, int);
  10371. void SetMinSize(int, int);
  10372. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10373. void SetPosition(int, int);
  10374. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10375. void SetSize(int, int);
  10376. bool SetStyle(const String&, XMLFile = null);
  10377. bool SetStyle(const XMLElement&);
  10378. bool SetStyleAuto(XMLFile = null);
  10379. void UpdateLayout();
  10380. const Variant& GetVar(const StringHash&);
  10381. // Properties:
  10382. bool animationEnabled;
  10383. /* readonly */
  10384. Array<Variant> attributeDefaults;
  10385. /* readonly */
  10386. Array<AttributeInfo> attributeInfos;
  10387. Array<Variant> attributes;
  10388. bool autoLocalizable;
  10389. bool bringToBack;
  10390. bool bringToFront;
  10391. /* readonly */
  10392. String category;
  10393. /* readonly */
  10394. Array<IntVector2> charPositions;
  10395. /* readonly */
  10396. Array<IntVector2> charSizes;
  10397. /* readonly */
  10398. IntVector2 childOffset;
  10399. /* readonly */
  10400. Array<UIElement> children;
  10401. IntRect clipBorder;
  10402. bool clipChildren;
  10403. /* writeonly */
  10404. Color color;
  10405. /* readonly */
  10406. bool colorGradient;
  10407. Array<Color> colors;
  10408. /* readonly */
  10409. IntRect combinedScreenRect;
  10410. XMLFile defaultStyle;
  10411. /* readonly */
  10412. float derivedOpacity;
  10413. /* readonly */
  10414. uint dragButtonCombo;
  10415. /* readonly */
  10416. int dragButtonCount;
  10417. uint dragDropMode;
  10418. bool editable;
  10419. Color effectColor;
  10420. bool elementEventSender;
  10421. bool enabled;
  10422. /* readonly */
  10423. bool enabledSelf;
  10424. /* readonly */
  10425. bool fixedHeight;
  10426. /* readonly */
  10427. bool fixedSize;
  10428. /* readonly */
  10429. bool fixedWidth;
  10430. bool focus;
  10431. FocusMode focusMode;
  10432. /* readonly */
  10433. Font font;
  10434. /* readonly */
  10435. int fontSize;
  10436. int height;
  10437. HorizontalAlignment horizontalAlignment;
  10438. Color hoverColor;
  10439. /* readonly */
  10440. bool hovering;
  10441. int indent;
  10442. int indentSpacing;
  10443. /* readonly */
  10444. int indentWidth;
  10445. bool internal;
  10446. IntRect layoutBorder;
  10447. Vector2 layoutFlexScale;
  10448. LayoutMode layoutMode;
  10449. int layoutSpacing;
  10450. int maxHeight;
  10451. IntVector2 maxSize;
  10452. int maxWidth;
  10453. int minHeight;
  10454. IntVector2 minSize;
  10455. int minWidth;
  10456. String name;
  10457. /* readonly */
  10458. uint numAllChildren;
  10459. /* readonly */
  10460. uint numAttributes;
  10461. /* readonly */
  10462. uint numChars;
  10463. /* readonly */
  10464. uint numChildren;
  10465. /* readonly */
  10466. uint numRows;
  10467. ObjectAnimation objectAnimation;
  10468. float opacity;
  10469. UIElement parent;
  10470. IntVector2 position;
  10471. int priority;
  10472. /* readonly */
  10473. int refs;
  10474. /* readonly */
  10475. UIElement root;
  10476. /* readonly */
  10477. int rowHeight;
  10478. float rowSpacing;
  10479. /* readonly */
  10480. Array<int> rowWidths;
  10481. /* readonly */
  10482. IntVector2 screenPosition;
  10483. bool selected;
  10484. Color selectionColor;
  10485. /* readonly */
  10486. uint selectionLength;
  10487. /* readonly */
  10488. uint selectionStart;
  10489. IntVector2 size;
  10490. bool sortChildren;
  10491. String style;
  10492. bool temporary;
  10493. String text;
  10494. HorizontalAlignment textAlignment;
  10495. TextEffect textEffect;
  10496. TraversalMode traversalMode;
  10497. /* readonly */
  10498. StringHash type;
  10499. /* readonly */
  10500. String typeName;
  10501. bool useDerivedOpacity;
  10502. /* readonly */
  10503. VariantMap vars;
  10504. VerticalAlignment verticalAlignment;
  10505. bool visible;
  10506. /* readonly */
  10507. bool visibleEffective;
  10508. /* readonly */
  10509. int weakRefs;
  10510. int width;
  10511. bool wordwrap;
  10512. };
  10513. class Text3D
  10514. {
  10515. // Methods:
  10516. void ApplyAttributes();
  10517. void DrawDebugGeometry(DebugRenderer, bool);
  10518. Variant GetAttribute(const String&) const;
  10519. ValueAnimation GetAttributeAnimation(const String&) const;
  10520. float GetAttributeAnimationSpeed(const String&) const;
  10521. float GetAttributeAnimationTime(const String&) const;
  10522. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10523. Variant GetAttributeDefault(const String&) const;
  10524. bool GetInterceptNetworkUpdate(const String&) const;
  10525. bool IsInView(Camera) const;
  10526. bool Load(File, bool = false);
  10527. bool Load(VectorBuffer&, bool = false);
  10528. bool LoadXML(const XMLElement&, bool = false);
  10529. void MarkNetworkUpdate() const;
  10530. void Remove();
  10531. void RemoveAttributeAnimation(const String&);
  10532. void RemoveInstanceDefault();
  10533. void RemoveObjectAnimation();
  10534. void ResetToDefault();
  10535. bool Save(File) const;
  10536. bool Save(VectorBuffer&) const;
  10537. bool SaveXML(XMLElement&) const;
  10538. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10539. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10540. void SetAnimationTime(float);
  10541. bool SetAttribute(const String&, const Variant&);
  10542. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10543. void SetAttributeAnimationSpeed(const String&, float);
  10544. void SetAttributeAnimationTime(const String&, float);
  10545. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10546. bool SetFont(Font, int);
  10547. bool SetFont(const String&, int);
  10548. void SetInterceptNetworkUpdate(const String&, bool);
  10549. // Properties:
  10550. bool animationEnabled;
  10551. /* readonly */
  10552. Array<Variant> attributeDefaults;
  10553. /* readonly */
  10554. Array<AttributeInfo> attributeInfos;
  10555. Array<Variant> attributes;
  10556. /* readonly */
  10557. BoundingBox boundingBox;
  10558. bool castShadows;
  10559. /* readonly */
  10560. String category;
  10561. /* readonly */
  10562. Array<IntVector2> charPositions;
  10563. /* readonly */
  10564. Array<IntVector2> charSizes;
  10565. /* writeonly */
  10566. Color color;
  10567. Array<Color> colors;
  10568. float drawDistance;
  10569. Color effectColor;
  10570. float effectDepthBias;
  10571. bool enabled;
  10572. /* readonly */
  10573. bool enabledEffective;
  10574. FaceCameraMode faceCameraMode;
  10575. /* readonly */
  10576. Font font;
  10577. /* readonly */
  10578. int fontSize;
  10579. HorizontalAlignment horizontalAlignment;
  10580. /* readonly */
  10581. uint id;
  10582. /* readonly */
  10583. bool inView;
  10584. uint lightMask;
  10585. float lodBias;
  10586. Material material;
  10587. uint maxLights;
  10588. /* readonly */
  10589. Node node;
  10590. /* readonly */
  10591. uint numAttributes;
  10592. /* readonly */
  10593. uint numChars;
  10594. /* readonly */
  10595. uint numRows;
  10596. ObjectAnimation objectAnimation;
  10597. bool occludee;
  10598. bool occluder;
  10599. float opacity;
  10600. /* readonly */
  10601. int refs;
  10602. /* readonly */
  10603. int rowHeight;
  10604. float rowSpacing;
  10605. /* readonly */
  10606. Array<int> rowWidths;
  10607. float shadowDistance;
  10608. uint shadowMask;
  10609. bool temporary;
  10610. String text;
  10611. HorizontalAlignment textAlignment;
  10612. TextEffect textEffect;
  10613. /* readonly */
  10614. StringHash type;
  10615. /* readonly */
  10616. String typeName;
  10617. VerticalAlignment verticalAlignment;
  10618. uint viewMask;
  10619. /* readonly */
  10620. int weakRefs;
  10621. int width;
  10622. bool wordwrap;
  10623. /* readonly */
  10624. BoundingBox worldBoundingBox;
  10625. uint zoneMask;
  10626. };
  10627. class Texture
  10628. {
  10629. // Methods:
  10630. void ClearDataLost();
  10631. bool Load(File);
  10632. bool Load(VectorBuffer&);
  10633. bool Save(File) const;
  10634. bool Save(VectorBuffer&) const;
  10635. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10636. void SetNumLevels(uint);
  10637. // Properties:
  10638. Array<TextureAddressMode> addressMode;
  10639. Texture backupTexture;
  10640. Color borderColor;
  10641. /* readonly */
  10642. String category;
  10643. /* readonly */
  10644. uint components;
  10645. /* readonly */
  10646. bool compressed;
  10647. /* readonly */
  10648. bool dataLost;
  10649. TextureFilterMode filterMode;
  10650. /* readonly */
  10651. uint format;
  10652. /* readonly */
  10653. int height;
  10654. /* readonly */
  10655. Array<int> levelHeight;
  10656. /* readonly */
  10657. Array<int> levelWidth;
  10658. /* readonly */
  10659. uint levels;
  10660. /* readonly */
  10661. uint memoryUse;
  10662. Array<int> mipsToSkip;
  10663. String name;
  10664. /* readonly */
  10665. int refs;
  10666. bool sRGB;
  10667. /* readonly */
  10668. StringHash type;
  10669. /* readonly */
  10670. String typeName;
  10671. /* readonly */
  10672. TextureUsage usage;
  10673. /* readonly */
  10674. uint useTimer;
  10675. /* readonly */
  10676. int weakRefs;
  10677. /* readonly */
  10678. int width;
  10679. };
  10680. class Texture2D
  10681. {
  10682. // Methods:
  10683. void ClearDataLost();
  10684. Image GetImage() const;
  10685. bool Load(File);
  10686. bool Load(VectorBuffer&);
  10687. bool Save(File) const;
  10688. bool Save(VectorBuffer&) const;
  10689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10690. bool SetData(Image, bool = false);
  10691. void SetNumLevels(uint);
  10692. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10693. // Properties:
  10694. Array<TextureAddressMode> addressMode;
  10695. Texture backupTexture;
  10696. Color borderColor;
  10697. /* readonly */
  10698. String category;
  10699. /* readonly */
  10700. uint components;
  10701. /* readonly */
  10702. bool compressed;
  10703. /* readonly */
  10704. bool dataLost;
  10705. TextureFilterMode filterMode;
  10706. /* readonly */
  10707. uint format;
  10708. /* readonly */
  10709. int height;
  10710. /* readonly */
  10711. Array<int> levelHeight;
  10712. /* readonly */
  10713. Array<int> levelWidth;
  10714. /* readonly */
  10715. uint levels;
  10716. /* readonly */
  10717. uint memoryUse;
  10718. Array<int> mipsToSkip;
  10719. String name;
  10720. /* readonly */
  10721. int refs;
  10722. /* readonly */
  10723. RenderSurface renderSurface;
  10724. bool sRGB;
  10725. /* readonly */
  10726. StringHash type;
  10727. /* readonly */
  10728. String typeName;
  10729. /* readonly */
  10730. TextureUsage usage;
  10731. /* readonly */
  10732. uint useTimer;
  10733. /* readonly */
  10734. int weakRefs;
  10735. /* readonly */
  10736. int width;
  10737. };
  10738. class Texture3D
  10739. {
  10740. // Methods:
  10741. void ClearDataLost();
  10742. bool Load(File);
  10743. bool Load(VectorBuffer&);
  10744. bool Save(File) const;
  10745. bool Save(VectorBuffer&) const;
  10746. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10747. bool SetData(Image, bool = false);
  10748. void SetNumLevels(uint);
  10749. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10750. // Properties:
  10751. Array<TextureAddressMode> addressMode;
  10752. Texture backupTexture;
  10753. Color borderColor;
  10754. /* readonly */
  10755. String category;
  10756. /* readonly */
  10757. uint components;
  10758. /* readonly */
  10759. bool compressed;
  10760. /* readonly */
  10761. bool dataLost;
  10762. TextureFilterMode filterMode;
  10763. /* readonly */
  10764. uint format;
  10765. /* readonly */
  10766. int height;
  10767. /* readonly */
  10768. Array<int> levelHeight;
  10769. /* readonly */
  10770. Array<int> levelWidth;
  10771. /* readonly */
  10772. uint levels;
  10773. /* readonly */
  10774. uint memoryUse;
  10775. Array<int> mipsToSkip;
  10776. String name;
  10777. /* readonly */
  10778. int refs;
  10779. /* readonly */
  10780. RenderSurface renderSurface;
  10781. bool sRGB;
  10782. /* readonly */
  10783. StringHash type;
  10784. /* readonly */
  10785. String typeName;
  10786. /* readonly */
  10787. TextureUsage usage;
  10788. /* readonly */
  10789. uint useTimer;
  10790. /* readonly */
  10791. int weakRefs;
  10792. /* readonly */
  10793. int width;
  10794. };
  10795. class TextureCube
  10796. {
  10797. // Methods:
  10798. void ClearDataLost();
  10799. bool Load(File);
  10800. bool Load(VectorBuffer&);
  10801. bool Save(File) const;
  10802. bool Save(VectorBuffer&) const;
  10803. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10804. bool SetData(CubeMapFace, Image, bool = false);
  10805. void SetNumLevels(uint);
  10806. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  10807. // Properties:
  10808. Array<TextureAddressMode> addressMode;
  10809. Texture backupTexture;
  10810. Color borderColor;
  10811. /* readonly */
  10812. String category;
  10813. /* readonly */
  10814. uint components;
  10815. /* readonly */
  10816. bool compressed;
  10817. /* readonly */
  10818. bool dataLost;
  10819. TextureFilterMode filterMode;
  10820. /* readonly */
  10821. uint format;
  10822. /* readonly */
  10823. int height;
  10824. /* readonly */
  10825. Array<int> levelHeight;
  10826. /* readonly */
  10827. Array<int> levelWidth;
  10828. /* readonly */
  10829. uint levels;
  10830. /* readonly */
  10831. uint memoryUse;
  10832. Array<int> mipsToSkip;
  10833. String name;
  10834. /* readonly */
  10835. int refs;
  10836. /* readonly */
  10837. Array<RenderSurface> renderSurfaces;
  10838. bool sRGB;
  10839. /* readonly */
  10840. StringHash type;
  10841. /* readonly */
  10842. String typeName;
  10843. /* readonly */
  10844. TextureUsage usage;
  10845. /* readonly */
  10846. uint useTimer;
  10847. /* readonly */
  10848. int weakRefs;
  10849. /* readonly */
  10850. int width;
  10851. };
  10852. class TextureFrame
  10853. {
  10854. // Properties:
  10855. float time;
  10856. Rect uv;
  10857. };
  10858. class Tile2D
  10859. {
  10860. // Methods:
  10861. bool HasProperty(const String&) const;
  10862. const String& GetProperty(const String&) const;
  10863. // Properties:
  10864. /* readonly */
  10865. int gid;
  10866. /* readonly */
  10867. int refs;
  10868. /* readonly */
  10869. Sprite2D sprite;
  10870. /* readonly */
  10871. int weakRefs;
  10872. };
  10873. class TileMap2D
  10874. {
  10875. // Methods:
  10876. void ApplyAttributes();
  10877. void DrawDebugGeometry(DebugRenderer, bool);
  10878. Variant GetAttribute(const String&) const;
  10879. ValueAnimation GetAttributeAnimation(const String&) const;
  10880. float GetAttributeAnimationSpeed(const String&) const;
  10881. float GetAttributeAnimationTime(const String&) const;
  10882. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10883. Variant GetAttributeDefault(const String&) const;
  10884. bool GetInterceptNetworkUpdate(const String&) const;
  10885. TileMapLayer2D GetLayer(uint) const;
  10886. bool Load(File, bool = false);
  10887. bool Load(VectorBuffer&, bool = false);
  10888. bool LoadXML(const XMLElement&, bool = false);
  10889. void MarkNetworkUpdate() const;
  10890. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  10891. void Remove();
  10892. void RemoveAttributeAnimation(const String&);
  10893. void RemoveInstanceDefault();
  10894. void RemoveObjectAnimation();
  10895. void ResetToDefault();
  10896. bool Save(File) const;
  10897. bool Save(VectorBuffer&) const;
  10898. bool SaveXML(XMLElement&) const;
  10899. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10900. void SetAnimationTime(float);
  10901. bool SetAttribute(const String&, const Variant&);
  10902. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10903. void SetAttributeAnimationSpeed(const String&, float);
  10904. void SetAttributeAnimationTime(const String&, float);
  10905. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10906. void SetInterceptNetworkUpdate(const String&, bool);
  10907. Vector2 TileIndexToPosition(int, int) const;
  10908. // Properties:
  10909. bool animationEnabled;
  10910. /* readonly */
  10911. Array<Variant> attributeDefaults;
  10912. /* readonly */
  10913. Array<AttributeInfo> attributeInfos;
  10914. Array<Variant> attributes;
  10915. /* readonly */
  10916. String category;
  10917. bool enabled;
  10918. /* readonly */
  10919. bool enabledEffective;
  10920. /* readonly */
  10921. uint id;
  10922. /* readonly */
  10923. TileMapInfo2D info;
  10924. /* readonly */
  10925. Node node;
  10926. /* readonly */
  10927. uint numAttributes;
  10928. /* readonly */
  10929. uint numLayers;
  10930. ObjectAnimation objectAnimation;
  10931. /* readonly */
  10932. int refs;
  10933. bool temporary;
  10934. TmxFile2D tmxFile;
  10935. /* readonly */
  10936. StringHash type;
  10937. /* readonly */
  10938. String typeName;
  10939. /* readonly */
  10940. int weakRefs;
  10941. };
  10942. class TileMapInfo2D
  10943. {
  10944. // Properties:
  10945. int height;
  10946. /* readonly */
  10947. float mapHeight;
  10948. /* readonly */
  10949. float mapWidth;
  10950. Orientation2D orientation;
  10951. float tileHeight;
  10952. float tileWidth;
  10953. int width;
  10954. };
  10955. class TileMapLayer2D
  10956. {
  10957. // Methods:
  10958. void ApplyAttributes();
  10959. void DrawDebugGeometry(DebugRenderer, bool);
  10960. Variant GetAttribute(const String&) const;
  10961. ValueAnimation GetAttributeAnimation(const String&) const;
  10962. float GetAttributeAnimationSpeed(const String&) const;
  10963. float GetAttributeAnimationTime(const String&) const;
  10964. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10965. Variant GetAttributeDefault(const String&) const;
  10966. bool GetInterceptNetworkUpdate(const String&) const;
  10967. TileMapObject2D GetObject(uint) const;
  10968. Node GetObjectNode(uint) const;
  10969. Tile2D GetTile(int, int) const;
  10970. Node GetTileNode(int, int) const;
  10971. bool HasProperty(const String&) const;
  10972. bool Load(File, bool = false);
  10973. bool Load(VectorBuffer&, bool = false);
  10974. bool LoadXML(const XMLElement&, bool = false);
  10975. void MarkNetworkUpdate() const;
  10976. void Remove();
  10977. void RemoveAttributeAnimation(const String&);
  10978. void RemoveInstanceDefault();
  10979. void RemoveObjectAnimation();
  10980. void ResetToDefault();
  10981. bool Save(File) const;
  10982. bool Save(VectorBuffer&) const;
  10983. bool SaveXML(XMLElement&) const;
  10984. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10985. void SetAnimationTime(float);
  10986. bool SetAttribute(const String&, const Variant&);
  10987. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10988. void SetAttributeAnimationSpeed(const String&, float);
  10989. void SetAttributeAnimationTime(const String&, float);
  10990. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10991. void SetInterceptNetworkUpdate(const String&, bool);
  10992. const String& GetProperty(const String&) const;
  10993. // Properties:
  10994. bool animationEnabled;
  10995. /* readonly */
  10996. Array<Variant> attributeDefaults;
  10997. /* readonly */
  10998. Array<AttributeInfo> attributeInfos;
  10999. Array<Variant> attributes;
  11000. /* readonly */
  11001. String category;
  11002. int drawOrder;
  11003. bool enabled;
  11004. /* readonly */
  11005. bool enabledEffective;
  11006. /* readonly */
  11007. int height;
  11008. /* readonly */
  11009. uint id;
  11010. /* readonly */
  11011. Node imageNode;
  11012. /* readonly */
  11013. TileMapLayerType2D layerType;
  11014. /* readonly */
  11015. Node node;
  11016. /* readonly */
  11017. uint numAttributes;
  11018. /* readonly */
  11019. uint numObjects;
  11020. ObjectAnimation objectAnimation;
  11021. /* readonly */
  11022. int refs;
  11023. bool temporary;
  11024. /* readonly */
  11025. StringHash type;
  11026. /* readonly */
  11027. String typeName;
  11028. bool visible;
  11029. /* readonly */
  11030. int weakRefs;
  11031. /* readonly */
  11032. int width;
  11033. };
  11034. class TileMapObject2D
  11035. {
  11036. // Methods:
  11037. bool HasProperty(const String&) const;
  11038. const String& GetProperty(const String&) const;
  11039. const Vector2& GetPoint(uint) const;
  11040. // Properties:
  11041. /* readonly */
  11042. String name;
  11043. /* readonly */
  11044. uint numPoints;
  11045. /* readonly */
  11046. TileObjectType2D objectType;
  11047. /* readonly */
  11048. Vector2 position;
  11049. /* readonly */
  11050. int refs;
  11051. /* readonly */
  11052. Vector2 size;
  11053. /* readonly */
  11054. int tileGid;
  11055. /* readonly */
  11056. Sprite2D tileSprite;
  11057. /* readonly */
  11058. String type;
  11059. /* readonly */
  11060. int weakRefs;
  11061. };
  11062. class Time
  11063. {
  11064. // Methods:
  11065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11066. // Properties:
  11067. /* readonly */
  11068. String category;
  11069. /* readonly */
  11070. float elapsedTime;
  11071. /* readonly */
  11072. uint frameNumber;
  11073. /* readonly */
  11074. int refs;
  11075. /* readonly */
  11076. uint systemTime;
  11077. /* readonly */
  11078. uint timeSinceEpoch;
  11079. /* readonly */
  11080. String timeStamp;
  11081. /* readonly */
  11082. float timeStep;
  11083. /* readonly */
  11084. StringHash type;
  11085. /* readonly */
  11086. String typeName;
  11087. /* readonly */
  11088. int weakRefs;
  11089. };
  11090. class Timer
  11091. {
  11092. // Methods:
  11093. uint GetMSec(bool);
  11094. void Reset();
  11095. };
  11096. class TmxFile2D
  11097. {
  11098. // Methods:
  11099. bool Load(File);
  11100. bool Load(VectorBuffer&);
  11101. bool Save(File) const;
  11102. bool Save(VectorBuffer&) const;
  11103. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11104. // Properties:
  11105. /* readonly */
  11106. String category;
  11107. /* readonly */
  11108. uint memoryUse;
  11109. String name;
  11110. /* readonly */
  11111. int refs;
  11112. /* readonly */
  11113. StringHash type;
  11114. /* readonly */
  11115. String typeName;
  11116. /* readonly */
  11117. uint useTimer;
  11118. /* readonly */
  11119. int weakRefs;
  11120. };
  11121. class ToolTip
  11122. {
  11123. // Methods:
  11124. void AddChild(UIElement);
  11125. void ApplyAttributes();
  11126. void BringToFront();
  11127. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11128. void DisableLayoutUpdate();
  11129. IntVector2 ElementToScreen(const IntVector2&);
  11130. void EnableLayoutUpdate();
  11131. uint FindChild(UIElement) const;
  11132. Variant GetAttribute(const String&) const;
  11133. ValueAnimation GetAttributeAnimation(const String&) const;
  11134. float GetAttributeAnimationSpeed(const String&) const;
  11135. float GetAttributeAnimationTime(const String&) const;
  11136. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11137. Variant GetAttributeDefault(const String&) const;
  11138. UIElement GetChild(const String&, bool = false) const;
  11139. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11140. Array<UIElement> GetChildren(bool = false) const;
  11141. UIElement GetElementEventSender() const;
  11142. bool GetInterceptNetworkUpdate(const String&) const;
  11143. uint GetNumChildren(bool) const;
  11144. void InsertChild(uint, UIElement);
  11145. bool IsInside(IntVector2, bool);
  11146. bool IsInsideCombined(IntVector2, bool);
  11147. bool Load(File, bool = false);
  11148. bool Load(VectorBuffer&, bool = false);
  11149. bool LoadChildXML(XMLFile, XMLFile = null);
  11150. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11151. bool LoadXML(File);
  11152. bool LoadXML(VectorBuffer&);
  11153. bool LoadXML(XMLFile, XMLFile);
  11154. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11155. bool LoadXML(const XMLElement&, bool = false);
  11156. void MarkNetworkUpdate() const;
  11157. void Remove();
  11158. void RemoveAllChildren();
  11159. void RemoveAttributeAnimation(const String&);
  11160. void RemoveChild(UIElement, uint = 0);
  11161. void RemoveChild(uint);
  11162. void RemoveInstanceDefault();
  11163. void RemoveObjectAnimation();
  11164. void ResetDeepEnabled();
  11165. void ResetToDefault();
  11166. bool Save(File) const;
  11167. bool Save(VectorBuffer&) const;
  11168. bool SaveXML(File, const String& = "\t");
  11169. bool SaveXML(VectorBuffer&, const String& = "\t");
  11170. bool SaveXML(XMLElement&) const;
  11171. IntVector2 ScreenToElement(const IntVector2&);
  11172. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11173. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11174. void SetAnimationTime(float);
  11175. bool SetAttribute(const String&, const Variant&);
  11176. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11177. void SetAttributeAnimationSpeed(const String&, float);
  11178. void SetAttributeAnimationTime(const String&, float);
  11179. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11180. void SetDeepEnabled(bool);
  11181. void SetEnabledRecursive(bool);
  11182. void SetFixedHeight(int);
  11183. void SetFixedSize(int, int);
  11184. void SetFixedWidth(int);
  11185. void SetInterceptNetworkUpdate(const String&, bool);
  11186. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11187. void SetMaxSize(int, int);
  11188. void SetMinSize(int, int);
  11189. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11190. void SetPosition(int, int);
  11191. void SetSize(int, int);
  11192. bool SetStyle(const String&, XMLFile = null);
  11193. bool SetStyle(const XMLElement&);
  11194. bool SetStyleAuto(XMLFile = null);
  11195. void UpdateLayout();
  11196. const Variant& GetVar(const StringHash&);
  11197. // Properties:
  11198. bool animationEnabled;
  11199. /* readonly */
  11200. Array<Variant> attributeDefaults;
  11201. /* readonly */
  11202. Array<AttributeInfo> attributeInfos;
  11203. Array<Variant> attributes;
  11204. bool bringToBack;
  11205. bool bringToFront;
  11206. /* readonly */
  11207. String category;
  11208. /* readonly */
  11209. IntVector2 childOffset;
  11210. /* readonly */
  11211. Array<UIElement> children;
  11212. IntRect clipBorder;
  11213. bool clipChildren;
  11214. /* writeonly */
  11215. Color color;
  11216. /* readonly */
  11217. bool colorGradient;
  11218. Array<Color> colors;
  11219. /* readonly */
  11220. IntRect combinedScreenRect;
  11221. XMLFile defaultStyle;
  11222. float delay;
  11223. /* readonly */
  11224. float derivedOpacity;
  11225. /* readonly */
  11226. uint dragButtonCombo;
  11227. /* readonly */
  11228. int dragButtonCount;
  11229. uint dragDropMode;
  11230. bool editable;
  11231. bool elementEventSender;
  11232. bool enabled;
  11233. /* readonly */
  11234. bool enabledSelf;
  11235. /* readonly */
  11236. bool fixedHeight;
  11237. /* readonly */
  11238. bool fixedSize;
  11239. /* readonly */
  11240. bool fixedWidth;
  11241. bool focus;
  11242. FocusMode focusMode;
  11243. int height;
  11244. HorizontalAlignment horizontalAlignment;
  11245. /* readonly */
  11246. bool hovering;
  11247. int indent;
  11248. int indentSpacing;
  11249. /* readonly */
  11250. int indentWidth;
  11251. bool internal;
  11252. IntRect layoutBorder;
  11253. Vector2 layoutFlexScale;
  11254. LayoutMode layoutMode;
  11255. int layoutSpacing;
  11256. int maxHeight;
  11257. IntVector2 maxSize;
  11258. int maxWidth;
  11259. int minHeight;
  11260. IntVector2 minSize;
  11261. int minWidth;
  11262. String name;
  11263. /* readonly */
  11264. uint numAllChildren;
  11265. /* readonly */
  11266. uint numAttributes;
  11267. /* readonly */
  11268. uint numChildren;
  11269. ObjectAnimation objectAnimation;
  11270. float opacity;
  11271. UIElement parent;
  11272. IntVector2 position;
  11273. int priority;
  11274. /* readonly */
  11275. int refs;
  11276. /* readonly */
  11277. UIElement root;
  11278. /* readonly */
  11279. IntVector2 screenPosition;
  11280. bool selected;
  11281. IntVector2 size;
  11282. bool sortChildren;
  11283. String style;
  11284. bool temporary;
  11285. TraversalMode traversalMode;
  11286. /* readonly */
  11287. StringHash type;
  11288. /* readonly */
  11289. String typeName;
  11290. bool useDerivedOpacity;
  11291. /* readonly */
  11292. VariantMap vars;
  11293. VerticalAlignment verticalAlignment;
  11294. bool visible;
  11295. /* readonly */
  11296. bool visibleEffective;
  11297. /* readonly */
  11298. int weakRefs;
  11299. int width;
  11300. };
  11301. class TouchState
  11302. {
  11303. // Properties:
  11304. IntVector2 delta;
  11305. IntVector2 lastPosition;
  11306. IntVector2 position;
  11307. float pressure;
  11308. int touchID;
  11309. /* readonly */
  11310. UIElement touchedElement;
  11311. };
  11312. class UI
  11313. {
  11314. // Methods:
  11315. void Clear();
  11316. void DebugDraw(UIElement);
  11317. UIElement GetElementAt(const IntVector2&, bool = true);
  11318. UIElement GetElementAt(int, int, bool = true);
  11319. bool HasModalElement() const;
  11320. bool IsDragging() const;
  11321. UIElement LoadLayout(File);
  11322. UIElement LoadLayout(File, XMLFile);
  11323. UIElement LoadLayout(VectorBuffer&);
  11324. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11325. UIElement LoadLayout(XMLFile);
  11326. UIElement LoadLayout(XMLFile, XMLFile);
  11327. bool SaveLayout(File, UIElement);
  11328. bool SaveLayout(VectorBuffer&, UIElement);
  11329. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11330. void SetFocusElement(UIElement, bool = false);
  11331. const Array<UIElement> GetDragElements();
  11332. // Properties:
  11333. /* readonly */
  11334. String category;
  11335. String clipBoardText;
  11336. Cursor cursor;
  11337. /* readonly */
  11338. IntVector2 cursorPosition;
  11339. float defaultToolTipDelay;
  11340. float doubleClickInterval;
  11341. int dragBeginDistance;
  11342. float dragBeginInterval;
  11343. UIElement focusElement;
  11344. bool forceAutoHint;
  11345. /* readonly */
  11346. UIElement frontElement;
  11347. int maxFontTextureSize;
  11348. /* readonly */
  11349. UIElement modalRoot;
  11350. bool nonFocusedMouseWheel;
  11351. /* readonly */
  11352. int refs;
  11353. /* readonly */
  11354. UIElement root;
  11355. /* readonly */
  11356. StringHash type;
  11357. /* readonly */
  11358. String typeName;
  11359. bool useMutableGlyphs;
  11360. bool useScreenKeyboard;
  11361. bool useSystemClipboard;
  11362. /* readonly */
  11363. int weakRefs;
  11364. };
  11365. class UIElement
  11366. {
  11367. // Methods:
  11368. void AddChild(UIElement);
  11369. void ApplyAttributes();
  11370. void BringToFront();
  11371. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11372. void DisableLayoutUpdate();
  11373. IntVector2 ElementToScreen(const IntVector2&);
  11374. void EnableLayoutUpdate();
  11375. uint FindChild(UIElement) const;
  11376. Variant GetAttribute(const String&) const;
  11377. ValueAnimation GetAttributeAnimation(const String&) const;
  11378. float GetAttributeAnimationSpeed(const String&) const;
  11379. float GetAttributeAnimationTime(const String&) const;
  11380. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11381. Variant GetAttributeDefault(const String&) const;
  11382. UIElement GetChild(const String&, bool = false) const;
  11383. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11384. Array<UIElement> GetChildren(bool = false) const;
  11385. UIElement GetElementEventSender() const;
  11386. bool GetInterceptNetworkUpdate(const String&) const;
  11387. uint GetNumChildren(bool) const;
  11388. void InsertChild(uint, UIElement);
  11389. bool IsInside(IntVector2, bool);
  11390. bool IsInsideCombined(IntVector2, bool);
  11391. bool Load(File, bool = false);
  11392. bool Load(VectorBuffer&, bool = false);
  11393. bool LoadChildXML(XMLFile, XMLFile = null);
  11394. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11395. bool LoadXML(File);
  11396. bool LoadXML(VectorBuffer&);
  11397. bool LoadXML(XMLFile, XMLFile);
  11398. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11399. bool LoadXML(const XMLElement&, bool = false);
  11400. void MarkNetworkUpdate() const;
  11401. void Remove();
  11402. void RemoveAllChildren();
  11403. void RemoveAttributeAnimation(const String&);
  11404. void RemoveChild(UIElement, uint = 0);
  11405. void RemoveChild(uint);
  11406. void RemoveInstanceDefault();
  11407. void RemoveObjectAnimation();
  11408. void ResetDeepEnabled();
  11409. void ResetToDefault();
  11410. bool Save(File) const;
  11411. bool Save(VectorBuffer&) const;
  11412. bool SaveXML(File, const String& = "\t");
  11413. bool SaveXML(VectorBuffer&, const String& = "\t");
  11414. bool SaveXML(XMLElement&) const;
  11415. IntVector2 ScreenToElement(const IntVector2&);
  11416. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11417. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11418. void SetAnimationTime(float);
  11419. bool SetAttribute(const String&, const Variant&);
  11420. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11421. void SetAttributeAnimationSpeed(const String&, float);
  11422. void SetAttributeAnimationTime(const String&, float);
  11423. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11424. void SetDeepEnabled(bool);
  11425. void SetEnabledRecursive(bool);
  11426. void SetFixedHeight(int);
  11427. void SetFixedSize(int, int);
  11428. void SetFixedWidth(int);
  11429. void SetInterceptNetworkUpdate(const String&, bool);
  11430. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11431. void SetMaxSize(int, int);
  11432. void SetMinSize(int, int);
  11433. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11434. void SetPosition(int, int);
  11435. void SetSize(int, int);
  11436. bool SetStyle(const String&, XMLFile = null);
  11437. bool SetStyle(const XMLElement&);
  11438. bool SetStyleAuto(XMLFile = null);
  11439. void UpdateLayout();
  11440. const Variant& GetVar(const StringHash&);
  11441. // Properties:
  11442. bool animationEnabled;
  11443. /* readonly */
  11444. Array<Variant> attributeDefaults;
  11445. /* readonly */
  11446. Array<AttributeInfo> attributeInfos;
  11447. Array<Variant> attributes;
  11448. bool bringToBack;
  11449. bool bringToFront;
  11450. /* readonly */
  11451. String category;
  11452. /* readonly */
  11453. IntVector2 childOffset;
  11454. /* readonly */
  11455. Array<UIElement> children;
  11456. IntRect clipBorder;
  11457. bool clipChildren;
  11458. /* writeonly */
  11459. Color color;
  11460. /* readonly */
  11461. bool colorGradient;
  11462. Array<Color> colors;
  11463. /* readonly */
  11464. IntRect combinedScreenRect;
  11465. XMLFile defaultStyle;
  11466. /* readonly */
  11467. float derivedOpacity;
  11468. /* readonly */
  11469. uint dragButtonCombo;
  11470. /* readonly */
  11471. int dragButtonCount;
  11472. uint dragDropMode;
  11473. bool editable;
  11474. bool elementEventSender;
  11475. bool enabled;
  11476. /* readonly */
  11477. bool enabledSelf;
  11478. /* readonly */
  11479. bool fixedHeight;
  11480. /* readonly */
  11481. bool fixedSize;
  11482. /* readonly */
  11483. bool fixedWidth;
  11484. bool focus;
  11485. FocusMode focusMode;
  11486. int height;
  11487. HorizontalAlignment horizontalAlignment;
  11488. /* readonly */
  11489. bool hovering;
  11490. int indent;
  11491. int indentSpacing;
  11492. /* readonly */
  11493. int indentWidth;
  11494. bool internal;
  11495. IntRect layoutBorder;
  11496. Vector2 layoutFlexScale;
  11497. LayoutMode layoutMode;
  11498. int layoutSpacing;
  11499. int maxHeight;
  11500. IntVector2 maxSize;
  11501. int maxWidth;
  11502. int minHeight;
  11503. IntVector2 minSize;
  11504. int minWidth;
  11505. String name;
  11506. /* readonly */
  11507. uint numAllChildren;
  11508. /* readonly */
  11509. uint numAttributes;
  11510. /* readonly */
  11511. uint numChildren;
  11512. ObjectAnimation objectAnimation;
  11513. float opacity;
  11514. UIElement parent;
  11515. IntVector2 position;
  11516. int priority;
  11517. /* readonly */
  11518. int refs;
  11519. /* readonly */
  11520. UIElement root;
  11521. /* readonly */
  11522. IntVector2 screenPosition;
  11523. bool selected;
  11524. IntVector2 size;
  11525. bool sortChildren;
  11526. String style;
  11527. bool temporary;
  11528. TraversalMode traversalMode;
  11529. /* readonly */
  11530. StringHash type;
  11531. /* readonly */
  11532. String typeName;
  11533. bool useDerivedOpacity;
  11534. /* readonly */
  11535. VariantMap vars;
  11536. VerticalAlignment verticalAlignment;
  11537. bool visible;
  11538. /* readonly */
  11539. bool visibleEffective;
  11540. /* readonly */
  11541. int weakRefs;
  11542. int width;
  11543. };
  11544. class ValueAnimation
  11545. {
  11546. // Methods:
  11547. bool Load(File);
  11548. bool Load(VectorBuffer&);
  11549. bool Save(File) const;
  11550. bool Save(VectorBuffer&) const;
  11551. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11552. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  11553. void SetKeyFrame(float, const Variant&);
  11554. // Properties:
  11555. /* readonly */
  11556. String category;
  11557. InterpMethod interpolationMethod;
  11558. /* readonly */
  11559. uint memoryUse;
  11560. String name;
  11561. /* readonly */
  11562. int refs;
  11563. float splineTension;
  11564. /* readonly */
  11565. StringHash type;
  11566. /* readonly */
  11567. String typeName;
  11568. /* readonly */
  11569. uint useTimer;
  11570. VariantType valueType;
  11571. /* readonly */
  11572. int weakRefs;
  11573. };
  11574. class Variant
  11575. {
  11576. // Methods:
  11577. void Clear();
  11578. const Color& GetColor() const;
  11579. void FromString(VariantType, const String&);
  11580. void FromString(const String&, const String&);
  11581. bool GetBool() const;
  11582. double GetDouble() const;
  11583. float GetFloat() const;
  11584. int GetInt() const;
  11585. RefCounted GetPtr() const;
  11586. ScriptObject GetScriptObject() const;
  11587. StringHash GetStringHash() const;
  11588. Array<String> GetStringVector() const;
  11589. uint GetUInt() const;
  11590. Array<Variant> GetVariantVector() const;
  11591. const IntRect& GetIntRect() const;
  11592. const IntVector2& GetIntVector2() const;
  11593. const Matrix3& GetMatrix3() const;
  11594. const Matrix3x4& GetMatrix3x4() const;
  11595. const Matrix4& GetMatrix4() const;
  11596. const Quaternion& GetQuaternion() const;
  11597. const ResourceRef& GetResourceRef() const;
  11598. const ResourceRefList& GetResourceRefList() const;
  11599. const String& GetString() const;
  11600. String ToString() const;
  11601. const VariantMap& GetVariantMap() const;
  11602. const Vector2& GetVector2() const;
  11603. const Vector3& GetVector3() const;
  11604. const Vector4& GetVector4() const;
  11605. const VectorBuffer GetBuffer() const;
  11606. // Properties:
  11607. /* readonly */
  11608. bool empty;
  11609. /* readonly */
  11610. VariantType type;
  11611. /* readonly */
  11612. String typeName;
  11613. /* readonly */
  11614. bool zero;
  11615. };
  11616. class VariantMap
  11617. {
  11618. // Methods:
  11619. void Clear();
  11620. bool Contains(StringHash) const;
  11621. bool Contains(const String&) const;
  11622. bool Erase(StringHash);
  11623. bool Erase(const String&);
  11624. // Properties:
  11625. /* readonly */
  11626. Array<StringHash> keys;
  11627. /* readonly */
  11628. uint length;
  11629. /* readonly */
  11630. Array<Variant> values;
  11631. };
  11632. class Vector2
  11633. {
  11634. // Methods:
  11635. Vector2 Abs() const;
  11636. float AbsDotProduct(const Vector2&) const;
  11637. float DotProduct(const Vector2&) const;
  11638. bool Equals(const Vector2&) const;
  11639. bool IsNaN() const;
  11640. Vector2 Lerp(const Vector2&, float) const;
  11641. void Normalize();
  11642. Vector2 Normalized() const;
  11643. String ToString() const;
  11644. // Properties:
  11645. /* readonly */
  11646. Array<float> data;
  11647. /* readonly */
  11648. float length;
  11649. /* readonly */
  11650. float lengthSquared;
  11651. float x;
  11652. float y;
  11653. };
  11654. class Vector3
  11655. {
  11656. // Methods:
  11657. Vector3 Abs() const;
  11658. float AbsDotProduct(const Vector3&) const;
  11659. float Angle(const Vector3&) const;
  11660. Vector3 CrossProduct(const Vector3&) const;
  11661. float DotProduct(const Vector3&) const;
  11662. bool Equals(const Vector3&) const;
  11663. bool IsNaN() const;
  11664. Vector3 Lerp(const Vector3&, float) const;
  11665. void Normalize();
  11666. Vector3 Normalized() const;
  11667. String ToString() const;
  11668. // Properties:
  11669. /* readonly */
  11670. Array<float> data;
  11671. /* readonly */
  11672. float length;
  11673. /* readonly */
  11674. float lengthSquared;
  11675. float x;
  11676. float y;
  11677. float z;
  11678. };
  11679. class Vector4
  11680. {
  11681. // Methods:
  11682. Vector4 Abs() const;
  11683. float AbsDotProduct(const Vector4&) const;
  11684. float DotProduct(const Vector4&) const;
  11685. bool Equals(const Vector4&) const;
  11686. bool IsNaN() const;
  11687. Vector4 Lerp(const Vector4&, float) const;
  11688. String ToString() const;
  11689. // Properties:
  11690. /* readonly */
  11691. Array<float> data;
  11692. float w;
  11693. float x;
  11694. float y;
  11695. float z;
  11696. };
  11697. class VectorBuffer
  11698. {
  11699. // Methods:
  11700. void Clear();
  11701. Array<uint8> Read(uint);
  11702. bool ReadBool();
  11703. BoundingBox ReadBoundingBox();
  11704. int8 ReadByte();
  11705. Color ReadColor();
  11706. double ReadDouble();
  11707. String ReadFileID();
  11708. float ReadFloat();
  11709. int ReadInt();
  11710. IntRect ReadIntRect();
  11711. IntVector2 ReadIntVector2();
  11712. String ReadLine();
  11713. Matrix3 ReadMatrix3();
  11714. Matrix3x4 ReadMatrix3x4();
  11715. Matrix4 ReadMatrix4();
  11716. uint ReadNetID();
  11717. Quaternion ReadPackedQuaternion();
  11718. Vector3 ReadPackedVector3(float);
  11719. Quaternion ReadQuaternion();
  11720. int16 ReadShort();
  11721. String ReadString();
  11722. StringHash ReadStringHash();
  11723. uint8 ReadUByte();
  11724. uint ReadUInt();
  11725. uint16 ReadUShort();
  11726. uint ReadVLE();
  11727. Variant ReadVariant();
  11728. VariantMap ReadVariantMap();
  11729. Vector2 ReadVector2();
  11730. Vector3 ReadVector3();
  11731. Vector4 ReadVector4();
  11732. VectorBuffer ReadVectorBuffer(uint);
  11733. void Resize(uint);
  11734. uint Seek(uint);
  11735. void SetData(Deserializer, uint);
  11736. uint Write(Array<uint8>);
  11737. bool WriteBool(bool);
  11738. bool WriteBoundingBox(const BoundingBox&);
  11739. bool WriteByte(int8);
  11740. bool WriteColor(const Color&);
  11741. bool WriteDouble(double);
  11742. bool WriteFileID(const String&);
  11743. bool WriteFloat(float);
  11744. bool WriteInt(int);
  11745. bool WriteIntRect(const IntRect&);
  11746. bool WriteIntVector2(const IntVector2&);
  11747. bool WriteLine(const String&);
  11748. bool WriteMatrix3(const Matrix3&);
  11749. bool WriteMatrix3x4(const Matrix3x4&);
  11750. bool WriteMatrix4(const Matrix4&);
  11751. bool WriteNetID(uint);
  11752. bool WritePackedQuaternion(const Quaternion&);
  11753. bool WritePackedVector3(const Vector3&, float);
  11754. bool WriteQuaternion(const Quaternion&);
  11755. bool WriteShort(int16);
  11756. bool WriteString(const String&);
  11757. bool WriteStringHash(const StringHash&);
  11758. bool WriteUByte(uint8);
  11759. bool WriteUInt(uint);
  11760. bool WriteUShort(uint16);
  11761. bool WriteVLE(uint);
  11762. bool WriteVariant(const Variant&);
  11763. bool WriteVariantMap(const VariantMap&);
  11764. bool WriteVector2(const Vector2&);
  11765. bool WriteVector3(const Vector3&);
  11766. bool WriteVector4(const Vector4&);
  11767. bool WriteVectorBuffer(const VectorBuffer&);
  11768. // Properties:
  11769. /* readonly */
  11770. uint checksum;
  11771. /* readonly */
  11772. bool eof;
  11773. /* readonly */
  11774. String name;
  11775. /* readonly */
  11776. uint position;
  11777. /* readonly */
  11778. uint size;
  11779. };
  11780. class VertexBuffer
  11781. {
  11782. // Methods:
  11783. VectorBuffer GetData();
  11784. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11785. bool SetData(VectorBuffer&);
  11786. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  11787. void SetSize(uint, uint, bool = false);
  11788. // Properties:
  11789. /* readonly */
  11790. String category;
  11791. /* readonly */
  11792. bool dynamic;
  11793. /* readonly */
  11794. uint elementMask;
  11795. /* readonly */
  11796. int refs;
  11797. bool shadowed;
  11798. /* readonly */
  11799. StringHash type;
  11800. /* readonly */
  11801. String typeName;
  11802. /* readonly */
  11803. uint vertexCount;
  11804. /* readonly */
  11805. uint vertexSize;
  11806. /* readonly */
  11807. int weakRefs;
  11808. };
  11809. class View3D
  11810. {
  11811. // Methods:
  11812. void AddChild(UIElement);
  11813. void ApplyAttributes();
  11814. void BringToFront();
  11815. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11816. void DisableLayoutUpdate();
  11817. IntVector2 ElementToScreen(const IntVector2&);
  11818. void EnableLayoutUpdate();
  11819. uint FindChild(UIElement) const;
  11820. Variant GetAttribute(const String&) const;
  11821. ValueAnimation GetAttributeAnimation(const String&) const;
  11822. float GetAttributeAnimationSpeed(const String&) const;
  11823. float GetAttributeAnimationTime(const String&) const;
  11824. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11825. Variant GetAttributeDefault(const String&) const;
  11826. UIElement GetChild(const String&, bool = false) const;
  11827. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11828. Array<UIElement> GetChildren(bool = false) const;
  11829. UIElement GetElementEventSender() const;
  11830. bool GetInterceptNetworkUpdate(const String&) const;
  11831. uint GetNumChildren(bool) const;
  11832. void InsertChild(uint, UIElement);
  11833. bool IsInside(IntVector2, bool);
  11834. bool IsInsideCombined(IntVector2, bool);
  11835. bool Load(File, bool = false);
  11836. bool Load(VectorBuffer&, bool = false);
  11837. bool LoadChildXML(XMLFile, XMLFile = null);
  11838. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11839. bool LoadXML(File);
  11840. bool LoadXML(VectorBuffer&);
  11841. bool LoadXML(XMLFile, XMLFile);
  11842. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11843. bool LoadXML(const XMLElement&, bool = false);
  11844. void MarkNetworkUpdate() const;
  11845. void QueueUpdate();
  11846. void Remove();
  11847. void RemoveAllChildren();
  11848. void RemoveAttributeAnimation(const String&);
  11849. void RemoveChild(UIElement, uint = 0);
  11850. void RemoveChild(uint);
  11851. void RemoveInstanceDefault();
  11852. void RemoveObjectAnimation();
  11853. void ResetDeepEnabled();
  11854. void ResetToDefault();
  11855. bool Save(File) const;
  11856. bool Save(VectorBuffer&) const;
  11857. bool SaveXML(File, const String& = "\t");
  11858. bool SaveXML(VectorBuffer&, const String& = "\t");
  11859. bool SaveXML(XMLElement&) const;
  11860. IntVector2 ScreenToElement(const IntVector2&);
  11861. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11862. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11863. void SetAnimationTime(float);
  11864. bool SetAttribute(const String&, const Variant&);
  11865. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11866. void SetAttributeAnimationSpeed(const String&, float);
  11867. void SetAttributeAnimationTime(const String&, float);
  11868. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11869. void SetDeepEnabled(bool);
  11870. void SetEnabledRecursive(bool);
  11871. void SetFixedHeight(int);
  11872. void SetFixedSize(int, int);
  11873. void SetFixedWidth(int);
  11874. void SetFullImageRect();
  11875. void SetHoverOffset(int, int);
  11876. void SetInterceptNetworkUpdate(const String&, bool);
  11877. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11878. void SetMaxSize(int, int);
  11879. void SetMinSize(int, int);
  11880. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11881. void SetPosition(int, int);
  11882. void SetSize(int, int);
  11883. bool SetStyle(const String&, XMLFile = null);
  11884. bool SetStyle(const XMLElement&);
  11885. bool SetStyleAuto(XMLFile = null);
  11886. void SetView(Scene, Camera, bool = true);
  11887. void UpdateLayout();
  11888. const Variant& GetVar(const StringHash&);
  11889. // Properties:
  11890. bool animationEnabled;
  11891. /* readonly */
  11892. Array<Variant> attributeDefaults;
  11893. /* readonly */
  11894. Array<AttributeInfo> attributeInfos;
  11895. Array<Variant> attributes;
  11896. bool autoUpdate;
  11897. BlendMode blendMode;
  11898. IntRect border;
  11899. bool bringToBack;
  11900. bool bringToFront;
  11901. /* readonly */
  11902. Node cameraNode;
  11903. /* readonly */
  11904. String category;
  11905. /* readonly */
  11906. IntVector2 childOffset;
  11907. /* readonly */
  11908. Array<UIElement> children;
  11909. IntRect clipBorder;
  11910. bool clipChildren;
  11911. /* writeonly */
  11912. Color color;
  11913. /* readonly */
  11914. bool colorGradient;
  11915. Array<Color> colors;
  11916. /* readonly */
  11917. IntRect combinedScreenRect;
  11918. XMLFile defaultStyle;
  11919. /* readonly */
  11920. Texture2D depthTexture;
  11921. /* readonly */
  11922. float derivedOpacity;
  11923. /* readonly */
  11924. uint dragButtonCombo;
  11925. /* readonly */
  11926. int dragButtonCount;
  11927. uint dragDropMode;
  11928. bool editable;
  11929. bool elementEventSender;
  11930. bool enabled;
  11931. /* readonly */
  11932. bool enabledSelf;
  11933. /* readonly */
  11934. bool fixedHeight;
  11935. bool fixedHeightResizing;
  11936. /* readonly */
  11937. bool fixedSize;
  11938. /* readonly */
  11939. bool fixedWidth;
  11940. bool fixedWidthResizing;
  11941. bool focus;
  11942. FocusMode focusMode;
  11943. uint format;
  11944. int height;
  11945. HorizontalAlignment horizontalAlignment;
  11946. IntVector2 hoverOffset;
  11947. /* readonly */
  11948. bool hovering;
  11949. IntRect imageBorder;
  11950. IntRect imageRect;
  11951. int indent;
  11952. int indentSpacing;
  11953. /* readonly */
  11954. int indentWidth;
  11955. bool internal;
  11956. IntRect layoutBorder;
  11957. Vector2 layoutFlexScale;
  11958. LayoutMode layoutMode;
  11959. int layoutSpacing;
  11960. int maxHeight;
  11961. IntVector2 maxSize;
  11962. int maxWidth;
  11963. int minHeight;
  11964. IntVector2 minSize;
  11965. int minWidth;
  11966. bool modal;
  11967. bool modalAutoDismiss;
  11968. Color modalFrameColor;
  11969. IntVector2 modalFrameSize;
  11970. Color modalShadeColor;
  11971. bool movable;
  11972. String name;
  11973. /* readonly */
  11974. uint numAllChildren;
  11975. /* readonly */
  11976. uint numAttributes;
  11977. /* readonly */
  11978. uint numChildren;
  11979. ObjectAnimation objectAnimation;
  11980. float opacity;
  11981. UIElement parent;
  11982. IntVector2 position;
  11983. int priority;
  11984. /* readonly */
  11985. int refs;
  11986. /* readonly */
  11987. Texture2D renderTexture;
  11988. bool resizable;
  11989. IntRect resizeBorder;
  11990. /* readonly */
  11991. UIElement root;
  11992. /* readonly */
  11993. Scene scene;
  11994. /* readonly */
  11995. IntVector2 screenPosition;
  11996. bool selected;
  11997. IntVector2 size;
  11998. bool sortChildren;
  11999. String style;
  12000. bool temporary;
  12001. Texture texture;
  12002. bool tiled;
  12003. TraversalMode traversalMode;
  12004. /* readonly */
  12005. StringHash type;
  12006. /* readonly */
  12007. String typeName;
  12008. bool useDerivedOpacity;
  12009. /* readonly */
  12010. VariantMap vars;
  12011. VerticalAlignment verticalAlignment;
  12012. /* readonly */
  12013. Viewport viewport;
  12014. bool visible;
  12015. /* readonly */
  12016. bool visibleEffective;
  12017. /* readonly */
  12018. int weakRefs;
  12019. int width;
  12020. };
  12021. class Viewport
  12022. {
  12023. // Methods:
  12024. Ray GetScreenRay(int, int) const;
  12025. Vector3 ScreenToWorldPoint(int, int, float) const;
  12026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12027. void SetRenderPath(XMLFile);
  12028. Vector2 WorldToScreenPoint(const Vector3&) const;
  12029. // Properties:
  12030. Camera camera;
  12031. /* readonly */
  12032. String category;
  12033. Camera cullCamera;
  12034. bool drawDebug;
  12035. IntRect rect;
  12036. /* readonly */
  12037. int refs;
  12038. RenderPath renderPath;
  12039. Scene scene;
  12040. /* readonly */
  12041. StringHash type;
  12042. /* readonly */
  12043. String typeName;
  12044. /* readonly */
  12045. int weakRefs;
  12046. };
  12047. class WeakHandle
  12048. {
  12049. // Methods:
  12050. RefCounted Get() const;
  12051. // Properties:
  12052. /* readonly */
  12053. bool expired;
  12054. /* readonly */
  12055. int refs;
  12056. /* readonly */
  12057. int weakRefs;
  12058. };
  12059. class Window
  12060. {
  12061. // Methods:
  12062. void AddChild(UIElement);
  12063. void ApplyAttributes();
  12064. void BringToFront();
  12065. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12066. void DisableLayoutUpdate();
  12067. IntVector2 ElementToScreen(const IntVector2&);
  12068. void EnableLayoutUpdate();
  12069. uint FindChild(UIElement) const;
  12070. Variant GetAttribute(const String&) const;
  12071. ValueAnimation GetAttributeAnimation(const String&) const;
  12072. float GetAttributeAnimationSpeed(const String&) const;
  12073. float GetAttributeAnimationTime(const String&) const;
  12074. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12075. Variant GetAttributeDefault(const String&) const;
  12076. UIElement GetChild(const String&, bool = false) const;
  12077. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12078. Array<UIElement> GetChildren(bool = false) const;
  12079. UIElement GetElementEventSender() const;
  12080. bool GetInterceptNetworkUpdate(const String&) const;
  12081. uint GetNumChildren(bool) const;
  12082. void InsertChild(uint, UIElement);
  12083. bool IsInside(IntVector2, bool);
  12084. bool IsInsideCombined(IntVector2, bool);
  12085. bool Load(File, bool = false);
  12086. bool Load(VectorBuffer&, bool = false);
  12087. bool LoadChildXML(XMLFile, XMLFile = null);
  12088. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12089. bool LoadXML(File);
  12090. bool LoadXML(VectorBuffer&);
  12091. bool LoadXML(XMLFile, XMLFile);
  12092. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12093. bool LoadXML(const XMLElement&, bool = false);
  12094. void MarkNetworkUpdate() const;
  12095. void Remove();
  12096. void RemoveAllChildren();
  12097. void RemoveAttributeAnimation(const String&);
  12098. void RemoveChild(UIElement, uint = 0);
  12099. void RemoveChild(uint);
  12100. void RemoveInstanceDefault();
  12101. void RemoveObjectAnimation();
  12102. void ResetDeepEnabled();
  12103. void ResetToDefault();
  12104. bool Save(File) const;
  12105. bool Save(VectorBuffer&) const;
  12106. bool SaveXML(File, const String& = "\t");
  12107. bool SaveXML(VectorBuffer&, const String& = "\t");
  12108. bool SaveXML(XMLElement&) const;
  12109. IntVector2 ScreenToElement(const IntVector2&);
  12110. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12111. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12112. void SetAnimationTime(float);
  12113. bool SetAttribute(const String&, const Variant&);
  12114. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12115. void SetAttributeAnimationSpeed(const String&, float);
  12116. void SetAttributeAnimationTime(const String&, float);
  12117. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12118. void SetDeepEnabled(bool);
  12119. void SetEnabledRecursive(bool);
  12120. void SetFixedHeight(int);
  12121. void SetFixedSize(int, int);
  12122. void SetFixedWidth(int);
  12123. void SetFullImageRect();
  12124. void SetHoverOffset(int, int);
  12125. void SetInterceptNetworkUpdate(const String&, bool);
  12126. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12127. void SetMaxSize(int, int);
  12128. void SetMinSize(int, int);
  12129. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12130. void SetPosition(int, int);
  12131. void SetSize(int, int);
  12132. bool SetStyle(const String&, XMLFile = null);
  12133. bool SetStyle(const XMLElement&);
  12134. bool SetStyleAuto(XMLFile = null);
  12135. void UpdateLayout();
  12136. const Variant& GetVar(const StringHash&);
  12137. // Properties:
  12138. bool animationEnabled;
  12139. /* readonly */
  12140. Array<Variant> attributeDefaults;
  12141. /* readonly */
  12142. Array<AttributeInfo> attributeInfos;
  12143. Array<Variant> attributes;
  12144. BlendMode blendMode;
  12145. IntRect border;
  12146. bool bringToBack;
  12147. bool bringToFront;
  12148. /* readonly */
  12149. String category;
  12150. /* readonly */
  12151. IntVector2 childOffset;
  12152. /* readonly */
  12153. Array<UIElement> children;
  12154. IntRect clipBorder;
  12155. bool clipChildren;
  12156. /* writeonly */
  12157. Color color;
  12158. /* readonly */
  12159. bool colorGradient;
  12160. Array<Color> colors;
  12161. /* readonly */
  12162. IntRect combinedScreenRect;
  12163. XMLFile defaultStyle;
  12164. /* readonly */
  12165. float derivedOpacity;
  12166. /* readonly */
  12167. uint dragButtonCombo;
  12168. /* readonly */
  12169. int dragButtonCount;
  12170. uint dragDropMode;
  12171. bool editable;
  12172. bool elementEventSender;
  12173. bool enabled;
  12174. /* readonly */
  12175. bool enabledSelf;
  12176. /* readonly */
  12177. bool fixedHeight;
  12178. bool fixedHeightResizing;
  12179. /* readonly */
  12180. bool fixedSize;
  12181. /* readonly */
  12182. bool fixedWidth;
  12183. bool fixedWidthResizing;
  12184. bool focus;
  12185. FocusMode focusMode;
  12186. int height;
  12187. HorizontalAlignment horizontalAlignment;
  12188. IntVector2 hoverOffset;
  12189. /* readonly */
  12190. bool hovering;
  12191. IntRect imageBorder;
  12192. IntRect imageRect;
  12193. int indent;
  12194. int indentSpacing;
  12195. /* readonly */
  12196. int indentWidth;
  12197. bool internal;
  12198. IntRect layoutBorder;
  12199. Vector2 layoutFlexScale;
  12200. LayoutMode layoutMode;
  12201. int layoutSpacing;
  12202. int maxHeight;
  12203. IntVector2 maxSize;
  12204. int maxWidth;
  12205. int minHeight;
  12206. IntVector2 minSize;
  12207. int minWidth;
  12208. bool modal;
  12209. bool modalAutoDismiss;
  12210. Color modalFrameColor;
  12211. IntVector2 modalFrameSize;
  12212. Color modalShadeColor;
  12213. bool movable;
  12214. String name;
  12215. /* readonly */
  12216. uint numAllChildren;
  12217. /* readonly */
  12218. uint numAttributes;
  12219. /* readonly */
  12220. uint numChildren;
  12221. ObjectAnimation objectAnimation;
  12222. float opacity;
  12223. UIElement parent;
  12224. IntVector2 position;
  12225. int priority;
  12226. /* readonly */
  12227. int refs;
  12228. bool resizable;
  12229. IntRect resizeBorder;
  12230. /* readonly */
  12231. UIElement root;
  12232. /* readonly */
  12233. IntVector2 screenPosition;
  12234. bool selected;
  12235. IntVector2 size;
  12236. bool sortChildren;
  12237. String style;
  12238. bool temporary;
  12239. Texture texture;
  12240. bool tiled;
  12241. TraversalMode traversalMode;
  12242. /* readonly */
  12243. StringHash type;
  12244. /* readonly */
  12245. String typeName;
  12246. bool useDerivedOpacity;
  12247. /* readonly */
  12248. VariantMap vars;
  12249. VerticalAlignment verticalAlignment;
  12250. bool visible;
  12251. /* readonly */
  12252. bool visibleEffective;
  12253. /* readonly */
  12254. int weakRefs;
  12255. int width;
  12256. };
  12257. class XMLElement
  12258. {
  12259. // Methods:
  12260. XMLElement CreateChild(const String&);
  12261. String GetAttribute(const String& = String ( )) const;
  12262. String GetAttributeLower(const String&) const;
  12263. Array<String> GetAttributeNames() const;
  12264. String GetAttributeUpper(const String&) const;
  12265. bool GetBool(const String&) const;
  12266. BoundingBox GetBoundingBox() const;
  12267. XMLElement GetChild(const String& = String ( )) const;
  12268. Color GetColor(const String&) const;
  12269. double GetDouble(const String&) const;
  12270. float GetFloat(const String&) const;
  12271. int GetInt(const String&) const;
  12272. Matrix3 GetMatrix3(const String&) const;
  12273. Matrix3x4 GetMatrix3x4(const String&) const;
  12274. Matrix4 GetMatrix4(const String&) const;
  12275. XMLElement GetNext(const String& = String ( )) const;
  12276. Quaternion GetQuaternion(const String&) const;
  12277. ResourceRef GetResourceRef() const;
  12278. ResourceRefList GetResourceRefList() const;
  12279. uint GetUInt(const String&) const;
  12280. String GetValue() const;
  12281. Variant GetVariant() const;
  12282. VariantMap GetVariantMap() const;
  12283. Array<Variant> GetVariantVector() const;
  12284. Vector2 GetVector2(const String&) const;
  12285. Vector3 GetVector3(const String&) const;
  12286. Vector4 GetVector4(const String&) const;
  12287. Variant GetVectorVariant(const String&) const;
  12288. bool HasAttribute(const String&) const;
  12289. bool HasChild(const String&) const;
  12290. bool RemoveAttribute(const String& = String ( ));
  12291. bool RemoveChild(const String&);
  12292. bool RemoveChild(const XMLElement&);
  12293. bool RemoveChildren(const String& = String ( ));
  12294. XPathResultSet Select(const String&);
  12295. XPathResultSet SelectPrepared(const XPathQuery&);
  12296. XMLElement SelectSingle(const String&);
  12297. XMLElement SelectSinglePrepared(const XPathQuery&);
  12298. bool SetAttribute(const String&);
  12299. bool SetAttribute(const String&, const String&);
  12300. bool SetBool(const String&, bool);
  12301. bool SetBoundingBox(const BoundingBox&);
  12302. bool SetColor(const String&, const Color&);
  12303. bool SetDouble(const String&, double);
  12304. bool SetFloat(const String&, float);
  12305. bool SetInt(const String&, int);
  12306. bool SetMatrix3(const String&, const Matrix3&);
  12307. bool SetMatrix3x4(const String&, const Matrix3x4&);
  12308. bool SetMatrix4(const String&, const Matrix4&);
  12309. bool SetQuaternion(const String&, const Quaternion&);
  12310. bool SetResourceRef(const String&, const ResourceRef&);
  12311. bool SetResourceRefList(const String&, const ResourceRefList&);
  12312. bool SetUInt(const String&, uint);
  12313. bool SetValue(const String&);
  12314. bool SetVariant(const Variant&);
  12315. bool SetVariantMap(const VariantMap&);
  12316. bool SetVariantVector(Array<Variant>);
  12317. bool SetVector2(const String&, const Vector2&);
  12318. bool SetVector3(const String&, const Vector3&);
  12319. bool SetVector4(const String&, const Vector4&);
  12320. bool SetVectorVariant(const String&, const Variant&);
  12321. // Properties:
  12322. /* readonly */
  12323. XMLFile file;
  12324. /* readonly */
  12325. bool isNull;
  12326. /* readonly */
  12327. String name;
  12328. /* readonly */
  12329. XMLElement nextResult;
  12330. /* readonly */
  12331. bool notNull;
  12332. /* readonly */
  12333. uint numAttributes;
  12334. /* readonly */
  12335. XMLElement parent;
  12336. String value;
  12337. };
  12338. class XMLFile
  12339. {
  12340. // Methods:
  12341. XMLElement CreateRoot(const String&);
  12342. bool FromString(const String&);
  12343. XMLElement GetRoot(const String& = String ( ));
  12344. bool Load(File);
  12345. bool Load(VectorBuffer&);
  12346. void Patch(XMLElement);
  12347. void Patch(XMLFile);
  12348. bool Save(File) const;
  12349. bool Save(File, const String&) const;
  12350. bool Save(VectorBuffer&) const;
  12351. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12352. String ToString(const String& = String ( "\t" )) const;
  12353. // Properties:
  12354. /* readonly */
  12355. String category;
  12356. /* readonly */
  12357. uint memoryUse;
  12358. String name;
  12359. /* readonly */
  12360. int refs;
  12361. /* readonly */
  12362. XMLElement root;
  12363. /* readonly */
  12364. StringHash type;
  12365. /* readonly */
  12366. String typeName;
  12367. /* readonly */
  12368. uint useTimer;
  12369. /* readonly */
  12370. int weakRefs;
  12371. };
  12372. class XPathQuery
  12373. {
  12374. // Methods:
  12375. void Bind();
  12376. void Clear();
  12377. XPathResultSet Evaluate(XMLElement);
  12378. bool EvaluateToBool(XMLElement);
  12379. float EvaluateToFloat(XMLElement);
  12380. String EvaluateToString(XMLElement);
  12381. bool SetQuery(const String&, const String& = String ( ), bool = true);
  12382. bool SetVariable(const String&, bool);
  12383. bool SetVariable(const String&, const String&);
  12384. bool SetVariable(const String&, const XPathResultSet&);
  12385. bool SetVariable(const String&, float);
  12386. // Properties:
  12387. String query;
  12388. };
  12389. class XPathResultSet
  12390. {
  12391. // Properties:
  12392. /* readonly */
  12393. bool empty;
  12394. /* readonly */
  12395. XMLElement firstResult;
  12396. /* readonly */
  12397. uint size;
  12398. };
  12399. class Zone
  12400. {
  12401. // Methods:
  12402. void ApplyAttributes();
  12403. void DrawDebugGeometry(DebugRenderer, bool);
  12404. Variant GetAttribute(const String&) const;
  12405. ValueAnimation GetAttributeAnimation(const String&) const;
  12406. float GetAttributeAnimationSpeed(const String&) const;
  12407. float GetAttributeAnimationTime(const String&) const;
  12408. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12409. Variant GetAttributeDefault(const String&) const;
  12410. bool GetInterceptNetworkUpdate(const String&) const;
  12411. bool IsInView(Camera) const;
  12412. bool Load(File, bool = false);
  12413. bool Load(VectorBuffer&, bool = false);
  12414. bool LoadXML(const XMLElement&, bool = false);
  12415. void MarkNetworkUpdate() const;
  12416. void Remove();
  12417. void RemoveAttributeAnimation(const String&);
  12418. void RemoveInstanceDefault();
  12419. void RemoveObjectAnimation();
  12420. void ResetToDefault();
  12421. bool Save(File) const;
  12422. bool Save(VectorBuffer&) const;
  12423. bool SaveXML(XMLElement&) const;
  12424. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12425. void SetAnimationTime(float);
  12426. bool SetAttribute(const String&, const Variant&);
  12427. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12428. void SetAttributeAnimationSpeed(const String&, float);
  12429. void SetAttributeAnimationTime(const String&, float);
  12430. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12431. void SetInterceptNetworkUpdate(const String&, bool);
  12432. // Properties:
  12433. Color ambientColor;
  12434. /* readonly */
  12435. Color ambientEndColor;
  12436. bool ambientGradient;
  12437. /* readonly */
  12438. Color ambientStartColor;
  12439. bool animationEnabled;
  12440. /* readonly */
  12441. Array<Variant> attributeDefaults;
  12442. /* readonly */
  12443. Array<AttributeInfo> attributeInfos;
  12444. Array<Variant> attributes;
  12445. BoundingBox boundingBox;
  12446. bool castShadows;
  12447. /* readonly */
  12448. String category;
  12449. float drawDistance;
  12450. bool enabled;
  12451. /* readonly */
  12452. bool enabledEffective;
  12453. Color fogColor;
  12454. float fogEnd;
  12455. float fogHeight;
  12456. float fogHeightScale;
  12457. float fogStart;
  12458. bool heightFog;
  12459. /* readonly */
  12460. uint id;
  12461. /* readonly */
  12462. bool inView;
  12463. /* readonly */
  12464. Matrix3x4 inverseWorldTransform;
  12465. uint lightMask;
  12466. float lodBias;
  12467. uint maxLights;
  12468. /* readonly */
  12469. Node node;
  12470. /* readonly */
  12471. uint numAttributes;
  12472. ObjectAnimation objectAnimation;
  12473. bool occludee;
  12474. bool occluder;
  12475. bool override;
  12476. int priority;
  12477. /* readonly */
  12478. int refs;
  12479. float shadowDistance;
  12480. uint shadowMask;
  12481. bool temporary;
  12482. /* readonly */
  12483. StringHash type;
  12484. /* readonly */
  12485. String typeName;
  12486. uint viewMask;
  12487. /* readonly */
  12488. int weakRefs;
  12489. /* readonly */
  12490. BoundingBox worldBoundingBox;
  12491. uint zoneMask;
  12492. Texture zoneTexture;
  12493. };
  12494. // Enumerations
  12495. enum BlendMode
  12496. {
  12497. BLEND_REPLACE,
  12498. BLEND_ADD,
  12499. BLEND_MULTIPLY,
  12500. BLEND_ALPHA,
  12501. BLEND_ADDALPHA,
  12502. BLEND_PREMULALPHA,
  12503. BLEND_INVDESTALPHA,
  12504. BLEND_SUBTRACT,
  12505. BLEND_SUBTRACTALPHA,
  12506. };
  12507. enum BodyType2D
  12508. {
  12509. BT_STATIC,
  12510. BT_KINEMATIC,
  12511. BT_DYNAMIC,
  12512. };
  12513. enum CollisionEventMode
  12514. {
  12515. COLLISION_NEVER,
  12516. COLLISION_ACTIVE,
  12517. COLLISION_ALWAYS,
  12518. };
  12519. enum CompareMode
  12520. {
  12521. CMP_ALWAYS,
  12522. CMP_EQUAL,
  12523. CMP_NOTEQUAL,
  12524. CMP_LESS,
  12525. CMP_LESSEQUAL,
  12526. CMP_GREATER,
  12527. CMP_GREATEREQUAL,
  12528. };
  12529. enum CompressedFormat
  12530. {
  12531. CF_NONE,
  12532. CF_RGBA,
  12533. CF_DXT1,
  12534. CF_DXT3,
  12535. CF_DXT5,
  12536. CF_ETC1,
  12537. CF_PVRTC_RGB_2BPP,
  12538. CF_PVRTC_RGBA_2BPP,
  12539. CF_PVRTC_RGB_4BPP,
  12540. CF_PVRTC_RGBA_4BPP,
  12541. };
  12542. enum ConstraintType
  12543. {
  12544. CONSTRAINT_POINT,
  12545. CONSTRAINT_HINGE,
  12546. CONSTRAINT_SLIDER,
  12547. CONSTRAINT_CONETWIST,
  12548. };
  12549. enum Corner
  12550. {
  12551. C_TOPLEFT,
  12552. C_TOPRIGHT,
  12553. C_BOTTOMLEFT,
  12554. C_BOTTOMRIGHT,
  12555. };
  12556. enum CreateMode
  12557. {
  12558. REPLICATED,
  12559. LOCAL,
  12560. };
  12561. enum CrowdAgentRequestedTarget
  12562. {
  12563. CA_REQUESTEDTARGET_NONE,
  12564. CA_REQUESTEDTARGET_POSITION,
  12565. CA_REQUESTEDTARGET_VELOCITY,
  12566. };
  12567. enum CrowdAgentState
  12568. {
  12569. CA_STATE_INVALID,
  12570. CA_STATE_WALKING,
  12571. CA_STATE_OFFMESH,
  12572. };
  12573. enum CrowdAgentTargetState
  12574. {
  12575. CA_TARGET_NONE,
  12576. CA_TARGET_FAILED,
  12577. CA_TARGET_VALID,
  12578. CA_TARGET_REQUESTING,
  12579. CA_TARGET_WAITINGFORQUEUE,
  12580. CA_TARGET_WAITINGFORPATH,
  12581. CA_TARGET_VELOCITY,
  12582. };
  12583. enum CubeMapFace
  12584. {
  12585. FACE_POSITIVE_X,
  12586. FACE_NEGATIVE_X,
  12587. FACE_POSITIVE_Y,
  12588. FACE_NEGATIVE_Y,
  12589. FACE_POSITIVE_Z,
  12590. FACE_NEGATIVE_Z,
  12591. };
  12592. enum CullMode
  12593. {
  12594. CULL_NONE,
  12595. CULL_CCW,
  12596. CULL_CW,
  12597. };
  12598. enum CursorShape
  12599. {
  12600. CS_NORMAL,
  12601. CS_IBEAM,
  12602. CS_CROSS,
  12603. CS_RESIZEVERTICAL,
  12604. CS_RESIZEDIAGONAL_TOPRIGHT,
  12605. CS_RESIZEHORIZONTAL,
  12606. CS_RESIZEDIAGONAL_TOPLEFT,
  12607. CS_RESIZE_ALL,
  12608. CS_ACCEPTDROP,
  12609. CS_REJECTDROP,
  12610. CS_BUSY,
  12611. CS_BUSY_ARROW,
  12612. };
  12613. enum DBAPI
  12614. {
  12615. DBAPI_SQLITE,
  12616. DBAPI_ODBC,
  12617. };
  12618. enum DumpMode
  12619. {
  12620. DOXYGEN,
  12621. C_HEADER,
  12622. };
  12623. enum EmitterType
  12624. {
  12625. EMITTER_SPHERE,
  12626. EMITTER_BOX,
  12627. };
  12628. enum EmitterType2D
  12629. {
  12630. EMITTER_TYPE_GRAVITY,
  12631. EMITTER_TYPE_RADIAL,
  12632. };
  12633. enum FaceCameraMode
  12634. {
  12635. FC_NONE,
  12636. FC_ROTATE_XYZ,
  12637. FC_ROTATE_Y,
  12638. FC_LOOKAT_XYZ,
  12639. FC_LOOKAT_Y,
  12640. };
  12641. enum FileMode
  12642. {
  12643. FILE_READ,
  12644. FILE_WRITE,
  12645. FILE_READWRITE,
  12646. };
  12647. enum FillMode
  12648. {
  12649. FILL_SOLID,
  12650. FILL_WIREFRAME,
  12651. FILL_POINT,
  12652. };
  12653. enum FocusMode
  12654. {
  12655. FM_NOTFOCUSABLE,
  12656. FM_RESETFOCUS,
  12657. FM_FOCUSABLE,
  12658. FM_FOCUSABLE_DEFOCUSABLE,
  12659. };
  12660. enum HighlightMode
  12661. {
  12662. HM_NEVER,
  12663. HM_FOCUS,
  12664. HM_ALWAYS,
  12665. };
  12666. enum HorizontalAlignment
  12667. {
  12668. HA_LEFT,
  12669. HA_CENTER,
  12670. HA_RIGHT,
  12671. };
  12672. enum HttpRequestState
  12673. {
  12674. HTTP_INITIALIZING,
  12675. HTTP_ERROR,
  12676. HTTP_OPEN,
  12677. HTTP_CLOSED,
  12678. };
  12679. enum InterpMethod
  12680. {
  12681. IM_LINEAR,
  12682. IM_SPLINE,
  12683. };
  12684. enum InterpolationMode
  12685. {
  12686. BEZIER_CURVE,
  12687. CATMULL_ROM_CURVE,
  12688. LINEAR_CURVE,
  12689. CATMULL_ROM_FULL_CURVE,
  12690. };
  12691. enum Intersection
  12692. {
  12693. OUTSIDE,
  12694. INTERSECTS,
  12695. INSIDE,
  12696. };
  12697. enum JSONValueType
  12698. {
  12699. JSON_NULL,
  12700. JSON_BOOL,
  12701. JSON_NUMBER,
  12702. JSON_STRING,
  12703. JSON_ARRAY,
  12704. JSON_OBJECT,
  12705. };
  12706. enum LayoutMode
  12707. {
  12708. LM_FREE,
  12709. LM_HORIZONTAL,
  12710. LM_VERTICAL,
  12711. };
  12712. enum LightType
  12713. {
  12714. LIGHT_DIRECTIONAL,
  12715. LIGHT_SPOT,
  12716. LIGHT_POINT,
  12717. };
  12718. enum LoadMode
  12719. {
  12720. LOAD_RESOURCES_ONLY,
  12721. LOAD_SCENE,
  12722. LOAD_SCENE_AND_RESOURCES,
  12723. };
  12724. enum LoopMode2D
  12725. {
  12726. LM_DEFAULT,
  12727. LM_FORCE_LOOPED,
  12728. LM_FORCE_CLAMPED,
  12729. };
  12730. enum MouseMode
  12731. {
  12732. MM_ABSOLUTE,
  12733. MM_RELATIVE,
  12734. MM_WRAP,
  12735. MM_FREE,
  12736. };
  12737. enum NavigationPushiness
  12738. {
  12739. NAVIGATIONPUSHINESS_LOW,
  12740. NAVIGATIONPUSHINESS_MEDIUM,
  12741. NAVIGATIONPUSHINESS_HIGH,
  12742. };
  12743. enum NavigationQuality
  12744. {
  12745. NAVIGATIONQUALITY_LOW,
  12746. NAVIGATIONQUALITY_MEDIUM,
  12747. NAVIGATIONQUALITY_HIGH,
  12748. };
  12749. enum NavmeshPartitionType
  12750. {
  12751. NAVMESH_PARTITION_WATERSHED,
  12752. NAVMESH_PARTITION_MONOTONE,
  12753. };
  12754. enum Orientation
  12755. {
  12756. O_HORIZONTAL,
  12757. O_VERTICAL,
  12758. };
  12759. enum Orientation2D
  12760. {
  12761. O_ORTHOGONAL,
  12762. O_ISOMETRIC,
  12763. O_STAGGERED,
  12764. };
  12765. enum PassLightingMode
  12766. {
  12767. LIGHTING_UNLIT,
  12768. LIGHTING_PERVERTEX,
  12769. LIGHTING_PERPIXEL,
  12770. };
  12771. enum PrimitiveType
  12772. {
  12773. TRIANGLE_LIST,
  12774. LINE_LIST,
  12775. POINT_LIST,
  12776. TRIANGLE_STRIP,
  12777. LINE_STRIP,
  12778. TRIANGLE_FAN,
  12779. };
  12780. enum RayQueryLevel
  12781. {
  12782. RAY_AABB,
  12783. RAY_OBB,
  12784. RAY_TRIANGLE,
  12785. RAY_TRIANGLE_UV,
  12786. };
  12787. enum RenderCommandSortMode
  12788. {
  12789. SORT_FRONTTOBACK,
  12790. SORT_BACKTOFRONT,
  12791. };
  12792. enum RenderCommandType
  12793. {
  12794. CMD_NONE,
  12795. CMD_CLEAR,
  12796. CMD_SCENEPASS,
  12797. CMD_QUAD,
  12798. CMD_FORWARDLIGHTS,
  12799. CMD_LIGHTVOLUMES,
  12800. CMD_RENDERUI,
  12801. };
  12802. enum RenderSurfaceUpdateMode
  12803. {
  12804. SURFACE_MANUALUPDATE,
  12805. SURFACE_UPDATEVISIBLE,
  12806. SURFACE_UPDATEALWAYS,
  12807. };
  12808. enum RenderTargetSizeMode
  12809. {
  12810. SIZE_ABSOLUTE,
  12811. SIZE_VIEWPORTDIVISOR,
  12812. SIZE_VIEWPORTMULTIPLIER,
  12813. };
  12814. enum ShapeType
  12815. {
  12816. SHAPE_BOX,
  12817. SHAPE_SPHERE,
  12818. SHAPE_STATICPLANE,
  12819. SHAPE_CYLINDER,
  12820. SHAPE_CAPSULE,
  12821. SHAPE_CONE,
  12822. SHAPE_TRIANGLEMESH,
  12823. SHAPE_CONVEXHULL,
  12824. SHAPE_TERRAIN,
  12825. };
  12826. enum TextEffect
  12827. {
  12828. TE_NONE,
  12829. TE_SHADOW,
  12830. TE_STROKE,
  12831. };
  12832. enum TextureAddressMode
  12833. {
  12834. ADDRESS_WRAP,
  12835. ADDRESS_MIRROR,
  12836. ADDRESS_CLAMP,
  12837. ADDRESS_BORDER,
  12838. };
  12839. enum TextureCoordinate
  12840. {
  12841. COORD_U,
  12842. COORD_V,
  12843. COORD_W,
  12844. };
  12845. enum TextureFilterMode
  12846. {
  12847. FILTER_NEAREST,
  12848. FILTER_BILINEAR,
  12849. FILTER_TRILINEAR,
  12850. FILTER_ANISOTROPIC,
  12851. FILTER_DEFAULT,
  12852. };
  12853. enum TextureUnit
  12854. {
  12855. TU_DIFFUSE,
  12856. TU_ALBEDOBUFFER,
  12857. TU_NORMAL,
  12858. TU_NORMALBUFFER,
  12859. TU_SPECULAR,
  12860. TU_EMISSIVE,
  12861. TU_ENVIRONMENT,
  12862. TU_LIGHTRAMP,
  12863. TU_LIGHTSHAPE,
  12864. TU_SHADOWMAP,
  12865. TU_CUSTOM1,
  12866. TU_CUSTOM2,
  12867. TU_VOLUMEMAP,
  12868. TU_FACESELECT,
  12869. TU_INDIRECTION,
  12870. TU_DEPTHBUFFER,
  12871. TU_LIGHTBUFFER,
  12872. TU_ZONE,
  12873. MAX_MATERIAL_TEXTURE_UNITS,
  12874. MAX_TEXTURE_UNITS,
  12875. };
  12876. enum TextureUsage
  12877. {
  12878. TEXTURE_STATIC,
  12879. TEXTURE_DYNAMIC,
  12880. TEXTURE_RENDERTARGET,
  12881. TEXTURE_DEPTHSTENCIL,
  12882. };
  12883. enum TileMapLayerType2D
  12884. {
  12885. LT_TILE_LAYER,
  12886. LT_OBJECT_GROUP,
  12887. LT_IMAGE_LAYER,
  12888. LT_INVALID,
  12889. };
  12890. enum TileObjectType2D
  12891. {
  12892. OT_RECTANGLE,
  12893. OT_ELLIPSE,
  12894. OT_POLYGON,
  12895. OT_POLYLINE,
  12896. OT_TILE,
  12897. OT_INVALID,
  12898. };
  12899. enum TransformSpace
  12900. {
  12901. TS_LOCAL,
  12902. TS_PARENT,
  12903. TS_WORLD,
  12904. };
  12905. enum TraversalMode
  12906. {
  12907. TM_BREADTH_FIRST,
  12908. TM_DEPTH_FIRST,
  12909. };
  12910. enum VariantType
  12911. {
  12912. VAR_NONE,
  12913. VAR_INT,
  12914. VAR_BOOL,
  12915. VAR_FLOAT,
  12916. VAR_VECTOR2,
  12917. VAR_VECTOR3,
  12918. VAR_VECTOR4,
  12919. VAR_QUATERNION,
  12920. VAR_COLOR,
  12921. VAR_STRING,
  12922. VAR_BUFFER,
  12923. VAR_VOIDPTR,
  12924. VAR_RESOURCEREF,
  12925. VAR_RESOURCEREFLIST,
  12926. VAR_VARIANTVECTOR,
  12927. VAR_VARIANTMAP,
  12928. VAR_INTRECT,
  12929. VAR_INTVECTOR2,
  12930. VAR_PTR,
  12931. VAR_MATRIX3,
  12932. VAR_MATRIX3X4,
  12933. VAR_MATRIX4,
  12934. VAR_DOUBLE,
  12935. VAR_STRINGVECTOR,
  12936. };
  12937. enum VerticalAlignment
  12938. {
  12939. VA_TOP,
  12940. VA_CENTER,
  12941. VA_BOTTOM,
  12942. };
  12943. enum WrapMode
  12944. {
  12945. WM_LOOP,
  12946. WM_ONCE,
  12947. WM_CLAMP,
  12948. };
  12949. // Global functions
  12950. float Abs(float);
  12951. float Acos(float);
  12952. String AddTrailingSlash(const String&);
  12953. float Asin(float);
  12954. float Atan(float);
  12955. float Atan2(float, float);
  12956. float Ceil(float);
  12957. float Clamp(float, float, float);
  12958. int Clamp(int, int, int);
  12959. void ClearDelayedExecute(const String& = String ( ));
  12960. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  12961. float Cos(float);
  12962. uint CountSetBits(uint);
  12963. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  12964. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  12965. bool Equals(float, float);
  12966. void ErrorDialog(const String&, const String&);
  12967. float Floor(float);
  12968. uint GetAlphaFormat();
  12969. Array<String> GetArguments();
  12970. String GetConsoleInput();
  12971. uint GetDepthStencilFormat();
  12972. Object GetEventSender();
  12973. String GetExtension(const String&, bool = true);
  12974. String GetFileName(const String&);
  12975. String GetFileNameAndExtension(const String&, bool = false);
  12976. String GetFileSizeString(uint64);
  12977. uint GetFloat16Format();
  12978. uint GetFloat32Format();
  12979. uint GetFormat(const String&);
  12980. String GetInternalPath(const String&);
  12981. uint GetLinearDepthFormat();
  12982. uint GetLuminanceAlphaFormat();
  12983. uint GetLuminanceFormat();
  12984. uint GetMaxBones();
  12985. uint GetNumLogicalCPUs();
  12986. uint GetNumPhysicalCPUs();
  12987. Array<String> GetObjectCategories();
  12988. Array<String> GetObjectsByCategory(const String&);
  12989. String GetParentPath(const String&);
  12990. String GetPath(const String&);
  12991. String GetPlatform();
  12992. uint GetRG16Format();
  12993. uint GetRGBA16Format();
  12994. uint GetRGBAFloat16Format();
  12995. uint GetRGBAFloat32Format();
  12996. uint GetRGBAFormat();
  12997. uint GetRGBFormat();
  12998. uint GetRGFloat16Format();
  12999. uint GetRGFloat32Format();
  13000. uint GetRandomSeed();
  13001. uint GetReadableDepthFormat();
  13002. String GetTextureUnitName(TextureUnit);
  13003. bool IsAbsolutePath(const String&);
  13004. bool IsAlpha(uint);
  13005. bool IsDigit(uint);
  13006. bool IsNaN(float);
  13007. bool IsPowerOfTwo(uint);
  13008. String Join(Array<String>&, const String&);
  13009. float Lerp(float, float, float);
  13010. void MarkNetworkUpdate();
  13011. float Max(float, float);
  13012. int Max(int, int);
  13013. float Min(float, float);
  13014. int Min(int, int);
  13015. float Mod(float, float);
  13016. uint NextPowerOfTwo(uint);
  13017. void OpenConsoleWindow();
  13018. float Pow(float, float);
  13019. void Print(bool, bool = false);
  13020. void Print(const String&, bool = false);
  13021. void Print(const Variant&, bool = false);
  13022. void Print(float, bool = false);
  13023. void Print(int, bool = false);
  13024. void Print(uint, bool = false);
  13025. void PrintCallStack(bool = false);
  13026. float Random();
  13027. float Random(float);
  13028. float Random(float, float);
  13029. int RandomInt();
  13030. int RandomInt(int);
  13031. int RandomInt(int, int);
  13032. float RandomNormal(float, float);
  13033. void Remove();
  13034. String RemoveTrailingSlash(const String&);
  13035. String ReplaceExtension(const String&, const String&);
  13036. uint SDBMHash(uint, uint8);
  13037. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13038. void SetRandomSeed(uint);
  13039. float Sign(float);
  13040. float Sin(float);
  13041. float SmoothStep(float, float, float);
  13042. float Sqrt(float);
  13043. const String& GetTypeName(StringHash);
  13044. void SubscribeToEvent(Object, const String&, const String&);
  13045. void SubscribeToEvent(const String&, const String&);
  13046. float Tan(float);
  13047. uint ToLower(uint);
  13048. String ToStringHex(int);
  13049. uint ToUpper(uint);
  13050. void UnsubscribeFromAllEvents();
  13051. void UnsubscribeFromAllEventsExcept(Array<String>);
  13052. void UnsubscribeFromEvent(Object, const String&);
  13053. void UnsubscribeFromEvent(const String&);
  13054. void UnsubscribeFromEvents(Object);
  13055. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  13056. // Global properties
  13057. DBAPI DBAPI;
  13058. Audio audio;
  13059. ResourceCache cache;
  13060. Console console;
  13061. Database database;
  13062. DebugHud debugHud;
  13063. DebugRenderer debugRenderer;
  13064. Engine engine;
  13065. FileSystem fileSystem;
  13066. Graphics graphics;
  13067. Input input;
  13068. Localization localization;
  13069. Log log;
  13070. Network network;
  13071. Node node;
  13072. Octree octree;
  13073. PhysicsWorld physicsWorld;
  13074. PhysicsWorld2D physicsWorld2D;
  13075. Renderer renderer;
  13076. ResourceCache resourceCache;
  13077. Scene scene;
  13078. Script script;
  13079. ScriptFile scriptFile;
  13080. ScriptInstance self;
  13081. Time time;
  13082. UI ui;
  13083. // Global constants
  13084. uint AM_COMPONENTID;
  13085. uint AM_DEFAULT;
  13086. uint AM_FILE;
  13087. uint AM_LATESTDATA;
  13088. uint AM_NET;
  13089. uint AM_NODEID;
  13090. uint AM_NODEIDVECTOR;
  13091. uint AM_NOEDIT;
  13092. Color BLACK;
  13093. Color BLUE;
  13094. uint8 CHANNEL_POSITION;
  13095. uint8 CHANNEL_ROTATION;
  13096. uint8 CHANNEL_SCALE;
  13097. uint CLEAR_COLOR;
  13098. uint CLEAR_DEPTH;
  13099. uint CLEAR_STENCIL;
  13100. int CONTROLLER_AXIS_LEFTX;
  13101. int CONTROLLER_AXIS_LEFTY;
  13102. int CONTROLLER_AXIS_RIGHTX;
  13103. int CONTROLLER_AXIS_RIGHTY;
  13104. int CONTROLLER_AXIS_TRIGGERLEFT;
  13105. int CONTROLLER_AXIS_TRIGGERRIGHT;
  13106. int CONTROLLER_BUTTON_A;
  13107. int CONTROLLER_BUTTON_B;
  13108. int CONTROLLER_BUTTON_BACK;
  13109. int CONTROLLER_BUTTON_DPAD_DOWN;
  13110. int CONTROLLER_BUTTON_DPAD_LEFT;
  13111. int CONTROLLER_BUTTON_DPAD_RIGHT;
  13112. int CONTROLLER_BUTTON_DPAD_UP;
  13113. int CONTROLLER_BUTTON_GUIDE;
  13114. int CONTROLLER_BUTTON_LEFTSHOULDER;
  13115. int CONTROLLER_BUTTON_LEFTSTICK;
  13116. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  13117. int CONTROLLER_BUTTON_RIGHTSTICK;
  13118. int CONTROLLER_BUTTON_START;
  13119. int CONTROLLER_BUTTON_X;
  13120. int CONTROLLER_BUTTON_Y;
  13121. Color CYAN;
  13122. uint DD_DISABLED;
  13123. uint DD_SOURCE;
  13124. uint DD_SOURCE_AND_TARGET;
  13125. uint DD_TARGET;
  13126. uint DEBUGHUD_SHOW_ALL;
  13127. uint DEBUGHUD_SHOW_ALL_MEMORY;
  13128. uint DEBUGHUD_SHOW_MEMORY;
  13129. uint DEBUGHUD_SHOW_MODE;
  13130. uint DEBUGHUD_SHOW_NONE;
  13131. uint DEBUGHUD_SHOW_PROFILER;
  13132. uint DEBUGHUD_SHOW_STATS;
  13133. uint DEFAULT_LIGHTMASK;
  13134. uint DEFAULT_VIEWMASK;
  13135. uint DRAWABLE_ANY;
  13136. uint DRAWABLE_GEOMETRY;
  13137. uint DRAWABLE_GEOMETRY2D;
  13138. uint DRAWABLE_LIGHT;
  13139. uint DRAWABLE_ZONE;
  13140. uint FIRST_LOCAL_ID;
  13141. uint FIRST_REPLICATED_ID;
  13142. Color GRAY;
  13143. Color GREEN;
  13144. int HAT_CENTER;
  13145. int HAT_DOWN;
  13146. int HAT_LEFT;
  13147. int HAT_RIGHT;
  13148. int HAT_UP;
  13149. int KEY_0;
  13150. int KEY_1;
  13151. int KEY_2;
  13152. int KEY_3;
  13153. int KEY_4;
  13154. int KEY_5;
  13155. int KEY_6;
  13156. int KEY_7;
  13157. int KEY_8;
  13158. int KEY_9;
  13159. int KEY_A;
  13160. int KEY_ALT;
  13161. int KEY_APPLICATION;
  13162. int KEY_B;
  13163. int KEY_BACKSPACE;
  13164. int KEY_C;
  13165. int KEY_CAPSLOCK;
  13166. int KEY_CTRL;
  13167. int KEY_D;
  13168. int KEY_DELETE;
  13169. int KEY_DOWN;
  13170. int KEY_E;
  13171. int KEY_END;
  13172. int KEY_ESC;
  13173. int KEY_F;
  13174. int KEY_F1;
  13175. int KEY_F10;
  13176. int KEY_F11;
  13177. int KEY_F12;
  13178. int KEY_F13;
  13179. int KEY_F14;
  13180. int KEY_F15;
  13181. int KEY_F16;
  13182. int KEY_F17;
  13183. int KEY_F18;
  13184. int KEY_F19;
  13185. int KEY_F2;
  13186. int KEY_F20;
  13187. int KEY_F21;
  13188. int KEY_F22;
  13189. int KEY_F23;
  13190. int KEY_F24;
  13191. int KEY_F3;
  13192. int KEY_F4;
  13193. int KEY_F5;
  13194. int KEY_F6;
  13195. int KEY_F7;
  13196. int KEY_F8;
  13197. int KEY_F9;
  13198. int KEY_G;
  13199. int KEY_GUI;
  13200. int KEY_H;
  13201. int KEY_HOME;
  13202. int KEY_I;
  13203. int KEY_INSERT;
  13204. int KEY_J;
  13205. int KEY_K;
  13206. int KEY_KP_0;
  13207. int KEY_KP_1;
  13208. int KEY_KP_2;
  13209. int KEY_KP_3;
  13210. int KEY_KP_4;
  13211. int KEY_KP_5;
  13212. int KEY_KP_6;
  13213. int KEY_KP_7;
  13214. int KEY_KP_8;
  13215. int KEY_KP_9;
  13216. int KEY_KP_DIVIDE;
  13217. int KEY_KP_ENTER;
  13218. int KEY_KP_MINUS;
  13219. int KEY_KP_MULTIPLY;
  13220. int KEY_KP_PERIOD;
  13221. int KEY_KP_PLUS;
  13222. int KEY_L;
  13223. int KEY_LALT;
  13224. int KEY_LCTRL;
  13225. int KEY_LEFT;
  13226. int KEY_LGUI;
  13227. int KEY_LSHIFT;
  13228. int KEY_M;
  13229. int KEY_N;
  13230. int KEY_NUMLOCKCLEAR;
  13231. int KEY_O;
  13232. int KEY_P;
  13233. int KEY_PAGEDOWN;
  13234. int KEY_PAGEUP;
  13235. int KEY_PAUSE;
  13236. int KEY_PRINTSCREEN;
  13237. int KEY_Q;
  13238. int KEY_R;
  13239. int KEY_RALT;
  13240. int KEY_RCTRL;
  13241. int KEY_RETURN;
  13242. int KEY_RETURN2;
  13243. int KEY_RGUI;
  13244. int KEY_RIGHT;
  13245. int KEY_RSHIFT;
  13246. int KEY_S;
  13247. int KEY_SCROLLLOCK;
  13248. int KEY_SELECT;
  13249. int KEY_SHIFT;
  13250. int KEY_SPACE;
  13251. int KEY_T;
  13252. int KEY_TAB;
  13253. int KEY_U;
  13254. int KEY_UP;
  13255. int KEY_V;
  13256. int KEY_W;
  13257. int KEY_X;
  13258. int KEY_Y;
  13259. int KEY_Z;
  13260. uint LAST_LOCAL_ID;
  13261. uint LAST_REPLICATED_ID;
  13262. int LOG_DEBUG;
  13263. int LOG_ERROR;
  13264. int LOG_INFO;
  13265. int LOG_NONE;
  13266. int LOG_WARNING;
  13267. Color MAGENTA;
  13268. uint MASK_BLENDINDICES;
  13269. uint MASK_BLENDWEIGHTS;
  13270. uint MASK_COLOR;
  13271. uint MASK_CUBETEXCOORD1;
  13272. uint MASK_CUBETEXCOORD2;
  13273. uint MASK_DEFAULT;
  13274. uint MASK_INSTANCEMATRIX1;
  13275. uint MASK_INSTANCEMATRIX2;
  13276. uint MASK_INSTANCEMATRIX3;
  13277. uint MASK_NONE;
  13278. uint MASK_NORMAL;
  13279. uint MASK_POSITION;
  13280. uint MASK_TANGENT;
  13281. uint MASK_TEXCOORD1;
  13282. uint MASK_TEXCOORD2;
  13283. int MOUSEB_LEFT;
  13284. int MOUSEB_MIDDLE;
  13285. int MOUSEB_RIGHT;
  13286. float M_DEGTORAD;
  13287. float M_DEGTORAD_2;
  13288. float M_EPSILON;
  13289. float M_HALF_PI;
  13290. float M_INFINITY;
  13291. float M_LARGE_EPSILON;
  13292. float M_LARGE_VALUE;
  13293. int M_MAX_INT;
  13294. uint M_MAX_UNSIGNED;
  13295. int M_MIN_INT;
  13296. uint M_MIN_UNSIGNED;
  13297. float M_PI;
  13298. float M_RADTODEG;
  13299. float PIXEL_SIZE;
  13300. int QUALITY_HIGH;
  13301. int QUALITY_LOW;
  13302. int QUALITY_MAX;
  13303. int QUALITY_MEDIUM;
  13304. int QUAL_ALT;
  13305. int QUAL_ANY;
  13306. int QUAL_CTRL;
  13307. int QUAL_SHIFT;
  13308. Color RED;
  13309. int SCANCODE_0;
  13310. int SCANCODE_1;
  13311. int SCANCODE_2;
  13312. int SCANCODE_3;
  13313. int SCANCODE_4;
  13314. int SCANCODE_5;
  13315. int SCANCODE_6;
  13316. int SCANCODE_7;
  13317. int SCANCODE_8;
  13318. int SCANCODE_9;
  13319. int SCANCODE_A;
  13320. int SCANCODE_AC_BACK;
  13321. int SCANCODE_AC_BOOKMARKS;
  13322. int SCANCODE_AC_FORWARD;
  13323. int SCANCODE_AC_HOME;
  13324. int SCANCODE_AC_REFRESH;
  13325. int SCANCODE_AC_SEARCH;
  13326. int SCANCODE_AC_STOP;
  13327. int SCANCODE_AGAIN;
  13328. int SCANCODE_ALT;
  13329. int SCANCODE_ALTERASE;
  13330. int SCANCODE_APOSTROPHE;
  13331. int SCANCODE_APP1;
  13332. int SCANCODE_APP2;
  13333. int SCANCODE_APPLICATION;
  13334. int SCANCODE_AUDIOMUTE;
  13335. int SCANCODE_AUDIONEXT;
  13336. int SCANCODE_AUDIOPLAY;
  13337. int SCANCODE_AUDIOPREV;
  13338. int SCANCODE_AUDIOSTOP;
  13339. int SCANCODE_B;
  13340. int SCANCODE_BACKSLASH;
  13341. int SCANCODE_BACKSPACE;
  13342. int SCANCODE_BRIGHTNESSDOWN;
  13343. int SCANCODE_BRIGHTNESSUP;
  13344. int SCANCODE_C;
  13345. int SCANCODE_CALCULATOR;
  13346. int SCANCODE_CANCEL;
  13347. int SCANCODE_CAPSLOCK;
  13348. int SCANCODE_CLEAR;
  13349. int SCANCODE_CLEARAGAIN;
  13350. int SCANCODE_COMMA;
  13351. int SCANCODE_COMPUTER;
  13352. int SCANCODE_COPY;
  13353. int SCANCODE_CRSEL;
  13354. int SCANCODE_CTRL;
  13355. int SCANCODE_CURRENCYSUBUNIT;
  13356. int SCANCODE_CURRENCYUNIT;
  13357. int SCANCODE_CUT;
  13358. int SCANCODE_D;
  13359. int SCANCODE_DECIMALSEPARATOR;
  13360. int SCANCODE_DELETE;
  13361. int SCANCODE_DISPLAYSWITCH;
  13362. int SCANCODE_DOWN;
  13363. int SCANCODE_E;
  13364. int SCANCODE_EJECT;
  13365. int SCANCODE_END;
  13366. int SCANCODE_EQUALS;
  13367. int SCANCODE_ESCAPE;
  13368. int SCANCODE_EXECUTE;
  13369. int SCANCODE_EXSEL;
  13370. int SCANCODE_F;
  13371. int SCANCODE_F1;
  13372. int SCANCODE_F10;
  13373. int SCANCODE_F11;
  13374. int SCANCODE_F12;
  13375. int SCANCODE_F13;
  13376. int SCANCODE_F14;
  13377. int SCANCODE_F15;
  13378. int SCANCODE_F16;
  13379. int SCANCODE_F17;
  13380. int SCANCODE_F18;
  13381. int SCANCODE_F19;
  13382. int SCANCODE_F2;
  13383. int SCANCODE_F20;
  13384. int SCANCODE_F21;
  13385. int SCANCODE_F22;
  13386. int SCANCODE_F23;
  13387. int SCANCODE_F24;
  13388. int SCANCODE_F3;
  13389. int SCANCODE_F4;
  13390. int SCANCODE_F5;
  13391. int SCANCODE_F6;
  13392. int SCANCODE_F7;
  13393. int SCANCODE_F8;
  13394. int SCANCODE_F9;
  13395. int SCANCODE_FIND;
  13396. int SCANCODE_G;
  13397. int SCANCODE_GRAVE;
  13398. int SCANCODE_GUI;
  13399. int SCANCODE_H;
  13400. int SCANCODE_HELP;
  13401. int SCANCODE_HOME;
  13402. int SCANCODE_I;
  13403. int SCANCODE_INSERT;
  13404. int SCANCODE_INTERNATIONAL1;
  13405. int SCANCODE_INTERNATIONAL2;
  13406. int SCANCODE_INTERNATIONAL3;
  13407. int SCANCODE_INTERNATIONAL4;
  13408. int SCANCODE_INTERNATIONAL5;
  13409. int SCANCODE_INTERNATIONAL6;
  13410. int SCANCODE_INTERNATIONAL7;
  13411. int SCANCODE_INTERNATIONAL8;
  13412. int SCANCODE_INTERNATIONAL9;
  13413. int SCANCODE_J;
  13414. int SCANCODE_K;
  13415. int SCANCODE_KBDILLUMDOWN;
  13416. int SCANCODE_KBDILLUMTOGGLE;
  13417. int SCANCODE_KBDILLUMUP;
  13418. int SCANCODE_KP_0;
  13419. int SCANCODE_KP_00;
  13420. int SCANCODE_KP_000;
  13421. int SCANCODE_KP_1;
  13422. int SCANCODE_KP_2;
  13423. int SCANCODE_KP_3;
  13424. int SCANCODE_KP_4;
  13425. int SCANCODE_KP_5;
  13426. int SCANCODE_KP_6;
  13427. int SCANCODE_KP_7;
  13428. int SCANCODE_KP_8;
  13429. int SCANCODE_KP_9;
  13430. int SCANCODE_KP_A;
  13431. int SCANCODE_KP_AMPERSAND;
  13432. int SCANCODE_KP_AT;
  13433. int SCANCODE_KP_B;
  13434. int SCANCODE_KP_BACKSPACE;
  13435. int SCANCODE_KP_BINARY;
  13436. int SCANCODE_KP_C;
  13437. int SCANCODE_KP_CLEAR;
  13438. int SCANCODE_KP_CLEARENTRY;
  13439. int SCANCODE_KP_COLON;
  13440. int SCANCODE_KP_COMMA;
  13441. int SCANCODE_KP_D;
  13442. int SCANCODE_KP_DBLAMPERSAND;
  13443. int SCANCODE_KP_DBLVERTICALBAR;
  13444. int SCANCODE_KP_DECIMAL;
  13445. int SCANCODE_KP_DIVIDE;
  13446. int SCANCODE_KP_E;
  13447. int SCANCODE_KP_ENTER;
  13448. int SCANCODE_KP_EQUALS;
  13449. int SCANCODE_KP_EQUALSAS400;
  13450. int SCANCODE_KP_EXCLAM;
  13451. int SCANCODE_KP_F;
  13452. int SCANCODE_KP_GREATER;
  13453. int SCANCODE_KP_HASH;
  13454. int SCANCODE_KP_HEXADECIMAL;
  13455. int SCANCODE_KP_LEFTBRACE;
  13456. int SCANCODE_KP_LEFTPAREN;
  13457. int SCANCODE_KP_LESS;
  13458. int SCANCODE_KP_MEMADD;
  13459. int SCANCODE_KP_MEMCLEAR;
  13460. int SCANCODE_KP_MEMDIVIDE;
  13461. int SCANCODE_KP_MEMMULTIPLY;
  13462. int SCANCODE_KP_MEMRECALL;
  13463. int SCANCODE_KP_MEMSTORE;
  13464. int SCANCODE_KP_MEMSUBTRACT;
  13465. int SCANCODE_KP_MINUS;
  13466. int SCANCODE_KP_MULTIPLY;
  13467. int SCANCODE_KP_OCTAL;
  13468. int SCANCODE_KP_PERCENT;
  13469. int SCANCODE_KP_PERIOD;
  13470. int SCANCODE_KP_PLUS;
  13471. int SCANCODE_KP_PLUSMINUS;
  13472. int SCANCODE_KP_POWER;
  13473. int SCANCODE_KP_RIGHTBRACE;
  13474. int SCANCODE_KP_RIGHTPAREN;
  13475. int SCANCODE_KP_SPACE;
  13476. int SCANCODE_KP_TAB;
  13477. int SCANCODE_KP_VERTICALBAR;
  13478. int SCANCODE_KP_XOR;
  13479. int SCANCODE_L;
  13480. int SCANCODE_LALT;
  13481. int SCANCODE_LANG1;
  13482. int SCANCODE_LANG2;
  13483. int SCANCODE_LANG3;
  13484. int SCANCODE_LANG4;
  13485. int SCANCODE_LANG5;
  13486. int SCANCODE_LANG6;
  13487. int SCANCODE_LANG7;
  13488. int SCANCODE_LANG8;
  13489. int SCANCODE_LANG9;
  13490. int SCANCODE_LCTRL;
  13491. int SCANCODE_LEFT;
  13492. int SCANCODE_LEFTBRACKET;
  13493. int SCANCODE_LGUI;
  13494. int SCANCODE_LSHIFT;
  13495. int SCANCODE_M;
  13496. int SCANCODE_MAIL;
  13497. int SCANCODE_MEDIASELECT;
  13498. int SCANCODE_MENU;
  13499. int SCANCODE_MINUS;
  13500. int SCANCODE_MODE;
  13501. int SCANCODE_MUTE;
  13502. int SCANCODE_N;
  13503. int SCANCODE_NONUSBACKSLASH;
  13504. int SCANCODE_NONUSHASH;
  13505. int SCANCODE_NUMLOCKCLEAR;
  13506. int SCANCODE_O;
  13507. int SCANCODE_OPER;
  13508. int SCANCODE_OUT;
  13509. int SCANCODE_P;
  13510. int SCANCODE_PAGEDOWN;
  13511. int SCANCODE_PAGEUP;
  13512. int SCANCODE_PASTE;
  13513. int SCANCODE_PAUSE;
  13514. int SCANCODE_PERIOD;
  13515. int SCANCODE_POWER;
  13516. int SCANCODE_PRINTSCREEN;
  13517. int SCANCODE_PRIOR;
  13518. int SCANCODE_Q;
  13519. int SCANCODE_R;
  13520. int SCANCODE_RALT;
  13521. int SCANCODE_RCTRL;
  13522. int SCANCODE_RETURN;
  13523. int SCANCODE_RETURN2;
  13524. int SCANCODE_RGUI;
  13525. int SCANCODE_RIGHT;
  13526. int SCANCODE_RIGHTBRACKET;
  13527. int SCANCODE_RSHIFT;
  13528. int SCANCODE_S;
  13529. int SCANCODE_SCROLLLOCK;
  13530. int SCANCODE_SELECT;
  13531. int SCANCODE_SEMICOLON;
  13532. int SCANCODE_SEPARATOR;
  13533. int SCANCODE_SHIFT;
  13534. int SCANCODE_SLASH;
  13535. int SCANCODE_SLEEP;
  13536. int SCANCODE_SPACE;
  13537. int SCANCODE_STOP;
  13538. int SCANCODE_SYSREQ;
  13539. int SCANCODE_T;
  13540. int SCANCODE_TAB;
  13541. int SCANCODE_THOUSANDSSEPARATOR;
  13542. int SCANCODE_U;
  13543. int SCANCODE_UNDO;
  13544. int SCANCODE_UNKNOWN;
  13545. int SCANCODE_UP;
  13546. int SCANCODE_V;
  13547. int SCANCODE_VOLUMEDOWN;
  13548. int SCANCODE_VOLUMEUP;
  13549. int SCANCODE_W;
  13550. int SCANCODE_WWW;
  13551. int SCANCODE_X;
  13552. int SCANCODE_Y;
  13553. int SCANCODE_Z;
  13554. uint SCAN_DIRS;
  13555. uint SCAN_FILES;
  13556. uint SCAN_HIDDEN;
  13557. int SHADOWQUALITY_HIGH_16BIT;
  13558. int SHADOWQUALITY_HIGH_24BIT;
  13559. int SHADOWQUALITY_LOW_16BIT;
  13560. int SHADOWQUALITY_LOW_24BIT;
  13561. String SOUND_AMBIENT;
  13562. String SOUND_EFFECT;
  13563. String SOUND_MASTER;
  13564. String SOUND_MUSIC;
  13565. String SOUND_VOICE;
  13566. Color TRANSPARENT;
  13567. uint VO_DISABLE_OCCLUSION;
  13568. uint VO_DISABLE_SHADOWS;
  13569. uint VO_LOW_MATERIAL_QUALITY;
  13570. uint VO_NONE;
  13571. Color WHITE;
  13572. Color YELLOW;
  13573. VariantMap globalVars;