AngelScriptAPI.h 323 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642
  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. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18. Variant GetAttributeDefault(const String&) const;
  19. bool GetInterceptNetworkUpdate(const String&) const;
  20. bool Load(File, bool = false);
  21. bool Load(VectorBuffer&, bool = false);
  22. bool LoadXML(const XMLElement&, bool = false);
  23. void MarkNetworkUpdate() const;
  24. void RemoveInstanceDefault();
  25. void ResetToDefault();
  26. bool Save(File) const;
  27. bool Save(VectorBuffer&) const;
  28. bool SaveXML(XMLElement&) const;
  29. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  30. bool SetAttribute(const String&, const Variant&);
  31. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32. void SetAttributeAnimationSpeed(const String&, float);
  33. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  34. void SetInterceptNetworkUpdate(const String&, bool);
  35. // Properties:
  36. bool animationEnabled;
  37. /* readonly */
  38. Array<Variant> attributeDefaults;
  39. /* readonly */
  40. Array<AttributeInfo> attributeInfos;
  41. Array<Variant> attributes;
  42. /* readonly */
  43. StringHash baseType;
  44. /* readonly */
  45. String category;
  46. /* readonly */
  47. uint numAttributes;
  48. ObjectAnimation objectAnimation;
  49. /* readonly */
  50. int refs;
  51. bool temporary;
  52. /* readonly */
  53. StringHash type;
  54. /* readonly */
  55. String typeName;
  56. /* readonly */
  57. int weakRefs;
  58. };
  59. class AnimatedModel
  60. {
  61. // Methods:
  62. AnimationState AddAnimationState(Animation);
  63. void ApplyAttributes();
  64. void ApplyMaterialList(const String& = String ( ));
  65. void DrawDebugGeometry(DebugRenderer, bool);
  66. AnimationState GetAnimationState(Animation) const;
  67. AnimationState GetAnimationState(uint) const;
  68. Variant GetAttribute(const String&) const;
  69. ValueAnimation GetAttributeAnimation(const String&) const;
  70. float GetAttributeAnimationSpeed(const String&) const;
  71. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  72. Variant GetAttributeDefault(const String&) const;
  73. bool GetInterceptNetworkUpdate(const String&) const;
  74. float GetMorphWeight(uint) const;
  75. bool IsInView(Camera) const;
  76. bool Load(File, bool = false);
  77. bool Load(VectorBuffer&, bool = false);
  78. bool LoadXML(const XMLElement&, bool = false);
  79. void MarkNetworkUpdate() const;
  80. void Remove();
  81. void RemoveAllAnimationStates();
  82. void RemoveAnimationState(Animation);
  83. void RemoveAnimationState(AnimationState);
  84. void RemoveAnimationState(const String&);
  85. void RemoveAnimationState(uint);
  86. void RemoveInstanceDefault();
  87. void ResetMorphWeights();
  88. void ResetToDefault();
  89. bool Save(File) const;
  90. bool Save(VectorBuffer&) const;
  91. bool SaveXML(XMLElement&) const;
  92. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  93. bool SetAttribute(const String&, const Variant&);
  94. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  95. void SetAttributeAnimationSpeed(const String&, float);
  96. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  97. void SetInterceptNetworkUpdate(const String&, bool);
  98. void SetMorphWeight(uint, float);
  99. // Properties:
  100. bool animationEnabled;
  101. float animationLodBias;
  102. /* readonly */
  103. Array<AnimationState> animationStates;
  104. /* readonly */
  105. Array<Variant> attributeDefaults;
  106. /* readonly */
  107. Array<AttributeInfo> attributeInfos;
  108. Array<Variant> attributes;
  109. /* readonly */
  110. StringHash baseType;
  111. /* readonly */
  112. BoundingBox boundingBox;
  113. bool castShadows;
  114. /* readonly */
  115. String category;
  116. float drawDistance;
  117. bool enabled;
  118. /* readonly */
  119. bool enabledEffective;
  120. /* readonly */
  121. uint id;
  122. /* readonly */
  123. bool inView;
  124. uint lightMask;
  125. float lodBias;
  126. /* writeonly */
  127. Material material;
  128. Array<Material> materials;
  129. uint maxLights;
  130. Model model;
  131. /* readonly */
  132. Array<String> morphNames;
  133. Array<float> morphWeights;
  134. /* readonly */
  135. Node node;
  136. /* readonly */
  137. uint numAnimationStates;
  138. /* readonly */
  139. uint numAttributes;
  140. /* readonly */
  141. uint numGeometries;
  142. /* readonly */
  143. uint numMorphs;
  144. ObjectAnimation objectAnimation;
  145. bool occludee;
  146. bool occluder;
  147. /* readonly */
  148. int refs;
  149. float shadowDistance;
  150. uint shadowMask;
  151. /* readonly */
  152. Skeleton skeleton;
  153. bool temporary;
  154. /* readonly */
  155. StringHash type;
  156. /* readonly */
  157. String typeName;
  158. bool updateInvisible;
  159. uint viewMask;
  160. /* readonly */
  161. int weakRefs;
  162. /* readonly */
  163. BoundingBox worldBoundingBox;
  164. /* readonly */
  165. Zone zone;
  166. uint zoneMask;
  167. };
  168. class AnimatedSprite2D
  169. {
  170. // Methods:
  171. void ApplyAttributes();
  172. void DrawDebugGeometry(DebugRenderer, bool);
  173. Variant GetAttribute(const String&) const;
  174. ValueAnimation GetAttributeAnimation(const String&) const;
  175. float GetAttributeAnimationSpeed(const String&) const;
  176. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  177. Variant GetAttributeDefault(const String&) const;
  178. bool GetInterceptNetworkUpdate(const String&) const;
  179. bool IsInView(Camera) const;
  180. bool Load(File, bool = false);
  181. bool Load(VectorBuffer&, bool = false);
  182. bool LoadXML(const XMLElement&, bool = false);
  183. void MarkNetworkUpdate() const;
  184. void Remove();
  185. void RemoveInstanceDefault();
  186. void ResetToDefault();
  187. bool Save(File) const;
  188. bool Save(VectorBuffer&) const;
  189. bool SaveXML(XMLElement&) const;
  190. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  191. void SetAnimation(AnimationSet2D, const String&, LoopMode2D = LM_DEFAULT);
  192. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  193. bool SetAttribute(const String&, const Variant&);
  194. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  195. void SetAttributeAnimationSpeed(const String&, float);
  196. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  197. void SetFlip(bool, bool);
  198. void SetInterceptNetworkUpdate(const String&, bool);
  199. // Properties:
  200. float alpha;
  201. String animation;
  202. bool animationEnabled;
  203. AnimationSet2D animationSet;
  204. /* readonly */
  205. Array<Variant> attributeDefaults;
  206. /* readonly */
  207. Array<AttributeInfo> attributeInfos;
  208. Array<Variant> attributes;
  209. /* readonly */
  210. StringHash baseType;
  211. BlendMode blendMode;
  212. /* readonly */
  213. BoundingBox boundingBox;
  214. bool castShadows;
  215. /* readonly */
  216. String category;
  217. Color color;
  218. Material customMaterial;
  219. float drawDistance;
  220. bool enabled;
  221. /* readonly */
  222. bool enabledEffective;
  223. bool flipX;
  224. bool flipY;
  225. Vector2 hotSpot;
  226. /* readonly */
  227. uint id;
  228. /* readonly */
  229. bool inView;
  230. int layer;
  231. uint lightMask;
  232. float lodBias;
  233. LoopMode2D loopMode;
  234. uint maxLights;
  235. /* readonly */
  236. Node node;
  237. /* readonly */
  238. uint numAttributes;
  239. ObjectAnimation objectAnimation;
  240. bool occludee;
  241. bool occluder;
  242. int orderInLayer;
  243. /* readonly */
  244. int refs;
  245. float shadowDistance;
  246. uint shadowMask;
  247. float speed;
  248. Sprite2D sprite;
  249. bool temporary;
  250. /* readonly */
  251. StringHash type;
  252. /* readonly */
  253. String typeName;
  254. bool useHotSpot;
  255. uint viewMask;
  256. /* readonly */
  257. int weakRefs;
  258. /* readonly */
  259. BoundingBox worldBoundingBox;
  260. uint zoneMask;
  261. };
  262. class Animation
  263. {
  264. // Methods:
  265. void AddTrigger(float, bool, const Variant&);
  266. bool Load(File);
  267. bool Load(VectorBuffer&);
  268. void RemoveAllTriggers();
  269. void RemoveTrigger(uint);
  270. bool Save(File) const;
  271. bool Save(VectorBuffer&) const;
  272. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  273. // Properties:
  274. /* readonly */
  275. String animationName;
  276. /* readonly */
  277. StringHash baseType;
  278. /* readonly */
  279. String category;
  280. /* readonly */
  281. float length;
  282. /* readonly */
  283. uint memoryUse;
  284. String name;
  285. /* readonly */
  286. uint numTracks;
  287. uint numTriggers;
  288. /* readonly */
  289. int refs;
  290. /* readonly */
  291. Array<AnimationTriggerPoint> triggers;
  292. /* readonly */
  293. StringHash type;
  294. /* readonly */
  295. String typeName;
  296. /* readonly */
  297. uint useTimer;
  298. /* readonly */
  299. int weakRefs;
  300. };
  301. class Animation2D
  302. {
  303. // Properties:
  304. /* readonly */
  305. float length;
  306. /* readonly */
  307. bool looped;
  308. /* readonly */
  309. String name;
  310. /* readonly */
  311. int refs;
  312. /* readonly */
  313. int weakRefs;
  314. };
  315. class AnimationController
  316. {
  317. // Methods:
  318. void ApplyAttributes();
  319. void DrawDebugGeometry(DebugRenderer, bool);
  320. bool Fade(const String&, float, float);
  321. bool FadeOthers(const String&, float, float);
  322. AnimationState GetAnimationState(StringHash) const;
  323. AnimationState GetAnimationState(const String&) const;
  324. Variant GetAttribute(const String&) const;
  325. ValueAnimation GetAttributeAnimation(const String&) const;
  326. float GetAttributeAnimationSpeed(const String&) const;
  327. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  328. Variant GetAttributeDefault(const String&) const;
  329. float GetAutoFade(const String&) const;
  330. float GetFadeTarget(const String&) const;
  331. bool GetInterceptNetworkUpdate(const String&) const;
  332. uint8 GetLayer(const String&) const;
  333. float GetLength(const String&) const;
  334. bool GetLooped(const String&) const;
  335. float GetSpeed(const String&) const;
  336. float GetTime(const String&) const;
  337. float GetWeight(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 RemoveInstanceDefault();
  349. void ResetToDefault();
  350. bool Save(File) const;
  351. bool Save(VectorBuffer&) const;
  352. bool SaveXML(XMLElement&) const;
  353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  354. bool SetAttribute(const String&, const Variant&);
  355. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  356. void SetAttributeAnimationSpeed(const String&, float);
  357. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  358. bool SetAutoFade(const String&, float);
  359. void SetInterceptNetworkUpdate(const String&, bool);
  360. bool SetLayer(const String&, uint8);
  361. bool SetLooped(const String&, bool);
  362. bool SetSpeed(const String&, float);
  363. bool SetStartBone(const String&, const String&);
  364. bool SetTime(const String&, float);
  365. bool SetWeight(const String&, float);
  366. void Stop(const String&, float = 0.0f);
  367. void StopAll(float = 0.0f);
  368. void StopLayer(uint8, float = 0.0f);
  369. const String& GetStartBone(const String&) const;
  370. // Properties:
  371. bool animationEnabled;
  372. /* readonly */
  373. Array<Variant> attributeDefaults;
  374. /* readonly */
  375. Array<AttributeInfo> attributeInfos;
  376. Array<Variant> attributes;
  377. /* readonly */
  378. StringHash baseType;
  379. /* readonly */
  380. String category;
  381. bool enabled;
  382. /* readonly */
  383. bool enabledEffective;
  384. /* readonly */
  385. uint id;
  386. /* readonly */
  387. Node node;
  388. /* readonly */
  389. uint numAttributes;
  390. ObjectAnimation objectAnimation;
  391. /* readonly */
  392. int refs;
  393. bool temporary;
  394. /* readonly */
  395. StringHash type;
  396. /* readonly */
  397. String typeName;
  398. /* readonly */
  399. int weakRefs;
  400. };
  401. class AnimationSet2D
  402. {
  403. // Methods:
  404. Animation2D GetAnimation(const String&) const;
  405. Animation2D GetAnimation(uint) const;
  406. bool Load(File);
  407. bool Load(VectorBuffer&);
  408. bool Save(File) const;
  409. bool Save(VectorBuffer&) const;
  410. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  411. // Properties:
  412. /* readonly */
  413. StringHash baseType;
  414. /* readonly */
  415. String category;
  416. /* readonly */
  417. uint memoryUse;
  418. String name;
  419. /* readonly */
  420. uint numAnimations;
  421. /* readonly */
  422. int refs;
  423. /* readonly */
  424. StringHash type;
  425. /* readonly */
  426. String typeName;
  427. /* readonly */
  428. uint useTimer;
  429. /* readonly */
  430. int weakRefs;
  431. };
  432. class AnimationState
  433. {
  434. // Methods:
  435. void AddTime(float);
  436. void AddWeight(float);
  437. void Apply();
  438. float GetBoneWeight(StringHash) const;
  439. float GetBoneWeight(uint) const;
  440. uint GetTrackIndex(StringHash) const;
  441. uint GetTrackIndex(const String&) const;
  442. void SetBoneWeight(StringHash, float, bool = false);
  443. void SetBoneWeight(const String&, float, bool = false);
  444. void SetBoneWeight(uint, float, bool = false);
  445. // Properties:
  446. /* readonly */
  447. Animation animation;
  448. Array<float> boneWeights;
  449. /* readonly */
  450. bool enabled;
  451. uint8 layer;
  452. /* readonly */
  453. float length;
  454. bool looped;
  455. /* readonly */
  456. AnimatedModel model;
  457. /* readonly */
  458. Node node;
  459. /* readonly */
  460. int refs;
  461. Bone startBone;
  462. float time;
  463. /* readonly */
  464. int weakRefs;
  465. float weight;
  466. };
  467. class AnimationTriggerPoint
  468. {
  469. // Properties:
  470. Variant data;
  471. float time;
  472. };
  473. template <class T> class Array
  474. {
  475. // Methods:
  476. void Clear();
  477. void Erase(uint);
  478. int Find(const T&) const;
  479. int Find(uint, const T&) const;
  480. int FindByRef(const T&) const;
  481. int FindByRef(uint, const T&) const;
  482. void Insert(uint, const T&);
  483. void Pop();
  484. void Push(const T&);
  485. void Reserve(uint);
  486. void Resize(uint);
  487. void Reverse();
  488. void Sort();
  489. void Sort(uint, uint);
  490. void SortReverse();
  491. void SortReverse(uint, uint);
  492. // Properties:
  493. /* readonly */
  494. bool empty;
  495. uint length;
  496. };
  497. class AttributeInfo
  498. {
  499. // Properties:
  500. Variant defaultValue;
  501. /* readonly */
  502. Array<String> enumNames;
  503. uint mode;
  504. String name;
  505. VariantType type;
  506. };
  507. class Audio
  508. {
  509. // Methods:
  510. bool HasMasterGain(const String&) const;
  511. bool Play();
  512. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  513. void SetMode(int, int, bool, bool = true);
  514. void Stop();
  515. // Properties:
  516. /* readonly */
  517. StringHash baseType;
  518. /* readonly */
  519. String category;
  520. /* readonly */
  521. bool initialized;
  522. /* readonly */
  523. bool interpolation;
  524. SoundListener listener;
  525. Array<float> masterGain;
  526. /* readonly */
  527. int mixRate;
  528. /* readonly */
  529. bool playing;
  530. /* readonly */
  531. int refs;
  532. /* readonly */
  533. uint sampleSize;
  534. /* readonly */
  535. bool stereo;
  536. /* readonly */
  537. StringHash type;
  538. /* readonly */
  539. String typeName;
  540. /* readonly */
  541. int weakRefs;
  542. };
  543. class BiasParameters
  544. {
  545. // Properties:
  546. float constantBias;
  547. float slopeScaledBias;
  548. };
  549. class Billboard
  550. {
  551. // Properties:
  552. Color color;
  553. bool enabled;
  554. Vector3 position;
  555. float rotation;
  556. Vector2 size;
  557. Rect uv;
  558. };
  559. class BillboardSet
  560. {
  561. // Methods:
  562. void ApplyAttributes();
  563. void Commit();
  564. void DrawDebugGeometry(DebugRenderer, bool);
  565. Variant GetAttribute(const String&) const;
  566. ValueAnimation GetAttributeAnimation(const String&) const;
  567. float GetAttributeAnimationSpeed(const String&) const;
  568. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  569. Variant GetAttributeDefault(const String&) const;
  570. bool GetInterceptNetworkUpdate(const String&) const;
  571. bool IsInView(Camera) const;
  572. bool Load(File, bool = false);
  573. bool Load(VectorBuffer&, bool = false);
  574. bool LoadXML(const XMLElement&, bool = false);
  575. void MarkNetworkUpdate() const;
  576. void Remove();
  577. void RemoveInstanceDefault();
  578. void ResetToDefault();
  579. bool Save(File) const;
  580. bool Save(VectorBuffer&) const;
  581. bool SaveXML(XMLElement&) const;
  582. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  583. bool SetAttribute(const String&, const Variant&);
  584. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  585. void SetAttributeAnimationSpeed(const String&, float);
  586. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  587. void SetInterceptNetworkUpdate(const String&, bool);
  588. // Properties:
  589. bool animationEnabled;
  590. float animationLodBias;
  591. /* readonly */
  592. Array<Variant> attributeDefaults;
  593. /* readonly */
  594. Array<AttributeInfo> attributeInfos;
  595. Array<Variant> attributes;
  596. /* readonly */
  597. StringHash baseType;
  598. /* readonly */
  599. Array<Billboard> billboards;
  600. /* readonly */
  601. BoundingBox boundingBox;
  602. bool castShadows;
  603. /* readonly */
  604. String category;
  605. float drawDistance;
  606. bool enabled;
  607. /* readonly */
  608. bool enabledEffective;
  609. FaceCameraMode faceCameraMode;
  610. /* readonly */
  611. uint id;
  612. /* readonly */
  613. bool inView;
  614. uint lightMask;
  615. float lodBias;
  616. Material material;
  617. uint maxLights;
  618. /* readonly */
  619. Node node;
  620. /* readonly */
  621. uint numAttributes;
  622. uint numBillboards;
  623. ObjectAnimation objectAnimation;
  624. bool occludee;
  625. bool occluder;
  626. /* readonly */
  627. int refs;
  628. bool relative;
  629. bool scaled;
  630. float shadowDistance;
  631. uint shadowMask;
  632. bool sorted;
  633. bool temporary;
  634. /* readonly */
  635. StringHash type;
  636. /* readonly */
  637. String typeName;
  638. uint viewMask;
  639. /* readonly */
  640. int weakRefs;
  641. /* readonly */
  642. BoundingBox worldBoundingBox;
  643. /* readonly */
  644. Zone zone;
  645. uint zoneMask;
  646. };
  647. class Bone
  648. {
  649. // Properties:
  650. bool animated;
  651. BoundingBox boundingBox;
  652. Vector3 initialPosition;
  653. Quaternion initialRotation;
  654. Vector3 initialScale;
  655. String name;
  656. Node node;
  657. float radius;
  658. };
  659. class BorderImage
  660. {
  661. // Methods:
  662. void AddChild(UIElement);
  663. void ApplyAttributes();
  664. void BringToFront();
  665. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  666. void DisableLayoutUpdate();
  667. IntVector2 ElementToScreen(const IntVector2&);
  668. void EnableLayoutUpdate();
  669. uint FindChild(UIElement) const;
  670. Variant GetAttribute(const String&) const;
  671. ValueAnimation GetAttributeAnimation(const String&) const;
  672. float GetAttributeAnimationSpeed(const String&) const;
  673. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  674. Variant GetAttributeDefault(const String&) const;
  675. UIElement GetChild(const String&, bool = false) const;
  676. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  677. Array<UIElement> GetChildren(bool = false) const;
  678. UIElement GetElementEventSender() const;
  679. bool GetInterceptNetworkUpdate(const String&) const;
  680. uint GetNumChildren(bool) const;
  681. void InsertChild(uint, UIElement);
  682. bool IsInside(IntVector2, bool);
  683. bool IsInsideCombined(IntVector2, bool);
  684. bool Load(File, bool = false);
  685. bool Load(VectorBuffer&, bool = false);
  686. bool LoadChildXML(XMLFile, XMLFile = null);
  687. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  688. bool LoadXML(File);
  689. bool LoadXML(VectorBuffer&);
  690. bool LoadXML(XMLFile, XMLFile);
  691. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  692. bool LoadXML(const XMLElement&, bool = false);
  693. void MarkNetworkUpdate() const;
  694. void Remove();
  695. void RemoveAllChildren();
  696. void RemoveChild(UIElement, uint = 0);
  697. void RemoveChild(uint);
  698. void RemoveInstanceDefault();
  699. void ResetDeepEnabled();
  700. void ResetToDefault();
  701. bool Save(File) const;
  702. bool Save(VectorBuffer&) const;
  703. bool SaveXML(File, const String& = "\t");
  704. bool SaveXML(VectorBuffer&, const String& = "\t");
  705. bool SaveXML(XMLElement&) const;
  706. IntVector2 ScreenToElement(const IntVector2&);
  707. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  708. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  709. bool SetAttribute(const String&, const Variant&);
  710. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  711. void SetAttributeAnimationSpeed(const String&, float);
  712. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  713. void SetDeepEnabled(bool);
  714. void SetEnabledRecursive(bool);
  715. void SetFixedHeight(int);
  716. void SetFixedSize(int, int);
  717. void SetFixedWidth(int);
  718. void SetFullImageRect();
  719. void SetHoverOffset(int, int);
  720. void SetInterceptNetworkUpdate(const String&, bool);
  721. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  722. void SetMaxSize(int, int);
  723. void SetMinSize(int, int);
  724. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  725. void SetPosition(int, int);
  726. void SetSize(int, int);
  727. bool SetStyle(const String&, XMLFile = null);
  728. bool SetStyle(const XMLElement&);
  729. bool SetStyleAuto(XMLFile = null);
  730. void UpdateLayout();
  731. const Variant& GetVar(const StringHash&);
  732. // Properties:
  733. bool animationEnabled;
  734. /* readonly */
  735. Array<Variant> attributeDefaults;
  736. /* readonly */
  737. Array<AttributeInfo> attributeInfos;
  738. Array<Variant> attributes;
  739. /* readonly */
  740. StringHash baseType;
  741. BlendMode blendMode;
  742. IntRect border;
  743. bool bringToBack;
  744. bool bringToFront;
  745. /* readonly */
  746. String category;
  747. /* readonly */
  748. IntVector2 childOffset;
  749. /* readonly */
  750. Array<UIElement> children;
  751. IntRect clipBorder;
  752. bool clipChildren;
  753. /* writeonly */
  754. Color color;
  755. /* readonly */
  756. bool colorGradient;
  757. Array<Color> colors;
  758. /* readonly */
  759. IntRect combinedScreenRect;
  760. XMLFile defaultStyle;
  761. /* readonly */
  762. float derivedOpacity;
  763. /* readonly */
  764. uint dragButtonCombo;
  765. /* readonly */
  766. int dragButtonCount;
  767. uint dragDropMode;
  768. bool editable;
  769. bool elementEventSender;
  770. bool enabled;
  771. /* readonly */
  772. bool enabledSelf;
  773. /* readonly */
  774. bool fixedHeight;
  775. /* readonly */
  776. bool fixedSize;
  777. /* readonly */
  778. bool fixedWidth;
  779. bool focus;
  780. FocusMode focusMode;
  781. int height;
  782. HorizontalAlignment horizontalAlignment;
  783. IntVector2 hoverOffset;
  784. /* readonly */
  785. bool hovering;
  786. IntRect imageBorder;
  787. IntRect imageRect;
  788. int indent;
  789. int indentSpacing;
  790. /* readonly */
  791. int indentWidth;
  792. bool internal;
  793. IntRect layoutBorder;
  794. Vector2 layoutFlexScale;
  795. LayoutMode layoutMode;
  796. int layoutSpacing;
  797. int maxHeight;
  798. IntVector2 maxSize;
  799. int maxWidth;
  800. int minHeight;
  801. IntVector2 minSize;
  802. int minWidth;
  803. String name;
  804. /* readonly */
  805. uint numAllChildren;
  806. /* readonly */
  807. uint numAttributes;
  808. /* readonly */
  809. uint numChildren;
  810. ObjectAnimation objectAnimation;
  811. float opacity;
  812. UIElement parent;
  813. IntVector2 position;
  814. int priority;
  815. /* readonly */
  816. int refs;
  817. /* readonly */
  818. UIElement root;
  819. /* readonly */
  820. IntVector2 screenPosition;
  821. bool selected;
  822. IntVector2 size;
  823. bool sortChildren;
  824. String style;
  825. bool temporary;
  826. Texture texture;
  827. bool tiled;
  828. TraversalMode traversalMode;
  829. /* readonly */
  830. StringHash type;
  831. /* readonly */
  832. String typeName;
  833. bool useDerivedOpacity;
  834. /* readonly */
  835. VariantMap vars;
  836. VerticalAlignment verticalAlignment;
  837. bool visible;
  838. /* readonly */
  839. int weakRefs;
  840. int width;
  841. };
  842. class BoundingBox
  843. {
  844. // Methods:
  845. void Clear();
  846. void Clip(const BoundingBox&);
  847. void Define(const BoundingBox&);
  848. void Define(const Frustum&);
  849. void Define(const Polyhedron&);
  850. void Define(const Sphere&);
  851. void Define(const Vector3&);
  852. void Define(const Vector3&, const Vector3&);
  853. void Define(float, float);
  854. Intersection IsInside(const BoundingBox&) const;
  855. Intersection IsInside(const Sphere&) const;
  856. Intersection IsInside(const Vector3&) const;
  857. void Merge(const BoundingBox&);
  858. void Merge(const Frustum&);
  859. void Merge(const Polyhedron&);
  860. void Merge(const Sphere&);
  861. void Merge(const Vector3&);
  862. Rect Projected(const Matrix4&) const;
  863. String ToString() const;
  864. void Transform(const Matrix3&);
  865. void Transform(const Matrix3x4&);
  866. BoundingBox Transformed(const Matrix3&) const;
  867. BoundingBox Transformed(const Matrix3x4&) const;
  868. // Properties:
  869. /* readonly */
  870. Vector3 center;
  871. bool defined;
  872. /* readonly */
  873. Vector3 halfSize;
  874. Vector3 max;
  875. Vector3 min;
  876. /* readonly */
  877. Vector3 size;
  878. };
  879. class Button
  880. {
  881. // Methods:
  882. void AddChild(UIElement);
  883. void ApplyAttributes();
  884. void BringToFront();
  885. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  886. void DisableLayoutUpdate();
  887. IntVector2 ElementToScreen(const IntVector2&);
  888. void EnableLayoutUpdate();
  889. uint FindChild(UIElement) const;
  890. Variant GetAttribute(const String&) const;
  891. ValueAnimation GetAttributeAnimation(const String&) const;
  892. float GetAttributeAnimationSpeed(const String&) const;
  893. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  894. Variant GetAttributeDefault(const String&) const;
  895. UIElement GetChild(const String&, bool = false) const;
  896. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  897. Array<UIElement> GetChildren(bool = false) const;
  898. UIElement GetElementEventSender() const;
  899. bool GetInterceptNetworkUpdate(const String&) const;
  900. uint GetNumChildren(bool) const;
  901. void InsertChild(uint, UIElement);
  902. bool IsInside(IntVector2, bool);
  903. bool IsInsideCombined(IntVector2, bool);
  904. bool Load(File, bool = false);
  905. bool Load(VectorBuffer&, bool = false);
  906. bool LoadChildXML(XMLFile, XMLFile = null);
  907. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  908. bool LoadXML(File);
  909. bool LoadXML(VectorBuffer&);
  910. bool LoadXML(XMLFile, XMLFile);
  911. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  912. bool LoadXML(const XMLElement&, bool = false);
  913. void MarkNetworkUpdate() const;
  914. void Remove();
  915. void RemoveAllChildren();
  916. void RemoveChild(UIElement, uint = 0);
  917. void RemoveChild(uint);
  918. void RemoveInstanceDefault();
  919. void ResetDeepEnabled();
  920. void ResetToDefault();
  921. bool Save(File) const;
  922. bool Save(VectorBuffer&) const;
  923. bool SaveXML(File, const String& = "\t");
  924. bool SaveXML(VectorBuffer&, const String& = "\t");
  925. bool SaveXML(XMLElement&) const;
  926. IntVector2 ScreenToElement(const IntVector2&);
  927. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  928. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  929. bool SetAttribute(const String&, const Variant&);
  930. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  931. void SetAttributeAnimationSpeed(const String&, float);
  932. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  933. void SetDeepEnabled(bool);
  934. void SetEnabledRecursive(bool);
  935. void SetFixedHeight(int);
  936. void SetFixedSize(int, int);
  937. void SetFixedWidth(int);
  938. void SetFullImageRect();
  939. void SetHoverOffset(int, int);
  940. void SetInterceptNetworkUpdate(const String&, bool);
  941. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  942. void SetMaxSize(int, int);
  943. void SetMinSize(int, int);
  944. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  945. void SetPosition(int, int);
  946. void SetPressedChildOffset(int, int);
  947. void SetPressedOffset(int, int);
  948. void SetRepeat(float, float);
  949. void SetSize(int, int);
  950. bool SetStyle(const String&, XMLFile = null);
  951. bool SetStyle(const XMLElement&);
  952. bool SetStyleAuto(XMLFile = null);
  953. void UpdateLayout();
  954. const Variant& GetVar(const StringHash&);
  955. // Properties:
  956. bool animationEnabled;
  957. /* readonly */
  958. Array<Variant> attributeDefaults;
  959. /* readonly */
  960. Array<AttributeInfo> attributeInfos;
  961. Array<Variant> attributes;
  962. /* readonly */
  963. StringHash baseType;
  964. BlendMode blendMode;
  965. IntRect border;
  966. bool bringToBack;
  967. bool bringToFront;
  968. /* readonly */
  969. String category;
  970. /* readonly */
  971. IntVector2 childOffset;
  972. /* readonly */
  973. Array<UIElement> children;
  974. IntRect clipBorder;
  975. bool clipChildren;
  976. /* writeonly */
  977. Color color;
  978. /* readonly */
  979. bool colorGradient;
  980. Array<Color> colors;
  981. /* readonly */
  982. IntRect combinedScreenRect;
  983. XMLFile defaultStyle;
  984. /* readonly */
  985. float derivedOpacity;
  986. /* readonly */
  987. uint dragButtonCombo;
  988. /* readonly */
  989. int dragButtonCount;
  990. uint dragDropMode;
  991. bool editable;
  992. bool elementEventSender;
  993. bool enabled;
  994. /* readonly */
  995. bool enabledSelf;
  996. /* readonly */
  997. bool fixedHeight;
  998. /* readonly */
  999. bool fixedSize;
  1000. /* readonly */
  1001. bool fixedWidth;
  1002. bool focus;
  1003. FocusMode focusMode;
  1004. int height;
  1005. HorizontalAlignment horizontalAlignment;
  1006. IntVector2 hoverOffset;
  1007. /* readonly */
  1008. bool hovering;
  1009. IntRect imageBorder;
  1010. IntRect imageRect;
  1011. int indent;
  1012. int indentSpacing;
  1013. /* readonly */
  1014. int indentWidth;
  1015. bool internal;
  1016. IntRect layoutBorder;
  1017. Vector2 layoutFlexScale;
  1018. LayoutMode layoutMode;
  1019. int layoutSpacing;
  1020. int maxHeight;
  1021. IntVector2 maxSize;
  1022. int maxWidth;
  1023. int minHeight;
  1024. IntVector2 minSize;
  1025. int minWidth;
  1026. String name;
  1027. /* readonly */
  1028. uint numAllChildren;
  1029. /* readonly */
  1030. uint numAttributes;
  1031. /* readonly */
  1032. uint numChildren;
  1033. ObjectAnimation objectAnimation;
  1034. float opacity;
  1035. UIElement parent;
  1036. IntVector2 position;
  1037. /* readonly */
  1038. bool pressed;
  1039. IntVector2 pressedChildOffset;
  1040. IntVector2 pressedOffset;
  1041. int priority;
  1042. /* readonly */
  1043. int refs;
  1044. float repeatDelay;
  1045. float repeatRate;
  1046. /* readonly */
  1047. UIElement root;
  1048. /* readonly */
  1049. IntVector2 screenPosition;
  1050. bool selected;
  1051. IntVector2 size;
  1052. bool sortChildren;
  1053. String style;
  1054. bool temporary;
  1055. Texture texture;
  1056. bool tiled;
  1057. TraversalMode traversalMode;
  1058. /* readonly */
  1059. StringHash type;
  1060. /* readonly */
  1061. String typeName;
  1062. bool useDerivedOpacity;
  1063. /* readonly */
  1064. VariantMap vars;
  1065. VerticalAlignment verticalAlignment;
  1066. bool visible;
  1067. /* readonly */
  1068. int weakRefs;
  1069. int width;
  1070. };
  1071. class Camera
  1072. {
  1073. // Methods:
  1074. void ApplyAttributes();
  1075. void DrawDebugGeometry(DebugRenderer, bool);
  1076. Variant GetAttribute(const String&) const;
  1077. ValueAnimation GetAttributeAnimation(const String&) const;
  1078. float GetAttributeAnimationSpeed(const String&) const;
  1079. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1080. Variant GetAttributeDefault(const String&) const;
  1081. float GetDistance(const Vector3&) const;
  1082. float GetDistanceSquared(const Vector3&) const;
  1083. bool GetInterceptNetworkUpdate(const String&) const;
  1084. Ray GetScreenRay(float, float) const;
  1085. Frustum GetSplitFrustum(float, float) const;
  1086. bool Load(File, bool = false);
  1087. bool Load(VectorBuffer&, bool = false);
  1088. bool LoadXML(const XMLElement&, bool = false);
  1089. void MarkNetworkUpdate() const;
  1090. void Remove();
  1091. void RemoveInstanceDefault();
  1092. void ResetToDefault();
  1093. bool Save(File) const;
  1094. bool Save(VectorBuffer&) const;
  1095. bool SaveXML(XMLElement&) const;
  1096. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1097. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1098. bool SetAttribute(const String&, const Variant&);
  1099. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1100. void SetAttributeAnimationSpeed(const String&, float);
  1101. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1102. void SetInterceptNetworkUpdate(const String&, bool);
  1103. void SetOrthoSize(const Vector2&);
  1104. Vector2 WorldToScreenPoint(const Vector3&) const;
  1105. // Properties:
  1106. bool animationEnabled;
  1107. float aspectRatio;
  1108. /* readonly */
  1109. Array<Variant> attributeDefaults;
  1110. /* readonly */
  1111. Array<AttributeInfo> attributeInfos;
  1112. Array<Variant> attributes;
  1113. bool autoAspectRatio;
  1114. /* readonly */
  1115. StringHash baseType;
  1116. /* readonly */
  1117. String category;
  1118. Plane clipPlane;
  1119. /* readonly */
  1120. Matrix3x4 effectiveWorldTransform;
  1121. bool enabled;
  1122. /* readonly */
  1123. bool enabledEffective;
  1124. float farClip;
  1125. FillMode fillMode;
  1126. float fov;
  1127. /* readonly */
  1128. Frustum frustum;
  1129. /* readonly */
  1130. float halfViewSize;
  1131. /* readonly */
  1132. uint id;
  1133. float lodBias;
  1134. float nearClip;
  1135. /* readonly */
  1136. Node node;
  1137. /* readonly */
  1138. uint numAttributes;
  1139. ObjectAnimation objectAnimation;
  1140. float orthoSize;
  1141. bool orthographic;
  1142. /* readonly */
  1143. Matrix4 projection;
  1144. Vector2 projectionOffset;
  1145. Plane reflectionPlane;
  1146. /* readonly */
  1147. int refs;
  1148. bool temporary;
  1149. /* readonly */
  1150. StringHash type;
  1151. /* readonly */
  1152. String typeName;
  1153. bool useClipping;
  1154. bool useReflection;
  1155. /* readonly */
  1156. Matrix3x4 view;
  1157. uint viewMask;
  1158. uint viewOverrideFlags;
  1159. /* readonly */
  1160. Frustum viewSpaceFrustum;
  1161. /* readonly */
  1162. int weakRefs;
  1163. float zoom;
  1164. };
  1165. class CascadeParameters
  1166. {
  1167. // Properties:
  1168. float biasAutoAdjust;
  1169. float fadeStart;
  1170. float split1;
  1171. float split2;
  1172. float split3;
  1173. float split4;
  1174. };
  1175. class CheckBox
  1176. {
  1177. // Methods:
  1178. void AddChild(UIElement);
  1179. void ApplyAttributes();
  1180. void BringToFront();
  1181. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1182. void DisableLayoutUpdate();
  1183. IntVector2 ElementToScreen(const IntVector2&);
  1184. void EnableLayoutUpdate();
  1185. uint FindChild(UIElement) const;
  1186. Variant GetAttribute(const String&) const;
  1187. ValueAnimation GetAttributeAnimation(const String&) const;
  1188. float GetAttributeAnimationSpeed(const String&) const;
  1189. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1190. Variant GetAttributeDefault(const String&) const;
  1191. UIElement GetChild(const String&, bool = false) const;
  1192. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1193. Array<UIElement> GetChildren(bool = false) const;
  1194. UIElement GetElementEventSender() const;
  1195. bool GetInterceptNetworkUpdate(const String&) const;
  1196. uint GetNumChildren(bool) const;
  1197. void InsertChild(uint, UIElement);
  1198. bool IsInside(IntVector2, bool);
  1199. bool IsInsideCombined(IntVector2, bool);
  1200. bool Load(File, bool = false);
  1201. bool Load(VectorBuffer&, bool = false);
  1202. bool LoadChildXML(XMLFile, XMLFile = null);
  1203. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1204. bool LoadXML(File);
  1205. bool LoadXML(VectorBuffer&);
  1206. bool LoadXML(XMLFile, XMLFile);
  1207. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1208. bool LoadXML(const XMLElement&, bool = false);
  1209. void MarkNetworkUpdate() const;
  1210. void Remove();
  1211. void RemoveAllChildren();
  1212. void RemoveChild(UIElement, uint = 0);
  1213. void RemoveChild(uint);
  1214. void RemoveInstanceDefault();
  1215. void ResetDeepEnabled();
  1216. void ResetToDefault();
  1217. bool Save(File) const;
  1218. bool Save(VectorBuffer&) const;
  1219. bool SaveXML(File, const String& = "\t");
  1220. bool SaveXML(VectorBuffer&, const String& = "\t");
  1221. bool SaveXML(XMLElement&) const;
  1222. IntVector2 ScreenToElement(const IntVector2&);
  1223. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1224. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1225. bool SetAttribute(const String&, const Variant&);
  1226. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1227. void SetAttributeAnimationSpeed(const String&, float);
  1228. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1229. void SetCheckedOffset(int, int);
  1230. void SetDeepEnabled(bool);
  1231. void SetEnabledRecursive(bool);
  1232. void SetFixedHeight(int);
  1233. void SetFixedSize(int, int);
  1234. void SetFixedWidth(int);
  1235. void SetFullImageRect();
  1236. void SetHoverOffset(int, int);
  1237. void SetInterceptNetworkUpdate(const String&, bool);
  1238. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1239. void SetMaxSize(int, int);
  1240. void SetMinSize(int, int);
  1241. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1242. void SetPosition(int, int);
  1243. void SetSize(int, int);
  1244. bool SetStyle(const String&, XMLFile = null);
  1245. bool SetStyle(const XMLElement&);
  1246. bool SetStyleAuto(XMLFile = null);
  1247. void UpdateLayout();
  1248. const Variant& GetVar(const StringHash&);
  1249. // Properties:
  1250. bool animationEnabled;
  1251. /* readonly */
  1252. Array<Variant> attributeDefaults;
  1253. /* readonly */
  1254. Array<AttributeInfo> attributeInfos;
  1255. Array<Variant> attributes;
  1256. /* readonly */
  1257. StringHash baseType;
  1258. BlendMode blendMode;
  1259. IntRect border;
  1260. bool bringToBack;
  1261. bool bringToFront;
  1262. /* readonly */
  1263. String category;
  1264. bool checked;
  1265. IntVector2 checkedOffset;
  1266. /* readonly */
  1267. IntVector2 childOffset;
  1268. /* readonly */
  1269. Array<UIElement> children;
  1270. IntRect clipBorder;
  1271. bool clipChildren;
  1272. /* writeonly */
  1273. Color color;
  1274. /* readonly */
  1275. bool colorGradient;
  1276. Array<Color> colors;
  1277. /* readonly */
  1278. IntRect combinedScreenRect;
  1279. XMLFile defaultStyle;
  1280. /* readonly */
  1281. float derivedOpacity;
  1282. /* readonly */
  1283. uint dragButtonCombo;
  1284. /* readonly */
  1285. int dragButtonCount;
  1286. uint dragDropMode;
  1287. bool editable;
  1288. bool elementEventSender;
  1289. bool enabled;
  1290. /* readonly */
  1291. bool enabledSelf;
  1292. /* readonly */
  1293. bool fixedHeight;
  1294. /* readonly */
  1295. bool fixedSize;
  1296. /* readonly */
  1297. bool fixedWidth;
  1298. bool focus;
  1299. FocusMode focusMode;
  1300. int height;
  1301. HorizontalAlignment horizontalAlignment;
  1302. IntVector2 hoverOffset;
  1303. /* readonly */
  1304. bool hovering;
  1305. IntRect imageBorder;
  1306. IntRect imageRect;
  1307. int indent;
  1308. int indentSpacing;
  1309. /* readonly */
  1310. int indentWidth;
  1311. bool internal;
  1312. IntRect layoutBorder;
  1313. Vector2 layoutFlexScale;
  1314. LayoutMode layoutMode;
  1315. int layoutSpacing;
  1316. int maxHeight;
  1317. IntVector2 maxSize;
  1318. int maxWidth;
  1319. int minHeight;
  1320. IntVector2 minSize;
  1321. int minWidth;
  1322. String name;
  1323. /* readonly */
  1324. uint numAllChildren;
  1325. /* readonly */
  1326. uint numAttributes;
  1327. /* readonly */
  1328. uint numChildren;
  1329. ObjectAnimation objectAnimation;
  1330. float opacity;
  1331. UIElement parent;
  1332. IntVector2 position;
  1333. int priority;
  1334. /* readonly */
  1335. int refs;
  1336. /* readonly */
  1337. UIElement root;
  1338. /* readonly */
  1339. IntVector2 screenPosition;
  1340. bool selected;
  1341. IntVector2 size;
  1342. bool sortChildren;
  1343. String style;
  1344. bool temporary;
  1345. Texture texture;
  1346. bool tiled;
  1347. TraversalMode traversalMode;
  1348. /* readonly */
  1349. StringHash type;
  1350. /* readonly */
  1351. String typeName;
  1352. bool useDerivedOpacity;
  1353. /* readonly */
  1354. VariantMap vars;
  1355. VerticalAlignment verticalAlignment;
  1356. bool visible;
  1357. /* readonly */
  1358. int weakRefs;
  1359. int width;
  1360. };
  1361. class CollisionBox2D
  1362. {
  1363. // Methods:
  1364. void ApplyAttributes();
  1365. void DrawDebugGeometry(DebugRenderer, bool);
  1366. Variant GetAttribute(const String&) const;
  1367. ValueAnimation GetAttributeAnimation(const String&) const;
  1368. float GetAttributeAnimationSpeed(const String&) const;
  1369. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1370. Variant GetAttributeDefault(const String&) const;
  1371. bool GetInterceptNetworkUpdate(const String&) const;
  1372. bool Load(File, bool = false);
  1373. bool Load(VectorBuffer&, bool = false);
  1374. bool LoadXML(const XMLElement&, bool = false);
  1375. void MarkNetworkUpdate() const;
  1376. void Remove();
  1377. void RemoveInstanceDefault();
  1378. void ResetToDefault();
  1379. bool Save(File) const;
  1380. bool Save(VectorBuffer&) const;
  1381. bool SaveXML(XMLElement&) const;
  1382. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1383. bool SetAttribute(const String&, const Variant&);
  1384. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1385. void SetAttributeAnimationSpeed(const String&, float);
  1386. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1387. void SetCenter(float, float);
  1388. void SetInterceptNetworkUpdate(const String&, bool);
  1389. void SetSize(float, float);
  1390. // Properties:
  1391. float angle;
  1392. bool animationEnabled;
  1393. /* readonly */
  1394. Array<Variant> attributeDefaults;
  1395. /* readonly */
  1396. Array<AttributeInfo> attributeInfos;
  1397. Array<Variant> attributes;
  1398. /* readonly */
  1399. StringHash baseType;
  1400. /* readonly */
  1401. String category;
  1402. int categoryBits;
  1403. Vector2 center;
  1404. float density;
  1405. bool enabled;
  1406. /* readonly */
  1407. bool enabledEffective;
  1408. float friction;
  1409. int groupIndex;
  1410. /* readonly */
  1411. uint id;
  1412. /* readonly */
  1413. float inertia;
  1414. int maskBits;
  1415. /* readonly */
  1416. float mass;
  1417. /* readonly */
  1418. Vector2 massCenter;
  1419. /* readonly */
  1420. Node node;
  1421. /* readonly */
  1422. uint numAttributes;
  1423. ObjectAnimation objectAnimation;
  1424. /* readonly */
  1425. int refs;
  1426. float restitution;
  1427. Vector2 size;
  1428. bool temporary;
  1429. bool trigger;
  1430. /* readonly */
  1431. StringHash type;
  1432. /* readonly */
  1433. String typeName;
  1434. /* readonly */
  1435. int weakRefs;
  1436. };
  1437. class CollisionChain2D
  1438. {
  1439. // Methods:
  1440. void ApplyAttributes();
  1441. void DrawDebugGeometry(DebugRenderer, bool);
  1442. Variant GetAttribute(const String&) const;
  1443. ValueAnimation GetAttributeAnimation(const String&) const;
  1444. float GetAttributeAnimationSpeed(const String&) const;
  1445. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1446. Variant GetAttributeDefault(const String&) const;
  1447. bool GetInterceptNetworkUpdate(const String&) const;
  1448. Array<Vector2> GetVertices() const;
  1449. bool Load(File, bool = false);
  1450. bool Load(VectorBuffer&, bool = false);
  1451. bool LoadXML(const XMLElement&, bool = false);
  1452. void MarkNetworkUpdate() const;
  1453. void Remove();
  1454. void RemoveInstanceDefault();
  1455. void ResetToDefault();
  1456. bool Save(File) const;
  1457. bool Save(VectorBuffer&) const;
  1458. bool SaveXML(XMLElement&) const;
  1459. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1460. bool SetAttribute(const String&, const Variant&);
  1461. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1462. void SetAttributeAnimationSpeed(const String&, float);
  1463. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1464. void SetInterceptNetworkUpdate(const String&, bool);
  1465. void SetVertex(uint, const Vector2&);
  1466. void SetVertices(Array<Vector2>);
  1467. const Vector2& GetVertex(uint) const;
  1468. // Properties:
  1469. bool animationEnabled;
  1470. /* readonly */
  1471. Array<Variant> attributeDefaults;
  1472. /* readonly */
  1473. Array<AttributeInfo> attributeInfos;
  1474. Array<Variant> attributes;
  1475. /* readonly */
  1476. StringHash baseType;
  1477. /* readonly */
  1478. String category;
  1479. int categoryBits;
  1480. float density;
  1481. bool enabled;
  1482. /* readonly */
  1483. bool enabledEffective;
  1484. float friction;
  1485. int groupIndex;
  1486. /* readonly */
  1487. uint id;
  1488. /* readonly */
  1489. float inertia;
  1490. bool loop;
  1491. int maskBits;
  1492. /* readonly */
  1493. float mass;
  1494. /* readonly */
  1495. Vector2 massCenter;
  1496. /* readonly */
  1497. Node node;
  1498. /* readonly */
  1499. uint numAttributes;
  1500. ObjectAnimation objectAnimation;
  1501. /* readonly */
  1502. int refs;
  1503. float restitution;
  1504. bool temporary;
  1505. bool trigger;
  1506. /* readonly */
  1507. StringHash type;
  1508. /* readonly */
  1509. String typeName;
  1510. uint vertexCount;
  1511. /* readonly */
  1512. int weakRefs;
  1513. };
  1514. class CollisionCircle2D
  1515. {
  1516. // Methods:
  1517. void ApplyAttributes();
  1518. void DrawDebugGeometry(DebugRenderer, bool);
  1519. Variant GetAttribute(const String&) const;
  1520. ValueAnimation GetAttributeAnimation(const String&) const;
  1521. float GetAttributeAnimationSpeed(const String&) const;
  1522. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1523. Variant GetAttributeDefault(const String&) const;
  1524. bool GetInterceptNetworkUpdate(const String&) const;
  1525. bool Load(File, bool = false);
  1526. bool Load(VectorBuffer&, bool = false);
  1527. bool LoadXML(const XMLElement&, bool = false);
  1528. void MarkNetworkUpdate() const;
  1529. void Remove();
  1530. void RemoveInstanceDefault();
  1531. void ResetToDefault();
  1532. bool Save(File) const;
  1533. bool Save(VectorBuffer&) const;
  1534. bool SaveXML(XMLElement&) const;
  1535. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1536. bool SetAttribute(const String&, const Variant&);
  1537. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1538. void SetAttributeAnimationSpeed(const String&, float);
  1539. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1540. void SetCenter(float, float);
  1541. void SetInterceptNetworkUpdate(const String&, bool);
  1542. // Properties:
  1543. bool animationEnabled;
  1544. /* readonly */
  1545. Array<Variant> attributeDefaults;
  1546. /* readonly */
  1547. Array<AttributeInfo> attributeInfos;
  1548. Array<Variant> attributes;
  1549. /* readonly */
  1550. StringHash baseType;
  1551. /* readonly */
  1552. String category;
  1553. int categoryBits;
  1554. Vector2 center;
  1555. float density;
  1556. bool enabled;
  1557. /* readonly */
  1558. bool enabledEffective;
  1559. float friction;
  1560. int groupIndex;
  1561. /* readonly */
  1562. uint id;
  1563. /* readonly */
  1564. float inertia;
  1565. int maskBits;
  1566. /* readonly */
  1567. float mass;
  1568. /* readonly */
  1569. Vector2 massCenter;
  1570. /* readonly */
  1571. Node node;
  1572. /* readonly */
  1573. uint numAttributes;
  1574. ObjectAnimation objectAnimation;
  1575. float radius;
  1576. /* readonly */
  1577. int refs;
  1578. float restitution;
  1579. bool temporary;
  1580. bool trigger;
  1581. /* readonly */
  1582. StringHash type;
  1583. /* readonly */
  1584. String typeName;
  1585. /* readonly */
  1586. int weakRefs;
  1587. };
  1588. class CollisionEdge2D
  1589. {
  1590. // Methods:
  1591. void ApplyAttributes();
  1592. void DrawDebugGeometry(DebugRenderer, bool);
  1593. Variant GetAttribute(const String&) const;
  1594. ValueAnimation GetAttributeAnimation(const String&) const;
  1595. float GetAttributeAnimationSpeed(const String&) const;
  1596. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1597. Variant GetAttributeDefault(const String&) const;
  1598. bool GetInterceptNetworkUpdate(const String&) const;
  1599. bool Load(File, bool = false);
  1600. bool Load(VectorBuffer&, bool = false);
  1601. bool LoadXML(const XMLElement&, bool = false);
  1602. void MarkNetworkUpdate() const;
  1603. void Remove();
  1604. void RemoveInstanceDefault();
  1605. void ResetToDefault();
  1606. bool Save(File) const;
  1607. bool Save(VectorBuffer&) const;
  1608. bool SaveXML(XMLElement&) const;
  1609. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1610. bool SetAttribute(const String&, const Variant&);
  1611. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1612. void SetAttributeAnimationSpeed(const String&, float);
  1613. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1614. void SetInterceptNetworkUpdate(const String&, bool);
  1615. void SetVertices(const Vector2&, const Vector2&);
  1616. // Properties:
  1617. bool animationEnabled;
  1618. /* readonly */
  1619. Array<Variant> attributeDefaults;
  1620. /* readonly */
  1621. Array<AttributeInfo> attributeInfos;
  1622. Array<Variant> attributes;
  1623. /* readonly */
  1624. StringHash baseType;
  1625. /* readonly */
  1626. String category;
  1627. int categoryBits;
  1628. float density;
  1629. bool enabled;
  1630. /* readonly */
  1631. bool enabledEffective;
  1632. float friction;
  1633. int groupIndex;
  1634. /* readonly */
  1635. uint id;
  1636. /* readonly */
  1637. float inertia;
  1638. int maskBits;
  1639. /* readonly */
  1640. float mass;
  1641. /* readonly */
  1642. Vector2 massCenter;
  1643. /* readonly */
  1644. Node node;
  1645. /* readonly */
  1646. uint numAttributes;
  1647. ObjectAnimation objectAnimation;
  1648. /* readonly */
  1649. int refs;
  1650. float restitution;
  1651. bool temporary;
  1652. bool trigger;
  1653. /* readonly */
  1654. StringHash type;
  1655. /* readonly */
  1656. String typeName;
  1657. Vector2 vertex1;
  1658. Vector2 vertex2;
  1659. /* readonly */
  1660. int weakRefs;
  1661. };
  1662. class CollisionPolygon2D
  1663. {
  1664. // Methods:
  1665. void ApplyAttributes();
  1666. void DrawDebugGeometry(DebugRenderer, bool);
  1667. Variant GetAttribute(const String&) const;
  1668. ValueAnimation GetAttributeAnimation(const String&) const;
  1669. float GetAttributeAnimationSpeed(const String&) const;
  1670. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1671. Variant GetAttributeDefault(const String&) const;
  1672. bool GetInterceptNetworkUpdate(const String&) const;
  1673. Array<Vector2> GetVertices() const;
  1674. bool Load(File, bool = false);
  1675. bool Load(VectorBuffer&, bool = false);
  1676. bool LoadXML(const XMLElement&, bool = false);
  1677. void MarkNetworkUpdate() const;
  1678. void Remove();
  1679. void RemoveInstanceDefault();
  1680. void ResetToDefault();
  1681. bool Save(File) const;
  1682. bool Save(VectorBuffer&) const;
  1683. bool SaveXML(XMLElement&) const;
  1684. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1685. bool SetAttribute(const String&, const Variant&);
  1686. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1687. void SetAttributeAnimationSpeed(const String&, float);
  1688. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1689. void SetInterceptNetworkUpdate(const String&, bool);
  1690. void SetVertex(uint, const Vector2&);
  1691. void SetVertices(Array<Vector2>);
  1692. const Vector2& GetVertex(uint) const;
  1693. // Properties:
  1694. bool animationEnabled;
  1695. /* readonly */
  1696. Array<Variant> attributeDefaults;
  1697. /* readonly */
  1698. Array<AttributeInfo> attributeInfos;
  1699. Array<Variant> attributes;
  1700. /* readonly */
  1701. StringHash baseType;
  1702. /* readonly */
  1703. String category;
  1704. int categoryBits;
  1705. float density;
  1706. bool enabled;
  1707. /* readonly */
  1708. bool enabledEffective;
  1709. float friction;
  1710. int groupIndex;
  1711. /* readonly */
  1712. uint id;
  1713. /* readonly */
  1714. float inertia;
  1715. int maskBits;
  1716. /* readonly */
  1717. float mass;
  1718. /* readonly */
  1719. Vector2 massCenter;
  1720. /* readonly */
  1721. Node node;
  1722. /* readonly */
  1723. uint numAttributes;
  1724. ObjectAnimation objectAnimation;
  1725. /* readonly */
  1726. int refs;
  1727. float restitution;
  1728. bool temporary;
  1729. bool trigger;
  1730. /* readonly */
  1731. StringHash type;
  1732. /* readonly */
  1733. String typeName;
  1734. uint vertexCount;
  1735. /* readonly */
  1736. int weakRefs;
  1737. };
  1738. class CollisionShape
  1739. {
  1740. // Methods:
  1741. void ApplyAttributes();
  1742. void DrawDebugGeometry(DebugRenderer, bool);
  1743. Variant GetAttribute(const String&) const;
  1744. ValueAnimation GetAttributeAnimation(const String&) const;
  1745. float GetAttributeAnimationSpeed(const String&) const;
  1746. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1747. Variant GetAttributeDefault(const String&) const;
  1748. bool GetInterceptNetworkUpdate(const String&) const;
  1749. bool Load(File, bool = false);
  1750. bool Load(VectorBuffer&, bool = false);
  1751. bool LoadXML(const XMLElement&, bool = false);
  1752. void MarkNetworkUpdate() const;
  1753. void Remove();
  1754. void RemoveInstanceDefault();
  1755. void ResetToDefault();
  1756. bool Save(File) const;
  1757. bool Save(VectorBuffer&) const;
  1758. bool SaveXML(XMLElement&) const;
  1759. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1760. bool SetAttribute(const String&, const Variant&);
  1761. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1762. void SetAttributeAnimationSpeed(const String&, float);
  1763. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1764. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1765. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1766. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1767. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1768. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1769. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1770. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1771. void SetInterceptNetworkUpdate(const String&, bool);
  1772. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1773. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1774. void SetTerrain(uint = 0);
  1775. void SetTransform(const Vector3&, const Quaternion&);
  1776. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1777. // Properties:
  1778. bool animationEnabled;
  1779. /* readonly */
  1780. Array<Variant> attributeDefaults;
  1781. /* readonly */
  1782. Array<AttributeInfo> attributeInfos;
  1783. Array<Variant> attributes;
  1784. /* readonly */
  1785. StringHash baseType;
  1786. /* readonly */
  1787. String category;
  1788. bool enabled;
  1789. /* readonly */
  1790. bool enabledEffective;
  1791. /* readonly */
  1792. uint id;
  1793. uint lodLevel;
  1794. float margin;
  1795. Model model;
  1796. /* readonly */
  1797. Node node;
  1798. /* readonly */
  1799. uint numAttributes;
  1800. ObjectAnimation objectAnimation;
  1801. Vector3 position;
  1802. /* readonly */
  1803. int refs;
  1804. Quaternion rotation;
  1805. ShapeType shapeType;
  1806. Vector3 size;
  1807. bool temporary;
  1808. /* readonly */
  1809. StringHash type;
  1810. /* readonly */
  1811. String typeName;
  1812. /* readonly */
  1813. int weakRefs;
  1814. /* readonly */
  1815. BoundingBox worldBoundingBox;
  1816. };
  1817. class CollisionShape2D
  1818. {
  1819. // Methods:
  1820. void ApplyAttributes();
  1821. void DrawDebugGeometry(DebugRenderer, bool);
  1822. Variant GetAttribute(const String&) const;
  1823. ValueAnimation GetAttributeAnimation(const String&) const;
  1824. float GetAttributeAnimationSpeed(const String&) const;
  1825. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1826. Variant GetAttributeDefault(const String&) const;
  1827. bool GetInterceptNetworkUpdate(const String&) const;
  1828. bool Load(File, bool = false);
  1829. bool Load(VectorBuffer&, bool = false);
  1830. bool LoadXML(const XMLElement&, bool = false);
  1831. void MarkNetworkUpdate() const;
  1832. void Remove();
  1833. void RemoveInstanceDefault();
  1834. void ResetToDefault();
  1835. bool Save(File) const;
  1836. bool Save(VectorBuffer&) const;
  1837. bool SaveXML(XMLElement&) const;
  1838. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1839. bool SetAttribute(const String&, const Variant&);
  1840. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1841. void SetAttributeAnimationSpeed(const String&, float);
  1842. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1843. void SetInterceptNetworkUpdate(const String&, bool);
  1844. // Properties:
  1845. bool animationEnabled;
  1846. /* readonly */
  1847. Array<Variant> attributeDefaults;
  1848. /* readonly */
  1849. Array<AttributeInfo> attributeInfos;
  1850. Array<Variant> attributes;
  1851. /* readonly */
  1852. StringHash baseType;
  1853. /* readonly */
  1854. String category;
  1855. int categoryBits;
  1856. float density;
  1857. bool enabled;
  1858. /* readonly */
  1859. bool enabledEffective;
  1860. float friction;
  1861. int groupIndex;
  1862. /* readonly */
  1863. uint id;
  1864. /* readonly */
  1865. float inertia;
  1866. int maskBits;
  1867. /* readonly */
  1868. float mass;
  1869. /* readonly */
  1870. Vector2 massCenter;
  1871. /* readonly */
  1872. Node node;
  1873. /* readonly */
  1874. uint numAttributes;
  1875. ObjectAnimation objectAnimation;
  1876. /* readonly */
  1877. int refs;
  1878. float restitution;
  1879. bool temporary;
  1880. bool trigger;
  1881. /* readonly */
  1882. StringHash type;
  1883. /* readonly */
  1884. String typeName;
  1885. /* readonly */
  1886. int weakRefs;
  1887. };
  1888. class Color
  1889. {
  1890. // Methods:
  1891. Color Abs() const;
  1892. float Average() const;
  1893. float Chroma() const;
  1894. void Clip(bool);
  1895. bool Equals() const;
  1896. void FromHSL(float, float, float, float);
  1897. void FromHSV(float, float, float, float);
  1898. float Hue() const;
  1899. void Invert(bool);
  1900. Color Lerp(const Color&, float) const;
  1901. float Lightness() const;
  1902. float Luma() const;
  1903. float MaxRGB() const;
  1904. float MinRGB() const;
  1905. float Range() const;
  1906. float SaturationHSL() const;
  1907. float SaturationHSV() const;
  1908. float SumRGB() const;
  1909. Vector3 ToHSL() const;
  1910. Vector3 ToHSV() const;
  1911. String ToString() const;
  1912. uint ToUInt() const;
  1913. float Value() const;
  1914. // Properties:
  1915. float a;
  1916. float b;
  1917. /* readonly */
  1918. Array<float> data;
  1919. float g;
  1920. float r;
  1921. /* readonly */
  1922. Vector3 rgb;
  1923. /* readonly */
  1924. Vector4 rgba;
  1925. };
  1926. class ColorFrame
  1927. {
  1928. // Properties:
  1929. Color color;
  1930. float time;
  1931. };
  1932. class Component
  1933. {
  1934. // Methods:
  1935. void ApplyAttributes();
  1936. void DrawDebugGeometry(DebugRenderer, bool);
  1937. Variant GetAttribute(const String&) const;
  1938. ValueAnimation GetAttributeAnimation(const String&) const;
  1939. float GetAttributeAnimationSpeed(const String&) const;
  1940. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1941. Variant GetAttributeDefault(const String&) const;
  1942. bool GetInterceptNetworkUpdate(const String&) const;
  1943. bool Load(File, bool = false);
  1944. bool Load(VectorBuffer&, bool = false);
  1945. bool LoadXML(const XMLElement&, bool = false);
  1946. void MarkNetworkUpdate() const;
  1947. void Remove();
  1948. void RemoveInstanceDefault();
  1949. void ResetToDefault();
  1950. bool Save(File) const;
  1951. bool Save(VectorBuffer&) const;
  1952. bool SaveXML(XMLElement&) const;
  1953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1954. bool SetAttribute(const String&, const Variant&);
  1955. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1956. void SetAttributeAnimationSpeed(const String&, float);
  1957. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1958. void SetInterceptNetworkUpdate(const String&, bool);
  1959. // Properties:
  1960. bool animationEnabled;
  1961. /* readonly */
  1962. Array<Variant> attributeDefaults;
  1963. /* readonly */
  1964. Array<AttributeInfo> attributeInfos;
  1965. Array<Variant> attributes;
  1966. /* readonly */
  1967. StringHash baseType;
  1968. /* readonly */
  1969. String category;
  1970. bool enabled;
  1971. /* readonly */
  1972. bool enabledEffective;
  1973. /* readonly */
  1974. uint id;
  1975. /* readonly */
  1976. Node node;
  1977. /* readonly */
  1978. uint numAttributes;
  1979. ObjectAnimation objectAnimation;
  1980. /* readonly */
  1981. int refs;
  1982. bool temporary;
  1983. /* readonly */
  1984. StringHash type;
  1985. /* readonly */
  1986. String typeName;
  1987. /* readonly */
  1988. int weakRefs;
  1989. };
  1990. class Connection
  1991. {
  1992. // Methods:
  1993. void Disconnect(int = 0);
  1994. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1995. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  1996. void SendPackageToClient(PackageFile);
  1997. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  1998. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  1999. String ToString() const;
  2000. // Properties:
  2001. /* readonly */
  2002. String address;
  2003. /* readonly */
  2004. StringHash baseType;
  2005. /* readonly */
  2006. String category;
  2007. /* readonly */
  2008. bool client;
  2009. /* readonly */
  2010. bool connectPending;
  2011. /* readonly */
  2012. bool connected;
  2013. Controls controls;
  2014. /* readonly */
  2015. String downloadName;
  2016. /* readonly */
  2017. float downloadProgress;
  2018. VariantMap identity;
  2019. bool logStatistics;
  2020. /* readonly */
  2021. uint numDownloads;
  2022. /* readonly */
  2023. uint16 port;
  2024. Vector3 position;
  2025. /* readonly */
  2026. int refs;
  2027. Quaternion rotation;
  2028. Scene scene;
  2029. /* readonly */
  2030. bool sceneLoaded;
  2031. uint8 timeStamp;
  2032. /* readonly */
  2033. StringHash type;
  2034. /* readonly */
  2035. String typeName;
  2036. /* readonly */
  2037. int weakRefs;
  2038. };
  2039. class Console
  2040. {
  2041. // Methods:
  2042. void CopySelectedRows() const;
  2043. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2044. void Toggle();
  2045. void UpdateElements();
  2046. // Properties:
  2047. bool autoVisibleOnError;
  2048. /* readonly */
  2049. BorderImage background;
  2050. /* readonly */
  2051. StringHash baseType;
  2052. /* readonly */
  2053. String category;
  2054. /* readonly */
  2055. Button closeButton;
  2056. String commandInterpreter;
  2057. XMLFile defaultStyle;
  2058. bool focusOnShow;
  2059. /* readonly */
  2060. uint historyPosition;
  2061. /* readonly */
  2062. Array<String> historyRow;
  2063. /* readonly */
  2064. LineEdit lineEdit;
  2065. uint numBufferedRows;
  2066. uint numHistoryRows;
  2067. uint numRows;
  2068. /* readonly */
  2069. int refs;
  2070. /* readonly */
  2071. StringHash type;
  2072. /* readonly */
  2073. String typeName;
  2074. bool visible;
  2075. /* readonly */
  2076. int weakRefs;
  2077. };
  2078. class Constraint
  2079. {
  2080. // Methods:
  2081. void ApplyAttributes();
  2082. void DrawDebugGeometry(DebugRenderer, bool);
  2083. Variant GetAttribute(const String&) const;
  2084. ValueAnimation GetAttributeAnimation(const String&) const;
  2085. float GetAttributeAnimationSpeed(const String&) const;
  2086. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2087. Variant GetAttributeDefault(const String&) const;
  2088. bool GetInterceptNetworkUpdate(const String&) const;
  2089. bool Load(File, bool = false);
  2090. bool Load(VectorBuffer&, bool = false);
  2091. bool LoadXML(const XMLElement&, bool = false);
  2092. void MarkNetworkUpdate() const;
  2093. void Remove();
  2094. void RemoveInstanceDefault();
  2095. void ResetToDefault();
  2096. bool Save(File) const;
  2097. bool Save(VectorBuffer&) const;
  2098. bool SaveXML(XMLElement&) const;
  2099. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2100. bool SetAttribute(const String&, const Variant&);
  2101. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2102. void SetAttributeAnimationSpeed(const String&, float);
  2103. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2104. void SetInterceptNetworkUpdate(const String&, bool);
  2105. // Properties:
  2106. bool animationEnabled;
  2107. /* readonly */
  2108. Array<Variant> attributeDefaults;
  2109. /* readonly */
  2110. Array<AttributeInfo> attributeInfos;
  2111. Array<Variant> attributes;
  2112. /* writeonly */
  2113. Vector3 axis;
  2114. /* readonly */
  2115. StringHash baseType;
  2116. /* readonly */
  2117. String category;
  2118. float cfm;
  2119. ConstraintType constraintType;
  2120. bool disableCollision;
  2121. bool enabled;
  2122. /* readonly */
  2123. bool enabledEffective;
  2124. float erp;
  2125. Vector2 highLimit;
  2126. /* readonly */
  2127. uint id;
  2128. Vector2 lowLimit;
  2129. /* readonly */
  2130. Node node;
  2131. /* readonly */
  2132. uint numAttributes;
  2133. ObjectAnimation objectAnimation;
  2134. /* writeonly */
  2135. Vector3 otherAxis;
  2136. RigidBody otherBody;
  2137. Vector3 otherPosition;
  2138. Quaternion otherRotation;
  2139. /* readonly */
  2140. RigidBody ownBody;
  2141. Vector3 position;
  2142. /* readonly */
  2143. int refs;
  2144. Quaternion rotation;
  2145. bool temporary;
  2146. /* readonly */
  2147. StringHash type;
  2148. /* readonly */
  2149. String typeName;
  2150. /* readonly */
  2151. int weakRefs;
  2152. Vector3 worldPosition;
  2153. };
  2154. class Constraint2D
  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. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2163. Variant GetAttributeDefault(const String&) const;
  2164. bool GetInterceptNetworkUpdate(const String&) const;
  2165. bool Load(File, bool = false);
  2166. bool Load(VectorBuffer&, bool = false);
  2167. bool LoadXML(const XMLElement&, bool = false);
  2168. void MarkNetworkUpdate() const;
  2169. void Remove();
  2170. void RemoveInstanceDefault();
  2171. void ResetToDefault();
  2172. bool Save(File) const;
  2173. bool Save(VectorBuffer&) const;
  2174. bool SaveXML(XMLElement&) const;
  2175. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2176. bool SetAttribute(const String&, const Variant&);
  2177. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2178. void SetAttributeAnimationSpeed(const String&, float);
  2179. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2180. void SetInterceptNetworkUpdate(const String&, bool);
  2181. // Properties:
  2182. bool animationEnabled;
  2183. /* readonly */
  2184. Array<Variant> attributeDefaults;
  2185. /* readonly */
  2186. Array<AttributeInfo> attributeInfos;
  2187. Array<Variant> attributes;
  2188. /* readonly */
  2189. StringHash baseType;
  2190. /* readonly */
  2191. String category;
  2192. bool collideConnected;
  2193. bool enabled;
  2194. /* readonly */
  2195. bool enabledEffective;
  2196. /* readonly */
  2197. uint id;
  2198. /* readonly */
  2199. Node node;
  2200. /* readonly */
  2201. uint numAttributes;
  2202. ObjectAnimation objectAnimation;
  2203. RigidBody2D otherBody;
  2204. /* readonly */
  2205. RigidBody2D ownerBody;
  2206. /* readonly */
  2207. int refs;
  2208. bool temporary;
  2209. /* readonly */
  2210. StringHash type;
  2211. /* readonly */
  2212. String typeName;
  2213. /* readonly */
  2214. int weakRefs;
  2215. };
  2216. class ConstraintDistance2D
  2217. {
  2218. // Methods:
  2219. void ApplyAttributes();
  2220. void DrawDebugGeometry(DebugRenderer, bool);
  2221. Variant GetAttribute(const String&) const;
  2222. ValueAnimation GetAttributeAnimation(const String&) const;
  2223. float GetAttributeAnimationSpeed(const String&) const;
  2224. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2225. Variant GetAttributeDefault(const String&) const;
  2226. bool GetInterceptNetworkUpdate(const String&) const;
  2227. bool Load(File, bool = false);
  2228. bool Load(VectorBuffer&, bool = false);
  2229. bool LoadXML(const XMLElement&, bool = false);
  2230. void MarkNetworkUpdate() const;
  2231. void Remove();
  2232. void RemoveInstanceDefault();
  2233. void ResetToDefault();
  2234. bool Save(File) const;
  2235. bool Save(VectorBuffer&) const;
  2236. bool SaveXML(XMLElement&) const;
  2237. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2238. bool SetAttribute(const String&, const Variant&);
  2239. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2240. void SetAttributeAnimationSpeed(const String&, float);
  2241. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2242. void SetInterceptNetworkUpdate(const String&, bool);
  2243. // Properties:
  2244. bool animationEnabled;
  2245. /* readonly */
  2246. Array<Variant> attributeDefaults;
  2247. /* readonly */
  2248. Array<AttributeInfo> attributeInfos;
  2249. Array<Variant> attributes;
  2250. /* readonly */
  2251. StringHash baseType;
  2252. /* readonly */
  2253. String category;
  2254. bool collideConnected;
  2255. float dampingRatio;
  2256. bool enabled;
  2257. /* readonly */
  2258. bool enabledEffective;
  2259. float frequencyHz;
  2260. /* readonly */
  2261. uint id;
  2262. /* readonly */
  2263. Node node;
  2264. /* readonly */
  2265. uint numAttributes;
  2266. ObjectAnimation objectAnimation;
  2267. RigidBody2D otherBody;
  2268. Vector2 otherBodyAnchor;
  2269. /* readonly */
  2270. RigidBody2D ownerBody;
  2271. Vector2 ownerBodyAnchor;
  2272. /* readonly */
  2273. int refs;
  2274. bool temporary;
  2275. /* readonly */
  2276. StringHash type;
  2277. /* readonly */
  2278. String typeName;
  2279. /* readonly */
  2280. int weakRefs;
  2281. };
  2282. class ConstraintFriction2D
  2283. {
  2284. // Methods:
  2285. void ApplyAttributes();
  2286. void DrawDebugGeometry(DebugRenderer, bool);
  2287. Variant GetAttribute(const String&) const;
  2288. ValueAnimation GetAttributeAnimation(const String&) const;
  2289. float GetAttributeAnimationSpeed(const String&) const;
  2290. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2291. Variant GetAttributeDefault(const String&) const;
  2292. bool GetInterceptNetworkUpdate(const String&) const;
  2293. bool Load(File, bool = false);
  2294. bool Load(VectorBuffer&, bool = false);
  2295. bool LoadXML(const XMLElement&, bool = false);
  2296. void MarkNetworkUpdate() const;
  2297. void Remove();
  2298. void RemoveInstanceDefault();
  2299. void ResetToDefault();
  2300. bool Save(File) const;
  2301. bool Save(VectorBuffer&) const;
  2302. bool SaveXML(XMLElement&) const;
  2303. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2304. bool SetAttribute(const String&, const Variant&);
  2305. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2306. void SetAttributeAnimationSpeed(const String&, float);
  2307. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2308. void SetInterceptNetworkUpdate(const String&, bool);
  2309. // Properties:
  2310. Vector2 anchor;
  2311. bool animationEnabled;
  2312. /* readonly */
  2313. Array<Variant> attributeDefaults;
  2314. /* readonly */
  2315. Array<AttributeInfo> attributeInfos;
  2316. Array<Variant> attributes;
  2317. /* readonly */
  2318. StringHash baseType;
  2319. /* readonly */
  2320. String category;
  2321. bool collideConnected;
  2322. bool enabled;
  2323. /* readonly */
  2324. bool enabledEffective;
  2325. /* readonly */
  2326. uint id;
  2327. float maxForce;
  2328. float maxTorque;
  2329. /* readonly */
  2330. Node node;
  2331. /* readonly */
  2332. uint numAttributes;
  2333. ObjectAnimation objectAnimation;
  2334. RigidBody2D otherBody;
  2335. /* readonly */
  2336. RigidBody2D ownerBody;
  2337. /* readonly */
  2338. int refs;
  2339. bool temporary;
  2340. /* readonly */
  2341. StringHash type;
  2342. /* readonly */
  2343. String typeName;
  2344. /* readonly */
  2345. int weakRefs;
  2346. };
  2347. class ConstraintGear2D
  2348. {
  2349. // Methods:
  2350. void ApplyAttributes();
  2351. void DrawDebugGeometry(DebugRenderer, bool);
  2352. Variant GetAttribute(const String&) const;
  2353. ValueAnimation GetAttributeAnimation(const String&) const;
  2354. float GetAttributeAnimationSpeed(const String&) const;
  2355. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2356. Variant GetAttributeDefault(const String&) const;
  2357. bool GetInterceptNetworkUpdate(const String&) const;
  2358. bool Load(File, bool = false);
  2359. bool Load(VectorBuffer&, bool = false);
  2360. bool LoadXML(const XMLElement&, bool = false);
  2361. void MarkNetworkUpdate() const;
  2362. void Remove();
  2363. void RemoveInstanceDefault();
  2364. void ResetToDefault();
  2365. bool Save(File) const;
  2366. bool Save(VectorBuffer&) const;
  2367. bool SaveXML(XMLElement&) const;
  2368. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2369. bool SetAttribute(const String&, const Variant&);
  2370. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2371. void SetAttributeAnimationSpeed(const String&, float);
  2372. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2373. void SetInterceptNetworkUpdate(const String&, bool);
  2374. // Properties:
  2375. bool animationEnabled;
  2376. /* readonly */
  2377. Array<Variant> attributeDefaults;
  2378. /* readonly */
  2379. Array<AttributeInfo> attributeInfos;
  2380. Array<Variant> attributes;
  2381. /* readonly */
  2382. StringHash baseType;
  2383. /* readonly */
  2384. String category;
  2385. bool collideConnected;
  2386. bool enabled;
  2387. /* readonly */
  2388. bool enabledEffective;
  2389. /* readonly */
  2390. uint id;
  2391. /* readonly */
  2392. Node node;
  2393. /* readonly */
  2394. uint numAttributes;
  2395. ObjectAnimation objectAnimation;
  2396. RigidBody2D otherBody;
  2397. Constraint2D otherConstraint;
  2398. /* readonly */
  2399. RigidBody2D ownerBody;
  2400. Constraint2D ownerConstraint;
  2401. float ratio;
  2402. /* readonly */
  2403. int refs;
  2404. bool temporary;
  2405. /* readonly */
  2406. StringHash type;
  2407. /* readonly */
  2408. String typeName;
  2409. /* readonly */
  2410. int weakRefs;
  2411. };
  2412. class ConstraintMotor2D
  2413. {
  2414. // Methods:
  2415. void ApplyAttributes();
  2416. void DrawDebugGeometry(DebugRenderer, bool);
  2417. Variant GetAttribute(const String&) const;
  2418. ValueAnimation GetAttributeAnimation(const String&) const;
  2419. float GetAttributeAnimationSpeed(const String&) const;
  2420. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2421. Variant GetAttributeDefault(const String&) const;
  2422. bool GetInterceptNetworkUpdate(const String&) const;
  2423. bool Load(File, bool = false);
  2424. bool Load(VectorBuffer&, bool = false);
  2425. bool LoadXML(const XMLElement&, bool = false);
  2426. void MarkNetworkUpdate() const;
  2427. void Remove();
  2428. void RemoveInstanceDefault();
  2429. void ResetToDefault();
  2430. bool Save(File) const;
  2431. bool Save(VectorBuffer&) const;
  2432. bool SaveXML(XMLElement&) const;
  2433. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2434. bool SetAttribute(const String&, const Variant&);
  2435. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2436. void SetAttributeAnimationSpeed(const String&, float);
  2437. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2438. void SetInterceptNetworkUpdate(const String&, bool);
  2439. // Properties:
  2440. float angularOffset;
  2441. bool animationEnabled;
  2442. /* readonly */
  2443. Array<Variant> attributeDefaults;
  2444. /* readonly */
  2445. Array<AttributeInfo> attributeInfos;
  2446. Array<Variant> attributes;
  2447. /* readonly */
  2448. StringHash baseType;
  2449. /* readonly */
  2450. String category;
  2451. bool collideConnected;
  2452. float correctionFactor;
  2453. bool enabled;
  2454. /* readonly */
  2455. bool enabledEffective;
  2456. /* readonly */
  2457. uint id;
  2458. Vector2 linearOffset;
  2459. float maxForce;
  2460. float maxTorque;
  2461. /* readonly */
  2462. Node node;
  2463. /* readonly */
  2464. uint numAttributes;
  2465. ObjectAnimation objectAnimation;
  2466. RigidBody2D otherBody;
  2467. /* readonly */
  2468. RigidBody2D ownerBody;
  2469. /* readonly */
  2470. int refs;
  2471. bool temporary;
  2472. /* readonly */
  2473. StringHash type;
  2474. /* readonly */
  2475. String typeName;
  2476. /* readonly */
  2477. int weakRefs;
  2478. };
  2479. class ConstraintMouse2D
  2480. {
  2481. // Methods:
  2482. void ApplyAttributes();
  2483. void DrawDebugGeometry(DebugRenderer, bool);
  2484. Variant GetAttribute(const String&) const;
  2485. ValueAnimation GetAttributeAnimation(const String&) const;
  2486. float GetAttributeAnimationSpeed(const String&) const;
  2487. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2488. Variant GetAttributeDefault(const String&) const;
  2489. bool GetInterceptNetworkUpdate(const String&) const;
  2490. bool Load(File, bool = false);
  2491. bool Load(VectorBuffer&, bool = false);
  2492. bool LoadXML(const XMLElement&, bool = false);
  2493. void MarkNetworkUpdate() const;
  2494. void Remove();
  2495. void RemoveInstanceDefault();
  2496. void ResetToDefault();
  2497. bool Save(File) const;
  2498. bool Save(VectorBuffer&) const;
  2499. bool SaveXML(XMLElement&) const;
  2500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2501. bool SetAttribute(const String&, const Variant&);
  2502. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2503. void SetAttributeAnimationSpeed(const String&, float);
  2504. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2505. void SetInterceptNetworkUpdate(const String&, bool);
  2506. // Properties:
  2507. bool animationEnabled;
  2508. /* readonly */
  2509. Array<Variant> attributeDefaults;
  2510. /* readonly */
  2511. Array<AttributeInfo> attributeInfos;
  2512. Array<Variant> attributes;
  2513. /* readonly */
  2514. StringHash baseType;
  2515. /* readonly */
  2516. String category;
  2517. bool collideConnected;
  2518. float dampingRatio;
  2519. bool enabled;
  2520. /* readonly */
  2521. bool enabledEffective;
  2522. float frequencyHz;
  2523. /* readonly */
  2524. uint id;
  2525. float maxForce;
  2526. /* readonly */
  2527. Node node;
  2528. /* readonly */
  2529. uint numAttributes;
  2530. ObjectAnimation objectAnimation;
  2531. RigidBody2D otherBody;
  2532. /* readonly */
  2533. RigidBody2D ownerBody;
  2534. /* readonly */
  2535. int refs;
  2536. Vector2 target;
  2537. bool temporary;
  2538. /* readonly */
  2539. StringHash type;
  2540. /* readonly */
  2541. String typeName;
  2542. /* readonly */
  2543. int weakRefs;
  2544. };
  2545. class ConstraintPrismatic2D
  2546. {
  2547. // Methods:
  2548. void ApplyAttributes();
  2549. void DrawDebugGeometry(DebugRenderer, bool);
  2550. Variant GetAttribute(const String&) const;
  2551. ValueAnimation GetAttributeAnimation(const String&) const;
  2552. float GetAttributeAnimationSpeed(const String&) const;
  2553. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2554. Variant GetAttributeDefault(const String&) const;
  2555. bool GetInterceptNetworkUpdate(const String&) const;
  2556. bool Load(File, bool = false);
  2557. bool Load(VectorBuffer&, bool = false);
  2558. bool LoadXML(const XMLElement&, bool = false);
  2559. void MarkNetworkUpdate() const;
  2560. void Remove();
  2561. void RemoveInstanceDefault();
  2562. void ResetToDefault();
  2563. bool Save(File) const;
  2564. bool Save(VectorBuffer&) const;
  2565. bool SaveXML(XMLElement&) const;
  2566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2567. bool SetAttribute(const String&, const Variant&);
  2568. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2569. void SetAttributeAnimationSpeed(const String&, float);
  2570. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2571. void SetInterceptNetworkUpdate(const String&, bool);
  2572. // Properties:
  2573. Vector2 anchor;
  2574. bool animationEnabled;
  2575. /* readonly */
  2576. Array<Variant> attributeDefaults;
  2577. /* readonly */
  2578. Array<AttributeInfo> attributeInfos;
  2579. Array<Variant> attributes;
  2580. Vector2 axis;
  2581. /* readonly */
  2582. StringHash baseType;
  2583. /* readonly */
  2584. String category;
  2585. bool collideConnected;
  2586. bool enableLimit;
  2587. bool enableMotor;
  2588. bool enabled;
  2589. /* readonly */
  2590. bool enabledEffective;
  2591. /* readonly */
  2592. uint id;
  2593. float lowerTranslation;
  2594. float maxMotorForce;
  2595. float motorSpeed;
  2596. /* readonly */
  2597. Node node;
  2598. /* readonly */
  2599. uint numAttributes;
  2600. ObjectAnimation objectAnimation;
  2601. RigidBody2D otherBody;
  2602. /* readonly */
  2603. RigidBody2D ownerBody;
  2604. /* readonly */
  2605. int refs;
  2606. bool temporary;
  2607. /* readonly */
  2608. StringHash type;
  2609. /* readonly */
  2610. String typeName;
  2611. float upperTranslation;
  2612. /* readonly */
  2613. int weakRefs;
  2614. };
  2615. class ConstraintPulley2D
  2616. {
  2617. // Methods:
  2618. void ApplyAttributes();
  2619. void DrawDebugGeometry(DebugRenderer, bool);
  2620. Variant GetAttribute(const String&) const;
  2621. ValueAnimation GetAttributeAnimation(const String&) const;
  2622. float GetAttributeAnimationSpeed(const String&) const;
  2623. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2624. Variant GetAttributeDefault(const String&) const;
  2625. bool GetInterceptNetworkUpdate(const String&) const;
  2626. bool Load(File, bool = false);
  2627. bool Load(VectorBuffer&, bool = false);
  2628. bool LoadXML(const XMLElement&, bool = false);
  2629. void MarkNetworkUpdate() const;
  2630. void Remove();
  2631. void RemoveInstanceDefault();
  2632. void ResetToDefault();
  2633. bool Save(File) const;
  2634. bool Save(VectorBuffer&) const;
  2635. bool SaveXML(XMLElement&) const;
  2636. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2637. bool SetAttribute(const String&, const Variant&);
  2638. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2639. void SetAttributeAnimationSpeed(const String&, float);
  2640. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2641. void SetInterceptNetworkUpdate(const String&, bool);
  2642. // Properties:
  2643. bool animationEnabled;
  2644. /* readonly */
  2645. Array<Variant> attributeDefaults;
  2646. /* readonly */
  2647. Array<AttributeInfo> attributeInfos;
  2648. Array<Variant> attributes;
  2649. /* readonly */
  2650. StringHash baseType;
  2651. /* readonly */
  2652. String category;
  2653. bool collideConnected;
  2654. bool enabled;
  2655. /* readonly */
  2656. bool enabledEffective;
  2657. /* readonly */
  2658. uint id;
  2659. /* readonly */
  2660. Node node;
  2661. /* readonly */
  2662. uint numAttributes;
  2663. ObjectAnimation objectAnimation;
  2664. RigidBody2D otherBody;
  2665. Vector2 otherBodyAnchor;
  2666. Vector2 otherBodyGroundAnchor;
  2667. /* readonly */
  2668. RigidBody2D ownerBody;
  2669. Vector2 ownerBodyAnchor;
  2670. Vector2 ownerBodyGroundAnchor;
  2671. float ratio;
  2672. /* readonly */
  2673. int refs;
  2674. bool temporary;
  2675. /* readonly */
  2676. StringHash type;
  2677. /* readonly */
  2678. String typeName;
  2679. /* readonly */
  2680. int weakRefs;
  2681. };
  2682. class ConstraintRevolute2D
  2683. {
  2684. // Methods:
  2685. void ApplyAttributes();
  2686. void DrawDebugGeometry(DebugRenderer, bool);
  2687. Variant GetAttribute(const String&) const;
  2688. ValueAnimation GetAttributeAnimation(const String&) const;
  2689. float GetAttributeAnimationSpeed(const String&) const;
  2690. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2691. Variant GetAttributeDefault(const String&) const;
  2692. bool GetInterceptNetworkUpdate(const String&) const;
  2693. bool Load(File, bool = false);
  2694. bool Load(VectorBuffer&, bool = false);
  2695. bool LoadXML(const XMLElement&, bool = false);
  2696. void MarkNetworkUpdate() const;
  2697. void Remove();
  2698. void RemoveInstanceDefault();
  2699. void ResetToDefault();
  2700. bool Save(File) const;
  2701. bool Save(VectorBuffer&) const;
  2702. bool SaveXML(XMLElement&) const;
  2703. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2704. bool SetAttribute(const String&, const Variant&);
  2705. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2706. void SetAttributeAnimationSpeed(const String&, float);
  2707. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2708. void SetInterceptNetworkUpdate(const String&, bool);
  2709. // Properties:
  2710. Vector2 anchor;
  2711. bool animationEnabled;
  2712. /* readonly */
  2713. Array<Variant> attributeDefaults;
  2714. /* readonly */
  2715. Array<AttributeInfo> attributeInfos;
  2716. Array<Variant> attributes;
  2717. /* readonly */
  2718. StringHash baseType;
  2719. /* readonly */
  2720. String category;
  2721. bool collideConnected;
  2722. bool enableLimit;
  2723. bool enableMotor;
  2724. bool enabled;
  2725. /* readonly */
  2726. bool enabledEffective;
  2727. /* readonly */
  2728. uint id;
  2729. float lowerAngle;
  2730. float maxMotorTorque;
  2731. float motorSpeed;
  2732. /* readonly */
  2733. Node node;
  2734. /* readonly */
  2735. uint numAttributes;
  2736. ObjectAnimation objectAnimation;
  2737. RigidBody2D otherBody;
  2738. /* readonly */
  2739. RigidBody2D ownerBody;
  2740. /* readonly */
  2741. int refs;
  2742. bool temporary;
  2743. /* readonly */
  2744. StringHash type;
  2745. /* readonly */
  2746. String typeName;
  2747. float upperAngle;
  2748. /* readonly */
  2749. int weakRefs;
  2750. };
  2751. class ConstraintRope2D
  2752. {
  2753. // Methods:
  2754. void ApplyAttributes();
  2755. void DrawDebugGeometry(DebugRenderer, bool);
  2756. Variant GetAttribute(const String&) const;
  2757. ValueAnimation GetAttributeAnimation(const String&) const;
  2758. float GetAttributeAnimationSpeed(const String&) const;
  2759. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2760. Variant GetAttributeDefault(const String&) const;
  2761. bool GetInterceptNetworkUpdate(const String&) const;
  2762. bool Load(File, bool = false);
  2763. bool Load(VectorBuffer&, bool = false);
  2764. bool LoadXML(const XMLElement&, bool = false);
  2765. void MarkNetworkUpdate() const;
  2766. void Remove();
  2767. void RemoveInstanceDefault();
  2768. void ResetToDefault();
  2769. bool Save(File) const;
  2770. bool Save(VectorBuffer&) const;
  2771. bool SaveXML(XMLElement&) const;
  2772. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2773. bool SetAttribute(const String&, const Variant&);
  2774. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2775. void SetAttributeAnimationSpeed(const String&, float);
  2776. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2777. void SetInterceptNetworkUpdate(const String&, bool);
  2778. // Properties:
  2779. bool animationEnabled;
  2780. /* readonly */
  2781. Array<Variant> attributeDefaults;
  2782. /* readonly */
  2783. Array<AttributeInfo> attributeInfos;
  2784. Array<Variant> attributes;
  2785. /* readonly */
  2786. StringHash baseType;
  2787. /* readonly */
  2788. String category;
  2789. bool collideConnected;
  2790. bool enabled;
  2791. /* readonly */
  2792. bool enabledEffective;
  2793. /* readonly */
  2794. uint id;
  2795. float maxLength;
  2796. /* readonly */
  2797. Node node;
  2798. /* readonly */
  2799. uint numAttributes;
  2800. ObjectAnimation objectAnimation;
  2801. RigidBody2D otherBody;
  2802. Vector2 otherBodyAnchor;
  2803. /* readonly */
  2804. RigidBody2D ownerBody;
  2805. Vector2 ownerBodyAnchor;
  2806. /* readonly */
  2807. int refs;
  2808. bool temporary;
  2809. /* readonly */
  2810. StringHash type;
  2811. /* readonly */
  2812. String typeName;
  2813. /* readonly */
  2814. int weakRefs;
  2815. };
  2816. class ConstraintWeld2D
  2817. {
  2818. // Methods:
  2819. void ApplyAttributes();
  2820. void DrawDebugGeometry(DebugRenderer, bool);
  2821. Variant GetAttribute(const String&) const;
  2822. ValueAnimation GetAttributeAnimation(const String&) const;
  2823. float GetAttributeAnimationSpeed(const String&) const;
  2824. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2825. Variant GetAttributeDefault(const String&) const;
  2826. bool GetInterceptNetworkUpdate(const String&) const;
  2827. bool Load(File, bool = false);
  2828. bool Load(VectorBuffer&, bool = false);
  2829. bool LoadXML(const XMLElement&, bool = false);
  2830. void MarkNetworkUpdate() const;
  2831. void Remove();
  2832. void RemoveInstanceDefault();
  2833. void ResetToDefault();
  2834. bool Save(File) const;
  2835. bool Save(VectorBuffer&) const;
  2836. bool SaveXML(XMLElement&) const;
  2837. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2838. bool SetAttribute(const String&, const Variant&);
  2839. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2840. void SetAttributeAnimationSpeed(const String&, float);
  2841. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2842. void SetInterceptNetworkUpdate(const String&, bool);
  2843. // Properties:
  2844. Vector2 anchor;
  2845. bool animationEnabled;
  2846. /* readonly */
  2847. Array<Variant> attributeDefaults;
  2848. /* readonly */
  2849. Array<AttributeInfo> attributeInfos;
  2850. Array<Variant> attributes;
  2851. /* readonly */
  2852. StringHash baseType;
  2853. /* readonly */
  2854. String category;
  2855. bool collideConnected;
  2856. float dampingRatio;
  2857. bool enabled;
  2858. /* readonly */
  2859. bool enabledEffective;
  2860. float frequencyHz;
  2861. /* readonly */
  2862. uint id;
  2863. /* readonly */
  2864. Node node;
  2865. /* readonly */
  2866. uint numAttributes;
  2867. ObjectAnimation objectAnimation;
  2868. RigidBody2D otherBody;
  2869. /* readonly */
  2870. RigidBody2D ownerBody;
  2871. /* readonly */
  2872. int refs;
  2873. bool temporary;
  2874. /* readonly */
  2875. StringHash type;
  2876. /* readonly */
  2877. String typeName;
  2878. /* readonly */
  2879. int weakRefs;
  2880. };
  2881. class ConstraintWheel2D
  2882. {
  2883. // Methods:
  2884. void ApplyAttributes();
  2885. void DrawDebugGeometry(DebugRenderer, bool);
  2886. Variant GetAttribute(const String&) const;
  2887. ValueAnimation GetAttributeAnimation(const String&) const;
  2888. float GetAttributeAnimationSpeed(const String&) const;
  2889. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2890. Variant GetAttributeDefault(const String&) const;
  2891. bool GetInterceptNetworkUpdate(const String&) const;
  2892. bool Load(File, bool = false);
  2893. bool Load(VectorBuffer&, bool = false);
  2894. bool LoadXML(const XMLElement&, bool = false);
  2895. void MarkNetworkUpdate() const;
  2896. void Remove();
  2897. void RemoveInstanceDefault();
  2898. void ResetToDefault();
  2899. bool Save(File) const;
  2900. bool Save(VectorBuffer&) const;
  2901. bool SaveXML(XMLElement&) const;
  2902. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2903. bool SetAttribute(const String&, const Variant&);
  2904. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2905. void SetAttributeAnimationSpeed(const String&, float);
  2906. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2907. void SetInterceptNetworkUpdate(const String&, bool);
  2908. // Properties:
  2909. Vector2 anchor;
  2910. bool animationEnabled;
  2911. /* readonly */
  2912. Array<Variant> attributeDefaults;
  2913. /* readonly */
  2914. Array<AttributeInfo> attributeInfos;
  2915. Array<Variant> attributes;
  2916. Vector2 axis;
  2917. /* readonly */
  2918. StringHash baseType;
  2919. /* readonly */
  2920. String category;
  2921. bool collideConnected;
  2922. float dampingRatio;
  2923. bool enableMotor;
  2924. bool enabled;
  2925. /* readonly */
  2926. bool enabledEffective;
  2927. float frequencyHz;
  2928. /* readonly */
  2929. uint id;
  2930. float maxMotorTorque;
  2931. float motorSpeed;
  2932. /* readonly */
  2933. Node node;
  2934. /* readonly */
  2935. uint numAttributes;
  2936. ObjectAnimation objectAnimation;
  2937. RigidBody2D otherBody;
  2938. /* readonly */
  2939. RigidBody2D ownerBody;
  2940. /* readonly */
  2941. int refs;
  2942. bool temporary;
  2943. /* readonly */
  2944. StringHash type;
  2945. /* readonly */
  2946. String typeName;
  2947. /* readonly */
  2948. int weakRefs;
  2949. };
  2950. class Controls
  2951. {
  2952. // Methods:
  2953. bool IsDown(uint) const;
  2954. bool IsPressed(uint, const Controls&) const;
  2955. void Reset();
  2956. void Set(uint, bool);
  2957. // Properties:
  2958. uint buttons;
  2959. VariantMap extraData;
  2960. float pitch;
  2961. float yaw;
  2962. };
  2963. class CrowdAgent
  2964. {
  2965. // Methods:
  2966. void ApplyAttributes();
  2967. void DrawDebugGeometry(DebugRenderer, bool);
  2968. void DrawDebugGeometry(bool);
  2969. Variant GetAttribute(const String&) const;
  2970. ValueAnimation GetAttributeAnimation(const String&) const;
  2971. float GetAttributeAnimationSpeed(const String&) const;
  2972. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2973. Variant GetAttributeDefault(const String&) const;
  2974. bool GetInterceptNetworkUpdate(const String&) const;
  2975. bool Load(File, bool = false);
  2976. bool Load(VectorBuffer&, bool = false);
  2977. bool LoadXML(const XMLElement&, bool = false);
  2978. void MarkNetworkUpdate() const;
  2979. void Remove();
  2980. void RemoveInstanceDefault();
  2981. void ResetToDefault();
  2982. bool Save(File) const;
  2983. bool Save(VectorBuffer&) const;
  2984. bool SaveXML(XMLElement&) const;
  2985. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2986. bool SetAttribute(const String&, const Variant&);
  2987. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2988. void SetAttributeAnimationSpeed(const String&, float);
  2989. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2990. void SetInterceptNetworkUpdate(const String&, bool);
  2991. void SetMoveTarget(const Vector3&);
  2992. void SetMoveVelocity(const Vector3&);
  2993. // Properties:
  2994. /* readonly */
  2995. Vector3 actualVelocity;
  2996. /* readonly */
  2997. CrowdAgentState agentState;
  2998. bool animationEnabled;
  2999. /* readonly */
  3000. bool arrived;
  3001. /* readonly */
  3002. Array<Variant> attributeDefaults;
  3003. /* readonly */
  3004. Array<AttributeInfo> attributeInfos;
  3005. Array<Variant> attributes;
  3006. /* readonly */
  3007. StringHash baseType;
  3008. /* readonly */
  3009. String category;
  3010. /* readonly */
  3011. Vector3 desiredVelocity;
  3012. bool enabled;
  3013. /* readonly */
  3014. bool enabledEffective;
  3015. float height;
  3016. /* readonly */
  3017. uint id;
  3018. float maxAccel;
  3019. float maxSpeed;
  3020. uint navigationFilterType;
  3021. NavigationPushiness navigationPushiness;
  3022. NavigationAvoidanceQuality navigationQuality;
  3023. /* readonly */
  3024. Node node;
  3025. /* readonly */
  3026. uint numAttributes;
  3027. ObjectAnimation objectAnimation;
  3028. /* readonly */
  3029. Vector3 position;
  3030. float radius;
  3031. /* readonly */
  3032. int refs;
  3033. /* readonly */
  3034. Vector3 targetPosition;
  3035. /* readonly */
  3036. CrowdTargetState targetState;
  3037. bool temporary;
  3038. /* readonly */
  3039. StringHash type;
  3040. /* readonly */
  3041. String typeName;
  3042. bool updateNodePosition;
  3043. /* readonly */
  3044. int weakRefs;
  3045. };
  3046. class Cursor
  3047. {
  3048. // Methods:
  3049. void AddChild(UIElement);
  3050. void ApplyAttributes();
  3051. void BringToFront();
  3052. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3053. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3054. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3055. void DisableLayoutUpdate();
  3056. IntVector2 ElementToScreen(const IntVector2&);
  3057. void EnableLayoutUpdate();
  3058. uint FindChild(UIElement) const;
  3059. Variant GetAttribute(const String&) const;
  3060. ValueAnimation GetAttributeAnimation(const String&) const;
  3061. float GetAttributeAnimationSpeed(const String&) const;
  3062. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3063. Variant GetAttributeDefault(const String&) const;
  3064. UIElement GetChild(const String&, bool = false) const;
  3065. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3066. Array<UIElement> GetChildren(bool = false) const;
  3067. UIElement GetElementEventSender() const;
  3068. bool GetInterceptNetworkUpdate(const String&) const;
  3069. uint GetNumChildren(bool) const;
  3070. void InsertChild(uint, UIElement);
  3071. bool IsInside(IntVector2, bool);
  3072. bool IsInsideCombined(IntVector2, bool);
  3073. bool Load(File, bool = false);
  3074. bool Load(VectorBuffer&, bool = false);
  3075. bool LoadChildXML(XMLFile, XMLFile = null);
  3076. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3077. bool LoadXML(File);
  3078. bool LoadXML(VectorBuffer&);
  3079. bool LoadXML(XMLFile, XMLFile);
  3080. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3081. bool LoadXML(const XMLElement&, bool = false);
  3082. void MarkNetworkUpdate() const;
  3083. void Remove();
  3084. void RemoveAllChildren();
  3085. void RemoveChild(UIElement, uint = 0);
  3086. void RemoveChild(uint);
  3087. void RemoveInstanceDefault();
  3088. void ResetDeepEnabled();
  3089. void ResetToDefault();
  3090. bool Save(File) const;
  3091. bool Save(VectorBuffer&) const;
  3092. bool SaveXML(File, const String& = "\t");
  3093. bool SaveXML(VectorBuffer&, const String& = "\t");
  3094. bool SaveXML(XMLElement&) const;
  3095. IntVector2 ScreenToElement(const IntVector2&);
  3096. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3097. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3098. bool SetAttribute(const String&, const Variant&);
  3099. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3100. void SetAttributeAnimationSpeed(const String&, float);
  3101. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3102. void SetDeepEnabled(bool);
  3103. void SetEnabledRecursive(bool);
  3104. void SetFixedHeight(int);
  3105. void SetFixedSize(int, int);
  3106. void SetFixedWidth(int);
  3107. void SetFullImageRect();
  3108. void SetHoverOffset(int, int);
  3109. void SetInterceptNetworkUpdate(const String&, bool);
  3110. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3111. void SetMaxSize(int, int);
  3112. void SetMinSize(int, int);
  3113. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3114. void SetPosition(int, int);
  3115. void SetShape(CursorShape);
  3116. void SetShape(const String&);
  3117. void SetSize(int, int);
  3118. bool SetStyle(const String&, XMLFile = null);
  3119. bool SetStyle(const XMLElement&);
  3120. bool SetStyleAuto(XMLFile = null);
  3121. void UpdateLayout();
  3122. const Variant& GetVar(const StringHash&);
  3123. // Properties:
  3124. bool animationEnabled;
  3125. /* readonly */
  3126. Array<Variant> attributeDefaults;
  3127. /* readonly */
  3128. Array<AttributeInfo> attributeInfos;
  3129. Array<Variant> attributes;
  3130. /* readonly */
  3131. StringHash baseType;
  3132. BlendMode blendMode;
  3133. IntRect border;
  3134. bool bringToBack;
  3135. bool bringToFront;
  3136. /* readonly */
  3137. String category;
  3138. /* readonly */
  3139. IntVector2 childOffset;
  3140. /* readonly */
  3141. Array<UIElement> children;
  3142. IntRect clipBorder;
  3143. bool clipChildren;
  3144. /* writeonly */
  3145. Color color;
  3146. /* readonly */
  3147. bool colorGradient;
  3148. Array<Color> colors;
  3149. /* readonly */
  3150. IntRect combinedScreenRect;
  3151. XMLFile defaultStyle;
  3152. /* readonly */
  3153. float derivedOpacity;
  3154. /* readonly */
  3155. uint dragButtonCombo;
  3156. /* readonly */
  3157. int dragButtonCount;
  3158. uint dragDropMode;
  3159. bool editable;
  3160. bool elementEventSender;
  3161. bool enabled;
  3162. /* readonly */
  3163. bool enabledSelf;
  3164. /* readonly */
  3165. bool fixedHeight;
  3166. /* readonly */
  3167. bool fixedSize;
  3168. /* readonly */
  3169. bool fixedWidth;
  3170. bool focus;
  3171. FocusMode focusMode;
  3172. int height;
  3173. HorizontalAlignment horizontalAlignment;
  3174. IntVector2 hoverOffset;
  3175. /* readonly */
  3176. bool hovering;
  3177. IntRect imageBorder;
  3178. IntRect imageRect;
  3179. int indent;
  3180. int indentSpacing;
  3181. /* readonly */
  3182. int indentWidth;
  3183. bool internal;
  3184. IntRect layoutBorder;
  3185. Vector2 layoutFlexScale;
  3186. LayoutMode layoutMode;
  3187. int layoutSpacing;
  3188. int maxHeight;
  3189. IntVector2 maxSize;
  3190. int maxWidth;
  3191. int minHeight;
  3192. IntVector2 minSize;
  3193. int minWidth;
  3194. String name;
  3195. /* readonly */
  3196. uint numAllChildren;
  3197. /* readonly */
  3198. uint numAttributes;
  3199. /* readonly */
  3200. uint numChildren;
  3201. ObjectAnimation objectAnimation;
  3202. float opacity;
  3203. UIElement parent;
  3204. IntVector2 position;
  3205. int priority;
  3206. /* readonly */
  3207. int refs;
  3208. /* readonly */
  3209. UIElement root;
  3210. /* readonly */
  3211. IntVector2 screenPosition;
  3212. bool selected;
  3213. String shape;
  3214. IntVector2 size;
  3215. bool sortChildren;
  3216. String style;
  3217. bool temporary;
  3218. Texture texture;
  3219. bool tiled;
  3220. TraversalMode traversalMode;
  3221. /* readonly */
  3222. StringHash type;
  3223. /* readonly */
  3224. String typeName;
  3225. bool useDerivedOpacity;
  3226. bool useSystemShapes;
  3227. /* readonly */
  3228. VariantMap vars;
  3229. VerticalAlignment verticalAlignment;
  3230. bool visible;
  3231. /* readonly */
  3232. int weakRefs;
  3233. int width;
  3234. };
  3235. class CustomGeometry
  3236. {
  3237. // Methods:
  3238. void ApplyAttributes();
  3239. void BeginGeometry(uint, PrimitiveType);
  3240. void Clear();
  3241. void Commit();
  3242. void DefineColor(const Color&);
  3243. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3244. void DefineNormal(const Vector3&);
  3245. void DefineTangent(const Vector4&);
  3246. void DefineTexCoord(const Vector2&);
  3247. void DefineVertex(const Vector3&);
  3248. void DrawDebugGeometry(DebugRenderer, bool);
  3249. Variant GetAttribute(const String&) const;
  3250. ValueAnimation GetAttributeAnimation(const String&) const;
  3251. float GetAttributeAnimationSpeed(const String&) const;
  3252. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3253. Variant GetAttributeDefault(const String&) const;
  3254. bool GetInterceptNetworkUpdate(const String&) const;
  3255. CustomGeometryVertex GetVertex(uint, uint);
  3256. bool IsInView(Camera) const;
  3257. bool Load(File, bool = false);
  3258. bool Load(VectorBuffer&, bool = false);
  3259. bool LoadXML(const XMLElement&, bool = false);
  3260. void MarkNetworkUpdate() const;
  3261. void Remove();
  3262. void RemoveInstanceDefault();
  3263. void ResetToDefault();
  3264. bool Save(File) const;
  3265. bool Save(VectorBuffer&) const;
  3266. bool SaveXML(XMLElement&) const;
  3267. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3268. bool SetAttribute(const String&, const Variant&);
  3269. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3270. void SetAttributeAnimationSpeed(const String&, float);
  3271. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3272. void SetInterceptNetworkUpdate(const String&, bool);
  3273. // Properties:
  3274. bool animationEnabled;
  3275. /* readonly */
  3276. Array<Variant> attributeDefaults;
  3277. /* readonly */
  3278. Array<AttributeInfo> attributeInfos;
  3279. Array<Variant> attributes;
  3280. /* readonly */
  3281. StringHash baseType;
  3282. /* readonly */
  3283. BoundingBox boundingBox;
  3284. bool castShadows;
  3285. /* readonly */
  3286. String category;
  3287. float drawDistance;
  3288. bool dynamic;
  3289. bool enabled;
  3290. /* readonly */
  3291. bool enabledEffective;
  3292. /* readonly */
  3293. uint id;
  3294. /* readonly */
  3295. bool inView;
  3296. uint lightMask;
  3297. float lodBias;
  3298. /* writeonly */
  3299. Material material;
  3300. Array<Material> materials;
  3301. uint maxLights;
  3302. /* readonly */
  3303. Node node;
  3304. /* readonly */
  3305. uint numAttributes;
  3306. uint numGeometries;
  3307. /* readonly */
  3308. Array<uint> numVertices;
  3309. ObjectAnimation objectAnimation;
  3310. bool occludee;
  3311. bool occluder;
  3312. /* readonly */
  3313. int refs;
  3314. float shadowDistance;
  3315. uint shadowMask;
  3316. bool temporary;
  3317. /* readonly */
  3318. StringHash type;
  3319. /* readonly */
  3320. String typeName;
  3321. uint viewMask;
  3322. /* readonly */
  3323. int weakRefs;
  3324. /* readonly */
  3325. BoundingBox worldBoundingBox;
  3326. /* readonly */
  3327. Zone zone;
  3328. uint zoneMask;
  3329. };
  3330. class CustomGeometryVertex
  3331. {
  3332. // Properties:
  3333. uint color;
  3334. Vector3 normal;
  3335. Vector3 position;
  3336. Vector4 tangent;
  3337. Vector2 texCoord;
  3338. };
  3339. class DebugHud
  3340. {
  3341. // Methods:
  3342. void ClearAppStats();
  3343. void ResetAppStats(const String&);
  3344. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3345. void SetAppStats(const String&, const String&);
  3346. void SetAppStats(const String&, const Variant&);
  3347. void Toggle(uint);
  3348. void ToggleAll();
  3349. void Update();
  3350. // Properties:
  3351. /* readonly */
  3352. StringHash baseType;
  3353. /* readonly */
  3354. String category;
  3355. XMLFile defaultStyle;
  3356. uint mode;
  3357. /* readonly */
  3358. Text modeText;
  3359. float profilerInterval;
  3360. uint profilerMaxDepth;
  3361. /* readonly */
  3362. Text profilerText;
  3363. /* readonly */
  3364. int refs;
  3365. /* readonly */
  3366. Text statsText;
  3367. /* readonly */
  3368. StringHash type;
  3369. /* readonly */
  3370. String typeName;
  3371. bool useRendererStats;
  3372. /* readonly */
  3373. int weakRefs;
  3374. };
  3375. class DebugRenderer
  3376. {
  3377. // Methods:
  3378. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3379. void AddFrustum(const Frustum&, const Color&, bool = true);
  3380. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3381. void AddNode(Node, float = 1.0, bool = true);
  3382. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3383. void AddSkeleton(Skeleton, const Color&, bool = true);
  3384. void AddSphere(const Sphere&, const Color&, bool = true);
  3385. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3386. void ApplyAttributes();
  3387. void DrawDebugGeometry(DebugRenderer, bool);
  3388. Variant GetAttribute(const String&) const;
  3389. ValueAnimation GetAttributeAnimation(const String&) const;
  3390. float GetAttributeAnimationSpeed(const String&) const;
  3391. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3392. Variant GetAttributeDefault(const String&) const;
  3393. bool GetInterceptNetworkUpdate(const String&) const;
  3394. bool Load(File, bool = false);
  3395. bool Load(VectorBuffer&, bool = false);
  3396. bool LoadXML(const XMLElement&, bool = false);
  3397. void MarkNetworkUpdate() const;
  3398. void Remove();
  3399. void RemoveInstanceDefault();
  3400. void ResetToDefault();
  3401. bool Save(File) const;
  3402. bool Save(VectorBuffer&) const;
  3403. bool SaveXML(XMLElement&) const;
  3404. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3405. bool SetAttribute(const String&, const Variant&);
  3406. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3407. void SetAttributeAnimationSpeed(const String&, float);
  3408. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3409. void SetInterceptNetworkUpdate(const String&, bool);
  3410. // Properties:
  3411. bool animationEnabled;
  3412. /* readonly */
  3413. Array<Variant> attributeDefaults;
  3414. /* readonly */
  3415. Array<AttributeInfo> attributeInfos;
  3416. Array<Variant> attributes;
  3417. /* readonly */
  3418. StringHash baseType;
  3419. /* readonly */
  3420. String category;
  3421. bool enabled;
  3422. /* readonly */
  3423. bool enabledEffective;
  3424. /* readonly */
  3425. uint id;
  3426. /* readonly */
  3427. Node node;
  3428. /* readonly */
  3429. uint numAttributes;
  3430. ObjectAnimation objectAnimation;
  3431. /* readonly */
  3432. int refs;
  3433. bool temporary;
  3434. /* readonly */
  3435. StringHash type;
  3436. /* readonly */
  3437. String typeName;
  3438. /* readonly */
  3439. int weakRefs;
  3440. };
  3441. class DecalSet
  3442. {
  3443. // Methods:
  3444. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3445. void ApplyAttributes();
  3446. void DrawDebugGeometry(DebugRenderer, bool);
  3447. Variant GetAttribute(const String&) const;
  3448. ValueAnimation GetAttributeAnimation(const String&) const;
  3449. float GetAttributeAnimationSpeed(const String&) const;
  3450. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3451. Variant GetAttributeDefault(const String&) const;
  3452. bool GetInterceptNetworkUpdate(const String&) const;
  3453. bool IsInView(Camera) const;
  3454. bool Load(File, bool = false);
  3455. bool Load(VectorBuffer&, bool = false);
  3456. bool LoadXML(const XMLElement&, bool = false);
  3457. void MarkNetworkUpdate() const;
  3458. void Remove();
  3459. void RemoveAllDecals();
  3460. void RemoveDecals(uint);
  3461. void RemoveInstanceDefault();
  3462. void ResetToDefault();
  3463. bool Save(File) const;
  3464. bool Save(VectorBuffer&) const;
  3465. bool SaveXML(XMLElement&) const;
  3466. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3467. bool SetAttribute(const String&, const Variant&);
  3468. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3469. void SetAttributeAnimationSpeed(const String&, float);
  3470. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3471. void SetInterceptNetworkUpdate(const String&, bool);
  3472. // Properties:
  3473. bool animationEnabled;
  3474. /* readonly */
  3475. Array<Variant> attributeDefaults;
  3476. /* readonly */
  3477. Array<AttributeInfo> attributeInfos;
  3478. Array<Variant> attributes;
  3479. /* readonly */
  3480. StringHash baseType;
  3481. /* readonly */
  3482. BoundingBox boundingBox;
  3483. bool castShadows;
  3484. /* readonly */
  3485. String category;
  3486. float drawDistance;
  3487. bool enabled;
  3488. /* readonly */
  3489. bool enabledEffective;
  3490. /* readonly */
  3491. uint id;
  3492. /* readonly */
  3493. bool inView;
  3494. uint lightMask;
  3495. float lodBias;
  3496. Material material;
  3497. uint maxIndices;
  3498. uint maxLights;
  3499. uint maxVertices;
  3500. /* readonly */
  3501. Node node;
  3502. /* readonly */
  3503. uint numAttributes;
  3504. /* readonly */
  3505. uint numDecals;
  3506. /* readonly */
  3507. uint numIndices;
  3508. /* readonly */
  3509. uint numVertices;
  3510. ObjectAnimation objectAnimation;
  3511. bool occludee;
  3512. bool occluder;
  3513. /* readonly */
  3514. int refs;
  3515. float shadowDistance;
  3516. uint shadowMask;
  3517. bool temporary;
  3518. /* readonly */
  3519. StringHash type;
  3520. /* readonly */
  3521. String typeName;
  3522. uint viewMask;
  3523. /* readonly */
  3524. int weakRefs;
  3525. /* readonly */
  3526. BoundingBox worldBoundingBox;
  3527. /* readonly */
  3528. Zone zone;
  3529. uint zoneMask;
  3530. };
  3531. class Deserializer
  3532. {
  3533. // Methods:
  3534. Array<uint8> Read(uint);
  3535. bool ReadBool();
  3536. BoundingBox ReadBoundingBox();
  3537. int8 ReadByte();
  3538. Color ReadColor();
  3539. String ReadFileID();
  3540. float ReadFloat();
  3541. int ReadInt();
  3542. IntRect ReadIntRect();
  3543. IntVector2 ReadIntVector2();
  3544. String ReadLine();
  3545. Matrix3 ReadMatrix3();
  3546. Matrix3x4 ReadMatrix3x4();
  3547. Matrix4 ReadMatrix4();
  3548. uint ReadNetID();
  3549. Quaternion ReadPackedQuaternion();
  3550. Vector3 ReadPackedVector3(float);
  3551. Quaternion ReadQuaternion();
  3552. int16 ReadShort();
  3553. String ReadString();
  3554. StringHash ReadStringHash();
  3555. uint8 ReadUByte();
  3556. uint ReadUInt();
  3557. uint16 ReadUShort();
  3558. uint ReadVLE();
  3559. Variant ReadVariant();
  3560. VariantMap ReadVariantMap();
  3561. Vector2 ReadVector2();
  3562. Vector3 ReadVector3();
  3563. Vector4 ReadVector4();
  3564. VectorBuffer ReadVectorBuffer(uint);
  3565. uint Seek(uint);
  3566. // Properties:
  3567. /* readonly */
  3568. uint checksum;
  3569. /* readonly */
  3570. bool eof;
  3571. /* readonly */
  3572. String name;
  3573. /* readonly */
  3574. uint position;
  3575. /* readonly */
  3576. uint size;
  3577. };
  3578. class DetourCrowdManager
  3579. {
  3580. // Methods:
  3581. void ApplyAttributes();
  3582. void CreateCrowd();
  3583. void DrawDebugGeometry(DebugRenderer, bool);
  3584. void DrawDebugGeometry(bool);
  3585. Array<CrowdAgent> GetActiveAgents();
  3586. float GetAreaCost(uint, uint);
  3587. Variant GetAttribute(const String&) const;
  3588. ValueAnimation GetAttributeAnimation(const String&) const;
  3589. float GetAttributeAnimationSpeed(const String&) const;
  3590. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3591. Variant GetAttributeDefault(const String&) const;
  3592. bool GetInterceptNetworkUpdate(const String&) const;
  3593. bool Load(File, bool = false);
  3594. bool Load(VectorBuffer&, bool = false);
  3595. bool LoadXML(const XMLElement&, bool = false);
  3596. void MarkNetworkUpdate() const;
  3597. void Remove();
  3598. void RemoveInstanceDefault();
  3599. void ResetCrowdTarget(int = 0, int = M_MAX_INT);
  3600. void ResetToDefault();
  3601. bool Save(File) const;
  3602. bool Save(VectorBuffer&) const;
  3603. bool SaveXML(XMLElement&) const;
  3604. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3605. void SetAreaCost(uint, uint, float);
  3606. bool SetAttribute(const String&, const Variant&);
  3607. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3608. void SetAttributeAnimationSpeed(const String&, float);
  3609. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3610. void SetCrowdTarget(const Vector3&, int = 0, int = M_MAX_INT);
  3611. void SetCrowdVelocity(const Vector3&, int = 0, int = M_MAX_INT);
  3612. void SetInterceptNetworkUpdate(const String&, bool);
  3613. // Properties:
  3614. bool animationEnabled;
  3615. /* readonly */
  3616. Array<Variant> attributeDefaults;
  3617. /* readonly */
  3618. Array<AttributeInfo> attributeInfos;
  3619. Array<Variant> attributes;
  3620. /* readonly */
  3621. StringHash baseType;
  3622. /* readonly */
  3623. String category;
  3624. bool enabled;
  3625. /* readonly */
  3626. bool enabledEffective;
  3627. /* readonly */
  3628. uint id;
  3629. int maxAgents;
  3630. NavigationMesh navMesh;
  3631. /* readonly */
  3632. Node node;
  3633. /* readonly */
  3634. uint numAttributes;
  3635. ObjectAnimation objectAnimation;
  3636. /* readonly */
  3637. int refs;
  3638. bool temporary;
  3639. /* readonly */
  3640. StringHash type;
  3641. /* readonly */
  3642. String typeName;
  3643. /* readonly */
  3644. int weakRefs;
  3645. };
  3646. class Dictionary
  3647. {
  3648. // Methods:
  3649. void Clear();
  3650. void Erase(const String&);
  3651. bool Exists(const String&) const;
  3652. bool Get(const String&, void*) const;
  3653. bool Get(const String&, double&) const;
  3654. bool Get(const String&, int64&) const;
  3655. void Set(const String&, const void*);
  3656. void Set(const String&, const double&);
  3657. void Set(const String&, const int64&);
  3658. // Properties:
  3659. /* readonly */
  3660. bool empty;
  3661. /* readonly */
  3662. Array<String> keys;
  3663. /* readonly */
  3664. uint length;
  3665. };
  3666. class DictionaryValue
  3667. {
  3668. };
  3669. class Drawable
  3670. {
  3671. // Methods:
  3672. void ApplyAttributes();
  3673. void DrawDebugGeometry(DebugRenderer, bool);
  3674. Variant GetAttribute(const String&) const;
  3675. ValueAnimation GetAttributeAnimation(const String&) const;
  3676. float GetAttributeAnimationSpeed(const String&) const;
  3677. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3678. Variant GetAttributeDefault(const String&) const;
  3679. bool GetInterceptNetworkUpdate(const String&) const;
  3680. bool IsInView(Camera) const;
  3681. bool Load(File, bool = false);
  3682. bool Load(VectorBuffer&, bool = false);
  3683. bool LoadXML(const XMLElement&, bool = false);
  3684. void MarkNetworkUpdate() const;
  3685. void Remove();
  3686. void RemoveInstanceDefault();
  3687. void ResetToDefault();
  3688. bool Save(File) const;
  3689. bool Save(VectorBuffer&) const;
  3690. bool SaveXML(XMLElement&) const;
  3691. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3692. bool SetAttribute(const String&, const Variant&);
  3693. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3694. void SetAttributeAnimationSpeed(const String&, float);
  3695. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3696. void SetInterceptNetworkUpdate(const String&, bool);
  3697. // Properties:
  3698. bool animationEnabled;
  3699. /* readonly */
  3700. Array<Variant> attributeDefaults;
  3701. /* readonly */
  3702. Array<AttributeInfo> attributeInfos;
  3703. Array<Variant> attributes;
  3704. /* readonly */
  3705. StringHash baseType;
  3706. /* readonly */
  3707. BoundingBox boundingBox;
  3708. bool castShadows;
  3709. /* readonly */
  3710. String category;
  3711. float drawDistance;
  3712. bool enabled;
  3713. /* readonly */
  3714. bool enabledEffective;
  3715. /* readonly */
  3716. uint id;
  3717. /* readonly */
  3718. bool inView;
  3719. uint lightMask;
  3720. float lodBias;
  3721. uint maxLights;
  3722. /* readonly */
  3723. Node node;
  3724. /* readonly */
  3725. uint numAttributes;
  3726. ObjectAnimation objectAnimation;
  3727. bool occludee;
  3728. bool occluder;
  3729. /* readonly */
  3730. int refs;
  3731. float shadowDistance;
  3732. uint shadowMask;
  3733. bool temporary;
  3734. /* readonly */
  3735. StringHash type;
  3736. /* readonly */
  3737. String typeName;
  3738. uint viewMask;
  3739. /* readonly */
  3740. int weakRefs;
  3741. /* readonly */
  3742. BoundingBox worldBoundingBox;
  3743. uint zoneMask;
  3744. };
  3745. class Drawable2D
  3746. {
  3747. // Methods:
  3748. void ApplyAttributes();
  3749. void DrawDebugGeometry(DebugRenderer, bool);
  3750. Variant GetAttribute(const String&) const;
  3751. ValueAnimation GetAttributeAnimation(const String&) const;
  3752. float GetAttributeAnimationSpeed(const String&) const;
  3753. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3754. Variant GetAttributeDefault(const String&) const;
  3755. bool GetInterceptNetworkUpdate(const String&) const;
  3756. bool IsInView(Camera) const;
  3757. bool Load(File, bool = false);
  3758. bool Load(VectorBuffer&, bool = false);
  3759. bool LoadXML(const XMLElement&, bool = false);
  3760. void MarkNetworkUpdate() const;
  3761. void Remove();
  3762. void RemoveInstanceDefault();
  3763. void ResetToDefault();
  3764. bool Save(File) const;
  3765. bool Save(VectorBuffer&) const;
  3766. bool SaveXML(XMLElement&) const;
  3767. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  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 SetAttributeAnimationWrapMode(const String&, WrapMode);
  3772. void SetInterceptNetworkUpdate(const String&, bool);
  3773. // Properties:
  3774. bool animationEnabled;
  3775. /* readonly */
  3776. Array<Variant> attributeDefaults;
  3777. /* readonly */
  3778. Array<AttributeInfo> attributeInfos;
  3779. Array<Variant> attributes;
  3780. /* readonly */
  3781. StringHash baseType;
  3782. /* readonly */
  3783. BoundingBox boundingBox;
  3784. bool castShadows;
  3785. /* readonly */
  3786. String category;
  3787. float drawDistance;
  3788. bool enabled;
  3789. /* readonly */
  3790. bool enabledEffective;
  3791. /* readonly */
  3792. uint id;
  3793. /* readonly */
  3794. bool inView;
  3795. int layer;
  3796. uint lightMask;
  3797. float lodBias;
  3798. uint maxLights;
  3799. /* readonly */
  3800. Node node;
  3801. /* readonly */
  3802. uint numAttributes;
  3803. ObjectAnimation objectAnimation;
  3804. bool occludee;
  3805. bool occluder;
  3806. int orderInLayer;
  3807. /* readonly */
  3808. int refs;
  3809. float shadowDistance;
  3810. uint shadowMask;
  3811. bool temporary;
  3812. /* readonly */
  3813. StringHash type;
  3814. /* readonly */
  3815. String typeName;
  3816. uint viewMask;
  3817. /* readonly */
  3818. int weakRefs;
  3819. /* readonly */
  3820. BoundingBox worldBoundingBox;
  3821. uint zoneMask;
  3822. };
  3823. class DropDownList
  3824. {
  3825. // Methods:
  3826. void AddChild(UIElement);
  3827. void AddItem(UIElement);
  3828. void ApplyAttributes();
  3829. void BringToFront();
  3830. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3831. void DisableLayoutUpdate();
  3832. IntVector2 ElementToScreen(const IntVector2&);
  3833. void EnableLayoutUpdate();
  3834. uint FindChild(UIElement) const;
  3835. Variant GetAttribute(const String&) const;
  3836. ValueAnimation GetAttributeAnimation(const String&) const;
  3837. float GetAttributeAnimationSpeed(const String&) const;
  3838. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3839. Variant GetAttributeDefault(const String&) const;
  3840. UIElement GetChild(const String&, bool = false) const;
  3841. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3842. Array<UIElement> GetChildren(bool = false) const;
  3843. UIElement GetElementEventSender() const;
  3844. bool GetInterceptNetworkUpdate(const String&) const;
  3845. Array<UIElement> GetItems() const;
  3846. uint GetNumChildren(bool) const;
  3847. void InsertChild(uint, UIElement);
  3848. void InsertItem(uint, UIElement);
  3849. bool IsInside(IntVector2, bool);
  3850. bool IsInsideCombined(IntVector2, bool);
  3851. bool Load(File, bool = false);
  3852. bool Load(VectorBuffer&, bool = false);
  3853. bool LoadChildXML(XMLFile, XMLFile = null);
  3854. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3855. bool LoadXML(File);
  3856. bool LoadXML(VectorBuffer&);
  3857. bool LoadXML(XMLFile, XMLFile);
  3858. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3859. bool LoadXML(const XMLElement&, bool = false);
  3860. void MarkNetworkUpdate() const;
  3861. void Remove();
  3862. void RemoveAllChildren();
  3863. void RemoveAllItems();
  3864. void RemoveChild(UIElement, uint = 0);
  3865. void RemoveChild(uint);
  3866. void RemoveInstanceDefault();
  3867. void RemoveItem(UIElement);
  3868. void RemoveItem(uint);
  3869. void ResetDeepEnabled();
  3870. void ResetToDefault();
  3871. bool Save(File) const;
  3872. bool Save(VectorBuffer&) const;
  3873. bool SaveXML(File, const String& = "\t");
  3874. bool SaveXML(VectorBuffer&, const String& = "\t");
  3875. bool SaveXML(XMLElement&) const;
  3876. IntVector2 ScreenToElement(const IntVector2&);
  3877. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3878. void SetAccelerator(int, int);
  3879. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3880. bool SetAttribute(const String&, const Variant&);
  3881. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3882. void SetAttributeAnimationSpeed(const String&, float);
  3883. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3884. void SetDeepEnabled(bool);
  3885. void SetEnabledRecursive(bool);
  3886. void SetFixedHeight(int);
  3887. void SetFixedSize(int, int);
  3888. void SetFixedWidth(int);
  3889. void SetFullImageRect();
  3890. void SetHoverOffset(int, int);
  3891. void SetInterceptNetworkUpdate(const String&, bool);
  3892. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3893. void SetMaxSize(int, int);
  3894. void SetMinSize(int, int);
  3895. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3896. void SetPosition(int, int);
  3897. void SetPressedChildOffset(int, int);
  3898. void SetPressedOffset(int, int);
  3899. void SetRepeat(float, float);
  3900. void SetSize(int, int);
  3901. bool SetStyle(const String&, XMLFile = null);
  3902. bool SetStyle(const XMLElement&);
  3903. bool SetStyleAuto(XMLFile = null);
  3904. void UpdateLayout();
  3905. const Variant& GetVar(const StringHash&);
  3906. UIElement getPopup() const;
  3907. // Properties:
  3908. /* readonly */
  3909. int acceleratorKey;
  3910. /* readonly */
  3911. int acceleratorQualifiers;
  3912. bool animationEnabled;
  3913. /* readonly */
  3914. Array<Variant> attributeDefaults;
  3915. /* readonly */
  3916. Array<AttributeInfo> attributeInfos;
  3917. Array<Variant> attributes;
  3918. /* readonly */
  3919. StringHash baseType;
  3920. BlendMode blendMode;
  3921. IntRect border;
  3922. bool bringToBack;
  3923. bool bringToFront;
  3924. /* readonly */
  3925. String category;
  3926. /* readonly */
  3927. IntVector2 childOffset;
  3928. /* readonly */
  3929. Array<UIElement> children;
  3930. IntRect clipBorder;
  3931. bool clipChildren;
  3932. /* writeonly */
  3933. Color color;
  3934. /* readonly */
  3935. bool colorGradient;
  3936. Array<Color> colors;
  3937. /* readonly */
  3938. IntRect combinedScreenRect;
  3939. XMLFile defaultStyle;
  3940. /* readonly */
  3941. float derivedOpacity;
  3942. /* readonly */
  3943. uint dragButtonCombo;
  3944. /* readonly */
  3945. int dragButtonCount;
  3946. uint dragDropMode;
  3947. bool editable;
  3948. bool elementEventSender;
  3949. bool enabled;
  3950. /* readonly */
  3951. bool enabledSelf;
  3952. /* readonly */
  3953. bool fixedHeight;
  3954. /* readonly */
  3955. bool fixedSize;
  3956. /* readonly */
  3957. bool fixedWidth;
  3958. bool focus;
  3959. FocusMode focusMode;
  3960. int height;
  3961. HorizontalAlignment horizontalAlignment;
  3962. IntVector2 hoverOffset;
  3963. /* readonly */
  3964. bool hovering;
  3965. IntRect imageBorder;
  3966. IntRect imageRect;
  3967. int indent;
  3968. int indentSpacing;
  3969. /* readonly */
  3970. int indentWidth;
  3971. bool internal;
  3972. /* readonly */
  3973. Array<UIElement> items;
  3974. IntRect layoutBorder;
  3975. Vector2 layoutFlexScale;
  3976. LayoutMode layoutMode;
  3977. int layoutSpacing;
  3978. /* readonly */
  3979. ListView listView;
  3980. int maxHeight;
  3981. IntVector2 maxSize;
  3982. int maxWidth;
  3983. int minHeight;
  3984. IntVector2 minSize;
  3985. int minWidth;
  3986. String name;
  3987. /* readonly */
  3988. uint numAllChildren;
  3989. /* readonly */
  3990. uint numAttributes;
  3991. /* readonly */
  3992. uint numChildren;
  3993. /* readonly */
  3994. uint numItems;
  3995. ObjectAnimation objectAnimation;
  3996. float opacity;
  3997. UIElement parent;
  3998. /* readonly */
  3999. UIElement placeholder;
  4000. String placeholderText;
  4001. IntVector2 position;
  4002. /* readonly */
  4003. bool pressed;
  4004. IntVector2 pressedChildOffset;
  4005. IntVector2 pressedOffset;
  4006. int priority;
  4007. /* readonly */
  4008. int refs;
  4009. float repeatDelay;
  4010. float repeatRate;
  4011. bool resizePopup;
  4012. /* readonly */
  4013. UIElement root;
  4014. /* readonly */
  4015. IntVector2 screenPosition;
  4016. bool selected;
  4017. /* readonly */
  4018. UIElement selectedItem;
  4019. uint selection;
  4020. bool showPopup;
  4021. IntVector2 size;
  4022. bool sortChildren;
  4023. String style;
  4024. bool temporary;
  4025. Texture texture;
  4026. bool tiled;
  4027. TraversalMode traversalMode;
  4028. /* readonly */
  4029. StringHash type;
  4030. /* readonly */
  4031. String typeName;
  4032. bool useDerivedOpacity;
  4033. /* readonly */
  4034. VariantMap vars;
  4035. VerticalAlignment verticalAlignment;
  4036. bool visible;
  4037. /* readonly */
  4038. int weakRefs;
  4039. int width;
  4040. };
  4041. class DynamicNavigationMesh
  4042. {
  4043. // Methods:
  4044. void ApplyAttributes();
  4045. bool Build();
  4046. bool Build(const BoundingBox&);
  4047. void DrawDebugGeometry(DebugRenderer, bool);
  4048. void DrawDebugGeometry(bool);
  4049. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4050. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4051. float GetAreaCost(uint) const;
  4052. Variant GetAttribute(const String&) const;
  4053. ValueAnimation GetAttributeAnimation(const String&) const;
  4054. float GetAttributeAnimationSpeed(const String&) const;
  4055. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4056. Variant GetAttributeDefault(const String&) const;
  4057. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4058. bool GetInterceptNetworkUpdate(const String&) const;
  4059. Vector3 GetRandomPoint();
  4060. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4061. bool Load(File, bool = false);
  4062. bool Load(VectorBuffer&, bool = false);
  4063. bool LoadXML(const XMLElement&, bool = false);
  4064. void MarkNetworkUpdate() const;
  4065. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), uint = 3);
  4066. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4067. void Remove();
  4068. void RemoveInstanceDefault();
  4069. void ResetToDefault();
  4070. bool Save(File) const;
  4071. bool Save(VectorBuffer&) const;
  4072. bool SaveXML(XMLElement&) const;
  4073. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4074. void SetAreaCost(uint, float);
  4075. bool SetAttribute(const String&, const Variant&);
  4076. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4077. void SetAttributeAnimationSpeed(const String&, float);
  4078. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4079. void SetInterceptNetworkUpdate(const String&, bool);
  4080. // Properties:
  4081. float agentHeight;
  4082. float agentMaxClimb;
  4083. float agentMaxSlope;
  4084. float agentRadius;
  4085. bool animationEnabled;
  4086. /* readonly */
  4087. Array<Variant> attributeDefaults;
  4088. /* readonly */
  4089. Array<AttributeInfo> attributeInfos;
  4090. Array<Variant> attributes;
  4091. /* readonly */
  4092. StringHash baseType;
  4093. /* readonly */
  4094. BoundingBox boundingBox;
  4095. /* readonly */
  4096. String category;
  4097. float cellHeight;
  4098. float cellSize;
  4099. float detailSampleDistance;
  4100. float detailSampleMaxError;
  4101. bool drawNavAreas;
  4102. bool drawObstacles;
  4103. bool drawOffMeshConnections;
  4104. float edgeMaxError;
  4105. float edgeMaxLength;
  4106. bool enabled;
  4107. /* readonly */
  4108. bool enabledEffective;
  4109. /* readonly */
  4110. uint id;
  4111. /* readonly */
  4112. bool initialized;
  4113. uint maxObstacles;
  4114. /* readonly */
  4115. Node node;
  4116. /* readonly */
  4117. uint numAttributes;
  4118. /* readonly */
  4119. IntVector2 numTiles;
  4120. ObjectAnimation objectAnimation;
  4121. Vector3 padding;
  4122. NavmeshPartitionType partitionType;
  4123. /* readonly */
  4124. int refs;
  4125. float regionMergeSize;
  4126. float regionMinSize;
  4127. bool temporary;
  4128. int tileSize;
  4129. /* readonly */
  4130. StringHash type;
  4131. /* readonly */
  4132. String typeName;
  4133. /* readonly */
  4134. int weakRefs;
  4135. /* readonly */
  4136. BoundingBox worldBoundingBox;
  4137. };
  4138. class Engine
  4139. {
  4140. // Methods:
  4141. Console CreateConsole();
  4142. DebugHud CreateDebugHud();
  4143. void DumpMemory();
  4144. void DumpProfiler();
  4145. void DumpResources(bool = false);
  4146. void Exit();
  4147. void RunFrame();
  4148. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4149. // Properties:
  4150. bool autoExit;
  4151. /* readonly */
  4152. StringHash baseType;
  4153. /* readonly */
  4154. String category;
  4155. /* readonly */
  4156. bool exiting;
  4157. /* readonly */
  4158. bool headless;
  4159. /* readonly */
  4160. bool initialized;
  4161. int maxFps;
  4162. int maxInactiveFps;
  4163. int minFps;
  4164. bool pauseMinimized;
  4165. /* readonly */
  4166. int refs;
  4167. int timeStepSmoothing;
  4168. /* readonly */
  4169. StringHash type;
  4170. /* readonly */
  4171. String typeName;
  4172. /* readonly */
  4173. int weakRefs;
  4174. };
  4175. class File
  4176. {
  4177. // Methods:
  4178. void Close();
  4179. bool Open(const String&, FileMode = FILE_READ);
  4180. Array<uint8> Read(uint);
  4181. bool ReadBool();
  4182. BoundingBox ReadBoundingBox();
  4183. int8 ReadByte();
  4184. Color ReadColor();
  4185. String ReadFileID();
  4186. float ReadFloat();
  4187. int ReadInt();
  4188. IntRect ReadIntRect();
  4189. IntVector2 ReadIntVector2();
  4190. String ReadLine();
  4191. Matrix3 ReadMatrix3();
  4192. Matrix3x4 ReadMatrix3x4();
  4193. Matrix4 ReadMatrix4();
  4194. uint ReadNetID();
  4195. Quaternion ReadPackedQuaternion();
  4196. Vector3 ReadPackedVector3(float);
  4197. Quaternion ReadQuaternion();
  4198. int16 ReadShort();
  4199. String ReadString();
  4200. StringHash ReadStringHash();
  4201. uint8 ReadUByte();
  4202. uint ReadUInt();
  4203. uint16 ReadUShort();
  4204. uint ReadVLE();
  4205. Variant ReadVariant();
  4206. VariantMap ReadVariantMap();
  4207. Vector2 ReadVector2();
  4208. Vector3 ReadVector3();
  4209. Vector4 ReadVector4();
  4210. VectorBuffer ReadVectorBuffer(uint);
  4211. uint Seek(uint);
  4212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4213. uint Write(Array<uint8>);
  4214. bool WriteBool(bool);
  4215. bool WriteBoundingBox(const BoundingBox&);
  4216. bool WriteByte(int8);
  4217. bool WriteColor(const Color&);
  4218. bool WriteFileID(const String&);
  4219. bool WriteFloat(float);
  4220. bool WriteInt(int);
  4221. bool WriteIntRect(const IntRect&);
  4222. bool WriteIntVector2(const IntVector2&);
  4223. bool WriteLine(const String&);
  4224. bool WriteMatrix3(const Matrix3&);
  4225. bool WriteMatrix3x4(const Matrix3x4&);
  4226. bool WriteMatrix4(const Matrix4&);
  4227. bool WriteNetID(uint);
  4228. bool WritePackedQuaternion(const Quaternion&);
  4229. bool WritePackedVector3(const Vector3&, float);
  4230. bool WriteQuaternion(const Quaternion&);
  4231. bool WriteShort(int16);
  4232. bool WriteString(const String&);
  4233. bool WriteStringHash(const StringHash&);
  4234. bool WriteUByte(uint8);
  4235. bool WriteUInt(uint);
  4236. bool WriteUShort(uint16);
  4237. bool WriteVLE(uint);
  4238. bool WriteVariant(const Variant&);
  4239. bool WriteVariantMap(const VariantMap&);
  4240. bool WriteVector2(const Vector2&);
  4241. bool WriteVector3(const Vector3&);
  4242. bool WriteVector4(const Vector4&);
  4243. bool WriteVectorBuffer(const VectorBuffer&);
  4244. // Properties:
  4245. /* readonly */
  4246. StringHash baseType;
  4247. /* readonly */
  4248. String category;
  4249. /* readonly */
  4250. uint checksum;
  4251. /* readonly */
  4252. bool eof;
  4253. /* readonly */
  4254. FileMode mode;
  4255. /* readonly */
  4256. String name;
  4257. /* readonly */
  4258. bool open;
  4259. /* readonly */
  4260. bool packaged;
  4261. /* readonly */
  4262. uint position;
  4263. /* readonly */
  4264. int refs;
  4265. /* readonly */
  4266. uint size;
  4267. /* readonly */
  4268. StringHash type;
  4269. /* readonly */
  4270. String typeName;
  4271. /* readonly */
  4272. int weakRefs;
  4273. };
  4274. class FileSelector
  4275. {
  4276. // Methods:
  4277. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4278. void SetButtonTexts(const String&, const String&);
  4279. void SetFilters(Array<String>, uint);
  4280. void UpdateElements();
  4281. // Properties:
  4282. /* readonly */
  4283. StringHash baseType;
  4284. /* readonly */
  4285. Button cancelButton;
  4286. /* readonly */
  4287. String category;
  4288. XMLFile defaultStyle;
  4289. bool directoryMode;
  4290. /* readonly */
  4291. ListView fileList;
  4292. String fileName;
  4293. /* readonly */
  4294. LineEdit fileNameEdit;
  4295. /* readonly */
  4296. String filter;
  4297. /* readonly */
  4298. uint filterIndex;
  4299. /* readonly */
  4300. DropDownList filterList;
  4301. /* readonly */
  4302. Button okButton;
  4303. String path;
  4304. /* readonly */
  4305. LineEdit pathEdit;
  4306. /* readonly */
  4307. int refs;
  4308. String title;
  4309. /* readonly */
  4310. Text titleText;
  4311. /* readonly */
  4312. StringHash type;
  4313. /* readonly */
  4314. String typeName;
  4315. /* readonly */
  4316. int weakRefs;
  4317. /* readonly */
  4318. Window window;
  4319. };
  4320. class FileSystem
  4321. {
  4322. // Methods:
  4323. bool Copy(const String&, const String&);
  4324. bool CreateDir(const String&);
  4325. bool Delete(const String&);
  4326. bool DirExists(const String&) const;
  4327. bool FileExists(const String&) const;
  4328. String GetAppPreferencesDir(const String&, const String&) const;
  4329. uint GetLastModifiedTime(const String&) const;
  4330. bool Rename(const String&, const String&);
  4331. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4332. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4333. bool SetLastModifiedTime(const String&, uint);
  4334. int SystemCommand(const String&, bool = false);
  4335. uint SystemCommandAsync(const String&);
  4336. bool SystemOpen(const String&, const String&);
  4337. int SystemRun(const String&, Array<String>);
  4338. uint SystemRunAsync(const String&, Array<String>);
  4339. // Properties:
  4340. /* readonly */
  4341. StringHash baseType;
  4342. /* readonly */
  4343. String category;
  4344. String currentDir;
  4345. bool executeConsoleCommands;
  4346. /* readonly */
  4347. String programDir;
  4348. /* readonly */
  4349. int refs;
  4350. /* readonly */
  4351. StringHash type;
  4352. /* readonly */
  4353. String typeName;
  4354. /* readonly */
  4355. String userDocumentsDir;
  4356. /* readonly */
  4357. int weakRefs;
  4358. };
  4359. class FocusParameters
  4360. {
  4361. // Properties:
  4362. bool autoSize;
  4363. bool focus;
  4364. float minView;
  4365. bool nonUniform;
  4366. float quantize;
  4367. };
  4368. class Font
  4369. {
  4370. // Methods:
  4371. IntVector2 GetTotalGlyphOffset(int) const;
  4372. bool Load(File);
  4373. bool Load(VectorBuffer&);
  4374. bool Save(File) const;
  4375. bool Save(VectorBuffer&) const;
  4376. bool SaveXML(File, int, bool = false, const String& = "\t");
  4377. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4378. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4379. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4380. // Properties:
  4381. IntVector2 absoluteGlyphOffset;
  4382. /* readonly */
  4383. StringHash baseType;
  4384. /* readonly */
  4385. String category;
  4386. /* readonly */
  4387. uint memoryUse;
  4388. String name;
  4389. /* readonly */
  4390. int refs;
  4391. Vector2 scaledGlyphOffset;
  4392. /* readonly */
  4393. StringHash type;
  4394. /* readonly */
  4395. String typeName;
  4396. /* readonly */
  4397. uint useTimer;
  4398. /* readonly */
  4399. int weakRefs;
  4400. };
  4401. class Frustum
  4402. {
  4403. // Methods:
  4404. void Define(const BoundingBox&, const Matrix3x4&);
  4405. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4406. void Define(float, float, float, float, float, const Matrix3x4&);
  4407. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4408. float Distance(const Vector3&) const;
  4409. Intersection IsInside(const BoundingBox&);
  4410. Intersection IsInside(const Sphere&);
  4411. Intersection IsInside(const Vector3&);
  4412. void Transform(const Matrix3&);
  4413. void Transform(const Matrix3x4&);
  4414. Frustum Transformed(const Matrix3&) const;
  4415. Frustum Transformed(const Matrix3x4&) const;
  4416. // Properties:
  4417. /* readonly */
  4418. Array<Vector3> vertices;
  4419. };
  4420. class Geometry
  4421. {
  4422. // Methods:
  4423. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4424. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4425. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4426. void SetIndexBuffer(IndexBuffer);
  4427. bool SetVertexBuffer(uint, VertexBuffer, uint = MASK_DEFAULT);
  4428. // Properties:
  4429. /* readonly */
  4430. StringHash baseType;
  4431. /* readonly */
  4432. String category;
  4433. /* readonly */
  4434. bool empty;
  4435. IndexBuffer indexBuffer;
  4436. /* readonly */
  4437. uint indexCount;
  4438. /* readonly */
  4439. uint indexStart;
  4440. float lodDistance;
  4441. uint numVertexBuffers;
  4442. /* readonly */
  4443. PrimitiveType primitiveType;
  4444. /* readonly */
  4445. int refs;
  4446. /* readonly */
  4447. StringHash type;
  4448. /* readonly */
  4449. String typeName;
  4450. /* readonly */
  4451. Array<VertexBuffer> vertexBuffers;
  4452. /* readonly */
  4453. uint vertexCount;
  4454. /* readonly */
  4455. Array<uint> vertexElementMasks;
  4456. /* readonly */
  4457. uint vertexStart;
  4458. /* readonly */
  4459. int weakRefs;
  4460. };
  4461. class Graphics
  4462. {
  4463. // Methods:
  4464. void BeginDumpShaders(const String&);
  4465. void Close();
  4466. void EndDumpShaders();
  4467. void Maximize();
  4468. void Minimize();
  4469. void PrecacheShaders(File);
  4470. void PrecacheShaders(VectorBuffer&);
  4471. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4472. bool SetMode(int, int);
  4473. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4474. void SetWindowPosition(int, int);
  4475. bool TakeScreenShot(Image);
  4476. bool ToggleFullscreen();
  4477. // Properties:
  4478. /* readonly */
  4479. String apiName;
  4480. /* readonly */
  4481. StringHash baseType;
  4482. /* readonly */
  4483. bool borderless;
  4484. /* readonly */
  4485. String category;
  4486. /* readonly */
  4487. bool deferredSupport;
  4488. /* readonly */
  4489. IntVector2 desktopResolution;
  4490. /* readonly */
  4491. bool deviceLost;
  4492. bool flushGPU;
  4493. /* readonly */
  4494. bool fullscreen;
  4495. /* readonly */
  4496. bool hardwareShadowSupport;
  4497. /* readonly */
  4498. int height;
  4499. /* readonly */
  4500. bool initialized;
  4501. /* readonly */
  4502. bool instancingSupport;
  4503. /* readonly */
  4504. bool lightPrepassSupport;
  4505. /* readonly */
  4506. int multiSample;
  4507. /* readonly */
  4508. Array<int> multiSampleLevels;
  4509. /* readonly */
  4510. uint numBatches;
  4511. /* readonly */
  4512. uint numPrimitives;
  4513. String orientations;
  4514. /* readonly */
  4515. bool readableDepthSupport;
  4516. /* readonly */
  4517. int refs;
  4518. /* readonly */
  4519. bool resizable;
  4520. /* readonly */
  4521. Array<IntVector2> resolutions;
  4522. bool sRGB;
  4523. /* readonly */
  4524. bool sRGBSupport;
  4525. /* readonly */
  4526. bool sRGBWriteSupport;
  4527. /* readonly */
  4528. bool tripleBuffer;
  4529. /* readonly */
  4530. StringHash type;
  4531. /* readonly */
  4532. String typeName;
  4533. /* readonly */
  4534. bool vsync;
  4535. /* readonly */
  4536. int weakRefs;
  4537. /* readonly */
  4538. int width;
  4539. /* writeonly */
  4540. Image windowIcon;
  4541. IntVector2 windowPosition;
  4542. String windowTitle;
  4543. };
  4544. class HttpRequest
  4545. {
  4546. // Methods:
  4547. Array<uint8> Read(uint);
  4548. bool ReadBool();
  4549. BoundingBox ReadBoundingBox();
  4550. int8 ReadByte();
  4551. Color ReadColor();
  4552. String ReadFileID();
  4553. float ReadFloat();
  4554. int ReadInt();
  4555. IntRect ReadIntRect();
  4556. IntVector2 ReadIntVector2();
  4557. String ReadLine();
  4558. Matrix3 ReadMatrix3();
  4559. Matrix3x4 ReadMatrix3x4();
  4560. Matrix4 ReadMatrix4();
  4561. uint ReadNetID();
  4562. Quaternion ReadPackedQuaternion();
  4563. Vector3 ReadPackedVector3(float);
  4564. Quaternion ReadQuaternion();
  4565. int16 ReadShort();
  4566. String ReadString();
  4567. StringHash ReadStringHash();
  4568. uint8 ReadUByte();
  4569. uint ReadUInt();
  4570. uint16 ReadUShort();
  4571. uint ReadVLE();
  4572. Variant ReadVariant();
  4573. VariantMap ReadVariantMap();
  4574. Vector2 ReadVector2();
  4575. Vector3 ReadVector3();
  4576. Vector4 ReadVector4();
  4577. VectorBuffer ReadVectorBuffer(uint);
  4578. uint Seek(uint);
  4579. // Properties:
  4580. /* readonly */
  4581. uint availableSize;
  4582. /* readonly */
  4583. uint checksum;
  4584. /* readonly */
  4585. bool eof;
  4586. /* readonly */
  4587. String error;
  4588. /* readonly */
  4589. String name;
  4590. /* readonly */
  4591. bool open;
  4592. /* readonly */
  4593. uint position;
  4594. /* readonly */
  4595. int refs;
  4596. /* readonly */
  4597. uint size;
  4598. /* readonly */
  4599. HttpRequestState state;
  4600. /* readonly */
  4601. String url;
  4602. /* readonly */
  4603. String verb;
  4604. /* readonly */
  4605. int weakRefs;
  4606. };
  4607. class Image
  4608. {
  4609. // Methods:
  4610. void Clear(const Color&);
  4611. void ClearInt(uint);
  4612. bool FlipHorizontal();
  4613. bool FlipVertical();
  4614. Color GetPixel(int, int) const;
  4615. Color GetPixel(int, int, int) const;
  4616. Color GetPixelBilinear(float, float) const;
  4617. uint GetPixelInt(int, int) const;
  4618. uint GetPixelInt(int, int, int) const;
  4619. Color GetPixelTrilinear(float, float, float) const;
  4620. Image GetSubimage(const IntRect&) const;
  4621. bool Load(File);
  4622. bool Load(VectorBuffer&);
  4623. bool LoadColorLUT(File);
  4624. bool LoadColorLUT(VectorBuffer&);
  4625. bool Resize(int, int);
  4626. bool Save(File) const;
  4627. bool Save(VectorBuffer&) const;
  4628. void SaveBMP(const String&) const;
  4629. void SaveJPG(const String&, int) const;
  4630. void SavePNG(const String&) const;
  4631. void SaveTGA(const String&) const;
  4632. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4633. void SetPixel(int, int, const Color&);
  4634. void SetPixel(int, int, int, const Color&);
  4635. void SetPixelInt(int, int, int, uint);
  4636. void SetPixelInt(int, int, uint);
  4637. bool SetSize(int, int, int, uint);
  4638. bool SetSize(int, int, uint);
  4639. // Properties:
  4640. /* readonly */
  4641. StringHash baseType;
  4642. /* readonly */
  4643. String category;
  4644. /* readonly */
  4645. uint components;
  4646. /* readonly */
  4647. bool compressed;
  4648. /* readonly */
  4649. CompressedFormat compressedFormat;
  4650. /* readonly */
  4651. int depth;
  4652. /* readonly */
  4653. int height;
  4654. /* readonly */
  4655. uint memoryUse;
  4656. String name;
  4657. /* readonly */
  4658. uint numCompressedLevels;
  4659. /* readonly */
  4660. int refs;
  4661. /* readonly */
  4662. StringHash type;
  4663. /* readonly */
  4664. String typeName;
  4665. /* readonly */
  4666. uint useTimer;
  4667. /* readonly */
  4668. int weakRefs;
  4669. /* readonly */
  4670. int width;
  4671. };
  4672. class IndexBuffer
  4673. {
  4674. // Methods:
  4675. VectorBuffer GetData();
  4676. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4677. bool SetData(VectorBuffer&);
  4678. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  4679. void SetSize(uint, bool, bool = false);
  4680. // Properties:
  4681. /* readonly */
  4682. StringHash baseType;
  4683. /* readonly */
  4684. String category;
  4685. /* readonly */
  4686. bool dynamic;
  4687. /* readonly */
  4688. uint indexCount;
  4689. /* readonly */
  4690. uint indexSize;
  4691. /* readonly */
  4692. int refs;
  4693. bool shadowed;
  4694. /* readonly */
  4695. StringHash type;
  4696. /* readonly */
  4697. String typeName;
  4698. /* readonly */
  4699. int weakRefs;
  4700. };
  4701. class Input
  4702. {
  4703. // Methods:
  4704. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  4705. int GetKeyFromName(const String&) const;
  4706. int GetKeyFromScancode(int) const;
  4707. String GetKeyName(int) const;
  4708. int GetScancodeFromKey(int) const;
  4709. int GetScancodeFromName(const String&) const;
  4710. String GetScancodeName(int) const;
  4711. uint LoadGestures(File);
  4712. uint LoadGestures(VectorBuffer&);
  4713. bool RecordGesture();
  4714. void RemoveAllGestures();
  4715. bool RemoveGesture(uint);
  4716. bool RemoveScreenJoystick(int);
  4717. void ResetMouseVisible();
  4718. bool SaveGesture(File, uint);
  4719. bool SaveGesture(VectorBuffer&, uint);
  4720. bool SaveGestures(File);
  4721. bool SaveGestures(VectorBuffer&);
  4722. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4723. void SetMouseVisible(bool, bool = false);
  4724. // Properties:
  4725. /* readonly */
  4726. StringHash baseType;
  4727. /* readonly */
  4728. String category;
  4729. /* readonly */
  4730. bool focus;
  4731. /* readonly */
  4732. Array<JoystickState> joysticks;
  4733. /* readonly */
  4734. Array<JoystickState> joysticksByIndex;
  4735. /* readonly */
  4736. Array<bool> keyDown;
  4737. /* readonly */
  4738. Array<bool> keyPress;
  4739. /* readonly */
  4740. bool minimized;
  4741. /* readonly */
  4742. Array<bool> mouseButtonDown;
  4743. /* readonly */
  4744. Array<bool> mouseButtonPress;
  4745. bool mouseGrabbed;
  4746. MouseMode mouseMode;
  4747. /* readonly */
  4748. IntVector2 mouseMove;
  4749. /* readonly */
  4750. int mouseMoveWheel;
  4751. /* readonly */
  4752. int mouseMoveX;
  4753. /* readonly */
  4754. int mouseMoveY;
  4755. /* readonly */
  4756. IntVector2 mousePosition;
  4757. bool mouseVisible;
  4758. /* readonly */
  4759. uint numJoysticks;
  4760. /* readonly */
  4761. uint numTouches;
  4762. /* readonly */
  4763. Array<bool> qualifierDown;
  4764. /* readonly */
  4765. Array<bool> qualifierPress;
  4766. /* readonly */
  4767. int qualifiers;
  4768. /* readonly */
  4769. int refs;
  4770. /* readonly */
  4771. Array<bool> scancodeDown;
  4772. /* readonly */
  4773. Array<bool> scancodePress;
  4774. Array<bool> screenJoystickVisible;
  4775. /* readonly */
  4776. bool screenKeyboardSupport;
  4777. bool screenKeyboardVisible;
  4778. bool toggleFullscreen;
  4779. bool touchEmulation;
  4780. /* readonly */
  4781. Array<TouchState> touches;
  4782. /* readonly */
  4783. StringHash type;
  4784. /* readonly */
  4785. String typeName;
  4786. /* readonly */
  4787. int weakRefs;
  4788. };
  4789. class IntRect
  4790. {
  4791. // Methods:
  4792. Intersection IsInside(const IntVector2&) const;
  4793. // Properties:
  4794. int bottom;
  4795. /* readonly */
  4796. Array<int> data;
  4797. /* readonly */
  4798. int height;
  4799. int left;
  4800. int right;
  4801. /* readonly */
  4802. IntVector2 size;
  4803. int top;
  4804. /* readonly */
  4805. int width;
  4806. };
  4807. class IntVector2
  4808. {
  4809. // Methods:
  4810. String ToString() const;
  4811. // Properties:
  4812. /* readonly */
  4813. Array<int> data;
  4814. int x;
  4815. int y;
  4816. };
  4817. class JSONFile
  4818. {
  4819. // Methods:
  4820. JSONValue CreateRoot(JSONValueType = JSON_ANY);
  4821. JSONValue GetRoot(JSONValueType = JSON_ANY);
  4822. bool Load(File);
  4823. bool Load(VectorBuffer&);
  4824. bool Save(File) const;
  4825. bool Save(File, const String&) const;
  4826. bool Save(VectorBuffer&) const;
  4827. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4828. // Properties:
  4829. /* readonly */
  4830. StringHash baseType;
  4831. /* readonly */
  4832. String category;
  4833. /* readonly */
  4834. uint memoryUse;
  4835. String name;
  4836. /* readonly */
  4837. int refs;
  4838. /* readonly */
  4839. StringHash type;
  4840. /* readonly */
  4841. String typeName;
  4842. /* readonly */
  4843. uint useTimer;
  4844. /* readonly */
  4845. int weakRefs;
  4846. };
  4847. class JSONValue
  4848. {
  4849. // Methods:
  4850. void AddBool(bool);
  4851. void AddColor(const Color&);
  4852. void AddFloat(float);
  4853. void AddInt(int);
  4854. void AddIntRect(const IntRect&);
  4855. void AddIntVector2(const IntVector2&);
  4856. void AddMatrix3(const Matrix3&);
  4857. void AddMatrix3x4(const Matrix3x4&);
  4858. void AddMatrix4(const Matrix4&);
  4859. void AddQuaternion(const Quaternion&);
  4860. void AddResourceRef(const ResourceRef&);
  4861. void AddResourceRefList(const ResourceRefList&);
  4862. void AddString(const String);
  4863. void AddVariant(const Variant&);
  4864. void AddVariantValue(const Variant&);
  4865. void AddVector2(const Vector2&);
  4866. void AddVector3(const Vector3&);
  4867. void AddVector4(const Vector4&);
  4868. void AddVectorVariant(const Variant&);
  4869. JSONValue CreateChild(JSONValueType = JSON_OBJECT);
  4870. JSONValue CreateChild(const String&, JSONValueType = JSON_OBJECT);
  4871. bool GetBool(const String&) const;
  4872. bool GetBool(uint) const;
  4873. JSONValue GetChild(const String&, JSONValueType = JSON_ANY) const;
  4874. JSONValue GetChild(uint, JSONValueType = JSON_ANY) const;
  4875. Array<String> GetChildNames() const;
  4876. Color GetColor(const String&) const;
  4877. Color GetColor(uint) const;
  4878. float GetFloat(const String&) const;
  4879. float GetFloat(uint) const;
  4880. int GetInt(const String&) const;
  4881. int GetInt(uint) const;
  4882. IntRect GetIntRect(const String&) const;
  4883. IntRect GetIntRect(uint) const;
  4884. IntVector2 GetIntVector2(const String&) const;
  4885. IntVector2 GetIntVector2(uint) const;
  4886. Matrix3 GetMatrix3(const String&) const;
  4887. Matrix3 GetMatrix3(uint) const;
  4888. Matrix3x4 GetMatrix3x4(const String&) const;
  4889. Matrix3x4 GetMatrix3x4(uint) const;
  4890. Matrix4 GetMatrix4(const String&) const;
  4891. Matrix4 GetMatrix4(uint) const;
  4892. Quaternion GetQuaternion(const String&) const;
  4893. Quaternion GetQuaternion(uint) const;
  4894. ResourceRef GetResourceRef(const String&) const;
  4895. ResourceRef GetResourceRef(uint) const;
  4896. ResourceRefList GetResourceRefList(const String&) const;
  4897. ResourceRefList GetResourceRefList(uint) const;
  4898. String GetString(const String&) const;
  4899. String GetString(uint) const;
  4900. Array<String> GetValueNames() const;
  4901. Variant GetVariant(const String&) const;
  4902. Variant GetVariant(uint) const;
  4903. Variant GetVariantValue(const String&, VariantType) const;
  4904. Variant GetVariantValue(uint, VariantType) const;
  4905. Vector2 GetVector2(const String&) const;
  4906. Vector2 GetVector2(uint) const;
  4907. Vector3 GetVector3(const String&) const;
  4908. Vector3 GetVector3(uint) const;
  4909. Vector4 GetVector4(const String&) const;
  4910. Vector4 GetVector4(uint) const;
  4911. Variant GetVectorVariant(const String&) const;
  4912. Variant GetVectorVariant(uint) const;
  4913. void SetBool(const String&, bool);
  4914. void SetColor(const String&, const Color&);
  4915. void SetFloat(const String&, float);
  4916. void SetInt(const String&, int);
  4917. void SetIntRect(const String&, const IntRect&);
  4918. void SetIntVector2(const String&, const IntVector2&);
  4919. void SetMatrix3(const String&, const Matrix3&);
  4920. void SetMatrix3x4(const String&, const Matrix3x4&);
  4921. void SetMatrix4(const String&, const Matrix4&);
  4922. void SetQuaternion(const String&, const Quaternion&);
  4923. void SetResourceRef(const String&, const ResourceRef&);
  4924. void SetResourceRefList(const String&, const ResourceRefList&);
  4925. void SetString(const String&, const String);
  4926. void SetVariant(const String&, const Variant&);
  4927. void SetVariantValue(const String&, const Variant&);
  4928. void SetVector2(const String&, const Vector2&);
  4929. void SetVector3(const String&, const Vector3&);
  4930. void SetVector4(const String&, const Vector4&);
  4931. void SetVectorVariant(const String&, const Variant&);
  4932. // Properties:
  4933. /* readonly */
  4934. bool isArray;
  4935. /* readonly */
  4936. bool isNull;
  4937. /* readonly */
  4938. bool isObject;
  4939. /* readonly */
  4940. bool notNull;
  4941. /* readonly */
  4942. uint size;
  4943. };
  4944. class JoystickState
  4945. {
  4946. // Properties:
  4947. /* readonly */
  4948. Array<float> axisPosition;
  4949. /* readonly */
  4950. Array<bool> buttonDown;
  4951. /* readonly */
  4952. Array<bool> buttonPress;
  4953. /* readonly */
  4954. bool controller;
  4955. /* readonly */
  4956. Array<int> hatPosition;
  4957. int joystickID;
  4958. String name;
  4959. /* readonly */
  4960. uint numAxes;
  4961. /* readonly */
  4962. uint numButtons;
  4963. /* readonly */
  4964. uint numHats;
  4965. };
  4966. class Light
  4967. {
  4968. // Methods:
  4969. void ApplyAttributes();
  4970. void DrawDebugGeometry(DebugRenderer, bool);
  4971. Variant GetAttribute(const String&) const;
  4972. ValueAnimation GetAttributeAnimation(const String&) const;
  4973. float GetAttributeAnimationSpeed(const String&) const;
  4974. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4975. Variant GetAttributeDefault(const String&) const;
  4976. bool GetInterceptNetworkUpdate(const String&) const;
  4977. bool IsInView(Camera) const;
  4978. bool Load(File, bool = false);
  4979. bool Load(VectorBuffer&, bool = false);
  4980. bool LoadXML(const XMLElement&, bool = false);
  4981. void MarkNetworkUpdate() const;
  4982. void Remove();
  4983. void RemoveInstanceDefault();
  4984. void ResetToDefault();
  4985. bool Save(File) const;
  4986. bool Save(VectorBuffer&) const;
  4987. bool SaveXML(XMLElement&) const;
  4988. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4989. bool SetAttribute(const String&, const Variant&);
  4990. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4991. void SetAttributeAnimationSpeed(const String&, float);
  4992. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4993. void SetInterceptNetworkUpdate(const String&, bool);
  4994. // Properties:
  4995. bool animationEnabled;
  4996. float aspectRatio;
  4997. /* readonly */
  4998. Array<Variant> attributeDefaults;
  4999. /* readonly */
  5000. Array<AttributeInfo> attributeInfos;
  5001. Array<Variant> attributes;
  5002. /* readonly */
  5003. StringHash baseType;
  5004. /* readonly */
  5005. BoundingBox boundingBox;
  5006. float brightness;
  5007. bool castShadows;
  5008. /* readonly */
  5009. String category;
  5010. Color color;
  5011. float drawDistance;
  5012. /* readonly */
  5013. Color effectiveColor;
  5014. /* readonly */
  5015. float effectiveSpecularIntensity;
  5016. bool enabled;
  5017. /* readonly */
  5018. bool enabledEffective;
  5019. float fadeDistance;
  5020. float fov;
  5021. /* readonly */
  5022. Frustum frustum;
  5023. /* readonly */
  5024. uint id;
  5025. /* readonly */
  5026. bool inView;
  5027. uint lightMask;
  5028. LightType lightType;
  5029. float lodBias;
  5030. uint maxLights;
  5031. /* readonly */
  5032. bool negative;
  5033. /* readonly */
  5034. Node node;
  5035. /* readonly */
  5036. uint numAttributes;
  5037. /* readonly */
  5038. int numShadowSplits;
  5039. ObjectAnimation objectAnimation;
  5040. bool occludee;
  5041. bool occluder;
  5042. bool perVertex;
  5043. Texture rampTexture;
  5044. float range;
  5045. /* readonly */
  5046. int refs;
  5047. BiasParameters shadowBias;
  5048. CascadeParameters shadowCascade;
  5049. float shadowDistance;
  5050. float shadowFadeDistance;
  5051. FocusParameters shadowFocus;
  5052. float shadowIntensity;
  5053. uint shadowMask;
  5054. float shadowNearFarRatio;
  5055. float shadowResolution;
  5056. Texture shapeTexture;
  5057. float specularIntensity;
  5058. bool temporary;
  5059. /* readonly */
  5060. StringHash type;
  5061. /* readonly */
  5062. String typeName;
  5063. uint viewMask;
  5064. /* readonly */
  5065. int weakRefs;
  5066. /* readonly */
  5067. BoundingBox worldBoundingBox;
  5068. uint zoneMask;
  5069. };
  5070. class LineEdit
  5071. {
  5072. // Methods:
  5073. void AddChild(UIElement);
  5074. void ApplyAttributes();
  5075. void BringToFront();
  5076. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5077. void DisableLayoutUpdate();
  5078. IntVector2 ElementToScreen(const IntVector2&);
  5079. void EnableLayoutUpdate();
  5080. uint FindChild(UIElement) const;
  5081. Variant GetAttribute(const String&) const;
  5082. ValueAnimation GetAttributeAnimation(const String&) const;
  5083. float GetAttributeAnimationSpeed(const String&) const;
  5084. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5085. Variant GetAttributeDefault(const String&) const;
  5086. UIElement GetChild(const String&, bool = false) const;
  5087. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5088. Array<UIElement> GetChildren(bool = false) const;
  5089. UIElement GetElementEventSender() const;
  5090. bool GetInterceptNetworkUpdate(const String&) const;
  5091. uint GetNumChildren(bool) const;
  5092. void InsertChild(uint, UIElement);
  5093. bool IsInside(IntVector2, bool);
  5094. bool IsInsideCombined(IntVector2, bool);
  5095. bool Load(File, bool = false);
  5096. bool Load(VectorBuffer&, bool = false);
  5097. bool LoadChildXML(XMLFile, XMLFile = null);
  5098. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5099. bool LoadXML(File);
  5100. bool LoadXML(VectorBuffer&);
  5101. bool LoadXML(XMLFile, XMLFile);
  5102. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5103. bool LoadXML(const XMLElement&, bool = false);
  5104. void MarkNetworkUpdate() const;
  5105. void Remove();
  5106. void RemoveAllChildren();
  5107. void RemoveChild(UIElement, uint = 0);
  5108. void RemoveChild(uint);
  5109. void RemoveInstanceDefault();
  5110. void ResetDeepEnabled();
  5111. void ResetToDefault();
  5112. bool Save(File) const;
  5113. bool Save(VectorBuffer&) const;
  5114. bool SaveXML(File, const String& = "\t");
  5115. bool SaveXML(VectorBuffer&, const String& = "\t");
  5116. bool SaveXML(XMLElement&) const;
  5117. IntVector2 ScreenToElement(const IntVector2&);
  5118. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5119. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5120. bool SetAttribute(const String&, const Variant&);
  5121. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5122. void SetAttributeAnimationSpeed(const String&, float);
  5123. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5124. void SetDeepEnabled(bool);
  5125. void SetEnabledRecursive(bool);
  5126. void SetFixedHeight(int);
  5127. void SetFixedSize(int, int);
  5128. void SetFixedWidth(int);
  5129. void SetFullImageRect();
  5130. void SetHoverOffset(int, int);
  5131. void SetInterceptNetworkUpdate(const String&, bool);
  5132. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5133. void SetMaxSize(int, int);
  5134. void SetMinSize(int, int);
  5135. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5136. void SetPosition(int, int);
  5137. void SetSize(int, int);
  5138. bool SetStyle(const String&, XMLFile = null);
  5139. bool SetStyle(const XMLElement&);
  5140. bool SetStyleAuto(XMLFile = null);
  5141. void UpdateLayout();
  5142. const Variant& GetVar(const StringHash&);
  5143. // Properties:
  5144. bool animationEnabled;
  5145. /* readonly */
  5146. Array<Variant> attributeDefaults;
  5147. /* readonly */
  5148. Array<AttributeInfo> attributeInfos;
  5149. Array<Variant> attributes;
  5150. /* readonly */
  5151. StringHash baseType;
  5152. BlendMode blendMode;
  5153. IntRect border;
  5154. bool bringToBack;
  5155. bool bringToFront;
  5156. /* readonly */
  5157. String category;
  5158. /* readonly */
  5159. IntVector2 childOffset;
  5160. /* readonly */
  5161. Array<UIElement> children;
  5162. IntRect clipBorder;
  5163. bool clipChildren;
  5164. /* writeonly */
  5165. Color color;
  5166. /* readonly */
  5167. bool colorGradient;
  5168. Array<Color> colors;
  5169. /* readonly */
  5170. IntRect combinedScreenRect;
  5171. /* readonly */
  5172. BorderImage cursor;
  5173. float cursorBlinkRate;
  5174. bool cursorMovable;
  5175. uint cursorPosition;
  5176. XMLFile defaultStyle;
  5177. /* readonly */
  5178. float derivedOpacity;
  5179. /* readonly */
  5180. uint dragButtonCombo;
  5181. /* readonly */
  5182. int dragButtonCount;
  5183. uint dragDropMode;
  5184. uint echoCharacter;
  5185. bool editable;
  5186. bool elementEventSender;
  5187. bool enabled;
  5188. /* readonly */
  5189. bool enabledSelf;
  5190. /* readonly */
  5191. bool fixedHeight;
  5192. /* readonly */
  5193. bool fixedSize;
  5194. /* readonly */
  5195. bool fixedWidth;
  5196. bool focus;
  5197. FocusMode focusMode;
  5198. int height;
  5199. HorizontalAlignment horizontalAlignment;
  5200. IntVector2 hoverOffset;
  5201. /* readonly */
  5202. bool hovering;
  5203. IntRect imageBorder;
  5204. IntRect imageRect;
  5205. int indent;
  5206. int indentSpacing;
  5207. /* readonly */
  5208. int indentWidth;
  5209. bool internal;
  5210. IntRect layoutBorder;
  5211. Vector2 layoutFlexScale;
  5212. LayoutMode layoutMode;
  5213. int layoutSpacing;
  5214. int maxHeight;
  5215. uint maxLength;
  5216. IntVector2 maxSize;
  5217. int maxWidth;
  5218. int minHeight;
  5219. IntVector2 minSize;
  5220. int minWidth;
  5221. String name;
  5222. /* readonly */
  5223. uint numAllChildren;
  5224. /* readonly */
  5225. uint numAttributes;
  5226. /* readonly */
  5227. uint numChildren;
  5228. ObjectAnimation objectAnimation;
  5229. float opacity;
  5230. UIElement parent;
  5231. IntVector2 position;
  5232. int priority;
  5233. /* readonly */
  5234. int refs;
  5235. /* readonly */
  5236. UIElement root;
  5237. /* readonly */
  5238. IntVector2 screenPosition;
  5239. bool selected;
  5240. IntVector2 size;
  5241. bool sortChildren;
  5242. String style;
  5243. bool temporary;
  5244. String text;
  5245. bool textCopyable;
  5246. /* readonly */
  5247. Text textElement;
  5248. bool textSelectable;
  5249. Texture texture;
  5250. bool tiled;
  5251. TraversalMode traversalMode;
  5252. /* readonly */
  5253. StringHash type;
  5254. /* readonly */
  5255. String typeName;
  5256. bool useDerivedOpacity;
  5257. /* readonly */
  5258. VariantMap vars;
  5259. VerticalAlignment verticalAlignment;
  5260. bool visible;
  5261. /* readonly */
  5262. int weakRefs;
  5263. int width;
  5264. };
  5265. class ListView
  5266. {
  5267. // Methods:
  5268. void AddChild(UIElement);
  5269. void AddItem(UIElement);
  5270. void AddSelection(uint);
  5271. void ApplyAttributes();
  5272. void BringToFront();
  5273. void ChangeSelection(int, bool);
  5274. void ClearSelection();
  5275. void CopySelectedItemsToClipboard();
  5276. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5277. void DisableLayoutUpdate();
  5278. IntVector2 ElementToScreen(const IntVector2&);
  5279. void EnableLayoutUpdate();
  5280. void Expand(uint, bool, bool = false);
  5281. uint FindChild(UIElement) const;
  5282. uint FindItem(UIElement);
  5283. Variant GetAttribute(const String&) const;
  5284. ValueAnimation GetAttributeAnimation(const String&) const;
  5285. float GetAttributeAnimationSpeed(const String&) const;
  5286. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5287. Variant GetAttributeDefault(const String&) const;
  5288. UIElement GetChild(const String&, bool = false) const;
  5289. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5290. Array<UIElement> GetChildren(bool = false) const;
  5291. UIElement GetElementEventSender() const;
  5292. bool GetInterceptNetworkUpdate(const String&) const;
  5293. Array<UIElement> GetItems() const;
  5294. uint GetNumChildren(bool) const;
  5295. void InsertChild(uint, UIElement);
  5296. void InsertItem(uint, UIElement, UIElement = null);
  5297. bool IsExpanded(uint) const;
  5298. bool IsInside(IntVector2, bool);
  5299. bool IsInsideCombined(IntVector2, bool);
  5300. bool IsSelected(uint) const;
  5301. bool Load(File, bool = false);
  5302. bool Load(VectorBuffer&, bool = false);
  5303. bool LoadChildXML(XMLFile, XMLFile = null);
  5304. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5305. bool LoadXML(File);
  5306. bool LoadXML(VectorBuffer&);
  5307. bool LoadXML(XMLFile, XMLFile);
  5308. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5309. bool LoadXML(const XMLElement&, bool = false);
  5310. void MarkNetworkUpdate() const;
  5311. void Remove();
  5312. void RemoveAllChildren();
  5313. void RemoveAllItems();
  5314. void RemoveChild(UIElement, uint = 0);
  5315. void RemoveChild(uint);
  5316. void RemoveInstanceDefault();
  5317. void RemoveItem(UIElement, uint = 0);
  5318. void RemoveItem(uint);
  5319. void RemoveSelection(uint);
  5320. void ResetDeepEnabled();
  5321. void ResetToDefault();
  5322. bool Save(File) const;
  5323. bool Save(VectorBuffer&) const;
  5324. bool SaveXML(File, const String& = "\t");
  5325. bool SaveXML(VectorBuffer&, const String& = "\t");
  5326. bool SaveXML(XMLElement&) const;
  5327. IntVector2 ScreenToElement(const IntVector2&);
  5328. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5329. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5330. bool SetAttribute(const String&, const Variant&);
  5331. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5332. void SetAttributeAnimationSpeed(const String&, float);
  5333. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5334. void SetDeepEnabled(bool);
  5335. void SetEnabledRecursive(bool);
  5336. void SetFixedHeight(int);
  5337. void SetFixedSize(int, int);
  5338. void SetFixedWidth(int);
  5339. void SetInterceptNetworkUpdate(const String&, bool);
  5340. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5341. void SetMaxSize(int, int);
  5342. void SetMinSize(int, int);
  5343. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5344. void SetPosition(int, int);
  5345. void SetScrollBarsVisible(bool, bool);
  5346. void SetSelections(Array<uint>);
  5347. void SetSize(int, int);
  5348. bool SetStyle(const String&, XMLFile = null);
  5349. bool SetStyle(const XMLElement&);
  5350. bool SetStyleAuto(XMLFile = null);
  5351. void SetViewPosition(int, int);
  5352. void ToggleExpand(uint, bool = false);
  5353. void ToggleSelection(uint);
  5354. void UpdateLayout();
  5355. const Variant& GetVar(const StringHash&);
  5356. // Properties:
  5357. bool animationEnabled;
  5358. /* readonly */
  5359. Array<Variant> attributeDefaults;
  5360. /* readonly */
  5361. Array<AttributeInfo> attributeInfos;
  5362. Array<Variant> attributes;
  5363. bool autoDisableChildren;
  5364. float autoDisableThreshold;
  5365. int baseIndent;
  5366. /* readonly */
  5367. StringHash baseType;
  5368. bool bringToBack;
  5369. bool bringToFront;
  5370. /* readonly */
  5371. String category;
  5372. /* readonly */
  5373. IntVector2 childOffset;
  5374. /* readonly */
  5375. Array<UIElement> children;
  5376. bool clearSelectionOnDefocus;
  5377. IntRect clipBorder;
  5378. bool clipChildren;
  5379. /* writeonly */
  5380. Color color;
  5381. /* readonly */
  5382. bool colorGradient;
  5383. Array<Color> colors;
  5384. /* readonly */
  5385. IntRect combinedScreenRect;
  5386. /* readonly */
  5387. UIElement contentElement;
  5388. XMLFile defaultStyle;
  5389. /* readonly */
  5390. float derivedOpacity;
  5391. /* readonly */
  5392. uint dragButtonCombo;
  5393. /* readonly */
  5394. int dragButtonCount;
  5395. uint dragDropMode;
  5396. bool editable;
  5397. bool elementEventSender;
  5398. bool enabled;
  5399. /* readonly */
  5400. bool enabledSelf;
  5401. /* readonly */
  5402. bool fixedHeight;
  5403. /* readonly */
  5404. bool fixedSize;
  5405. /* readonly */
  5406. bool fixedWidth;
  5407. bool focus;
  5408. FocusMode focusMode;
  5409. int height;
  5410. bool hierarchyMode;
  5411. HighlightMode highlightMode;
  5412. HorizontalAlignment horizontalAlignment;
  5413. /* readonly */
  5414. ScrollBar horizontalScrollBar;
  5415. /* readonly */
  5416. bool hovering;
  5417. int indent;
  5418. int indentSpacing;
  5419. /* readonly */
  5420. int indentWidth;
  5421. bool internal;
  5422. /* readonly */
  5423. Array<UIElement> items;
  5424. IntRect layoutBorder;
  5425. Vector2 layoutFlexScale;
  5426. LayoutMode layoutMode;
  5427. int layoutSpacing;
  5428. int maxHeight;
  5429. IntVector2 maxSize;
  5430. int maxWidth;
  5431. int minHeight;
  5432. IntVector2 minSize;
  5433. int minWidth;
  5434. bool multiselect;
  5435. String name;
  5436. /* readonly */
  5437. uint numAllChildren;
  5438. /* readonly */
  5439. uint numAttributes;
  5440. /* readonly */
  5441. uint numChildren;
  5442. /* readonly */
  5443. uint numItems;
  5444. ObjectAnimation objectAnimation;
  5445. float opacity;
  5446. float pageStep;
  5447. UIElement parent;
  5448. IntVector2 position;
  5449. int priority;
  5450. /* readonly */
  5451. int refs;
  5452. /* readonly */
  5453. UIElement root;
  5454. /* readonly */
  5455. IntVector2 screenPosition;
  5456. bool scrollBarsAutoVisible;
  5457. float scrollDeceleration;
  5458. /* readonly */
  5459. BorderImage scrollPanel;
  5460. float scrollSnapEpsilon;
  5461. float scrollStep;
  5462. bool selectOnClickEnd;
  5463. bool selected;
  5464. /* readonly */
  5465. UIElement selectedItem;
  5466. /* readonly */
  5467. Array<UIElement> selectedItems;
  5468. uint selection;
  5469. /* readonly */
  5470. Array<uint> selections;
  5471. IntVector2 size;
  5472. bool sortChildren;
  5473. String style;
  5474. bool temporary;
  5475. TraversalMode traversalMode;
  5476. /* readonly */
  5477. StringHash type;
  5478. /* readonly */
  5479. String typeName;
  5480. bool useDerivedOpacity;
  5481. /* readonly */
  5482. VariantMap vars;
  5483. VerticalAlignment verticalAlignment;
  5484. /* readonly */
  5485. ScrollBar verticalScrollBar;
  5486. IntVector2 viewPosition;
  5487. bool visible;
  5488. /* readonly */
  5489. int weakRefs;
  5490. int width;
  5491. };
  5492. class Log
  5493. {
  5494. // Methods:
  5495. void Close();
  5496. void Debug(const String&);
  5497. void Error(const String&);
  5498. void Info(const String&);
  5499. void Open(const String&);
  5500. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5501. void Warning(const String&);
  5502. void Write(const String&, bool = false);
  5503. // Properties:
  5504. /* readonly */
  5505. StringHash baseType;
  5506. /* readonly */
  5507. String category;
  5508. /* readonly */
  5509. String lastMessage;
  5510. int level;
  5511. bool quiet;
  5512. /* readonly */
  5513. int refs;
  5514. bool timeStamp;
  5515. /* readonly */
  5516. StringHash type;
  5517. /* readonly */
  5518. String typeName;
  5519. /* readonly */
  5520. int weakRefs;
  5521. };
  5522. class Material
  5523. {
  5524. // Methods:
  5525. Material Clone(const String& = String ( )) const;
  5526. Pass GetPass(uint, const String&);
  5527. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5528. float GetShaderParameterAnimationSpeed(const String&) const;
  5529. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5530. bool Load(File);
  5531. bool Load(VectorBuffer&);
  5532. bool Load(const XMLElement&);
  5533. void RemoveShaderParameter(const String&);
  5534. bool Save(File) const;
  5535. bool Save(VectorBuffer&) const;
  5536. bool Save(XMLElement&) const;
  5537. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5538. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5539. void SetShaderParameterAnimationSpeed(const String&, float);
  5540. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5541. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5542. void SetUVTransform(const Vector2&, float, const Vector2&);
  5543. void SetUVTransform(const Vector2&, float, float);
  5544. void SortTechniques();
  5545. // Properties:
  5546. /* readonly */
  5547. StringHash baseType;
  5548. /* readonly */
  5549. String category;
  5550. CullMode cullMode;
  5551. BiasParameters depthBias;
  5552. FillMode fillMode;
  5553. /* readonly */
  5554. uint memoryUse;
  5555. String name;
  5556. uint numTechniques;
  5557. /* readonly */
  5558. bool occlusion;
  5559. /* readonly */
  5560. int refs;
  5561. Scene scene;
  5562. /* readonly */
  5563. Array<String> shaderParameterNames;
  5564. Array<Variant> shaderParameters;
  5565. CullMode shadowCullMode;
  5566. /* readonly */
  5567. Array<TechniqueEntry> techniqueEntries;
  5568. /* readonly */
  5569. Array<Technique> techniques;
  5570. Array<Texture> textures;
  5571. /* readonly */
  5572. StringHash type;
  5573. /* readonly */
  5574. String typeName;
  5575. /* readonly */
  5576. uint useTimer;
  5577. /* readonly */
  5578. int weakRefs;
  5579. };
  5580. class Matrix3
  5581. {
  5582. // Methods:
  5583. bool Equals(const Matrix3&) const;
  5584. Matrix3 Inverse() const;
  5585. Vector3 Scale() const;
  5586. Matrix3 Scaled(const Vector3&) const;
  5587. void SetScale(const Vector3&);
  5588. void SetScale(float);
  5589. String ToString() const;
  5590. Matrix3 Transpose() const;
  5591. // Properties:
  5592. float m00;
  5593. float m01;
  5594. float m02;
  5595. float m10;
  5596. float m11;
  5597. float m12;
  5598. float m20;
  5599. float m21;
  5600. float m22;
  5601. };
  5602. class Matrix3x4
  5603. {
  5604. // Methods:
  5605. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5606. bool Equals(const Matrix3x4&) const;
  5607. Matrix3x4 Inverse() const;
  5608. Quaternion Rotation() const;
  5609. Matrix3 RotationMatrix() const;
  5610. Vector3 Scale() const;
  5611. void SetRotation(const Matrix3&);
  5612. void SetScale(const Vector3&);
  5613. void SetScale(float);
  5614. void SetTranslation(const Vector3&);
  5615. Matrix3 ToMatrix3() const;
  5616. Matrix4 ToMatrix4() const;
  5617. String ToString() const;
  5618. Vector3 Translation() const;
  5619. // Properties:
  5620. float m00;
  5621. float m01;
  5622. float m02;
  5623. float m03;
  5624. float m10;
  5625. float m11;
  5626. float m12;
  5627. float m13;
  5628. float m20;
  5629. float m21;
  5630. float m22;
  5631. float m23;
  5632. };
  5633. class Matrix4
  5634. {
  5635. // Methods:
  5636. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5637. bool Equals(const Matrix4&) const;
  5638. Matrix4 Inverse() const;
  5639. Quaternion Rotation() const;
  5640. Matrix3 RotationMatrix() const;
  5641. Vector3 Scale() const;
  5642. void SetRotation(const Matrix3&);
  5643. void SetScale(const Vector3&);
  5644. void SetScale(float);
  5645. void SetTranslation(const Vector3&);
  5646. Matrix3 ToMatrix3() const;
  5647. String ToString() const;
  5648. Vector3 Translation() const;
  5649. Matrix4 Transpose() const;
  5650. // Properties:
  5651. float m00;
  5652. float m01;
  5653. float m02;
  5654. float m03;
  5655. float m10;
  5656. float m11;
  5657. float m12;
  5658. float m13;
  5659. float m20;
  5660. float m21;
  5661. float m22;
  5662. float m23;
  5663. float m30;
  5664. float m31;
  5665. float m32;
  5666. float m33;
  5667. };
  5668. class Menu
  5669. {
  5670. // Methods:
  5671. void AddChild(UIElement);
  5672. void ApplyAttributes();
  5673. void BringToFront();
  5674. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5675. void DisableLayoutUpdate();
  5676. IntVector2 ElementToScreen(const IntVector2&);
  5677. void EnableLayoutUpdate();
  5678. uint FindChild(UIElement) const;
  5679. Variant GetAttribute(const String&) const;
  5680. ValueAnimation GetAttributeAnimation(const String&) const;
  5681. float GetAttributeAnimationSpeed(const String&) const;
  5682. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5683. Variant GetAttributeDefault(const String&) const;
  5684. UIElement GetChild(const String&, bool = false) const;
  5685. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5686. Array<UIElement> GetChildren(bool = false) const;
  5687. UIElement GetElementEventSender() const;
  5688. bool GetInterceptNetworkUpdate(const String&) const;
  5689. uint GetNumChildren(bool) const;
  5690. void InsertChild(uint, UIElement);
  5691. bool IsInside(IntVector2, bool);
  5692. bool IsInsideCombined(IntVector2, bool);
  5693. bool Load(File, bool = false);
  5694. bool Load(VectorBuffer&, bool = false);
  5695. bool LoadChildXML(XMLFile, XMLFile = null);
  5696. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5697. bool LoadXML(File);
  5698. bool LoadXML(VectorBuffer&);
  5699. bool LoadXML(XMLFile, XMLFile);
  5700. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5701. bool LoadXML(const XMLElement&, bool = false);
  5702. void MarkNetworkUpdate() const;
  5703. void Remove();
  5704. void RemoveAllChildren();
  5705. void RemoveChild(UIElement, uint = 0);
  5706. void RemoveChild(uint);
  5707. void RemoveInstanceDefault();
  5708. void ResetDeepEnabled();
  5709. void ResetToDefault();
  5710. bool Save(File) const;
  5711. bool Save(VectorBuffer&) const;
  5712. bool SaveXML(File, const String& = "\t");
  5713. bool SaveXML(VectorBuffer&, const String& = "\t");
  5714. bool SaveXML(XMLElement&) const;
  5715. IntVector2 ScreenToElement(const IntVector2&);
  5716. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5717. void SetAccelerator(int, int);
  5718. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5719. bool SetAttribute(const String&, const Variant&);
  5720. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5721. void SetAttributeAnimationSpeed(const String&, float);
  5722. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5723. void SetDeepEnabled(bool);
  5724. void SetEnabledRecursive(bool);
  5725. void SetFixedHeight(int);
  5726. void SetFixedSize(int, int);
  5727. void SetFixedWidth(int);
  5728. void SetFullImageRect();
  5729. void SetHoverOffset(int, int);
  5730. void SetInterceptNetworkUpdate(const String&, bool);
  5731. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5732. void SetMaxSize(int, int);
  5733. void SetMinSize(int, int);
  5734. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5735. void SetPopupOffset(int, int);
  5736. void SetPosition(int, int);
  5737. void SetPressedChildOffset(int, int);
  5738. void SetPressedOffset(int, int);
  5739. void SetRepeat(float, float);
  5740. void SetSize(int, int);
  5741. bool SetStyle(const String&, XMLFile = null);
  5742. bool SetStyle(const XMLElement&);
  5743. bool SetStyleAuto(XMLFile = null);
  5744. void UpdateLayout();
  5745. const Variant& GetVar(const StringHash&);
  5746. // Properties:
  5747. /* readonly */
  5748. int acceleratorKey;
  5749. /* readonly */
  5750. int acceleratorQualifiers;
  5751. bool animationEnabled;
  5752. /* readonly */
  5753. Array<Variant> attributeDefaults;
  5754. /* readonly */
  5755. Array<AttributeInfo> attributeInfos;
  5756. Array<Variant> attributes;
  5757. /* readonly */
  5758. StringHash baseType;
  5759. BlendMode blendMode;
  5760. IntRect border;
  5761. bool bringToBack;
  5762. bool bringToFront;
  5763. /* readonly */
  5764. String category;
  5765. /* readonly */
  5766. IntVector2 childOffset;
  5767. /* readonly */
  5768. Array<UIElement> children;
  5769. IntRect clipBorder;
  5770. bool clipChildren;
  5771. /* writeonly */
  5772. Color color;
  5773. /* readonly */
  5774. bool colorGradient;
  5775. Array<Color> colors;
  5776. /* readonly */
  5777. IntRect combinedScreenRect;
  5778. XMLFile defaultStyle;
  5779. /* readonly */
  5780. float derivedOpacity;
  5781. /* readonly */
  5782. uint dragButtonCombo;
  5783. /* readonly */
  5784. int dragButtonCount;
  5785. uint dragDropMode;
  5786. bool editable;
  5787. bool elementEventSender;
  5788. bool enabled;
  5789. /* readonly */
  5790. bool enabledSelf;
  5791. /* readonly */
  5792. bool fixedHeight;
  5793. /* readonly */
  5794. bool fixedSize;
  5795. /* readonly */
  5796. bool fixedWidth;
  5797. bool focus;
  5798. FocusMode focusMode;
  5799. int height;
  5800. HorizontalAlignment horizontalAlignment;
  5801. IntVector2 hoverOffset;
  5802. /* readonly */
  5803. bool hovering;
  5804. IntRect imageBorder;
  5805. IntRect imageRect;
  5806. int indent;
  5807. int indentSpacing;
  5808. /* readonly */
  5809. int indentWidth;
  5810. bool internal;
  5811. IntRect layoutBorder;
  5812. Vector2 layoutFlexScale;
  5813. LayoutMode layoutMode;
  5814. int layoutSpacing;
  5815. int maxHeight;
  5816. IntVector2 maxSize;
  5817. int maxWidth;
  5818. int minHeight;
  5819. IntVector2 minSize;
  5820. int minWidth;
  5821. String name;
  5822. /* readonly */
  5823. uint numAllChildren;
  5824. /* readonly */
  5825. uint numAttributes;
  5826. /* readonly */
  5827. uint numChildren;
  5828. ObjectAnimation objectAnimation;
  5829. float opacity;
  5830. UIElement parent;
  5831. UIElement popup;
  5832. IntVector2 popupOffset;
  5833. IntVector2 position;
  5834. /* readonly */
  5835. bool pressed;
  5836. IntVector2 pressedChildOffset;
  5837. IntVector2 pressedOffset;
  5838. int priority;
  5839. /* readonly */
  5840. int refs;
  5841. float repeatDelay;
  5842. float repeatRate;
  5843. /* readonly */
  5844. UIElement root;
  5845. /* readonly */
  5846. IntVector2 screenPosition;
  5847. bool selected;
  5848. bool showPopup;
  5849. IntVector2 size;
  5850. bool sortChildren;
  5851. String style;
  5852. bool temporary;
  5853. Texture texture;
  5854. bool tiled;
  5855. TraversalMode traversalMode;
  5856. /* readonly */
  5857. StringHash type;
  5858. /* readonly */
  5859. String typeName;
  5860. bool useDerivedOpacity;
  5861. /* readonly */
  5862. VariantMap vars;
  5863. VerticalAlignment verticalAlignment;
  5864. bool visible;
  5865. /* readonly */
  5866. int weakRefs;
  5867. int width;
  5868. };
  5869. class MessageBox
  5870. {
  5871. // Methods:
  5872. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5873. // Properties:
  5874. /* readonly */
  5875. StringHash baseType;
  5876. /* readonly */
  5877. String category;
  5878. String message;
  5879. /* readonly */
  5880. int refs;
  5881. String title;
  5882. /* readonly */
  5883. StringHash type;
  5884. /* readonly */
  5885. String typeName;
  5886. /* readonly */
  5887. int weakRefs;
  5888. /* readonly */
  5889. UIElement window;
  5890. };
  5891. class Model
  5892. {
  5893. // Methods:
  5894. Model Clone(const String& = String ( )) const;
  5895. Geometry GetGeometry(uint, uint) const;
  5896. bool Load(File);
  5897. bool Load(VectorBuffer&);
  5898. bool Save(File) const;
  5899. bool Save(VectorBuffer&) const;
  5900. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5901. bool SetGeometry(uint, uint, Geometry);
  5902. // Properties:
  5903. /* readonly */
  5904. StringHash baseType;
  5905. BoundingBox boundingBox;
  5906. /* readonly */
  5907. String category;
  5908. Array<Vector3> geometryCenters;
  5909. /* readonly */
  5910. uint memoryUse;
  5911. String name;
  5912. uint numGeometries;
  5913. Array<uint> numGeometryLodLevels;
  5914. /* readonly */
  5915. uint numMorphs;
  5916. /* readonly */
  5917. int refs;
  5918. /* readonly */
  5919. Skeleton skeleton;
  5920. /* readonly */
  5921. StringHash type;
  5922. /* readonly */
  5923. String typeName;
  5924. /* readonly */
  5925. uint useTimer;
  5926. /* readonly */
  5927. int weakRefs;
  5928. };
  5929. class NavArea
  5930. {
  5931. // Methods:
  5932. void ApplyAttributes();
  5933. void DrawDebugGeometry(DebugRenderer, bool);
  5934. Variant GetAttribute(const String&) const;
  5935. ValueAnimation GetAttributeAnimation(const String&) const;
  5936. float GetAttributeAnimationSpeed(const String&) const;
  5937. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5938. Variant GetAttributeDefault(const String&) const;
  5939. bool GetInterceptNetworkUpdate(const String&) const;
  5940. bool Load(File, bool = false);
  5941. bool Load(VectorBuffer&, bool = false);
  5942. bool LoadXML(const XMLElement&, bool = false);
  5943. void MarkNetworkUpdate() const;
  5944. void Remove();
  5945. void RemoveInstanceDefault();
  5946. void ResetToDefault();
  5947. bool Save(File) const;
  5948. bool Save(VectorBuffer&) const;
  5949. bool SaveXML(XMLElement&) const;
  5950. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5951. bool SetAttribute(const String&, const Variant&);
  5952. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5953. void SetAttributeAnimationSpeed(const String&, float);
  5954. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5955. void SetInterceptNetworkUpdate(const String&, bool);
  5956. // Properties:
  5957. bool animationEnabled;
  5958. uint areaID;
  5959. /* readonly */
  5960. Array<Variant> attributeDefaults;
  5961. /* readonly */
  5962. Array<AttributeInfo> attributeInfos;
  5963. Array<Variant> attributes;
  5964. /* readonly */
  5965. StringHash baseType;
  5966. BoundingBox boundingBox;
  5967. /* readonly */
  5968. String category;
  5969. bool enabled;
  5970. /* readonly */
  5971. bool enabledEffective;
  5972. /* readonly */
  5973. uint id;
  5974. /* readonly */
  5975. Node node;
  5976. /* readonly */
  5977. uint numAttributes;
  5978. ObjectAnimation objectAnimation;
  5979. /* readonly */
  5980. int refs;
  5981. bool temporary;
  5982. /* readonly */
  5983. StringHash type;
  5984. /* readonly */
  5985. String typeName;
  5986. /* readonly */
  5987. int weakRefs;
  5988. /* readonly */
  5989. BoundingBox worldBoundingBox;
  5990. };
  5991. class Navigable
  5992. {
  5993. // Methods:
  5994. void ApplyAttributes();
  5995. void DrawDebugGeometry(DebugRenderer, bool);
  5996. Variant GetAttribute(const String&) const;
  5997. ValueAnimation GetAttributeAnimation(const String&) const;
  5998. float GetAttributeAnimationSpeed(const String&) const;
  5999. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6000. Variant GetAttributeDefault(const String&) const;
  6001. bool GetInterceptNetworkUpdate(const String&) const;
  6002. bool Load(File, bool = false);
  6003. bool Load(VectorBuffer&, bool = false);
  6004. bool LoadXML(const XMLElement&, bool = false);
  6005. void MarkNetworkUpdate() const;
  6006. void Remove();
  6007. void RemoveInstanceDefault();
  6008. void ResetToDefault();
  6009. bool Save(File) const;
  6010. bool Save(VectorBuffer&) const;
  6011. bool SaveXML(XMLElement&) const;
  6012. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6013. bool SetAttribute(const String&, const Variant&);
  6014. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6015. void SetAttributeAnimationSpeed(const String&, float);
  6016. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6017. void SetInterceptNetworkUpdate(const String&, bool);
  6018. // Properties:
  6019. bool animationEnabled;
  6020. /* readonly */
  6021. Array<Variant> attributeDefaults;
  6022. /* readonly */
  6023. Array<AttributeInfo> attributeInfos;
  6024. Array<Variant> attributes;
  6025. /* readonly */
  6026. StringHash baseType;
  6027. /* readonly */
  6028. String category;
  6029. bool enabled;
  6030. /* readonly */
  6031. bool enabledEffective;
  6032. /* readonly */
  6033. uint id;
  6034. /* readonly */
  6035. Node node;
  6036. /* readonly */
  6037. uint numAttributes;
  6038. ObjectAnimation objectAnimation;
  6039. bool recursive;
  6040. /* readonly */
  6041. int refs;
  6042. bool temporary;
  6043. /* readonly */
  6044. StringHash type;
  6045. /* readonly */
  6046. String typeName;
  6047. /* readonly */
  6048. int weakRefs;
  6049. };
  6050. class NavigationMesh
  6051. {
  6052. // Methods:
  6053. void ApplyAttributes();
  6054. bool Build();
  6055. bool Build(const BoundingBox&);
  6056. void DrawDebugGeometry(DebugRenderer, bool);
  6057. void DrawDebugGeometry(bool);
  6058. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6059. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6060. float GetAreaCost(uint) const;
  6061. Variant GetAttribute(const String&) const;
  6062. ValueAnimation GetAttributeAnimation(const String&) const;
  6063. float GetAttributeAnimationSpeed(const String&) const;
  6064. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6065. Variant GetAttributeDefault(const String&) const;
  6066. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6067. bool GetInterceptNetworkUpdate(const String&) const;
  6068. Vector3 GetRandomPoint();
  6069. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6070. bool Load(File, bool = false);
  6071. bool Load(VectorBuffer&, bool = false);
  6072. bool LoadXML(const XMLElement&, bool = false);
  6073. void MarkNetworkUpdate() const;
  6074. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), uint = 3);
  6075. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6076. void Remove();
  6077. void RemoveInstanceDefault();
  6078. void ResetToDefault();
  6079. bool Save(File) const;
  6080. bool Save(VectorBuffer&) const;
  6081. bool SaveXML(XMLElement&) const;
  6082. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6083. void SetAreaCost(uint, float);
  6084. bool SetAttribute(const String&, const Variant&);
  6085. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6086. void SetAttributeAnimationSpeed(const String&, float);
  6087. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6088. void SetInterceptNetworkUpdate(const String&, bool);
  6089. // Properties:
  6090. float agentHeight;
  6091. float agentMaxClimb;
  6092. float agentMaxSlope;
  6093. float agentRadius;
  6094. bool animationEnabled;
  6095. /* readonly */
  6096. Array<Variant> attributeDefaults;
  6097. /* readonly */
  6098. Array<AttributeInfo> attributeInfos;
  6099. Array<Variant> attributes;
  6100. /* readonly */
  6101. StringHash baseType;
  6102. /* readonly */
  6103. BoundingBox boundingBox;
  6104. /* readonly */
  6105. String category;
  6106. float cellHeight;
  6107. float cellSize;
  6108. float detailSampleDistance;
  6109. float detailSampleMaxError;
  6110. bool drawNavAreas;
  6111. bool drawOffMeshConnections;
  6112. float edgeMaxError;
  6113. float edgeMaxLength;
  6114. bool enabled;
  6115. /* readonly */
  6116. bool enabledEffective;
  6117. /* readonly */
  6118. uint id;
  6119. /* readonly */
  6120. bool initialized;
  6121. /* readonly */
  6122. Node node;
  6123. /* readonly */
  6124. uint numAttributes;
  6125. /* readonly */
  6126. IntVector2 numTiles;
  6127. ObjectAnimation objectAnimation;
  6128. Vector3 padding;
  6129. NavmeshPartitionType partitionType;
  6130. /* readonly */
  6131. int refs;
  6132. float regionMergeSize;
  6133. float regionMinSize;
  6134. bool temporary;
  6135. int tileSize;
  6136. /* readonly */
  6137. StringHash type;
  6138. /* readonly */
  6139. String typeName;
  6140. /* readonly */
  6141. int weakRefs;
  6142. /* readonly */
  6143. BoundingBox worldBoundingBox;
  6144. };
  6145. class Network
  6146. {
  6147. // Methods:
  6148. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6149. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6150. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6151. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6152. bool CheckRemoteEvent(const String&) const;
  6153. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6154. void Disconnect(int = 0);
  6155. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6156. void RegisterRemoteEvent(const String&) const;
  6157. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6158. void SendPackageToClients(Scene, PackageFile);
  6159. bool StartServer(uint16);
  6160. void StopServer();
  6161. void UnregisterAllRemoteEvents();
  6162. void UnregisterRemoteEvent(const String&) const;
  6163. // Properties:
  6164. /* readonly */
  6165. StringHash baseType;
  6166. /* readonly */
  6167. String category;
  6168. /* readonly */
  6169. Array<Connection> clientConnections;
  6170. String packageCacheDir;
  6171. /* readonly */
  6172. int refs;
  6173. /* readonly */
  6174. Connection serverConnection;
  6175. /* readonly */
  6176. bool serverRunning;
  6177. int simulatedLatency;
  6178. float simulatedPacketLoss;
  6179. /* readonly */
  6180. StringHash type;
  6181. /* readonly */
  6182. String typeName;
  6183. int updateFps;
  6184. /* readonly */
  6185. int weakRefs;
  6186. };
  6187. class NetworkPriority
  6188. {
  6189. // Methods:
  6190. void ApplyAttributes();
  6191. void DrawDebugGeometry(DebugRenderer, bool);
  6192. Variant GetAttribute(const String&) const;
  6193. ValueAnimation GetAttributeAnimation(const String&) const;
  6194. float GetAttributeAnimationSpeed(const String&) const;
  6195. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6196. Variant GetAttributeDefault(const String&) const;
  6197. bool GetInterceptNetworkUpdate(const String&) const;
  6198. bool Load(File, bool = false);
  6199. bool Load(VectorBuffer&, bool = false);
  6200. bool LoadXML(const XMLElement&, bool = false);
  6201. void MarkNetworkUpdate() const;
  6202. void Remove();
  6203. void RemoveInstanceDefault();
  6204. void ResetToDefault();
  6205. bool Save(File) const;
  6206. bool Save(VectorBuffer&) const;
  6207. bool SaveXML(XMLElement&) const;
  6208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6209. bool SetAttribute(const String&, const Variant&);
  6210. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6211. void SetAttributeAnimationSpeed(const String&, float);
  6212. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6213. void SetInterceptNetworkUpdate(const String&, bool);
  6214. // Properties:
  6215. bool alwaysUpdateOwner;
  6216. bool animationEnabled;
  6217. /* readonly */
  6218. Array<Variant> attributeDefaults;
  6219. /* readonly */
  6220. Array<AttributeInfo> attributeInfos;
  6221. Array<Variant> attributes;
  6222. float basePriority;
  6223. /* readonly */
  6224. StringHash baseType;
  6225. /* readonly */
  6226. String category;
  6227. float distanceFactor;
  6228. bool enabled;
  6229. /* readonly */
  6230. bool enabledEffective;
  6231. /* readonly */
  6232. uint id;
  6233. float minPriority;
  6234. /* readonly */
  6235. Node node;
  6236. /* readonly */
  6237. uint numAttributes;
  6238. ObjectAnimation objectAnimation;
  6239. /* readonly */
  6240. int refs;
  6241. bool temporary;
  6242. /* readonly */
  6243. StringHash type;
  6244. /* readonly */
  6245. String typeName;
  6246. /* readonly */
  6247. int weakRefs;
  6248. };
  6249. class Node
  6250. {
  6251. // Methods:
  6252. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6253. void ApplyAttributes();
  6254. Node Clone(CreateMode = REPLICATED);
  6255. Component CloneComponent(Component, CreateMode, uint = 0);
  6256. Component CloneComponent(Component, uint = 0);
  6257. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6258. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6259. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6260. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6261. Variant GetAttribute(const String&) const;
  6262. ValueAnimation GetAttributeAnimation(const String&) const;
  6263. float GetAttributeAnimationSpeed(const String&) const;
  6264. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6265. Variant GetAttributeDefault(const String&) const;
  6266. Node GetChild(const String&, bool = false) const;
  6267. Array<Node> GetChildren(bool = false) const;
  6268. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6269. Array<Node> GetChildrenWithScript(bool = false) const;
  6270. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6271. Component GetComponent(const String&) const;
  6272. Array<Component> GetComponents() const;
  6273. Array<Component> GetComponents(const String&, bool = false) const;
  6274. bool GetInterceptNetworkUpdate(const String&) const;
  6275. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6276. ScriptObject GetScriptObject() const;
  6277. ScriptObject GetScriptObject(const String&) const;
  6278. bool HasComponent(const String&) const;
  6279. bool Load(File, bool = false);
  6280. bool Load(VectorBuffer&, bool = false);
  6281. bool LoadXML(const XMLElement&, bool = false);
  6282. Vector3 LocalToWorld(const Vector3&) const;
  6283. Vector3 LocalToWorld(const Vector4&) const;
  6284. Vector2 LocalToWorld2D(const Vector2&) const;
  6285. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6286. void MarkNetworkUpdate() const;
  6287. void Pitch(float, TransformSpace = TS_LOCAL);
  6288. void Remove();
  6289. void RemoveAllChildren();
  6290. void RemoveAllComponents();
  6291. void RemoveChild(Node);
  6292. void RemoveChildren(bool, bool, bool);
  6293. void RemoveComponent(Component);
  6294. void RemoveComponent(const String&);
  6295. void RemoveComponents(bool, bool);
  6296. void RemoveInstanceDefault();
  6297. void ResetDeepEnabled();
  6298. void ResetToDefault();
  6299. void Roll(float, TransformSpace = TS_LOCAL);
  6300. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6301. void Rotate2D(float, TransformSpace = TS_LOCAL);
  6302. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6303. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  6304. bool Save(File) const;
  6305. bool Save(VectorBuffer&) const;
  6306. bool SaveXML(File, const String& = "\t");
  6307. bool SaveXML(VectorBuffer&, const String& = "\t");
  6308. bool SaveXML(XMLElement&) const;
  6309. void Scale(const Vector3&);
  6310. void Scale(float);
  6311. void Scale2D(const Vector2&);
  6312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6313. bool SetAttribute(const String&, const Variant&);
  6314. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6315. void SetAttributeAnimationSpeed(const String&, float);
  6316. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6317. void SetDeepEnabled(bool);
  6318. void SetEnabledRecursive(bool);
  6319. void SetInterceptNetworkUpdate(const String&, bool);
  6320. void SetPosition2D(float, float);
  6321. void SetScale(float);
  6322. void SetScale2D(float, float);
  6323. void SetTransform(const Vector3&, const Quaternion&);
  6324. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6325. void SetTransform(const Vector3&, const Quaternion&, float);
  6326. void SetTransform2D(const Vector2&, float);
  6327. void SetTransform2D(const Vector2&, float, const Vector2&);
  6328. void SetTransform2D(const Vector2&, float, float);
  6329. void SetWorldTransform(const Vector3&, const Quaternion&);
  6330. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6331. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6332. void SetWorldTransform2D(const Vector2&, float);
  6333. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  6334. void SetWorldTransform2D(const Vector2&, float, float);
  6335. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6336. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  6337. Vector3 WorldToLocal(const Vector3&) const;
  6338. Vector3 WorldToLocal(const Vector4&) const;
  6339. Vector2 WorldToLocal2D(const Vector2&) const;
  6340. void Yaw(float, TransformSpace = TS_LOCAL);
  6341. // Properties:
  6342. bool animationEnabled;
  6343. /* readonly */
  6344. Array<Variant> attributeDefaults;
  6345. /* readonly */
  6346. Array<AttributeInfo> attributeInfos;
  6347. Array<Variant> attributes;
  6348. /* readonly */
  6349. StringHash baseType;
  6350. /* readonly */
  6351. String category;
  6352. /* readonly */
  6353. Array<Node> children;
  6354. /* readonly */
  6355. Array<Component> components;
  6356. Vector3 direction;
  6357. bool enabled;
  6358. /* readonly */
  6359. bool enabledSelf;
  6360. /* readonly */
  6361. uint id;
  6362. String name;
  6363. /* readonly */
  6364. uint numAllChildren;
  6365. /* readonly */
  6366. uint numAttributes;
  6367. /* readonly */
  6368. uint numChildren;
  6369. /* readonly */
  6370. uint numComponents;
  6371. ObjectAnimation objectAnimation;
  6372. Connection owner;
  6373. Node parent;
  6374. Vector3 position;
  6375. Vector2 position2D;
  6376. /* readonly */
  6377. int refs;
  6378. /* readonly */
  6379. Vector3 right;
  6380. Quaternion rotation;
  6381. float rotation2D;
  6382. Vector3 scale;
  6383. Vector2 scale2D;
  6384. /* readonly */
  6385. Scene scene;
  6386. /* readonly */
  6387. ScriptObject scriptObject;
  6388. bool temporary;
  6389. /* readonly */
  6390. Matrix3x4 transform;
  6391. /* readonly */
  6392. StringHash type;
  6393. /* readonly */
  6394. String typeName;
  6395. /* readonly */
  6396. Vector3 up;
  6397. /* readonly */
  6398. VariantMap vars;
  6399. /* readonly */
  6400. int weakRefs;
  6401. Vector3 worldDirection;
  6402. Vector3 worldPosition;
  6403. Vector2 worldPosition2D;
  6404. /* readonly */
  6405. Vector3 worldRight;
  6406. Quaternion worldRotation;
  6407. float worldRotation2D;
  6408. Vector3 worldScale;
  6409. Vector2 worldScale2D;
  6410. /* readonly */
  6411. Matrix3x4 worldTransform;
  6412. /* readonly */
  6413. Vector3 worldUp;
  6414. };
  6415. class Object
  6416. {
  6417. // Methods:
  6418. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6419. // Properties:
  6420. /* readonly */
  6421. StringHash baseType;
  6422. /* readonly */
  6423. String category;
  6424. /* readonly */
  6425. int refs;
  6426. /* readonly */
  6427. StringHash type;
  6428. /* readonly */
  6429. String typeName;
  6430. /* readonly */
  6431. int weakRefs;
  6432. };
  6433. class ObjectAnimation
  6434. {
  6435. // Methods:
  6436. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6437. ValueAnimation GetAttributeAnimation(const String&) const;
  6438. float GetAttributeAnimationSpeed(const String&) const;
  6439. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6440. bool Load(File);
  6441. bool Load(VectorBuffer&);
  6442. void RemoveAttributeAnimation(ValueAnimation);
  6443. void RemoveAttributeAnimation(const String&);
  6444. bool Save(File) const;
  6445. bool Save(VectorBuffer&) const;
  6446. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6447. // Properties:
  6448. /* readonly */
  6449. Array<Variant> attributeAnimations;
  6450. /* readonly */
  6451. StringHash baseType;
  6452. /* readonly */
  6453. String category;
  6454. /* readonly */
  6455. uint memoryUse;
  6456. String name;
  6457. /* readonly */
  6458. int refs;
  6459. /* readonly */
  6460. Array<Variant> speeds;
  6461. /* readonly */
  6462. StringHash type;
  6463. /* readonly */
  6464. String typeName;
  6465. /* readonly */
  6466. uint useTimer;
  6467. /* readonly */
  6468. int weakRefs;
  6469. /* readonly */
  6470. Array<Variant> wrapModes;
  6471. };
  6472. class Obstacle
  6473. {
  6474. // Methods:
  6475. void ApplyAttributes();
  6476. void DrawDebugGeometry(DebugRenderer, bool);
  6477. void DrawDebugGeometry(bool);
  6478. Variant GetAttribute(const String&) const;
  6479. ValueAnimation GetAttributeAnimation(const String&) const;
  6480. float GetAttributeAnimationSpeed(const String&) const;
  6481. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6482. Variant GetAttributeDefault(const String&) const;
  6483. bool GetInterceptNetworkUpdate(const String&) const;
  6484. bool Load(File, bool = false);
  6485. bool Load(VectorBuffer&, bool = false);
  6486. bool LoadXML(const XMLElement&, bool = false);
  6487. void MarkNetworkUpdate() const;
  6488. void Remove();
  6489. void RemoveInstanceDefault();
  6490. void ResetToDefault();
  6491. bool Save(File) const;
  6492. bool Save(VectorBuffer&) const;
  6493. bool SaveXML(XMLElement&) const;
  6494. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6495. bool SetAttribute(const String&, const Variant&);
  6496. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6497. void SetAttributeAnimationSpeed(const String&, float);
  6498. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6499. void SetInterceptNetworkUpdate(const String&, bool);
  6500. // Properties:
  6501. bool animationEnabled;
  6502. /* readonly */
  6503. Array<Variant> attributeDefaults;
  6504. /* readonly */
  6505. Array<AttributeInfo> attributeInfos;
  6506. Array<Variant> attributes;
  6507. /* readonly */
  6508. StringHash baseType;
  6509. /* readonly */
  6510. String category;
  6511. bool enabled;
  6512. /* readonly */
  6513. bool enabledEffective;
  6514. float height;
  6515. /* readonly */
  6516. uint id;
  6517. /* readonly */
  6518. Node node;
  6519. /* readonly */
  6520. uint numAttributes;
  6521. ObjectAnimation objectAnimation;
  6522. /* readonly */
  6523. uint obstacleId;
  6524. float radius;
  6525. /* readonly */
  6526. int refs;
  6527. bool temporary;
  6528. /* readonly */
  6529. StringHash type;
  6530. /* readonly */
  6531. String typeName;
  6532. /* readonly */
  6533. int weakRefs;
  6534. };
  6535. class Octree
  6536. {
  6537. // Methods:
  6538. void AddManualDrawable(Drawable);
  6539. void ApplyAttributes();
  6540. void DrawDebugGeometry(DebugRenderer, bool);
  6541. void DrawDebugGeometry(bool) const;
  6542. Variant GetAttribute(const String&) const;
  6543. ValueAnimation GetAttributeAnimation(const String&) const;
  6544. float GetAttributeAnimationSpeed(const String&) const;
  6545. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6546. Variant GetAttributeDefault(const String&) const;
  6547. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6548. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6549. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6550. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  6551. bool GetInterceptNetworkUpdate(const String&) const;
  6552. bool Load(File, bool = false);
  6553. bool Load(VectorBuffer&, bool = false);
  6554. bool LoadXML(const XMLElement&, bool = false);
  6555. void MarkNetworkUpdate() const;
  6556. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6557. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  6558. void Remove();
  6559. void RemoveInstanceDefault();
  6560. void RemoveManualDrawable(Drawable);
  6561. void ResetToDefault();
  6562. bool Save(File) const;
  6563. bool Save(VectorBuffer&) const;
  6564. bool SaveXML(XMLElement&) const;
  6565. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6566. bool SetAttribute(const String&, const Variant&);
  6567. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6568. void SetAttributeAnimationSpeed(const String&, float);
  6569. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6570. void SetInterceptNetworkUpdate(const String&, bool);
  6571. void SetSize(const BoundingBox&, uint);
  6572. // Properties:
  6573. bool animationEnabled;
  6574. /* readonly */
  6575. Array<Variant> attributeDefaults;
  6576. /* readonly */
  6577. Array<AttributeInfo> attributeInfos;
  6578. Array<Variant> attributes;
  6579. /* readonly */
  6580. StringHash baseType;
  6581. /* readonly */
  6582. String category;
  6583. bool enabled;
  6584. /* readonly */
  6585. bool enabledEffective;
  6586. /* readonly */
  6587. uint id;
  6588. /* readonly */
  6589. Node node;
  6590. /* readonly */
  6591. uint numAttributes;
  6592. /* readonly */
  6593. uint numLevels;
  6594. ObjectAnimation objectAnimation;
  6595. /* readonly */
  6596. int refs;
  6597. bool temporary;
  6598. /* readonly */
  6599. StringHash type;
  6600. /* readonly */
  6601. String typeName;
  6602. /* readonly */
  6603. int weakRefs;
  6604. /* readonly */
  6605. BoundingBox worldBoundingBox;
  6606. };
  6607. class OffMeshConnection
  6608. {
  6609. // Methods:
  6610. void ApplyAttributes();
  6611. void DrawDebugGeometry(DebugRenderer, bool);
  6612. Variant GetAttribute(const String&) const;
  6613. ValueAnimation GetAttributeAnimation(const String&) const;
  6614. float GetAttributeAnimationSpeed(const String&) const;
  6615. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6616. Variant GetAttributeDefault(const String&) const;
  6617. bool GetInterceptNetworkUpdate(const String&) const;
  6618. bool Load(File, bool = false);
  6619. bool Load(VectorBuffer&, bool = false);
  6620. bool LoadXML(const XMLElement&, bool = false);
  6621. void MarkNetworkUpdate() const;
  6622. void Remove();
  6623. void RemoveInstanceDefault();
  6624. void ResetToDefault();
  6625. bool Save(File) const;
  6626. bool Save(VectorBuffer&) const;
  6627. bool SaveXML(XMLElement&) const;
  6628. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6629. bool SetAttribute(const String&, const Variant&);
  6630. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6631. void SetAttributeAnimationSpeed(const String&, float);
  6632. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6633. void SetInterceptNetworkUpdate(const String&, bool);
  6634. // Properties:
  6635. bool animationEnabled;
  6636. uint areaID;
  6637. /* readonly */
  6638. Array<Variant> attributeDefaults;
  6639. /* readonly */
  6640. Array<AttributeInfo> attributeInfos;
  6641. Array<Variant> attributes;
  6642. /* readonly */
  6643. StringHash baseType;
  6644. bool bidirectional;
  6645. /* readonly */
  6646. String category;
  6647. bool enabled;
  6648. /* readonly */
  6649. bool enabledEffective;
  6650. Node endPoint;
  6651. /* readonly */
  6652. uint id;
  6653. uint mask;
  6654. /* readonly */
  6655. Node node;
  6656. /* readonly */
  6657. uint numAttributes;
  6658. ObjectAnimation objectAnimation;
  6659. float radius;
  6660. /* readonly */
  6661. int refs;
  6662. bool temporary;
  6663. /* readonly */
  6664. StringHash type;
  6665. /* readonly */
  6666. String typeName;
  6667. /* readonly */
  6668. int weakRefs;
  6669. };
  6670. class PackageFile
  6671. {
  6672. // Methods:
  6673. bool Exists(const String&) const;
  6674. Array<String> GetEntryNames() const;
  6675. bool Open(const String&, uint = 0) const;
  6676. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6677. bool compressed() const;
  6678. // Properties:
  6679. /* readonly */
  6680. StringHash baseType;
  6681. /* readonly */
  6682. String category;
  6683. /* readonly */
  6684. uint checksum;
  6685. /* readonly */
  6686. String name;
  6687. /* readonly */
  6688. uint numFiles;
  6689. /* readonly */
  6690. int refs;
  6691. /* readonly */
  6692. uint totalSize;
  6693. /* readonly */
  6694. StringHash type;
  6695. /* readonly */
  6696. String typeName;
  6697. /* readonly */
  6698. int weakRefs;
  6699. };
  6700. class ParticleEffect
  6701. {
  6702. // Methods:
  6703. void AddColorFrame(ColorFrame);
  6704. void AddColorTime(Color&, float);
  6705. void AddTextureFrame(TextureFrame);
  6706. void AddTextureTime(Rect&, float);
  6707. ColorFrame GetColorFrame(uint) const;
  6708. TextureFrame GetTextureFrame(uint) const;
  6709. bool Load(File);
  6710. bool Load(VectorBuffer&);
  6711. bool Load(const XMLElement&);
  6712. void RemoveColorFrame(uint);
  6713. void RemoveTextureFrame(uint);
  6714. bool Save(File) const;
  6715. bool Save(VectorBuffer&) const;
  6716. bool Save(XMLElement&) const;
  6717. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6718. void SetColorFrame(uint, ColorFrame);
  6719. void SetTextureFrame(uint, TextureFrame);
  6720. void SortColorFrames();
  6721. void SortTextureFrames();
  6722. // Properties:
  6723. float activeTime;
  6724. float animationLodBias;
  6725. /* readonly */
  6726. StringHash baseType;
  6727. /* readonly */
  6728. String category;
  6729. Vector3 constantForce;
  6730. float dampingForce;
  6731. Vector3 emitterSize;
  6732. EmitterType emitterType;
  6733. float inactiveTime;
  6734. Material material;
  6735. Vector3 maxDirection;
  6736. float maxEmissionRate;
  6737. Vector2 maxParticleSize;
  6738. float maxRotation;
  6739. float maxRotationSpeed;
  6740. float maxTimeToLive;
  6741. float maxVelocity;
  6742. /* readonly */
  6743. uint memoryUse;
  6744. Vector3 minDirection;
  6745. float minEmissionRate;
  6746. Vector2 minParticleSize;
  6747. float minRotation;
  6748. float minRotationSpeed;
  6749. float minTimeToLive;
  6750. float minVelocity;
  6751. String name;
  6752. uint numColorFrames;
  6753. uint numParticles;
  6754. uint numTextureFrames;
  6755. /* readonly */
  6756. int refs;
  6757. bool relative;
  6758. bool scaled;
  6759. float sizeAdd;
  6760. float sizeMul;
  6761. bool sorted;
  6762. /* readonly */
  6763. StringHash type;
  6764. /* readonly */
  6765. String typeName;
  6766. bool updateInvisible;
  6767. /* readonly */
  6768. uint useTimer;
  6769. /* readonly */
  6770. int weakRefs;
  6771. };
  6772. class ParticleEffect2D
  6773. {
  6774. // Methods:
  6775. bool Load(File);
  6776. bool Load(VectorBuffer&);
  6777. bool Save(File) const;
  6778. bool Save(VectorBuffer&) const;
  6779. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6780. // Properties:
  6781. /* readonly */
  6782. StringHash baseType;
  6783. /* readonly */
  6784. String category;
  6785. /* readonly */
  6786. uint memoryUse;
  6787. String name;
  6788. /* readonly */
  6789. int refs;
  6790. /* readonly */
  6791. StringHash type;
  6792. /* readonly */
  6793. String typeName;
  6794. /* readonly */
  6795. uint useTimer;
  6796. /* readonly */
  6797. int weakRefs;
  6798. };
  6799. class ParticleEmitter
  6800. {
  6801. // Methods:
  6802. void ApplyAttributes();
  6803. void ApplyEffect();
  6804. void Commit();
  6805. void DrawDebugGeometry(DebugRenderer, bool);
  6806. Variant GetAttribute(const String&) const;
  6807. ValueAnimation GetAttributeAnimation(const String&) const;
  6808. float GetAttributeAnimationSpeed(const String&) const;
  6809. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6810. Variant GetAttributeDefault(const String&) const;
  6811. bool GetInterceptNetworkUpdate(const String&) const;
  6812. bool IsInView(Camera) const;
  6813. bool Load(File, bool = false);
  6814. bool Load(VectorBuffer&, bool = false);
  6815. bool LoadXML(const XMLElement&, bool = false);
  6816. void MarkNetworkUpdate() const;
  6817. void Remove();
  6818. void RemoveAllParticles();
  6819. void RemoveInstanceDefault();
  6820. void Reset();
  6821. void ResetEmissionTimer();
  6822. void ResetToDefault();
  6823. bool Save(File) const;
  6824. bool Save(VectorBuffer&) const;
  6825. bool SaveXML(XMLElement&) const;
  6826. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6827. bool SetAttribute(const String&, const Variant&);
  6828. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6829. void SetAttributeAnimationSpeed(const String&, float);
  6830. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6831. void SetInterceptNetworkUpdate(const String&, bool);
  6832. // Properties:
  6833. bool animationEnabled;
  6834. float animationLodBias;
  6835. /* readonly */
  6836. Array<Variant> attributeDefaults;
  6837. /* readonly */
  6838. Array<AttributeInfo> attributeInfos;
  6839. Array<Variant> attributes;
  6840. /* readonly */
  6841. StringHash baseType;
  6842. /* readonly */
  6843. Array<Billboard> billboards;
  6844. /* readonly */
  6845. BoundingBox boundingBox;
  6846. bool castShadows;
  6847. /* readonly */
  6848. String category;
  6849. float drawDistance;
  6850. ParticleEffect effect;
  6851. bool emitting;
  6852. bool enabled;
  6853. /* readonly */
  6854. bool enabledEffective;
  6855. FaceCameraMode faceCameraMode;
  6856. /* readonly */
  6857. uint id;
  6858. /* readonly */
  6859. bool inView;
  6860. uint lightMask;
  6861. float lodBias;
  6862. Material material;
  6863. uint maxLights;
  6864. /* readonly */
  6865. Node node;
  6866. /* readonly */
  6867. uint numAttributes;
  6868. uint numBillboards;
  6869. uint numParticles;
  6870. ObjectAnimation objectAnimation;
  6871. bool occludee;
  6872. bool occluder;
  6873. /* readonly */
  6874. int refs;
  6875. bool relative;
  6876. bool scaled;
  6877. bool serializeParticles;
  6878. float shadowDistance;
  6879. uint shadowMask;
  6880. bool sorted;
  6881. bool temporary;
  6882. /* readonly */
  6883. StringHash type;
  6884. /* readonly */
  6885. String typeName;
  6886. uint viewMask;
  6887. /* readonly */
  6888. int weakRefs;
  6889. /* readonly */
  6890. BoundingBox worldBoundingBox;
  6891. /* readonly */
  6892. Zone zone;
  6893. uint zoneMask;
  6894. };
  6895. class ParticleEmitter2D
  6896. {
  6897. // Methods:
  6898. void ApplyAttributes();
  6899. void DrawDebugGeometry(DebugRenderer, bool);
  6900. Variant GetAttribute(const String&) const;
  6901. ValueAnimation GetAttributeAnimation(const String&) const;
  6902. float GetAttributeAnimationSpeed(const String&) const;
  6903. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6904. Variant GetAttributeDefault(const String&) const;
  6905. bool GetInterceptNetworkUpdate(const String&) const;
  6906. bool IsInView(Camera) const;
  6907. bool Load(File, bool = false);
  6908. bool Load(VectorBuffer&, bool = false);
  6909. bool LoadXML(const XMLElement&, bool = false);
  6910. void MarkNetworkUpdate() const;
  6911. void Remove();
  6912. void RemoveInstanceDefault();
  6913. void ResetToDefault();
  6914. bool Save(File) const;
  6915. bool Save(VectorBuffer&) const;
  6916. bool SaveXML(XMLElement&) const;
  6917. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6918. bool SetAttribute(const String&, const Variant&);
  6919. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6920. void SetAttributeAnimationSpeed(const String&, float);
  6921. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6922. void SetInterceptNetworkUpdate(const String&, bool);
  6923. // Properties:
  6924. bool animationEnabled;
  6925. /* readonly */
  6926. Array<Variant> attributeDefaults;
  6927. /* readonly */
  6928. Array<AttributeInfo> attributeInfos;
  6929. Array<Variant> attributes;
  6930. /* readonly */
  6931. StringHash baseType;
  6932. BlendMode blendMode;
  6933. /* readonly */
  6934. BoundingBox boundingBox;
  6935. bool castShadows;
  6936. /* readonly */
  6937. String category;
  6938. float drawDistance;
  6939. ParticleEffect2D effect;
  6940. bool enabled;
  6941. /* readonly */
  6942. bool enabledEffective;
  6943. /* readonly */
  6944. uint id;
  6945. /* readonly */
  6946. bool inView;
  6947. int layer;
  6948. uint lightMask;
  6949. float lodBias;
  6950. uint maxLights;
  6951. /* readonly */
  6952. Node node;
  6953. /* readonly */
  6954. uint numAttributes;
  6955. ObjectAnimation objectAnimation;
  6956. bool occludee;
  6957. bool occluder;
  6958. int orderInLayer;
  6959. /* readonly */
  6960. int refs;
  6961. float shadowDistance;
  6962. uint shadowMask;
  6963. Sprite2D sprite;
  6964. bool temporary;
  6965. /* readonly */
  6966. StringHash type;
  6967. /* readonly */
  6968. String typeName;
  6969. uint viewMask;
  6970. /* readonly */
  6971. int weakRefs;
  6972. /* readonly */
  6973. BoundingBox worldBoundingBox;
  6974. uint zoneMask;
  6975. };
  6976. class Pass
  6977. {
  6978. // Properties:
  6979. bool alphaMask;
  6980. BlendMode blendMode;
  6981. CompareMode depthTestMode;
  6982. bool depthWrite;
  6983. bool desktop;
  6984. PassLightingMode lightingMode;
  6985. String pixelShader;
  6986. String pixelShaderDefines;
  6987. /* readonly */
  6988. int refs;
  6989. String vertexShader;
  6990. String vertexShaderDefines;
  6991. /* readonly */
  6992. int weakRefs;
  6993. };
  6994. class PhysicsRaycastResult
  6995. {
  6996. // Properties:
  6997. /* readonly */
  6998. RigidBody body;
  6999. float distance;
  7000. Vector3 normal;
  7001. Vector3 position;
  7002. };
  7003. class PhysicsRaycastResult2D
  7004. {
  7005. // Properties:
  7006. /* readonly */
  7007. RigidBody2D body;
  7008. float distance;
  7009. Vector2 normal;
  7010. Vector2 position;
  7011. };
  7012. class PhysicsWorld
  7013. {
  7014. // Methods:
  7015. void ApplyAttributes();
  7016. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7017. void DrawDebugGeometry(DebugRenderer, bool);
  7018. void DrawDebugGeometry(bool);
  7019. Variant GetAttribute(const String&) const;
  7020. ValueAnimation GetAttributeAnimation(const String&) const;
  7021. float GetAttributeAnimationSpeed(const String&) const;
  7022. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7023. Variant GetAttributeDefault(const String&) const;
  7024. bool GetInterceptNetworkUpdate(const String&) const;
  7025. Array<RigidBody> GetRigidBodies(RigidBody);
  7026. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7027. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7028. bool Load(File, bool = false);
  7029. bool Load(VectorBuffer&, bool = false);
  7030. bool LoadXML(const XMLElement&, bool = false);
  7031. void MarkNetworkUpdate() const;
  7032. Array<PhysicsRaycastResult> Raycast(const Ray&, float = M_INFINITY, uint = 0xffff);
  7033. PhysicsRaycastResult RaycastSingle(const Ray&, float = M_INFINITY, uint = 0xffff);
  7034. void Remove();
  7035. void RemoveCachedGeometry(Model);
  7036. void RemoveInstanceDefault();
  7037. void ResetToDefault();
  7038. bool Save(File) const;
  7039. bool Save(VectorBuffer&) const;
  7040. bool SaveXML(XMLElement&) const;
  7041. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7042. bool SetAttribute(const String&, const Variant&);
  7043. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7044. void SetAttributeAnimationSpeed(const String&, float);
  7045. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7046. void SetInterceptNetworkUpdate(const String&, bool);
  7047. PhysicsRaycastResult SphereCast(const Ray&, float, float = M_INFINITY, uint = 0xffff);
  7048. void Update(float);
  7049. void UpdateCollisions();
  7050. // Properties:
  7051. bool animationEnabled;
  7052. /* readonly */
  7053. Array<Variant> attributeDefaults;
  7054. /* readonly */
  7055. Array<AttributeInfo> attributeInfos;
  7056. Array<Variant> attributes;
  7057. /* readonly */
  7058. StringHash baseType;
  7059. /* readonly */
  7060. String category;
  7061. bool enabled;
  7062. /* readonly */
  7063. bool enabledEffective;
  7064. int fps;
  7065. Vector3 gravity;
  7066. /* readonly */
  7067. uint id;
  7068. bool internalEdge;
  7069. bool interpolation;
  7070. int maxSubSteps;
  7071. /* readonly */
  7072. Node node;
  7073. /* readonly */
  7074. uint numAttributes;
  7075. int numIterations;
  7076. ObjectAnimation objectAnimation;
  7077. /* readonly */
  7078. int refs;
  7079. bool splitImpulse;
  7080. bool temporary;
  7081. /* readonly */
  7082. StringHash type;
  7083. /* readonly */
  7084. String typeName;
  7085. /* readonly */
  7086. int weakRefs;
  7087. };
  7088. class PhysicsWorld2D
  7089. {
  7090. // Methods:
  7091. void ApplyAttributes();
  7092. void DrawDebugGeometry() const;
  7093. void DrawDebugGeometry(DebugRenderer, bool);
  7094. Variant GetAttribute(const String&) const;
  7095. ValueAnimation GetAttributeAnimation(const String&) const;
  7096. float GetAttributeAnimationSpeed(const String&) const;
  7097. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7098. Variant GetAttributeDefault(const String&) const;
  7099. bool GetInterceptNetworkUpdate(const String&) const;
  7100. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7101. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7102. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7103. bool Load(File, bool = false);
  7104. bool Load(VectorBuffer&, bool = false);
  7105. bool LoadXML(const XMLElement&, bool = false);
  7106. void MarkNetworkUpdate() const;
  7107. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7108. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7109. void Remove();
  7110. void RemoveInstanceDefault();
  7111. void ResetToDefault();
  7112. bool Save(File) const;
  7113. bool Save(VectorBuffer&) const;
  7114. bool SaveXML(XMLElement&) const;
  7115. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7116. bool SetAttribute(const String&, const Variant&);
  7117. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7118. void SetAttributeAnimationSpeed(const String&, float);
  7119. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7120. void SetInterceptNetworkUpdate(const String&, bool);
  7121. // Properties:
  7122. bool allowSleeping;
  7123. bool animationEnabled;
  7124. /* readonly */
  7125. Array<Variant> attributeDefaults;
  7126. /* readonly */
  7127. Array<AttributeInfo> attributeInfos;
  7128. Array<Variant> attributes;
  7129. bool autoClearForces;
  7130. /* readonly */
  7131. StringHash baseType;
  7132. /* readonly */
  7133. String category;
  7134. bool continuousPhysics;
  7135. bool drawAabb;
  7136. bool drawCenterOfMass;
  7137. bool drawJoint;
  7138. bool drawPair;
  7139. bool drawShape;
  7140. bool enabled;
  7141. /* readonly */
  7142. bool enabledEffective;
  7143. Vector2 gravity;
  7144. /* readonly */
  7145. uint id;
  7146. /* readonly */
  7147. Node node;
  7148. /* readonly */
  7149. uint numAttributes;
  7150. ObjectAnimation objectAnimation;
  7151. uint positionIterations;
  7152. /* readonly */
  7153. int refs;
  7154. bool subStepping;
  7155. bool temporary;
  7156. /* readonly */
  7157. StringHash type;
  7158. /* readonly */
  7159. String typeName;
  7160. uint velocityIterations;
  7161. bool warmStarting;
  7162. /* readonly */
  7163. int weakRefs;
  7164. };
  7165. class Plane
  7166. {
  7167. // Methods:
  7168. void Define(const Vector3&, const Vector3&);
  7169. void Define(const Vector3&, const Vector3&, const Vector3&);
  7170. void Define(const Vector4&);
  7171. float Distance(const Vector3&) const;
  7172. Vector3 Project(const Vector3&) const;
  7173. Vector3 Reflect(const Vector3&) const;
  7174. Vector4 ToVector4() const;
  7175. void Transform(const Matrix3&);
  7176. void Transform(const Matrix3x4&);
  7177. void Transform(const Matrix4&);
  7178. Plane Transformed(const Matrix3&) const;
  7179. Plane Transformed(const Matrix3x4&) const;
  7180. Plane Transformed(const Matrix4&) const;
  7181. // Properties:
  7182. Vector3 absNormal;
  7183. float d;
  7184. Vector3 normal;
  7185. /* readonly */
  7186. Matrix3x4 reflectionMatrix;
  7187. };
  7188. class Polyhedron
  7189. {
  7190. // Methods:
  7191. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7192. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7193. void AddFace(const Array<Vector3>);
  7194. void Clear();
  7195. void Clip(const BoundingBox&);
  7196. void Clip(const Frustum&);
  7197. void Define(const BoundingBox&);
  7198. void Define(const Frustum&);
  7199. void Transform(const Matrix3&);
  7200. void Transform(const Matrix3x4&);
  7201. Polyhedron Transformed(const Matrix3&) const;
  7202. Polyhedron Transformed(const Matrix3x4&) const;
  7203. // Properties:
  7204. /* readonly */
  7205. Array<Array<Vector3>> face;
  7206. /* readonly */
  7207. uint numFaces;
  7208. };
  7209. class PropertySet2D
  7210. {
  7211. // Methods:
  7212. bool HasProperty(const String&) const;
  7213. const String& GetProperty(const String&) const;
  7214. // Properties:
  7215. /* readonly */
  7216. int refs;
  7217. /* readonly */
  7218. int weakRefs;
  7219. };
  7220. class Quaternion
  7221. {
  7222. // Methods:
  7223. float DotProduct(const Quaternion&) const;
  7224. bool Equals(const Quaternion&) const;
  7225. void FromAngleAxis(float, const Vector3&);
  7226. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  7227. void FromEulerAngles(float, float, float);
  7228. bool FromLookRotation(const Vector3&, const Vector3&);
  7229. void FromRotationTo(const Vector3&, const Vector3&);
  7230. Quaternion Inverse() const;
  7231. bool IsNaN() const;
  7232. Quaternion Nlerp(Quaternion, float, bool) const;
  7233. void Normalize();
  7234. Quaternion Normalized() const;
  7235. Quaternion Slerp(Quaternion, float) const;
  7236. String ToString() const;
  7237. // Properties:
  7238. /* readonly */
  7239. Vector3 eulerAngles;
  7240. /* readonly */
  7241. float pitch;
  7242. /* readonly */
  7243. float roll;
  7244. float w;
  7245. float x;
  7246. float y;
  7247. /* readonly */
  7248. float yaw;
  7249. float z;
  7250. };
  7251. class Ray
  7252. {
  7253. // Methods:
  7254. Vector3 ClosestPoint(const Ray&) const;
  7255. void Define(const Vector3&, const Vector3&);
  7256. float Distance(const Vector3&) const;
  7257. float HitDistance(const BoundingBox&) const;
  7258. float HitDistance(const Frustum&, bool = true) const;
  7259. float HitDistance(const Plane&) const;
  7260. float HitDistance(const Sphere&) const;
  7261. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  7262. Vector3 Project(const Vector3&) const;
  7263. Ray Transformed(const Matrix3x4&) const;
  7264. // Properties:
  7265. Vector3 direction;
  7266. Vector3 origin;
  7267. };
  7268. class RayQueryResult
  7269. {
  7270. // Properties:
  7271. float distance;
  7272. /* readonly */
  7273. Drawable drawable;
  7274. /* readonly */
  7275. Node node;
  7276. Vector3 normal;
  7277. Vector3 position;
  7278. uint subObject;
  7279. };
  7280. class Rect
  7281. {
  7282. // Methods:
  7283. void Clear();
  7284. void Clip(const Rect&);
  7285. void Define(const Vector2&);
  7286. void Define(const Vector2&, const Vector2&);
  7287. bool Equals(const Rect&) const;
  7288. Intersection IsInside(const Vector2&) const;
  7289. void Merge(const Rect&);
  7290. void Merge(const Vector2&);
  7291. Vector4 ToVector4() const;
  7292. // Properties:
  7293. float bottom;
  7294. /* readonly */
  7295. Vector2 center;
  7296. bool defined;
  7297. /* readonly */
  7298. Vector2 halfSize;
  7299. float left;
  7300. Vector2 max;
  7301. Vector2 min;
  7302. float right;
  7303. /* readonly */
  7304. Vector2 size;
  7305. float top;
  7306. };
  7307. class RefCounted
  7308. {
  7309. // Properties:
  7310. /* readonly */
  7311. int refs;
  7312. /* readonly */
  7313. int weakRefs;
  7314. };
  7315. class RenderPath
  7316. {
  7317. // Methods:
  7318. void AddCommand(const RenderPathCommand&);
  7319. void AddRenderTarget(const RenderTargetInfo&);
  7320. bool Append(XMLFile);
  7321. RenderPath Clone();
  7322. void InsertCommand(uint, const RenderPathCommand&);
  7323. bool Load(XMLFile);
  7324. void RemoveCommand(uint);
  7325. void RemoveCommands(const String&);
  7326. void RemoveRenderTarget(const String&);
  7327. void RemoveRenderTarget(uint);
  7328. void RemoveRenderTargts(const String&);
  7329. void SetEnabled(const String&, bool);
  7330. void ToggleEnabled(const String&);
  7331. // Properties:
  7332. Array<RenderPathCommand> commands;
  7333. /* readonly */
  7334. uint numCommands;
  7335. /* readonly */
  7336. uint numRenderTargets;
  7337. /* readonly */
  7338. int refs;
  7339. Array<RenderTargetInfo> renderTargets;
  7340. Array<Variant> shaderParameters;
  7341. /* readonly */
  7342. int weakRefs;
  7343. };
  7344. class RenderPathCommand
  7345. {
  7346. // Methods:
  7347. void RemoveShaderParameter(const String&);
  7348. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  7349. // Properties:
  7350. BlendMode blendMode;
  7351. Color clearColor;
  7352. float clearDepth;
  7353. uint clearFlags;
  7354. uint clearStencil;
  7355. String depthStencilName;
  7356. bool enabled;
  7357. bool markToStencil;
  7358. String metadata;
  7359. uint numOutputs;
  7360. Array<CubeMapFace> outputFaces;
  7361. Array<String> outputNames;
  7362. String pass;
  7363. String pixelShaderDefines;
  7364. String pixelShaderName;
  7365. Array<Variant> shaderParameters;
  7366. RenderCommandSortMode sortMode;
  7367. String tag;
  7368. Array<String> textureNames;
  7369. RenderCommandType type;
  7370. bool useFogColor;
  7371. bool useLitBase;
  7372. bool vertexLights;
  7373. String vertexShaderDefines;
  7374. String vertexShaderName;
  7375. };
  7376. class RenderSurface
  7377. {
  7378. // Methods:
  7379. void QueueUpdate();
  7380. // Properties:
  7381. /* readonly */
  7382. int height;
  7383. RenderSurface linkedDepthStencil;
  7384. RenderSurface linkedRenderTarget;
  7385. uint numViewports;
  7386. /* readonly */
  7387. Texture parentTexture;
  7388. RenderSurfaceUpdateMode updateMode;
  7389. /* readonly */
  7390. TextureUsage usage;
  7391. Array<Viewport> viewports;
  7392. /* readonly */
  7393. int width;
  7394. };
  7395. class RenderTargetInfo
  7396. {
  7397. // Properties:
  7398. bool cubemap;
  7399. bool enabled;
  7400. bool filtered;
  7401. uint format;
  7402. String name;
  7403. bool persistent;
  7404. bool sRGB;
  7405. Vector2 size;
  7406. RenderTargetSizeMode sizeMode;
  7407. String tag;
  7408. };
  7409. class Renderer
  7410. {
  7411. // Methods:
  7412. void DrawDebugGeometry(bool) const;
  7413. void ReloadShaders() const;
  7414. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7415. void SetDefaultRenderPath(XMLFile);
  7416. // Properties:
  7417. /* readonly */
  7418. StringHash baseType;
  7419. /* readonly */
  7420. String category;
  7421. /* readonly */
  7422. Material defaultLightRamp;
  7423. /* readonly */
  7424. Material defaultLightSpot;
  7425. /* readonly */
  7426. Material defaultMaterial;
  7427. RenderPath defaultRenderPath;
  7428. /* readonly */
  7429. Zone defaultZone;
  7430. bool drawShadows;
  7431. bool dynamicInstancing;
  7432. bool hdrRendering;
  7433. int materialQuality;
  7434. int maxOccluderTriangles;
  7435. int maxShadowMaps;
  7436. int maxSortedInstances;
  7437. int minInstances;
  7438. float mobileShadowBiasAdd;
  7439. float mobileShadowBiasMul;
  7440. /* readonly */
  7441. uint numBatches;
  7442. /* readonly */
  7443. Array<uint> numGeometries;
  7444. /* readonly */
  7445. Array<uint> numLights;
  7446. /* readonly */
  7447. Array<uint> numOccluders;
  7448. /* readonly */
  7449. uint numPrimitives;
  7450. /* readonly */
  7451. Array<uint> numShadowMaps;
  7452. uint numViewports;
  7453. /* readonly */
  7454. uint numViews;
  7455. float occluderSizeThreshold;
  7456. int occlusionBufferSize;
  7457. /* readonly */
  7458. int refs;
  7459. bool reuseShadowMaps;
  7460. int shadowMapSize;
  7461. int shadowQuality;
  7462. bool specularLighting;
  7463. int textureAnisotropy;
  7464. TextureFilterMode textureFilterMode;
  7465. int textureQuality;
  7466. /* readonly */
  7467. StringHash type;
  7468. /* readonly */
  7469. String typeName;
  7470. Array<Viewport> viewports;
  7471. /* readonly */
  7472. int weakRefs;
  7473. };
  7474. class Resource
  7475. {
  7476. // Methods:
  7477. bool Load(File);
  7478. bool Load(VectorBuffer&);
  7479. bool Save(File) const;
  7480. bool Save(VectorBuffer&) const;
  7481. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7482. // Properties:
  7483. /* readonly */
  7484. StringHash baseType;
  7485. /* readonly */
  7486. String category;
  7487. /* readonly */
  7488. uint memoryUse;
  7489. String name;
  7490. /* readonly */
  7491. int refs;
  7492. /* readonly */
  7493. StringHash type;
  7494. /* readonly */
  7495. String typeName;
  7496. /* readonly */
  7497. uint useTimer;
  7498. /* readonly */
  7499. int weakRefs;
  7500. };
  7501. class ResourceCache
  7502. {
  7503. // Methods:
  7504. bool AddManualResource(Resource);
  7505. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  7506. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  7507. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  7508. bool BackgroundLoadResource(const String&, const String&, bool = true);
  7509. bool Exists(const String&) const;
  7510. Resource GetExistingResource(StringHash, const String&);
  7511. Resource GetExistingResource(const String&, const String&);
  7512. File GetFile(const String&);
  7513. String GetPreferredResourceDir(const String&) const;
  7514. Resource GetResource(StringHash, const String&, bool = true);
  7515. Resource GetResource(const String&, const String&, bool = true);
  7516. String GetResourceFileName(const String&) const;
  7517. void ReleaseAllResources(bool = false);
  7518. void ReleaseResource(const String&, const String&, bool = false);
  7519. void ReleaseResources(StringHash, bool = false);
  7520. void ReleaseResources(const String&, bool = false);
  7521. void ReleaseResources(const String&, const String&, bool = false);
  7522. bool ReloadResource(Resource);
  7523. void ReloadResourceWithDependencies(const String&);
  7524. void RemovePackageFile(PackageFile, bool = true, bool = false);
  7525. void RemovePackageFile(const String&, bool = true, bool = false);
  7526. void RemoveResourceDir(const String&);
  7527. String SanitateResourceDirName(const String&) const;
  7528. String SanitateResourceName(const String&) const;
  7529. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7530. // Properties:
  7531. bool autoReloadResources;
  7532. /* readonly */
  7533. StringHash baseType;
  7534. /* readonly */
  7535. String category;
  7536. int finishBackgroundResourcesMs;
  7537. Array<uint> memoryBudget;
  7538. /* readonly */
  7539. Array<uint> memoryUse;
  7540. /* readonly */
  7541. uint numBackgroundLoadResources;
  7542. /* readonly */
  7543. Array<PackageFile> packageFiles;
  7544. /* readonly */
  7545. int refs;
  7546. /* readonly */
  7547. Array<String> resourceDirs;
  7548. bool returnFailedResources;
  7549. /* readonly */
  7550. bool seachPackagesFirst;
  7551. /* writeonly */
  7552. bool searchPackagesFirst;
  7553. /* readonly */
  7554. uint totalMemoryUse;
  7555. /* readonly */
  7556. StringHash type;
  7557. /* readonly */
  7558. String typeName;
  7559. /* readonly */
  7560. int weakRefs;
  7561. };
  7562. class ResourceRef
  7563. {
  7564. // Properties:
  7565. String name;
  7566. StringHash type;
  7567. };
  7568. class ResourceRefList
  7569. {
  7570. // Methods:
  7571. void Resize(uint);
  7572. // Properties:
  7573. /* readonly */
  7574. bool empty;
  7575. /* readonly */
  7576. uint length;
  7577. Array<String> names;
  7578. StringHash type;
  7579. };
  7580. class RigidBody
  7581. {
  7582. // Methods:
  7583. void Activate();
  7584. void ApplyAttributes();
  7585. void ApplyForce(const Vector3&);
  7586. void ApplyForce(const Vector3&, const Vector3&);
  7587. void ApplyImpulse(const Vector3&);
  7588. void ApplyImpulse(const Vector3&, const Vector3&);
  7589. void ApplyTorque(const Vector3&);
  7590. void ApplyTorqueImpulse(const Vector3&);
  7591. void DisableMassUpdate();
  7592. void DrawDebugGeometry(DebugRenderer, bool);
  7593. void EnableMassUpdate();
  7594. Variant GetAttribute(const String&) const;
  7595. ValueAnimation GetAttributeAnimation(const String&) const;
  7596. float GetAttributeAnimationSpeed(const String&) const;
  7597. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7598. Variant GetAttributeDefault(const String&) const;
  7599. bool GetInterceptNetworkUpdate(const String&) const;
  7600. Vector3 GetVelocityAtPoint(const Vector3&) const;
  7601. bool Load(File, bool = false);
  7602. bool Load(VectorBuffer&, bool = false);
  7603. bool LoadXML(const XMLElement&, bool = false);
  7604. void MarkNetworkUpdate() const;
  7605. void ReAddBodyToWorld();
  7606. void Remove();
  7607. void RemoveInstanceDefault();
  7608. void ResetForces();
  7609. void ResetToDefault();
  7610. bool Save(File) const;
  7611. bool Save(VectorBuffer&) const;
  7612. bool SaveXML(XMLElement&) const;
  7613. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7614. bool SetAttribute(const String&, const Variant&);
  7615. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7616. void SetAttributeAnimationSpeed(const String&, float);
  7617. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7618. void SetCollisionLayerAndMask(uint, uint);
  7619. void SetInterceptNetworkUpdate(const String&, bool);
  7620. void SetTransform(const Vector3&, const Quaternion&);
  7621. // Properties:
  7622. /* readonly */
  7623. bool active;
  7624. float angularDamping;
  7625. Vector3 angularFactor;
  7626. float angularRestThreshold;
  7627. Vector3 angularVelocity;
  7628. bool animationEnabled;
  7629. Vector3 anisotropicFriction;
  7630. /* readonly */
  7631. Array<Variant> attributeDefaults;
  7632. /* readonly */
  7633. Array<AttributeInfo> attributeInfos;
  7634. Array<Variant> attributes;
  7635. /* readonly */
  7636. StringHash baseType;
  7637. /* readonly */
  7638. String category;
  7639. float ccdMotionThreshold;
  7640. float ccdRadius;
  7641. /* readonly */
  7642. Vector3 centerOfMass;
  7643. /* readonly */
  7644. Array<RigidBody> collidingBodies;
  7645. CollisionEventMode collisionEventMode;
  7646. uint collisionLayer;
  7647. uint collisionMask;
  7648. float contactProcessingThreshold;
  7649. bool enabled;
  7650. /* readonly */
  7651. bool enabledEffective;
  7652. float friction;
  7653. Vector3 gravityOverride;
  7654. /* readonly */
  7655. uint id;
  7656. bool kinematic;
  7657. float linearDamping;
  7658. Vector3 linearFactor;
  7659. float linearRestThreshold;
  7660. Vector3 linearVelocity;
  7661. float mass;
  7662. /* readonly */
  7663. Node node;
  7664. /* readonly */
  7665. uint numAttributes;
  7666. ObjectAnimation objectAnimation;
  7667. Vector3 position;
  7668. /* readonly */
  7669. int refs;
  7670. float restitution;
  7671. float rollingFriction;
  7672. Quaternion rotation;
  7673. bool temporary;
  7674. bool trigger;
  7675. /* readonly */
  7676. StringHash type;
  7677. /* readonly */
  7678. String typeName;
  7679. bool useGravity;
  7680. /* readonly */
  7681. int weakRefs;
  7682. };
  7683. class RigidBody2D
  7684. {
  7685. // Methods:
  7686. void ApplyAngularImpulse(float, bool);
  7687. void ApplyAttributes();
  7688. void ApplyForce(const Vector2&, const Vector2&, bool);
  7689. void ApplyForceToCenter(const Vector2&, bool);
  7690. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  7691. void ApplyTorque(float, bool);
  7692. void DrawDebugGeometry(DebugRenderer, bool);
  7693. Variant GetAttribute(const String&) const;
  7694. ValueAnimation GetAttributeAnimation(const String&) const;
  7695. float GetAttributeAnimationSpeed(const String&) const;
  7696. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7697. Variant GetAttributeDefault(const String&) const;
  7698. bool GetInterceptNetworkUpdate(const String&) const;
  7699. bool Load(File, bool = false);
  7700. bool Load(VectorBuffer&, bool = false);
  7701. bool LoadXML(const XMLElement&, bool = false);
  7702. void MarkNetworkUpdate() const;
  7703. void Remove();
  7704. void RemoveInstanceDefault();
  7705. void ResetToDefault();
  7706. bool Save(File) const;
  7707. bool Save(VectorBuffer&) const;
  7708. bool SaveXML(XMLElement&) const;
  7709. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7710. bool SetAttribute(const String&, const Variant&);
  7711. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7712. void SetAttributeAnimationSpeed(const String&, float);
  7713. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7714. void SetInterceptNetworkUpdate(const String&, bool);
  7715. // Properties:
  7716. bool allowSleep;
  7717. float angularDamping;
  7718. bool animationEnabled;
  7719. /* readonly */
  7720. Array<Variant> attributeDefaults;
  7721. /* readonly */
  7722. Array<AttributeInfo> attributeInfos;
  7723. Array<Variant> attributes;
  7724. bool awake;
  7725. /* readonly */
  7726. StringHash baseType;
  7727. BodyType2D bodyType;
  7728. bool bullet;
  7729. /* readonly */
  7730. String category;
  7731. bool enabled;
  7732. /* readonly */
  7733. bool enabledEffective;
  7734. bool fixedRotation;
  7735. float gravityScale;
  7736. /* readonly */
  7737. uint id;
  7738. float inertia;
  7739. float linearDamping;
  7740. Vector2 linearVelocity;
  7741. float mass;
  7742. Vector2 massCenter;
  7743. /* readonly */
  7744. Node node;
  7745. /* readonly */
  7746. uint numAttributes;
  7747. ObjectAnimation objectAnimation;
  7748. /* readonly */
  7749. int refs;
  7750. bool temporary;
  7751. /* readonly */
  7752. StringHash type;
  7753. /* readonly */
  7754. String typeName;
  7755. bool useFixtureMass;
  7756. /* readonly */
  7757. int weakRefs;
  7758. };
  7759. class Scene
  7760. {
  7761. // Methods:
  7762. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7763. void AddRequiredPackageFile(PackageFile);
  7764. void ApplyAttributes();
  7765. void Clear(bool = true, bool = true);
  7766. void ClearRequiredPackageFiles();
  7767. Component CloneComponent(Component, CreateMode, uint = 0);
  7768. Component CloneComponent(Component, uint = 0);
  7769. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7770. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7771. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7772. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7773. Variant GetAttribute(const String&) const;
  7774. ValueAnimation GetAttributeAnimation(const String&) const;
  7775. float GetAttributeAnimationSpeed(const String&) const;
  7776. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7777. Variant GetAttributeDefault(const String&) const;
  7778. Node GetChild(const String&, bool = false) const;
  7779. Array<Node> GetChildren(bool = false) const;
  7780. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7781. Array<Node> GetChildrenWithScript(bool = false) const;
  7782. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7783. Component GetComponent(const String&) const;
  7784. Component GetComponent(uint);
  7785. Array<Component> GetComponents() const;
  7786. Array<Component> GetComponents(const String&, bool = false) const;
  7787. bool GetInterceptNetworkUpdate(const String&) const;
  7788. Node GetNode(uint);
  7789. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7790. ScriptObject GetScriptObject() const;
  7791. ScriptObject GetScriptObject(const String&) const;
  7792. bool HasComponent(const String&) const;
  7793. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7794. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7795. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7796. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7797. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7798. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7799. bool Load(File, bool = false);
  7800. bool Load(VectorBuffer&, bool = false);
  7801. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  7802. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  7803. bool LoadXML(File);
  7804. bool LoadXML(VectorBuffer&);
  7805. bool LoadXML(const XMLElement&, bool = false);
  7806. Vector3 LocalToWorld(const Vector3&) const;
  7807. Vector3 LocalToWorld(const Vector4&) const;
  7808. Vector2 LocalToWorld2D(const Vector2&) const;
  7809. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7810. void MarkNetworkUpdate() const;
  7811. void Pitch(float, TransformSpace = TS_LOCAL);
  7812. void RegisterVar(const String&);
  7813. void Remove();
  7814. void RemoveAllChildren();
  7815. void RemoveAllComponents();
  7816. void RemoveChild(Node);
  7817. void RemoveChildren(bool, bool, bool);
  7818. void RemoveComponent(Component);
  7819. void RemoveComponent(const String&);
  7820. void RemoveComponents(bool, bool);
  7821. void RemoveInstanceDefault();
  7822. void ResetToDefault();
  7823. void Roll(float, TransformSpace = TS_LOCAL);
  7824. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7825. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7826. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7827. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7828. bool Save(File) const;
  7829. bool Save(VectorBuffer&) const;
  7830. bool SaveXML(File, const String& = "\t");
  7831. bool SaveXML(VectorBuffer&, const String& = "\t");
  7832. bool SaveXML(XMLElement&) const;
  7833. void Scale(const Vector3&);
  7834. void Scale(float);
  7835. void Scale2D(const Vector2&);
  7836. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7837. bool SetAttribute(const String&, const Variant&);
  7838. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7839. void SetAttributeAnimationSpeed(const String&, float);
  7840. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7841. void SetInterceptNetworkUpdate(const String&, bool);
  7842. void SetPosition2D(float, float);
  7843. void SetScale(float);
  7844. void SetScale2D(float, float);
  7845. void SetTransform(const Vector3&, const Quaternion&);
  7846. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7847. void SetTransform(const Vector3&, const Quaternion&, float);
  7848. void SetTransform2D(const Vector2&, float);
  7849. void SetTransform2D(const Vector2&, float, const Vector2&);
  7850. void SetTransform2D(const Vector2&, float, float);
  7851. void SetWorldTransform(const Vector3&, const Quaternion&);
  7852. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7853. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7854. void SetWorldTransform2D(const Vector2&, float);
  7855. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7856. void SetWorldTransform2D(const Vector2&, float, float);
  7857. void StopAsyncLoading();
  7858. const String& GetVarName(StringHash) const;
  7859. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7860. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7861. void UnregisterAllVars(const String&);
  7862. void UnregisterVar(const String&);
  7863. void Update(float);
  7864. Vector3 WorldToLocal(const Vector3&) const;
  7865. Vector3 WorldToLocal(const Vector4&) const;
  7866. Vector2 WorldToLocal2D(const Vector2&) const;
  7867. void Yaw(float, TransformSpace = TS_LOCAL);
  7868. // Properties:
  7869. bool animationEnabled;
  7870. /* readonly */
  7871. LoadMode asyncLoadMode;
  7872. /* readonly */
  7873. bool asyncLoading;
  7874. int asyncLoadingMs;
  7875. /* readonly */
  7876. float asyncProgress;
  7877. /* readonly */
  7878. Array<Variant> attributeDefaults;
  7879. /* readonly */
  7880. Array<AttributeInfo> attributeInfos;
  7881. Array<Variant> attributes;
  7882. /* readonly */
  7883. StringHash baseType;
  7884. /* readonly */
  7885. String category;
  7886. /* readonly */
  7887. uint checksum;
  7888. /* readonly */
  7889. Array<Node> children;
  7890. /* readonly */
  7891. Array<Component> components;
  7892. /* readonly */
  7893. DebugRenderer debugRenderer;
  7894. Vector3 direction;
  7895. float elapsedTime;
  7896. /* readonly */
  7897. String fileName;
  7898. /* readonly */
  7899. uint id;
  7900. String name;
  7901. /* readonly */
  7902. uint numAllChildren;
  7903. /* readonly */
  7904. uint numAttributes;
  7905. /* readonly */
  7906. uint numChildren;
  7907. /* readonly */
  7908. uint numComponents;
  7909. ObjectAnimation objectAnimation;
  7910. /* readonly */
  7911. Octree octree;
  7912. Node parent;
  7913. /* readonly */
  7914. PhysicsWorld physicsWorld;
  7915. /* readonly */
  7916. PhysicsWorld2D physicsWorld2D;
  7917. Vector3 position;
  7918. Vector2 position2D;
  7919. /* readonly */
  7920. int refs;
  7921. /* readonly */
  7922. Array<PackageFile> requiredPackageFiles;
  7923. /* readonly */
  7924. Vector3 right;
  7925. Quaternion rotation;
  7926. float rotation2D;
  7927. Vector3 scale;
  7928. Vector2 scale2D;
  7929. /* readonly */
  7930. ScriptObject scriptObject;
  7931. float smoothingConstant;
  7932. float snapThreshold;
  7933. bool temporary;
  7934. float timeScale;
  7935. /* readonly */
  7936. Matrix3x4 transform;
  7937. /* readonly */
  7938. StringHash type;
  7939. /* readonly */
  7940. String typeName;
  7941. /* readonly */
  7942. Vector3 up;
  7943. bool updateEnabled;
  7944. /* readonly */
  7945. VariantMap vars;
  7946. /* readonly */
  7947. int weakRefs;
  7948. Vector3 worldDirection;
  7949. Vector3 worldPosition;
  7950. Vector2 worldPosition2D;
  7951. /* readonly */
  7952. Vector3 worldRight;
  7953. Quaternion worldRotation;
  7954. float worldRotation2D;
  7955. Vector3 worldScale;
  7956. Vector2 worldScale2D;
  7957. /* readonly */
  7958. Matrix3x4 worldTransform;
  7959. /* readonly */
  7960. Vector3 worldUp;
  7961. };
  7962. class Script
  7963. {
  7964. // Methods:
  7965. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  7966. bool Execute(const String&);
  7967. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7968. // Properties:
  7969. /* readonly */
  7970. StringHash baseType;
  7971. /* readonly */
  7972. String category;
  7973. Scene defaultScene;
  7974. ScriptFile defaultScriptFile;
  7975. bool executeConsoleCommands;
  7976. /* readonly */
  7977. int refs;
  7978. /* readonly */
  7979. StringHash type;
  7980. /* readonly */
  7981. String typeName;
  7982. /* readonly */
  7983. int weakRefs;
  7984. };
  7985. class ScriptFile
  7986. {
  7987. // Methods:
  7988. void ClearDelayedExecute(const String& = String ( ));
  7989. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  7990. bool Execute(const String&, const Array<Variant> = null);
  7991. bool Load(File);
  7992. bool Load(VectorBuffer&);
  7993. bool Save(File) const;
  7994. bool Save(VectorBuffer&) const;
  7995. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7996. // Properties:
  7997. /* readonly */
  7998. StringHash baseType;
  7999. /* readonly */
  8000. String category;
  8001. /* readonly */
  8002. bool compiled;
  8003. /* readonly */
  8004. uint memoryUse;
  8005. String name;
  8006. /* readonly */
  8007. int refs;
  8008. /* readonly */
  8009. StringHash type;
  8010. /* readonly */
  8011. String typeName;
  8012. /* readonly */
  8013. uint useTimer;
  8014. /* readonly */
  8015. int weakRefs;
  8016. };
  8017. class ScriptInstance
  8018. {
  8019. // Methods:
  8020. void ApplyAttributes();
  8021. void ClearDelayedExecute(const String& = String ( ));
  8022. bool CreateObject(ScriptFile, const String&);
  8023. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8024. void DrawDebugGeometry(DebugRenderer, bool);
  8025. bool Execute(const String&, const Array<Variant> = null);
  8026. Variant GetAttribute(const String&) const;
  8027. ValueAnimation GetAttributeAnimation(const String&) const;
  8028. float GetAttributeAnimationSpeed(const String&) const;
  8029. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8030. Variant GetAttributeDefault(const String&) const;
  8031. bool GetInterceptNetworkUpdate(const String&) const;
  8032. bool HasMethod(const String&) const;
  8033. bool Load(File, bool = false);
  8034. bool Load(VectorBuffer&, bool = false);
  8035. bool LoadXML(const XMLElement&, bool = false);
  8036. void MarkNetworkUpdate() const;
  8037. void Remove();
  8038. void RemoveInstanceDefault();
  8039. void ResetToDefault();
  8040. bool Save(File) const;
  8041. bool Save(VectorBuffer&) const;
  8042. bool SaveXML(XMLElement&) const;
  8043. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8044. bool SetAttribute(const String&, const Variant&);
  8045. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8046. void SetAttributeAnimationSpeed(const String&, float);
  8047. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8048. void SetInterceptNetworkUpdate(const String&, bool);
  8049. // Properties:
  8050. bool animationEnabled;
  8051. /* readonly */
  8052. Array<Variant> attributeDefaults;
  8053. /* readonly */
  8054. Array<AttributeInfo> attributeInfos;
  8055. Array<Variant> attributes;
  8056. /* readonly */
  8057. StringHash baseType;
  8058. /* readonly */
  8059. String category;
  8060. String className;
  8061. bool enabled;
  8062. /* readonly */
  8063. bool enabledEffective;
  8064. /* readonly */
  8065. uint id;
  8066. /* readonly */
  8067. Node node;
  8068. /* readonly */
  8069. uint numAttributes;
  8070. ObjectAnimation objectAnimation;
  8071. /* readonly */
  8072. int refs;
  8073. ScriptFile scriptFile;
  8074. /* readonly */
  8075. ScriptObject scriptObject;
  8076. bool temporary;
  8077. /* readonly */
  8078. StringHash type;
  8079. /* readonly */
  8080. String typeName;
  8081. /* readonly */
  8082. int weakRefs;
  8083. };
  8084. class ScriptObject
  8085. {
  8086. };
  8087. class ScrollBar
  8088. {
  8089. // Methods:
  8090. void AddChild(UIElement);
  8091. void ApplyAttributes();
  8092. void BringToFront();
  8093. void ChangeValue(float);
  8094. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8095. void DisableLayoutUpdate();
  8096. IntVector2 ElementToScreen(const IntVector2&);
  8097. void EnableLayoutUpdate();
  8098. uint FindChild(UIElement) const;
  8099. Variant GetAttribute(const String&) const;
  8100. ValueAnimation GetAttributeAnimation(const String&) const;
  8101. float GetAttributeAnimationSpeed(const String&) const;
  8102. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8103. Variant GetAttributeDefault(const String&) const;
  8104. UIElement GetChild(const String&, bool = false) const;
  8105. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8106. Array<UIElement> GetChildren(bool = false) const;
  8107. UIElement GetElementEventSender() const;
  8108. bool GetInterceptNetworkUpdate(const String&) const;
  8109. uint GetNumChildren(bool) const;
  8110. void InsertChild(uint, UIElement);
  8111. bool IsInside(IntVector2, bool);
  8112. bool IsInsideCombined(IntVector2, bool);
  8113. bool Load(File, bool = false);
  8114. bool Load(VectorBuffer&, bool = false);
  8115. bool LoadChildXML(XMLFile, XMLFile = null);
  8116. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8117. bool LoadXML(File);
  8118. bool LoadXML(VectorBuffer&);
  8119. bool LoadXML(XMLFile, XMLFile);
  8120. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8121. bool LoadXML(const XMLElement&, bool = false);
  8122. void MarkNetworkUpdate() const;
  8123. void Remove();
  8124. void RemoveAllChildren();
  8125. void RemoveChild(UIElement, uint = 0);
  8126. void RemoveChild(uint);
  8127. void RemoveInstanceDefault();
  8128. void ResetDeepEnabled();
  8129. void ResetToDefault();
  8130. bool Save(File) const;
  8131. bool Save(VectorBuffer&) const;
  8132. bool SaveXML(File, const String& = "\t");
  8133. bool SaveXML(VectorBuffer&, const String& = "\t");
  8134. bool SaveXML(XMLElement&) const;
  8135. IntVector2 ScreenToElement(const IntVector2&);
  8136. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8137. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8138. bool SetAttribute(const String&, const Variant&);
  8139. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8140. void SetAttributeAnimationSpeed(const String&, float);
  8141. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8142. void SetDeepEnabled(bool);
  8143. void SetEnabledRecursive(bool);
  8144. void SetFixedHeight(int);
  8145. void SetFixedSize(int, int);
  8146. void SetFixedWidth(int);
  8147. void SetInterceptNetworkUpdate(const String&, bool);
  8148. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8149. void SetMaxSize(int, int);
  8150. void SetMinSize(int, int);
  8151. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8152. void SetPosition(int, int);
  8153. void SetSize(int, int);
  8154. bool SetStyle(const String&, XMLFile = null);
  8155. bool SetStyle(const XMLElement&);
  8156. bool SetStyleAuto(XMLFile = null);
  8157. void StepBack();
  8158. void StepForward();
  8159. void UpdateLayout();
  8160. const Variant& GetVar(const StringHash&);
  8161. // Properties:
  8162. bool animationEnabled;
  8163. /* readonly */
  8164. Array<Variant> attributeDefaults;
  8165. /* readonly */
  8166. Array<AttributeInfo> attributeInfos;
  8167. Array<Variant> attributes;
  8168. /* readonly */
  8169. Button backButton;
  8170. /* readonly */
  8171. StringHash baseType;
  8172. bool bringToBack;
  8173. bool bringToFront;
  8174. /* readonly */
  8175. String category;
  8176. /* readonly */
  8177. IntVector2 childOffset;
  8178. /* readonly */
  8179. Array<UIElement> children;
  8180. IntRect clipBorder;
  8181. bool clipChildren;
  8182. /* writeonly */
  8183. Color color;
  8184. /* readonly */
  8185. bool colorGradient;
  8186. Array<Color> colors;
  8187. /* readonly */
  8188. IntRect combinedScreenRect;
  8189. XMLFile defaultStyle;
  8190. /* readonly */
  8191. float derivedOpacity;
  8192. /* readonly */
  8193. uint dragButtonCombo;
  8194. /* readonly */
  8195. int dragButtonCount;
  8196. uint dragDropMode;
  8197. bool editable;
  8198. /* readonly */
  8199. float effectiveScrollStep;
  8200. bool elementEventSender;
  8201. bool enabled;
  8202. /* readonly */
  8203. bool enabledSelf;
  8204. /* readonly */
  8205. bool fixedHeight;
  8206. /* readonly */
  8207. bool fixedSize;
  8208. /* readonly */
  8209. bool fixedWidth;
  8210. bool focus;
  8211. FocusMode focusMode;
  8212. /* readonly */
  8213. Button forwardButton;
  8214. int height;
  8215. HorizontalAlignment horizontalAlignment;
  8216. /* readonly */
  8217. bool hovering;
  8218. int indent;
  8219. int indentSpacing;
  8220. /* readonly */
  8221. int indentWidth;
  8222. bool internal;
  8223. IntRect layoutBorder;
  8224. Vector2 layoutFlexScale;
  8225. LayoutMode layoutMode;
  8226. int layoutSpacing;
  8227. int maxHeight;
  8228. IntVector2 maxSize;
  8229. int maxWidth;
  8230. int minHeight;
  8231. IntVector2 minSize;
  8232. int minWidth;
  8233. String name;
  8234. /* readonly */
  8235. uint numAllChildren;
  8236. /* readonly */
  8237. uint numAttributes;
  8238. /* readonly */
  8239. uint numChildren;
  8240. ObjectAnimation objectAnimation;
  8241. float opacity;
  8242. Orientation orientation;
  8243. UIElement parent;
  8244. IntVector2 position;
  8245. int priority;
  8246. float range;
  8247. /* readonly */
  8248. int refs;
  8249. /* readonly */
  8250. UIElement root;
  8251. /* readonly */
  8252. IntVector2 screenPosition;
  8253. float scrollStep;
  8254. bool selected;
  8255. IntVector2 size;
  8256. /* readonly */
  8257. Slider slider;
  8258. bool sortChildren;
  8259. float stepFactor;
  8260. String style;
  8261. bool temporary;
  8262. TraversalMode traversalMode;
  8263. /* readonly */
  8264. StringHash type;
  8265. /* readonly */
  8266. String typeName;
  8267. bool useDerivedOpacity;
  8268. float value;
  8269. /* readonly */
  8270. VariantMap vars;
  8271. VerticalAlignment verticalAlignment;
  8272. bool visible;
  8273. /* readonly */
  8274. int weakRefs;
  8275. int width;
  8276. };
  8277. class ScrollView
  8278. {
  8279. // Methods:
  8280. void AddChild(UIElement);
  8281. void ApplyAttributes();
  8282. void BringToFront();
  8283. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8284. void DisableLayoutUpdate();
  8285. IntVector2 ElementToScreen(const IntVector2&);
  8286. void EnableLayoutUpdate();
  8287. uint FindChild(UIElement) const;
  8288. Variant GetAttribute(const String&) const;
  8289. ValueAnimation GetAttributeAnimation(const String&) const;
  8290. float GetAttributeAnimationSpeed(const String&) const;
  8291. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8292. Variant GetAttributeDefault(const String&) const;
  8293. UIElement GetChild(const String&, bool = false) const;
  8294. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8295. Array<UIElement> GetChildren(bool = false) const;
  8296. UIElement GetElementEventSender() const;
  8297. bool GetInterceptNetworkUpdate(const String&) const;
  8298. uint GetNumChildren(bool) const;
  8299. void InsertChild(uint, UIElement);
  8300. bool IsInside(IntVector2, bool);
  8301. bool IsInsideCombined(IntVector2, bool);
  8302. bool Load(File, bool = false);
  8303. bool Load(VectorBuffer&, bool = false);
  8304. bool LoadChildXML(XMLFile, XMLFile = null);
  8305. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8306. bool LoadXML(File);
  8307. bool LoadXML(VectorBuffer&);
  8308. bool LoadXML(XMLFile, XMLFile);
  8309. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8310. bool LoadXML(const XMLElement&, bool = false);
  8311. void MarkNetworkUpdate() const;
  8312. void Remove();
  8313. void RemoveAllChildren();
  8314. void RemoveChild(UIElement, uint = 0);
  8315. void RemoveChild(uint);
  8316. void RemoveInstanceDefault();
  8317. void ResetDeepEnabled();
  8318. void ResetToDefault();
  8319. bool Save(File) const;
  8320. bool Save(VectorBuffer&) const;
  8321. bool SaveXML(File, const String& = "\t");
  8322. bool SaveXML(VectorBuffer&, const String& = "\t");
  8323. bool SaveXML(XMLElement&) const;
  8324. IntVector2 ScreenToElement(const IntVector2&);
  8325. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8326. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8327. bool SetAttribute(const String&, const Variant&);
  8328. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8329. void SetAttributeAnimationSpeed(const String&, float);
  8330. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8331. void SetDeepEnabled(bool);
  8332. void SetEnabledRecursive(bool);
  8333. void SetFixedHeight(int);
  8334. void SetFixedSize(int, int);
  8335. void SetFixedWidth(int);
  8336. void SetInterceptNetworkUpdate(const String&, bool);
  8337. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8338. void SetMaxSize(int, int);
  8339. void SetMinSize(int, int);
  8340. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8341. void SetPosition(int, int);
  8342. void SetScrollBarsVisible(bool, bool);
  8343. void SetSize(int, int);
  8344. bool SetStyle(const String&, XMLFile = null);
  8345. bool SetStyle(const XMLElement&);
  8346. bool SetStyleAuto(XMLFile = null);
  8347. void SetViewPosition(int, int);
  8348. void UpdateLayout();
  8349. const Variant& GetVar(const StringHash&);
  8350. // Properties:
  8351. bool animationEnabled;
  8352. /* readonly */
  8353. Array<Variant> attributeDefaults;
  8354. /* readonly */
  8355. Array<AttributeInfo> attributeInfos;
  8356. Array<Variant> attributes;
  8357. bool autoDisableChildren;
  8358. float autoDisableThreshold;
  8359. /* readonly */
  8360. StringHash baseType;
  8361. bool bringToBack;
  8362. bool bringToFront;
  8363. /* readonly */
  8364. String category;
  8365. /* readonly */
  8366. IntVector2 childOffset;
  8367. /* readonly */
  8368. Array<UIElement> children;
  8369. IntRect clipBorder;
  8370. bool clipChildren;
  8371. /* writeonly */
  8372. Color color;
  8373. /* readonly */
  8374. bool colorGradient;
  8375. Array<Color> colors;
  8376. /* readonly */
  8377. IntRect combinedScreenRect;
  8378. UIElement contentElement;
  8379. XMLFile defaultStyle;
  8380. /* readonly */
  8381. float derivedOpacity;
  8382. /* readonly */
  8383. uint dragButtonCombo;
  8384. /* readonly */
  8385. int dragButtonCount;
  8386. uint dragDropMode;
  8387. bool editable;
  8388. bool elementEventSender;
  8389. bool enabled;
  8390. /* readonly */
  8391. bool enabledSelf;
  8392. /* readonly */
  8393. bool fixedHeight;
  8394. /* readonly */
  8395. bool fixedSize;
  8396. /* readonly */
  8397. bool fixedWidth;
  8398. bool focus;
  8399. FocusMode focusMode;
  8400. int height;
  8401. HorizontalAlignment horizontalAlignment;
  8402. /* readonly */
  8403. ScrollBar horizontalScrollBar;
  8404. /* readonly */
  8405. bool hovering;
  8406. int indent;
  8407. int indentSpacing;
  8408. /* readonly */
  8409. int indentWidth;
  8410. bool internal;
  8411. IntRect layoutBorder;
  8412. Vector2 layoutFlexScale;
  8413. LayoutMode layoutMode;
  8414. int layoutSpacing;
  8415. int maxHeight;
  8416. IntVector2 maxSize;
  8417. int maxWidth;
  8418. int minHeight;
  8419. IntVector2 minSize;
  8420. int minWidth;
  8421. String name;
  8422. /* readonly */
  8423. uint numAllChildren;
  8424. /* readonly */
  8425. uint numAttributes;
  8426. /* readonly */
  8427. uint numChildren;
  8428. ObjectAnimation objectAnimation;
  8429. float opacity;
  8430. float pageStep;
  8431. UIElement parent;
  8432. IntVector2 position;
  8433. int priority;
  8434. /* readonly */
  8435. int refs;
  8436. /* readonly */
  8437. UIElement root;
  8438. /* readonly */
  8439. IntVector2 screenPosition;
  8440. bool scrollBarsAutoVisible;
  8441. float scrollDeceleration;
  8442. /* readonly */
  8443. BorderImage scrollPanel;
  8444. float scrollSnapEpsilon;
  8445. float scrollStep;
  8446. bool selected;
  8447. IntVector2 size;
  8448. bool sortChildren;
  8449. String style;
  8450. bool temporary;
  8451. TraversalMode traversalMode;
  8452. /* readonly */
  8453. StringHash type;
  8454. /* readonly */
  8455. String typeName;
  8456. bool useDerivedOpacity;
  8457. /* readonly */
  8458. VariantMap vars;
  8459. VerticalAlignment verticalAlignment;
  8460. /* readonly */
  8461. ScrollBar verticalScrollBar;
  8462. IntVector2 viewPosition;
  8463. bool visible;
  8464. /* readonly */
  8465. int weakRefs;
  8466. int width;
  8467. };
  8468. class Serializable
  8469. {
  8470. // Methods:
  8471. void ApplyAttributes();
  8472. Variant GetAttribute(const String&) const;
  8473. Variant GetAttributeDefault(const String&) const;
  8474. bool GetInterceptNetworkUpdate(const String&) const;
  8475. bool Load(File, bool = false);
  8476. bool Load(VectorBuffer&, bool = false);
  8477. bool LoadXML(const XMLElement&, bool = false);
  8478. void MarkNetworkUpdate() const;
  8479. void RemoveInstanceDefault();
  8480. void ResetToDefault();
  8481. bool Save(File) const;
  8482. bool Save(VectorBuffer&) const;
  8483. bool SaveXML(XMLElement&) const;
  8484. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8485. bool SetAttribute(const String&, const Variant&);
  8486. void SetInterceptNetworkUpdate(const String&, bool);
  8487. // Properties:
  8488. /* readonly */
  8489. Array<Variant> attributeDefaults;
  8490. /* readonly */
  8491. Array<AttributeInfo> attributeInfos;
  8492. Array<Variant> attributes;
  8493. /* readonly */
  8494. StringHash baseType;
  8495. /* readonly */
  8496. String category;
  8497. /* readonly */
  8498. uint numAttributes;
  8499. /* readonly */
  8500. int refs;
  8501. bool temporary;
  8502. /* readonly */
  8503. StringHash type;
  8504. /* readonly */
  8505. String typeName;
  8506. /* readonly */
  8507. int weakRefs;
  8508. };
  8509. class Serializer
  8510. {
  8511. // Methods:
  8512. uint Write(Array<uint8>);
  8513. bool WriteBool(bool);
  8514. bool WriteBoundingBox(const BoundingBox&);
  8515. bool WriteByte(int8);
  8516. bool WriteColor(const Color&);
  8517. bool WriteFileID(const String&);
  8518. bool WriteFloat(float);
  8519. bool WriteInt(int);
  8520. bool WriteIntRect(const IntRect&);
  8521. bool WriteIntVector2(const IntVector2&);
  8522. bool WriteLine(const String&);
  8523. bool WriteMatrix3(const Matrix3&);
  8524. bool WriteMatrix3x4(const Matrix3x4&);
  8525. bool WriteMatrix4(const Matrix4&);
  8526. bool WriteNetID(uint);
  8527. bool WritePackedQuaternion(const Quaternion&);
  8528. bool WritePackedVector3(const Vector3&, float);
  8529. bool WriteQuaternion(const Quaternion&);
  8530. bool WriteShort(int16);
  8531. bool WriteString(const String&);
  8532. bool WriteStringHash(const StringHash&);
  8533. bool WriteUByte(uint8);
  8534. bool WriteUInt(uint);
  8535. bool WriteUShort(uint16);
  8536. bool WriteVLE(uint);
  8537. bool WriteVariant(const Variant&);
  8538. bool WriteVariantMap(const VariantMap&);
  8539. bool WriteVector2(const Vector2&);
  8540. bool WriteVector3(const Vector3&);
  8541. bool WriteVector4(const Vector4&);
  8542. bool WriteVectorBuffer(const VectorBuffer&);
  8543. };
  8544. class Skeleton
  8545. {
  8546. // Methods:
  8547. Bone GetBone(const String&) const;
  8548. void Reset();
  8549. // Properties:
  8550. /* readonly */
  8551. Array<Bone> bones;
  8552. /* readonly */
  8553. uint numBones;
  8554. /* readonly */
  8555. Bone rootBone;
  8556. };
  8557. class Skybox
  8558. {
  8559. // Methods:
  8560. void ApplyAttributes();
  8561. void ApplyMaterialList(const String& = String ( ));
  8562. void DrawDebugGeometry(DebugRenderer, bool);
  8563. Variant GetAttribute(const String&) const;
  8564. ValueAnimation GetAttributeAnimation(const String&) const;
  8565. float GetAttributeAnimationSpeed(const String&) const;
  8566. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8567. Variant GetAttributeDefault(const String&) const;
  8568. bool GetInterceptNetworkUpdate(const String&) const;
  8569. bool IsInView(Camera) const;
  8570. bool Load(File, bool = false);
  8571. bool Load(VectorBuffer&, bool = false);
  8572. bool LoadXML(const XMLElement&, bool = false);
  8573. void MarkNetworkUpdate() const;
  8574. void Remove();
  8575. void RemoveInstanceDefault();
  8576. void ResetToDefault();
  8577. bool Save(File) const;
  8578. bool Save(VectorBuffer&) const;
  8579. bool SaveXML(XMLElement&) const;
  8580. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8581. bool SetAttribute(const String&, const Variant&);
  8582. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8583. void SetAttributeAnimationSpeed(const String&, float);
  8584. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8585. void SetInterceptNetworkUpdate(const String&, bool);
  8586. // Properties:
  8587. bool animationEnabled;
  8588. /* readonly */
  8589. Array<Variant> attributeDefaults;
  8590. /* readonly */
  8591. Array<AttributeInfo> attributeInfos;
  8592. Array<Variant> attributes;
  8593. /* readonly */
  8594. StringHash baseType;
  8595. /* readonly */
  8596. BoundingBox boundingBox;
  8597. bool castShadows;
  8598. /* readonly */
  8599. String category;
  8600. float drawDistance;
  8601. bool enabled;
  8602. /* readonly */
  8603. bool enabledEffective;
  8604. /* readonly */
  8605. uint id;
  8606. /* readonly */
  8607. bool inView;
  8608. uint lightMask;
  8609. float lodBias;
  8610. /* writeonly */
  8611. Material material;
  8612. Array<Material> materials;
  8613. uint maxLights;
  8614. Model model;
  8615. /* readonly */
  8616. Node node;
  8617. /* readonly */
  8618. uint numAttributes;
  8619. /* readonly */
  8620. uint numGeometries;
  8621. ObjectAnimation objectAnimation;
  8622. bool occludee;
  8623. bool occluder;
  8624. /* readonly */
  8625. int refs;
  8626. float shadowDistance;
  8627. uint shadowMask;
  8628. bool temporary;
  8629. /* readonly */
  8630. StringHash type;
  8631. /* readonly */
  8632. String typeName;
  8633. uint viewMask;
  8634. /* readonly */
  8635. int weakRefs;
  8636. /* readonly */
  8637. BoundingBox worldBoundingBox;
  8638. /* readonly */
  8639. Zone zone;
  8640. uint zoneMask;
  8641. };
  8642. class Slider
  8643. {
  8644. // Methods:
  8645. void AddChild(UIElement);
  8646. void ApplyAttributes();
  8647. void BringToFront();
  8648. void ChangeValue(float);
  8649. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8650. void DisableLayoutUpdate();
  8651. IntVector2 ElementToScreen(const IntVector2&);
  8652. void EnableLayoutUpdate();
  8653. uint FindChild(UIElement) const;
  8654. Variant GetAttribute(const String&) const;
  8655. ValueAnimation GetAttributeAnimation(const String&) const;
  8656. float GetAttributeAnimationSpeed(const String&) const;
  8657. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8658. Variant GetAttributeDefault(const String&) const;
  8659. UIElement GetChild(const String&, bool = false) const;
  8660. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8661. Array<UIElement> GetChildren(bool = false) const;
  8662. UIElement GetElementEventSender() const;
  8663. bool GetInterceptNetworkUpdate(const String&) const;
  8664. uint GetNumChildren(bool) const;
  8665. void InsertChild(uint, UIElement);
  8666. bool IsInside(IntVector2, bool);
  8667. bool IsInsideCombined(IntVector2, bool);
  8668. bool Load(File, bool = false);
  8669. bool Load(VectorBuffer&, bool = false);
  8670. bool LoadChildXML(XMLFile, XMLFile = null);
  8671. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8672. bool LoadXML(File);
  8673. bool LoadXML(VectorBuffer&);
  8674. bool LoadXML(XMLFile, XMLFile);
  8675. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8676. bool LoadXML(const XMLElement&, bool = false);
  8677. void MarkNetworkUpdate() const;
  8678. void Remove();
  8679. void RemoveAllChildren();
  8680. void RemoveChild(UIElement, uint = 0);
  8681. void RemoveChild(uint);
  8682. void RemoveInstanceDefault();
  8683. void ResetDeepEnabled();
  8684. void ResetToDefault();
  8685. bool Save(File) const;
  8686. bool Save(VectorBuffer&) const;
  8687. bool SaveXML(File, const String& = "\t");
  8688. bool SaveXML(VectorBuffer&, const String& = "\t");
  8689. bool SaveXML(XMLElement&) const;
  8690. IntVector2 ScreenToElement(const IntVector2&);
  8691. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8692. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8693. bool SetAttribute(const String&, const Variant&);
  8694. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8695. void SetAttributeAnimationSpeed(const String&, float);
  8696. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8697. void SetDeepEnabled(bool);
  8698. void SetEnabledRecursive(bool);
  8699. void SetFixedHeight(int);
  8700. void SetFixedSize(int, int);
  8701. void SetFixedWidth(int);
  8702. void SetFullImageRect();
  8703. void SetHoverOffset(int, int);
  8704. void SetInterceptNetworkUpdate(const String&, bool);
  8705. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8706. void SetMaxSize(int, int);
  8707. void SetMinSize(int, int);
  8708. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8709. void SetPosition(int, int);
  8710. void SetSize(int, int);
  8711. bool SetStyle(const String&, XMLFile = null);
  8712. bool SetStyle(const XMLElement&);
  8713. bool SetStyleAuto(XMLFile = null);
  8714. void UpdateLayout();
  8715. const Variant& GetVar(const StringHash&);
  8716. // Properties:
  8717. bool animationEnabled;
  8718. /* readonly */
  8719. Array<Variant> attributeDefaults;
  8720. /* readonly */
  8721. Array<AttributeInfo> attributeInfos;
  8722. Array<Variant> attributes;
  8723. /* readonly */
  8724. StringHash baseType;
  8725. BlendMode blendMode;
  8726. IntRect border;
  8727. bool bringToBack;
  8728. bool bringToFront;
  8729. /* readonly */
  8730. String category;
  8731. /* readonly */
  8732. IntVector2 childOffset;
  8733. /* readonly */
  8734. Array<UIElement> children;
  8735. IntRect clipBorder;
  8736. bool clipChildren;
  8737. /* writeonly */
  8738. Color color;
  8739. /* readonly */
  8740. bool colorGradient;
  8741. Array<Color> colors;
  8742. /* readonly */
  8743. IntRect combinedScreenRect;
  8744. XMLFile defaultStyle;
  8745. /* readonly */
  8746. float derivedOpacity;
  8747. /* readonly */
  8748. uint dragButtonCombo;
  8749. /* readonly */
  8750. int dragButtonCount;
  8751. uint dragDropMode;
  8752. bool editable;
  8753. bool elementEventSender;
  8754. bool enabled;
  8755. /* readonly */
  8756. bool enabledSelf;
  8757. /* readonly */
  8758. bool fixedHeight;
  8759. /* readonly */
  8760. bool fixedSize;
  8761. /* readonly */
  8762. bool fixedWidth;
  8763. bool focus;
  8764. FocusMode focusMode;
  8765. int height;
  8766. HorizontalAlignment horizontalAlignment;
  8767. IntVector2 hoverOffset;
  8768. /* readonly */
  8769. bool hovering;
  8770. IntRect imageBorder;
  8771. IntRect imageRect;
  8772. int indent;
  8773. int indentSpacing;
  8774. /* readonly */
  8775. int indentWidth;
  8776. bool internal;
  8777. /* readonly */
  8778. BorderImage knob;
  8779. IntRect layoutBorder;
  8780. Vector2 layoutFlexScale;
  8781. LayoutMode layoutMode;
  8782. int layoutSpacing;
  8783. int maxHeight;
  8784. IntVector2 maxSize;
  8785. int maxWidth;
  8786. int minHeight;
  8787. IntVector2 minSize;
  8788. int minWidth;
  8789. String name;
  8790. /* readonly */
  8791. uint numAllChildren;
  8792. /* readonly */
  8793. uint numAttributes;
  8794. /* readonly */
  8795. uint numChildren;
  8796. ObjectAnimation objectAnimation;
  8797. float opacity;
  8798. Orientation orientation;
  8799. UIElement parent;
  8800. IntVector2 position;
  8801. int priority;
  8802. float range;
  8803. /* readonly */
  8804. int refs;
  8805. float repeatRate;
  8806. /* readonly */
  8807. UIElement root;
  8808. /* readonly */
  8809. IntVector2 screenPosition;
  8810. bool selected;
  8811. IntVector2 size;
  8812. bool sortChildren;
  8813. String style;
  8814. bool temporary;
  8815. Texture texture;
  8816. bool tiled;
  8817. TraversalMode traversalMode;
  8818. /* readonly */
  8819. StringHash type;
  8820. /* readonly */
  8821. String typeName;
  8822. bool useDerivedOpacity;
  8823. float value;
  8824. /* readonly */
  8825. VariantMap vars;
  8826. VerticalAlignment verticalAlignment;
  8827. bool visible;
  8828. /* readonly */
  8829. int weakRefs;
  8830. int width;
  8831. };
  8832. class SmoothedTransform
  8833. {
  8834. // Methods:
  8835. void ApplyAttributes();
  8836. void DrawDebugGeometry(DebugRenderer, bool);
  8837. Variant GetAttribute(const String&) const;
  8838. ValueAnimation GetAttributeAnimation(const String&) const;
  8839. float GetAttributeAnimationSpeed(const String&) const;
  8840. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8841. Variant GetAttributeDefault(const String&) const;
  8842. bool GetInterceptNetworkUpdate(const String&) const;
  8843. bool Load(File, bool = false);
  8844. bool Load(VectorBuffer&, bool = false);
  8845. bool LoadXML(const XMLElement&, bool = false);
  8846. void MarkNetworkUpdate() const;
  8847. void Remove();
  8848. void RemoveInstanceDefault();
  8849. void ResetToDefault();
  8850. bool Save(File) const;
  8851. bool Save(VectorBuffer&) const;
  8852. bool SaveXML(XMLElement&) const;
  8853. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8854. bool SetAttribute(const String&, const Variant&);
  8855. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8856. void SetAttributeAnimationSpeed(const String&, float);
  8857. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8858. void SetInterceptNetworkUpdate(const String&, bool);
  8859. void Update(float, float);
  8860. // Properties:
  8861. bool animationEnabled;
  8862. /* readonly */
  8863. Array<Variant> attributeDefaults;
  8864. /* readonly */
  8865. Array<AttributeInfo> attributeInfos;
  8866. Array<Variant> attributes;
  8867. /* readonly */
  8868. StringHash baseType;
  8869. /* readonly */
  8870. String category;
  8871. bool enabled;
  8872. /* readonly */
  8873. bool enabledEffective;
  8874. /* readonly */
  8875. uint id;
  8876. /* readonly */
  8877. bool inProgress;
  8878. /* readonly */
  8879. Node node;
  8880. /* readonly */
  8881. uint numAttributes;
  8882. ObjectAnimation objectAnimation;
  8883. /* readonly */
  8884. int refs;
  8885. Vector3 targetPosition;
  8886. Quaternion targetRotation;
  8887. Vector3 targetWorldPosition;
  8888. Quaternion targetWorldRotation;
  8889. bool temporary;
  8890. /* readonly */
  8891. StringHash type;
  8892. /* readonly */
  8893. String typeName;
  8894. /* readonly */
  8895. int weakRefs;
  8896. };
  8897. class Sound
  8898. {
  8899. // Methods:
  8900. bool Load(File);
  8901. bool Load(VectorBuffer&);
  8902. bool Save(File) const;
  8903. bool Save(VectorBuffer&) const;
  8904. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8905. // Properties:
  8906. /* readonly */
  8907. StringHash baseType;
  8908. /* readonly */
  8909. String category;
  8910. /* readonly */
  8911. bool compressed;
  8912. /* readonly */
  8913. float frequency;
  8914. /* readonly */
  8915. float length;
  8916. bool looped;
  8917. /* readonly */
  8918. uint memoryUse;
  8919. String name;
  8920. /* readonly */
  8921. int refs;
  8922. /* readonly */
  8923. uint sampleSize;
  8924. /* readonly */
  8925. bool sixteenBit;
  8926. /* readonly */
  8927. bool stereo;
  8928. /* readonly */
  8929. StringHash type;
  8930. /* readonly */
  8931. String typeName;
  8932. /* readonly */
  8933. uint useTimer;
  8934. /* readonly */
  8935. int weakRefs;
  8936. };
  8937. class SoundListener
  8938. {
  8939. // Methods:
  8940. void ApplyAttributes();
  8941. void DrawDebugGeometry(DebugRenderer, bool);
  8942. Variant GetAttribute(const String&) const;
  8943. ValueAnimation GetAttributeAnimation(const String&) const;
  8944. float GetAttributeAnimationSpeed(const String&) const;
  8945. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8946. Variant GetAttributeDefault(const String&) const;
  8947. bool GetInterceptNetworkUpdate(const String&) const;
  8948. bool Load(File, bool = false);
  8949. bool Load(VectorBuffer&, bool = false);
  8950. bool LoadXML(const XMLElement&, bool = false);
  8951. void MarkNetworkUpdate() const;
  8952. void Remove();
  8953. void RemoveInstanceDefault();
  8954. void ResetToDefault();
  8955. bool Save(File) const;
  8956. bool Save(VectorBuffer&) const;
  8957. bool SaveXML(XMLElement&) const;
  8958. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8959. bool SetAttribute(const String&, const Variant&);
  8960. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8961. void SetAttributeAnimationSpeed(const String&, float);
  8962. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8963. void SetInterceptNetworkUpdate(const String&, bool);
  8964. // Properties:
  8965. bool animationEnabled;
  8966. /* readonly */
  8967. Array<Variant> attributeDefaults;
  8968. /* readonly */
  8969. Array<AttributeInfo> attributeInfos;
  8970. Array<Variant> attributes;
  8971. /* readonly */
  8972. StringHash baseType;
  8973. /* readonly */
  8974. String category;
  8975. bool enabled;
  8976. /* readonly */
  8977. bool enabledEffective;
  8978. /* readonly */
  8979. uint id;
  8980. /* readonly */
  8981. Node node;
  8982. /* readonly */
  8983. uint numAttributes;
  8984. ObjectAnimation objectAnimation;
  8985. /* readonly */
  8986. int refs;
  8987. bool temporary;
  8988. /* readonly */
  8989. StringHash type;
  8990. /* readonly */
  8991. String typeName;
  8992. /* readonly */
  8993. int weakRefs;
  8994. };
  8995. class SoundSource
  8996. {
  8997. // Methods:
  8998. void ApplyAttributes();
  8999. void DrawDebugGeometry(DebugRenderer, bool);
  9000. Variant GetAttribute(const String&) const;
  9001. ValueAnimation GetAttributeAnimation(const String&) const;
  9002. float GetAttributeAnimationSpeed(const String&) const;
  9003. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9004. Variant GetAttributeDefault(const String&) const;
  9005. bool GetInterceptNetworkUpdate(const String&) const;
  9006. bool Load(File, bool = false);
  9007. bool Load(VectorBuffer&, bool = false);
  9008. bool LoadXML(const XMLElement&, bool = false);
  9009. void MarkNetworkUpdate() const;
  9010. void Play(Sound);
  9011. void Play(Sound, float);
  9012. void Play(Sound, float, float);
  9013. void Play(Sound, float, float, float);
  9014. void Remove();
  9015. void RemoveInstanceDefault();
  9016. void ResetToDefault();
  9017. bool Save(File) const;
  9018. bool Save(VectorBuffer&) const;
  9019. bool SaveXML(XMLElement&) const;
  9020. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9021. bool SetAttribute(const String&, const Variant&);
  9022. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9023. void SetAttributeAnimationSpeed(const String&, float);
  9024. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9025. void SetInterceptNetworkUpdate(const String&, bool);
  9026. void Stop();
  9027. // Properties:
  9028. bool animationEnabled;
  9029. /* readonly */
  9030. float attenuation;
  9031. /* readonly */
  9032. Array<Variant> attributeDefaults;
  9033. /* readonly */
  9034. Array<AttributeInfo> attributeInfos;
  9035. Array<Variant> attributes;
  9036. bool autoRemove;
  9037. /* readonly */
  9038. StringHash baseType;
  9039. /* readonly */
  9040. String category;
  9041. bool enabled;
  9042. /* readonly */
  9043. bool enabledEffective;
  9044. float frequency;
  9045. float gain;
  9046. /* readonly */
  9047. uint id;
  9048. /* readonly */
  9049. Node node;
  9050. /* readonly */
  9051. uint numAttributes;
  9052. ObjectAnimation objectAnimation;
  9053. float panning;
  9054. /* readonly */
  9055. bool playing;
  9056. /* readonly */
  9057. int refs;
  9058. /* readonly */
  9059. Sound sound;
  9060. String soundType;
  9061. bool temporary;
  9062. /* readonly */
  9063. float timePosition;
  9064. /* readonly */
  9065. StringHash type;
  9066. /* readonly */
  9067. String typeName;
  9068. /* readonly */
  9069. int weakRefs;
  9070. };
  9071. class SoundSource3D
  9072. {
  9073. // Methods:
  9074. void ApplyAttributes();
  9075. void DrawDebugGeometry(DebugRenderer, bool);
  9076. Variant GetAttribute(const String&) const;
  9077. ValueAnimation GetAttributeAnimation(const String&) const;
  9078. float GetAttributeAnimationSpeed(const String&) const;
  9079. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9080. Variant GetAttributeDefault(const String&) const;
  9081. bool GetInterceptNetworkUpdate(const String&) const;
  9082. bool Load(File, bool = false);
  9083. bool Load(VectorBuffer&, bool = false);
  9084. bool LoadXML(const XMLElement&, bool = false);
  9085. void MarkNetworkUpdate() const;
  9086. void Play(Sound);
  9087. void Play(Sound, float);
  9088. void Play(Sound, float, float);
  9089. void Play(Sound, float, float, float);
  9090. void Remove();
  9091. void RemoveInstanceDefault();
  9092. void ResetToDefault();
  9093. bool Save(File) const;
  9094. bool Save(VectorBuffer&) const;
  9095. bool SaveXML(XMLElement&) const;
  9096. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9097. void SetAngleAttenuation(float, float);
  9098. bool SetAttribute(const String&, const Variant&);
  9099. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9100. void SetAttributeAnimationSpeed(const String&, float);
  9101. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9102. void SetDistanceAttenuation(float, float, float);
  9103. void SetInterceptNetworkUpdate(const String&, bool);
  9104. void Stop();
  9105. // Properties:
  9106. bool animationEnabled;
  9107. /* readonly */
  9108. float attenuation;
  9109. /* readonly */
  9110. Array<Variant> attributeDefaults;
  9111. /* readonly */
  9112. Array<AttributeInfo> attributeInfos;
  9113. Array<Variant> attributes;
  9114. bool autoRemove;
  9115. /* readonly */
  9116. StringHash baseType;
  9117. /* readonly */
  9118. String category;
  9119. bool enabled;
  9120. /* readonly */
  9121. bool enabledEffective;
  9122. float farDistance;
  9123. float frequency;
  9124. float gain;
  9125. /* readonly */
  9126. uint id;
  9127. float innerAngle;
  9128. float nearDistance;
  9129. /* readonly */
  9130. Node node;
  9131. /* readonly */
  9132. uint numAttributes;
  9133. ObjectAnimation objectAnimation;
  9134. float outerAngle;
  9135. float panning;
  9136. /* readonly */
  9137. bool playing;
  9138. /* readonly */
  9139. int refs;
  9140. float rolloffFactor;
  9141. /* readonly */
  9142. Sound sound;
  9143. String soundType;
  9144. bool temporary;
  9145. /* readonly */
  9146. float timePosition;
  9147. /* readonly */
  9148. StringHash type;
  9149. /* readonly */
  9150. String typeName;
  9151. /* readonly */
  9152. int weakRefs;
  9153. };
  9154. class Sphere
  9155. {
  9156. // Methods:
  9157. void Clear();
  9158. void Define(const BoundingBox&);
  9159. void Define(const Frustum&);
  9160. void Define(const Polyhedron&);
  9161. void Define(const Sphere&);
  9162. void Define(const Vector3&, float);
  9163. float Distance(const Vector3&) const;
  9164. Intersection IsInside(const BoundingBox&) const;
  9165. Intersection IsInside(const Sphere&) const;
  9166. Intersection IsInside(const Vector3&) const;
  9167. void Merge(const BoundingBox&);
  9168. void Merge(const Frustum&);
  9169. void Merge(const Sphere&);
  9170. void Merge(const Vector3&);
  9171. // Properties:
  9172. Vector3 center;
  9173. bool defined;
  9174. float radius;
  9175. };
  9176. class Spline
  9177. {
  9178. // Methods:
  9179. void AddKnot(const Variant&);
  9180. void AddKnot(const Variant&, uint);
  9181. void Clear();
  9182. Variant GetPoint(float);
  9183. void RemoveKnot();
  9184. void RemoveKnot(uint);
  9185. // Properties:
  9186. InterpolationMode interpolationMode;
  9187. Array<Variant> knot;
  9188. Array<Variant> knots;
  9189. };
  9190. class SplinePath
  9191. {
  9192. // Methods:
  9193. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  9194. void ApplyAttributes();
  9195. void ClearControlPoints();
  9196. void DrawDebugGeometry(DebugRenderer, bool);
  9197. Variant GetAttribute(const String&) const;
  9198. ValueAnimation GetAttributeAnimation(const String&) const;
  9199. float GetAttributeAnimationSpeed(const String&) const;
  9200. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9201. Variant GetAttributeDefault(const String&) const;
  9202. bool GetInterceptNetworkUpdate(const String&) const;
  9203. Vector3 GetPoint(float) const;
  9204. bool Load(File, bool = false);
  9205. bool Load(VectorBuffer&, bool = false);
  9206. bool LoadXML(const XMLElement&, bool = false);
  9207. void MarkNetworkUpdate() const;
  9208. void Move(float);
  9209. void Remove();
  9210. void RemoveControlPoint(Node);
  9211. void RemoveInstanceDefault();
  9212. void Reset();
  9213. void ResetToDefault();
  9214. bool Save(File) const;
  9215. bool Save(VectorBuffer&) const;
  9216. bool SaveXML(XMLElement&) const;
  9217. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9218. bool SetAttribute(const String&, const Variant&);
  9219. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9220. void SetAttributeAnimationSpeed(const String&, float);
  9221. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9222. void SetInterceptNetworkUpdate(const String&, bool);
  9223. // Properties:
  9224. bool animationEnabled;
  9225. /* readonly */
  9226. Array<Variant> attributeDefaults;
  9227. /* readonly */
  9228. Array<AttributeInfo> attributeInfos;
  9229. Array<Variant> attributes;
  9230. /* readonly */
  9231. StringHash baseType;
  9232. /* readonly */
  9233. String category;
  9234. Node controlledNode;
  9235. bool enabled;
  9236. /* readonly */
  9237. bool enabledEffective;
  9238. /* readonly */
  9239. uint id;
  9240. InterpolationMode interpolationMode;
  9241. /* readonly */
  9242. bool isFinished;
  9243. /* readonly */
  9244. Node node;
  9245. /* readonly */
  9246. uint numAttributes;
  9247. ObjectAnimation objectAnimation;
  9248. Vector3 position;
  9249. /* readonly */
  9250. int refs;
  9251. float speed;
  9252. bool temporary;
  9253. /* readonly */
  9254. StringHash type;
  9255. /* readonly */
  9256. String typeName;
  9257. /* readonly */
  9258. int weakRefs;
  9259. };
  9260. class Sprite
  9261. {
  9262. // Methods:
  9263. void AddChild(UIElement);
  9264. void ApplyAttributes();
  9265. void BringToFront();
  9266. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9267. uint FindChild(UIElement) const;
  9268. Variant GetAttribute(const String&) const;
  9269. ValueAnimation GetAttributeAnimation(const String&) const;
  9270. float GetAttributeAnimationSpeed(const String&) const;
  9271. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9272. Variant GetAttributeDefault(const String&) const;
  9273. UIElement GetChild(const String&, bool = false) const;
  9274. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9275. Array<UIElement> GetChildren(bool = false) const;
  9276. UIElement GetElementEventSender() const;
  9277. bool GetInterceptNetworkUpdate(const String&) const;
  9278. uint GetNumChildren(bool) const;
  9279. void InsertChild(uint, UIElement);
  9280. bool Load(File, bool = false);
  9281. bool Load(VectorBuffer&, bool = false);
  9282. bool LoadChildXML(XMLFile, XMLFile = null);
  9283. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9284. bool LoadXML(File);
  9285. bool LoadXML(VectorBuffer&);
  9286. bool LoadXML(XMLFile, XMLFile);
  9287. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9288. bool LoadXML(const XMLElement&, bool = false);
  9289. void MarkNetworkUpdate() const;
  9290. void Remove();
  9291. void RemoveAllChildren();
  9292. void RemoveChild(UIElement, uint = 0);
  9293. void RemoveChild(uint);
  9294. void RemoveInstanceDefault();
  9295. void ResetToDefault();
  9296. bool Save(File) const;
  9297. bool Save(VectorBuffer&) const;
  9298. bool SaveXML(File, const String& = "\t");
  9299. bool SaveXML(VectorBuffer&, const String& = "\t");
  9300. bool SaveXML(XMLElement&) const;
  9301. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9302. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9303. bool SetAttribute(const String&, const Variant&);
  9304. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9305. void SetAttributeAnimationSpeed(const String&, float);
  9306. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9307. void SetFixedHeight(int);
  9308. void SetFixedSize(int, int);
  9309. void SetFixedWidth(int);
  9310. void SetFullImageRect();
  9311. void SetHotSpot(int, int);
  9312. void SetInterceptNetworkUpdate(const String&, bool);
  9313. void SetMaxSize(int, int);
  9314. void SetMinSize(int, int);
  9315. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9316. void SetPosition(float, float);
  9317. void SetScale(float);
  9318. void SetScale(float, float);
  9319. void SetSize(int, int);
  9320. bool SetStyle(const String&, XMLFile = null);
  9321. bool SetStyle(const XMLElement&);
  9322. bool SetStyleAuto(XMLFile = null);
  9323. const Variant& GetVar(const StringHash&);
  9324. // Properties:
  9325. bool animationEnabled;
  9326. /* readonly */
  9327. Array<Variant> attributeDefaults;
  9328. /* readonly */
  9329. Array<AttributeInfo> attributeInfos;
  9330. Array<Variant> attributes;
  9331. /* readonly */
  9332. StringHash baseType;
  9333. BlendMode blendMode;
  9334. bool bringToBack;
  9335. bool bringToFront;
  9336. /* readonly */
  9337. String category;
  9338. /* readonly */
  9339. Array<UIElement> children;
  9340. /* writeonly */
  9341. Color color;
  9342. /* readonly */
  9343. bool colorGradient;
  9344. Array<Color> colors;
  9345. XMLFile defaultStyle;
  9346. /* readonly */
  9347. float derivedOpacity;
  9348. /* readonly */
  9349. uint dragButtonCombo;
  9350. /* readonly */
  9351. int dragButtonCount;
  9352. bool elementEventSender;
  9353. int height;
  9354. HorizontalAlignment horizontalAlignment;
  9355. IntVector2 hotSpot;
  9356. IntRect imageRect;
  9357. String name;
  9358. /* readonly */
  9359. uint numAllChildren;
  9360. /* readonly */
  9361. uint numAttributes;
  9362. /* readonly */
  9363. uint numChildren;
  9364. ObjectAnimation objectAnimation;
  9365. float opacity;
  9366. UIElement parent;
  9367. Vector2 position;
  9368. int priority;
  9369. /* readonly */
  9370. int refs;
  9371. /* readonly */
  9372. UIElement root;
  9373. float rotation;
  9374. Vector2 scale;
  9375. IntVector2 size;
  9376. bool sortChildren;
  9377. String style;
  9378. bool temporary;
  9379. Texture texture;
  9380. /* readonly */
  9381. StringHash type;
  9382. /* readonly */
  9383. String typeName;
  9384. bool useDerivedOpacity;
  9385. /* readonly */
  9386. VariantMap vars;
  9387. VerticalAlignment verticalAlignment;
  9388. bool visible;
  9389. /* readonly */
  9390. int weakRefs;
  9391. int width;
  9392. };
  9393. class Sprite2D
  9394. {
  9395. // Methods:
  9396. bool Load(File);
  9397. bool Load(VectorBuffer&);
  9398. bool Save(File) const;
  9399. bool Save(VectorBuffer&) const;
  9400. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9401. // Properties:
  9402. /* readonly */
  9403. StringHash baseType;
  9404. /* readonly */
  9405. String category;
  9406. Vector2 hotSpot;
  9407. /* readonly */
  9408. uint memoryUse;
  9409. String name;
  9410. IntVector2 offset;
  9411. IntRect rectangle;
  9412. /* readonly */
  9413. int refs;
  9414. Texture2D texture;
  9415. /* readonly */
  9416. StringHash type;
  9417. /* readonly */
  9418. String typeName;
  9419. /* readonly */
  9420. uint useTimer;
  9421. /* readonly */
  9422. int weakRefs;
  9423. };
  9424. class SpriteSheet2D
  9425. {
  9426. // Methods:
  9427. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  9428. Sprite2D GetSprite(const String&);
  9429. bool Load(File);
  9430. bool Load(VectorBuffer&);
  9431. bool Save(File) const;
  9432. bool Save(VectorBuffer&) const;
  9433. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9434. // Properties:
  9435. /* readonly */
  9436. StringHash baseType;
  9437. /* readonly */
  9438. String category;
  9439. /* readonly */
  9440. uint memoryUse;
  9441. String name;
  9442. /* readonly */
  9443. int refs;
  9444. /* readonly */
  9445. Texture2D texture;
  9446. /* readonly */
  9447. StringHash type;
  9448. /* readonly */
  9449. String typeName;
  9450. /* readonly */
  9451. uint useTimer;
  9452. /* readonly */
  9453. int weakRefs;
  9454. };
  9455. class StaticModel
  9456. {
  9457. // Methods:
  9458. void ApplyAttributes();
  9459. void ApplyMaterialList(const String& = String ( ));
  9460. void DrawDebugGeometry(DebugRenderer, bool);
  9461. Variant GetAttribute(const String&) const;
  9462. ValueAnimation GetAttributeAnimation(const String&) const;
  9463. float GetAttributeAnimationSpeed(const String&) const;
  9464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9465. Variant GetAttributeDefault(const String&) const;
  9466. bool GetInterceptNetworkUpdate(const String&) const;
  9467. bool IsInView(Camera) const;
  9468. bool IsInside(const Vector3&) const;
  9469. bool IsInsideLocal(const Vector3&) const;
  9470. bool Load(File, bool = false);
  9471. bool Load(VectorBuffer&, bool = false);
  9472. bool LoadXML(const XMLElement&, bool = false);
  9473. void MarkNetworkUpdate() const;
  9474. void Remove();
  9475. void RemoveInstanceDefault();
  9476. void ResetToDefault();
  9477. bool Save(File) const;
  9478. bool Save(VectorBuffer&) const;
  9479. bool SaveXML(XMLElement&) const;
  9480. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9481. bool SetAttribute(const String&, const Variant&);
  9482. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9483. void SetAttributeAnimationSpeed(const String&, float);
  9484. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9485. void SetInterceptNetworkUpdate(const String&, bool);
  9486. // Properties:
  9487. bool animationEnabled;
  9488. /* readonly */
  9489. Array<Variant> attributeDefaults;
  9490. /* readonly */
  9491. Array<AttributeInfo> attributeInfos;
  9492. Array<Variant> attributes;
  9493. /* readonly */
  9494. StringHash baseType;
  9495. /* readonly */
  9496. BoundingBox boundingBox;
  9497. bool castShadows;
  9498. /* readonly */
  9499. String category;
  9500. float drawDistance;
  9501. bool enabled;
  9502. /* readonly */
  9503. bool enabledEffective;
  9504. /* readonly */
  9505. uint id;
  9506. /* readonly */
  9507. bool inView;
  9508. uint lightMask;
  9509. float lodBias;
  9510. /* writeonly */
  9511. Material material;
  9512. Array<Material> materials;
  9513. uint maxLights;
  9514. Model model;
  9515. /* readonly */
  9516. Node node;
  9517. /* readonly */
  9518. uint numAttributes;
  9519. /* readonly */
  9520. uint numGeometries;
  9521. ObjectAnimation objectAnimation;
  9522. bool occludee;
  9523. bool occluder;
  9524. uint occlusionLodLevel;
  9525. /* readonly */
  9526. int refs;
  9527. float shadowDistance;
  9528. uint shadowMask;
  9529. bool temporary;
  9530. /* readonly */
  9531. StringHash type;
  9532. /* readonly */
  9533. String typeName;
  9534. uint viewMask;
  9535. /* readonly */
  9536. int weakRefs;
  9537. /* readonly */
  9538. BoundingBox worldBoundingBox;
  9539. uint zoneMask;
  9540. };
  9541. class StaticModelGroup
  9542. {
  9543. // Methods:
  9544. void AddInstanceNode(Node);
  9545. void ApplyAttributes();
  9546. void ApplyMaterialList(const String& = String ( ));
  9547. void DrawDebugGeometry(DebugRenderer, bool);
  9548. Variant GetAttribute(const String&) const;
  9549. ValueAnimation GetAttributeAnimation(const String&) const;
  9550. float GetAttributeAnimationSpeed(const String&) const;
  9551. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9552. Variant GetAttributeDefault(const String&) const;
  9553. bool GetInterceptNetworkUpdate(const String&) const;
  9554. bool IsInView(Camera) const;
  9555. bool Load(File, bool = false);
  9556. bool Load(VectorBuffer&, bool = false);
  9557. bool LoadXML(const XMLElement&, bool = false);
  9558. void MarkNetworkUpdate() const;
  9559. void Remove();
  9560. void RemoveAllInstanceNodes();
  9561. void RemoveInstanceDefault();
  9562. void RemoveInstanceNode(Node);
  9563. void ResetToDefault();
  9564. bool Save(File) const;
  9565. bool Save(VectorBuffer&) const;
  9566. bool SaveXML(XMLElement&) const;
  9567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9568. bool SetAttribute(const String&, const Variant&);
  9569. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9570. void SetAttributeAnimationSpeed(const String&, float);
  9571. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9572. void SetInterceptNetworkUpdate(const String&, bool);
  9573. // Properties:
  9574. bool animationEnabled;
  9575. /* readonly */
  9576. Array<Variant> attributeDefaults;
  9577. /* readonly */
  9578. Array<AttributeInfo> attributeInfos;
  9579. Array<Variant> attributes;
  9580. /* readonly */
  9581. StringHash baseType;
  9582. /* readonly */
  9583. BoundingBox boundingBox;
  9584. bool castShadows;
  9585. /* readonly */
  9586. String category;
  9587. float drawDistance;
  9588. bool enabled;
  9589. /* readonly */
  9590. bool enabledEffective;
  9591. /* readonly */
  9592. uint id;
  9593. /* readonly */
  9594. bool inView;
  9595. /* readonly */
  9596. Array<Node> instanceNodes;
  9597. uint lightMask;
  9598. float lodBias;
  9599. /* writeonly */
  9600. Material material;
  9601. Array<Material> materials;
  9602. uint maxLights;
  9603. Model model;
  9604. /* readonly */
  9605. Node node;
  9606. /* readonly */
  9607. uint numAttributes;
  9608. /* readonly */
  9609. uint numGeometries;
  9610. /* readonly */
  9611. uint numInstanceNodes;
  9612. ObjectAnimation objectAnimation;
  9613. bool occludee;
  9614. bool occluder;
  9615. uint occlusionLodLevel;
  9616. /* readonly */
  9617. int refs;
  9618. float shadowDistance;
  9619. uint shadowMask;
  9620. bool temporary;
  9621. /* readonly */
  9622. StringHash type;
  9623. /* readonly */
  9624. String typeName;
  9625. uint viewMask;
  9626. /* readonly */
  9627. int weakRefs;
  9628. /* readonly */
  9629. BoundingBox worldBoundingBox;
  9630. /* readonly */
  9631. Zone zone;
  9632. uint zoneMask;
  9633. };
  9634. class StaticSprite2D
  9635. {
  9636. // Methods:
  9637. void ApplyAttributes();
  9638. void DrawDebugGeometry(DebugRenderer, bool);
  9639. Variant GetAttribute(const String&) const;
  9640. ValueAnimation GetAttributeAnimation(const String&) const;
  9641. float GetAttributeAnimationSpeed(const String&) const;
  9642. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9643. Variant GetAttributeDefault(const String&) const;
  9644. bool GetInterceptNetworkUpdate(const String&) const;
  9645. bool IsInView(Camera) const;
  9646. bool Load(File, bool = false);
  9647. bool Load(VectorBuffer&, bool = false);
  9648. bool LoadXML(const XMLElement&, bool = false);
  9649. void MarkNetworkUpdate() const;
  9650. void Remove();
  9651. void RemoveInstanceDefault();
  9652. void ResetToDefault();
  9653. bool Save(File) const;
  9654. bool Save(VectorBuffer&) const;
  9655. bool SaveXML(XMLElement&) const;
  9656. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9657. bool SetAttribute(const String&, const Variant&);
  9658. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9659. void SetAttributeAnimationSpeed(const String&, float);
  9660. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9661. void SetFlip(bool, bool);
  9662. void SetInterceptNetworkUpdate(const String&, bool);
  9663. // Properties:
  9664. float alpha;
  9665. bool animationEnabled;
  9666. /* readonly */
  9667. Array<Variant> attributeDefaults;
  9668. /* readonly */
  9669. Array<AttributeInfo> attributeInfos;
  9670. Array<Variant> attributes;
  9671. /* readonly */
  9672. StringHash baseType;
  9673. BlendMode blendMode;
  9674. /* readonly */
  9675. BoundingBox boundingBox;
  9676. bool castShadows;
  9677. /* readonly */
  9678. String category;
  9679. Color color;
  9680. Material customMaterial;
  9681. float drawDistance;
  9682. bool enabled;
  9683. /* readonly */
  9684. bool enabledEffective;
  9685. bool flipX;
  9686. bool flipY;
  9687. Vector2 hotSpot;
  9688. /* readonly */
  9689. uint id;
  9690. /* readonly */
  9691. bool inView;
  9692. int layer;
  9693. uint lightMask;
  9694. float lodBias;
  9695. uint maxLights;
  9696. /* readonly */
  9697. Node node;
  9698. /* readonly */
  9699. uint numAttributes;
  9700. ObjectAnimation objectAnimation;
  9701. bool occludee;
  9702. bool occluder;
  9703. int orderInLayer;
  9704. /* readonly */
  9705. int refs;
  9706. float shadowDistance;
  9707. uint shadowMask;
  9708. Sprite2D sprite;
  9709. bool temporary;
  9710. /* readonly */
  9711. StringHash type;
  9712. /* readonly */
  9713. String typeName;
  9714. bool useHotSpot;
  9715. uint viewMask;
  9716. /* readonly */
  9717. int weakRefs;
  9718. /* readonly */
  9719. BoundingBox worldBoundingBox;
  9720. uint zoneMask;
  9721. };
  9722. class String
  9723. {
  9724. // Methods:
  9725. void AppendUTF8(uint);
  9726. uint AtUTF8(uint) const;
  9727. uint ByteOffsetUTF8(uint) const;
  9728. void Clear();
  9729. int Compare(const String&, bool = true) const;
  9730. bool Contains(const String&, bool = true) const;
  9731. bool Contains(uint8, bool = true) const;
  9732. bool EndsWith(const String&, bool = true) const;
  9733. uint Find(const String&, uint = 0, bool = true) const;
  9734. uint Find(uint8, uint = 0, bool = true) const;
  9735. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  9736. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  9737. void Join(Array<String>&, const String&);
  9738. uint NextUTF8Char(uint&) const;
  9739. void Replace(const String&, const String&, bool = true);
  9740. void Replace(uint8, uint8, bool = true);
  9741. void ReplaceUTF8(uint, uint);
  9742. String Replaced(const String&, const String&, bool = true) const;
  9743. String Replaced(uint8, uint8, bool = true) const;
  9744. void Resize(uint);
  9745. void SetUTF8FromLatin1(const String&);
  9746. Array<String> Split(uint8) const;
  9747. bool StartsWith(const String&, bool = true) const;
  9748. String Substring(uint) const;
  9749. String Substring(uint, uint) const;
  9750. String SubstringUTF8(uint) const;
  9751. String SubstringUTF8(uint, uint) const;
  9752. bool ToBool() const;
  9753. Color ToColor() const;
  9754. float ToFloat() const;
  9755. int ToInt() const;
  9756. IntRect ToIntRect() const;
  9757. IntVector2 ToIntVector2() const;
  9758. String ToLower() const;
  9759. Matrix3 ToMatrix3() const;
  9760. Matrix3x4 ToMatrix3x4() const;
  9761. Matrix4 ToMatrix4() const;
  9762. Quaternion ToQuaternion() const;
  9763. uint ToUInt() const;
  9764. String ToUpper() const;
  9765. Vector2 ToVector2() const;
  9766. Vector3 ToVector3() const;
  9767. Vector4 ToVector4(bool = false) const;
  9768. Variant ToVectorVariant() const;
  9769. String Trimmed() const;
  9770. // Properties:
  9771. /* readonly */
  9772. bool empty;
  9773. /* readonly */
  9774. uint length;
  9775. /* readonly */
  9776. uint utf8Length;
  9777. };
  9778. class StringHash
  9779. {
  9780. // Methods:
  9781. String ToString() const;
  9782. // Properties:
  9783. /* readonly */
  9784. uint value;
  9785. };
  9786. class Technique
  9787. {
  9788. // Methods:
  9789. Pass CreatePass(const String&);
  9790. Pass GetPass(const String&);
  9791. Pass GetSupportedPass(const String&);
  9792. bool HasPass(const String&) const;
  9793. bool Load(File);
  9794. bool Load(VectorBuffer&);
  9795. void RemovePass(const String&);
  9796. bool Save(File) const;
  9797. bool Save(VectorBuffer&) const;
  9798. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9799. // Properties:
  9800. /* readonly */
  9801. StringHash baseType;
  9802. /* readonly */
  9803. String category;
  9804. bool desktop;
  9805. /* readonly */
  9806. uint memoryUse;
  9807. String name;
  9808. /* readonly */
  9809. uint numPasses;
  9810. /* readonly */
  9811. Array<String> passNames;
  9812. /* readonly */
  9813. Array<Pass> passes;
  9814. /* readonly */
  9815. int refs;
  9816. /* readonly */
  9817. bool supported;
  9818. /* readonly */
  9819. StringHash type;
  9820. /* readonly */
  9821. String typeName;
  9822. /* readonly */
  9823. uint useTimer;
  9824. /* readonly */
  9825. int weakRefs;
  9826. };
  9827. class TechniqueEntry
  9828. {
  9829. // Properties:
  9830. float lodDistance;
  9831. int qualityLevel;
  9832. Technique technique;
  9833. };
  9834. class Terrain
  9835. {
  9836. // Methods:
  9837. void ApplyAttributes();
  9838. void ApplyHeightMap();
  9839. void DrawDebugGeometry(DebugRenderer, bool);
  9840. Variant GetAttribute(const String&) const;
  9841. ValueAnimation GetAttributeAnimation(const String&) const;
  9842. float GetAttributeAnimationSpeed(const String&) const;
  9843. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9844. Variant GetAttributeDefault(const String&) const;
  9845. float GetHeight(const Vector3&) const;
  9846. bool GetInterceptNetworkUpdate(const String&) const;
  9847. Vector3 GetNormal(const Vector3&) const;
  9848. TerrainPatch GetPatch(int, int) 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 RemoveInstanceDefault();
  9855. void ResetToDefault();
  9856. bool Save(File) const;
  9857. bool Save(VectorBuffer&) const;
  9858. bool SaveXML(XMLElement&) const;
  9859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9860. bool SetAttribute(const String&, const Variant&);
  9861. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9862. void SetAttributeAnimationSpeed(const String&, float);
  9863. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9864. void SetInterceptNetworkUpdate(const String&, bool);
  9865. IntVector2 WorldToHeightMap(const Vector3&) const;
  9866. // Properties:
  9867. bool animationEnabled;
  9868. /* readonly */
  9869. Array<Variant> attributeDefaults;
  9870. /* readonly */
  9871. Array<AttributeInfo> attributeInfos;
  9872. Array<Variant> attributes;
  9873. /* readonly */
  9874. StringHash baseType;
  9875. bool castShadows;
  9876. /* readonly */
  9877. String category;
  9878. float drawDistance;
  9879. bool enabled;
  9880. /* readonly */
  9881. bool enabledEffective;
  9882. Image heightMap;
  9883. /* readonly */
  9884. uint id;
  9885. uint lightMask;
  9886. float lodBias;
  9887. Material material;
  9888. uint maxLights;
  9889. /* readonly */
  9890. Node node;
  9891. /* readonly */
  9892. uint numAttributes;
  9893. /* readonly */
  9894. IntVector2 numPatches;
  9895. /* readonly */
  9896. IntVector2 numVertices;
  9897. ObjectAnimation objectAnimation;
  9898. bool occludee;
  9899. bool occluder;
  9900. int patchSize;
  9901. /* readonly */
  9902. Array<TerrainPatch> patches;
  9903. /* readonly */
  9904. int refs;
  9905. float shadowDistance;
  9906. uint shadowMask;
  9907. bool smoothing;
  9908. Vector3 spacing;
  9909. bool temporary;
  9910. /* readonly */
  9911. StringHash type;
  9912. /* readonly */
  9913. String typeName;
  9914. uint viewMask;
  9915. /* readonly */
  9916. int weakRefs;
  9917. uint zoneMask;
  9918. };
  9919. class TerrainPatch
  9920. {
  9921. // Methods:
  9922. void ApplyAttributes();
  9923. void DrawDebugGeometry(DebugRenderer, bool);
  9924. Variant GetAttribute(const String&) const;
  9925. ValueAnimation GetAttributeAnimation(const String&) const;
  9926. float GetAttributeAnimationSpeed(const String&) const;
  9927. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9928. Variant GetAttributeDefault(const String&) const;
  9929. bool GetInterceptNetworkUpdate(const String&) const;
  9930. bool IsInView(Camera) const;
  9931. bool Load(File, bool = false);
  9932. bool Load(VectorBuffer&, bool = false);
  9933. bool LoadXML(const XMLElement&, bool = false);
  9934. void MarkNetworkUpdate() const;
  9935. void Remove();
  9936. void RemoveInstanceDefault();
  9937. void ResetToDefault();
  9938. bool Save(File) const;
  9939. bool Save(VectorBuffer&) const;
  9940. bool SaveXML(XMLElement&) const;
  9941. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9942. bool SetAttribute(const String&, const Variant&);
  9943. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9944. void SetAttributeAnimationSpeed(const String&, float);
  9945. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9946. void SetInterceptNetworkUpdate(const String&, bool);
  9947. // Properties:
  9948. bool animationEnabled;
  9949. /* readonly */
  9950. Array<Variant> attributeDefaults;
  9951. /* readonly */
  9952. Array<AttributeInfo> attributeInfos;
  9953. Array<Variant> attributes;
  9954. /* readonly */
  9955. StringHash baseType;
  9956. /* readonly */
  9957. BoundingBox boundingBox;
  9958. bool castShadows;
  9959. /* readonly */
  9960. String category;
  9961. float drawDistance;
  9962. bool enabled;
  9963. /* readonly */
  9964. bool enabledEffective;
  9965. /* readonly */
  9966. uint id;
  9967. /* readonly */
  9968. bool inView;
  9969. uint lightMask;
  9970. float lodBias;
  9971. uint maxLights;
  9972. /* readonly */
  9973. Node node;
  9974. /* readonly */
  9975. uint numAttributes;
  9976. ObjectAnimation objectAnimation;
  9977. bool occludee;
  9978. bool occluder;
  9979. /* readonly */
  9980. int refs;
  9981. float shadowDistance;
  9982. uint shadowMask;
  9983. bool temporary;
  9984. /* readonly */
  9985. StringHash type;
  9986. /* readonly */
  9987. String typeName;
  9988. uint viewMask;
  9989. /* readonly */
  9990. int weakRefs;
  9991. /* readonly */
  9992. BoundingBox worldBoundingBox;
  9993. uint zoneMask;
  9994. };
  9995. class Text
  9996. {
  9997. // Methods:
  9998. void AddChild(UIElement);
  9999. void ApplyAttributes();
  10000. void BringToFront();
  10001. void ClearSelection();
  10002. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10003. void DisableLayoutUpdate();
  10004. IntVector2 ElementToScreen(const IntVector2&);
  10005. void EnableLayoutUpdate();
  10006. uint FindChild(UIElement) const;
  10007. Variant GetAttribute(const String&) const;
  10008. ValueAnimation GetAttributeAnimation(const String&) const;
  10009. float GetAttributeAnimationSpeed(const String&) const;
  10010. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10011. Variant GetAttributeDefault(const String&) const;
  10012. UIElement GetChild(const String&, bool = false) const;
  10013. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10014. Array<UIElement> GetChildren(bool = false) const;
  10015. UIElement GetElementEventSender() const;
  10016. bool GetInterceptNetworkUpdate(const String&) const;
  10017. uint GetNumChildren(bool) const;
  10018. void InsertChild(uint, UIElement);
  10019. bool IsInside(IntVector2, bool);
  10020. bool IsInsideCombined(IntVector2, bool);
  10021. bool Load(File, bool = false);
  10022. bool Load(VectorBuffer&, bool = false);
  10023. bool LoadChildXML(XMLFile, XMLFile = null);
  10024. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10025. bool LoadXML(File);
  10026. bool LoadXML(VectorBuffer&);
  10027. bool LoadXML(XMLFile, XMLFile);
  10028. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10029. bool LoadXML(const XMLElement&, bool = false);
  10030. void MarkNetworkUpdate() const;
  10031. void Remove();
  10032. void RemoveAllChildren();
  10033. void RemoveChild(UIElement, uint = 0);
  10034. void RemoveChild(uint);
  10035. void RemoveInstanceDefault();
  10036. void ResetDeepEnabled();
  10037. void ResetToDefault();
  10038. bool Save(File) const;
  10039. bool Save(VectorBuffer&) const;
  10040. bool SaveXML(File, const String& = "\t");
  10041. bool SaveXML(VectorBuffer&, const String& = "\t");
  10042. bool SaveXML(XMLElement&) const;
  10043. IntVector2 ScreenToElement(const IntVector2&);
  10044. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10045. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10046. bool SetAttribute(const String&, const Variant&);
  10047. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10048. void SetAttributeAnimationSpeed(const String&, float);
  10049. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10050. void SetDeepEnabled(bool);
  10051. void SetEnabledRecursive(bool);
  10052. void SetFixedHeight(int);
  10053. void SetFixedSize(int, int);
  10054. void SetFixedWidth(int);
  10055. bool SetFont(Font, int);
  10056. bool SetFont(const String&, int);
  10057. void SetInterceptNetworkUpdate(const String&, bool);
  10058. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10059. void SetMaxSize(int, int);
  10060. void SetMinSize(int, int);
  10061. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10062. void SetPosition(int, int);
  10063. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  10064. void SetSize(int, int);
  10065. bool SetStyle(const String&, XMLFile = null);
  10066. bool SetStyle(const XMLElement&);
  10067. bool SetStyleAuto(XMLFile = null);
  10068. void UpdateLayout();
  10069. const Variant& GetVar(const StringHash&);
  10070. // Properties:
  10071. bool animationEnabled;
  10072. /* readonly */
  10073. Array<Variant> attributeDefaults;
  10074. /* readonly */
  10075. Array<AttributeInfo> attributeInfos;
  10076. Array<Variant> attributes;
  10077. /* readonly */
  10078. StringHash baseType;
  10079. bool bringToBack;
  10080. bool bringToFront;
  10081. /* readonly */
  10082. String category;
  10083. /* readonly */
  10084. Array<IntVector2> charPositions;
  10085. /* readonly */
  10086. Array<IntVector2> charSizes;
  10087. /* readonly */
  10088. IntVector2 childOffset;
  10089. /* readonly */
  10090. Array<UIElement> children;
  10091. IntRect clipBorder;
  10092. bool clipChildren;
  10093. /* writeonly */
  10094. Color color;
  10095. /* readonly */
  10096. bool colorGradient;
  10097. Array<Color> colors;
  10098. /* readonly */
  10099. IntRect combinedScreenRect;
  10100. XMLFile defaultStyle;
  10101. /* readonly */
  10102. float derivedOpacity;
  10103. /* readonly */
  10104. uint dragButtonCombo;
  10105. /* readonly */
  10106. int dragButtonCount;
  10107. uint dragDropMode;
  10108. bool editable;
  10109. Color effectColor;
  10110. bool elementEventSender;
  10111. bool enabled;
  10112. /* readonly */
  10113. bool enabledSelf;
  10114. /* readonly */
  10115. bool fixedHeight;
  10116. /* readonly */
  10117. bool fixedSize;
  10118. /* readonly */
  10119. bool fixedWidth;
  10120. bool focus;
  10121. FocusMode focusMode;
  10122. /* readonly */
  10123. Font font;
  10124. /* readonly */
  10125. int fontSize;
  10126. int height;
  10127. HorizontalAlignment horizontalAlignment;
  10128. Color hoverColor;
  10129. /* readonly */
  10130. bool hovering;
  10131. int indent;
  10132. int indentSpacing;
  10133. /* readonly */
  10134. int indentWidth;
  10135. bool internal;
  10136. IntRect layoutBorder;
  10137. Vector2 layoutFlexScale;
  10138. LayoutMode layoutMode;
  10139. int layoutSpacing;
  10140. int maxHeight;
  10141. IntVector2 maxSize;
  10142. int maxWidth;
  10143. int minHeight;
  10144. IntVector2 minSize;
  10145. int minWidth;
  10146. String name;
  10147. /* readonly */
  10148. uint numAllChildren;
  10149. /* readonly */
  10150. uint numAttributes;
  10151. /* readonly */
  10152. uint numChars;
  10153. /* readonly */
  10154. uint numChildren;
  10155. /* readonly */
  10156. uint numRows;
  10157. ObjectAnimation objectAnimation;
  10158. float opacity;
  10159. UIElement parent;
  10160. IntVector2 position;
  10161. int priority;
  10162. /* readonly */
  10163. int refs;
  10164. /* readonly */
  10165. UIElement root;
  10166. /* readonly */
  10167. int rowHeight;
  10168. float rowSpacing;
  10169. /* readonly */
  10170. Array<int> rowWidths;
  10171. /* readonly */
  10172. IntVector2 screenPosition;
  10173. bool selected;
  10174. Color selectionColor;
  10175. /* readonly */
  10176. uint selectionLength;
  10177. /* readonly */
  10178. uint selectionStart;
  10179. IntVector2 size;
  10180. bool sortChildren;
  10181. String style;
  10182. bool temporary;
  10183. String text;
  10184. HorizontalAlignment textAlignment;
  10185. TextEffect textEffect;
  10186. TraversalMode traversalMode;
  10187. /* readonly */
  10188. StringHash type;
  10189. /* readonly */
  10190. String typeName;
  10191. bool useDerivedOpacity;
  10192. /* readonly */
  10193. VariantMap vars;
  10194. VerticalAlignment verticalAlignment;
  10195. bool visible;
  10196. /* readonly */
  10197. int weakRefs;
  10198. int width;
  10199. bool wordwrap;
  10200. };
  10201. class Text3D
  10202. {
  10203. // Methods:
  10204. void ApplyAttributes();
  10205. void DrawDebugGeometry(DebugRenderer, bool);
  10206. Variant GetAttribute(const String&) const;
  10207. ValueAnimation GetAttributeAnimation(const String&) const;
  10208. float GetAttributeAnimationSpeed(const String&) const;
  10209. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10210. Variant GetAttributeDefault(const String&) const;
  10211. bool GetInterceptNetworkUpdate(const String&) const;
  10212. bool IsInView(Camera) const;
  10213. bool Load(File, bool = false);
  10214. bool Load(VectorBuffer&, bool = false);
  10215. bool LoadXML(const XMLElement&, bool = false);
  10216. void MarkNetworkUpdate() const;
  10217. void Remove();
  10218. void RemoveInstanceDefault();
  10219. void ResetToDefault();
  10220. bool Save(File) const;
  10221. bool Save(VectorBuffer&) const;
  10222. bool SaveXML(XMLElement&) const;
  10223. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10224. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10225. bool SetAttribute(const String&, const Variant&);
  10226. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10227. void SetAttributeAnimationSpeed(const String&, float);
  10228. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10229. bool SetFont(Font, int);
  10230. bool SetFont(const String&, int);
  10231. void SetInterceptNetworkUpdate(const String&, bool);
  10232. // Properties:
  10233. bool animationEnabled;
  10234. /* readonly */
  10235. Array<Variant> attributeDefaults;
  10236. /* readonly */
  10237. Array<AttributeInfo> attributeInfos;
  10238. Array<Variant> attributes;
  10239. /* readonly */
  10240. StringHash baseType;
  10241. /* readonly */
  10242. BoundingBox boundingBox;
  10243. bool castShadows;
  10244. /* readonly */
  10245. String category;
  10246. /* readonly */
  10247. Array<IntVector2> charPositions;
  10248. /* readonly */
  10249. Array<IntVector2> charSizes;
  10250. /* writeonly */
  10251. Color color;
  10252. Array<Color> colors;
  10253. float drawDistance;
  10254. Color effectColor;
  10255. float effectDepthBias;
  10256. bool enabled;
  10257. /* readonly */
  10258. bool enabledEffective;
  10259. FaceCameraMode faceCameraMode;
  10260. /* readonly */
  10261. Font font;
  10262. /* readonly */
  10263. int fontSize;
  10264. HorizontalAlignment horizontalAlignment;
  10265. /* readonly */
  10266. uint id;
  10267. /* readonly */
  10268. bool inView;
  10269. uint lightMask;
  10270. float lodBias;
  10271. Material material;
  10272. uint maxLights;
  10273. /* readonly */
  10274. Node node;
  10275. /* readonly */
  10276. uint numAttributes;
  10277. /* readonly */
  10278. uint numChars;
  10279. /* readonly */
  10280. uint numRows;
  10281. ObjectAnimation objectAnimation;
  10282. bool occludee;
  10283. bool occluder;
  10284. float opacity;
  10285. /* readonly */
  10286. int refs;
  10287. /* readonly */
  10288. int rowHeight;
  10289. float rowSpacing;
  10290. /* readonly */
  10291. Array<int> rowWidths;
  10292. float shadowDistance;
  10293. uint shadowMask;
  10294. bool temporary;
  10295. String text;
  10296. HorizontalAlignment textAlignment;
  10297. TextEffect textEffect;
  10298. /* readonly */
  10299. StringHash type;
  10300. /* readonly */
  10301. String typeName;
  10302. VerticalAlignment verticalAlignment;
  10303. uint viewMask;
  10304. /* readonly */
  10305. int weakRefs;
  10306. int width;
  10307. bool wordwrap;
  10308. /* readonly */
  10309. BoundingBox worldBoundingBox;
  10310. uint zoneMask;
  10311. };
  10312. class Texture
  10313. {
  10314. // Methods:
  10315. void ClearDataLost();
  10316. bool Load(File);
  10317. bool Load(VectorBuffer&);
  10318. bool Save(File) const;
  10319. bool Save(VectorBuffer&) const;
  10320. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10321. void SetNumLevels(uint);
  10322. // Properties:
  10323. Array<TextureAddressMode> addressMode;
  10324. Texture backupTexture;
  10325. /* readonly */
  10326. StringHash baseType;
  10327. Color borderColor;
  10328. /* readonly */
  10329. String category;
  10330. /* readonly */
  10331. bool compressed;
  10332. /* readonly */
  10333. bool dataLost;
  10334. TextureFilterMode filterMode;
  10335. /* readonly */
  10336. uint format;
  10337. /* readonly */
  10338. int height;
  10339. /* readonly */
  10340. Array<int> levelHeight;
  10341. /* readonly */
  10342. Array<int> levelWidth;
  10343. /* readonly */
  10344. uint levels;
  10345. /* readonly */
  10346. uint memoryUse;
  10347. Array<int> mipsToSkip;
  10348. String name;
  10349. /* readonly */
  10350. int refs;
  10351. bool sRGB;
  10352. /* readonly */
  10353. StringHash type;
  10354. /* readonly */
  10355. String typeName;
  10356. /* readonly */
  10357. TextureUsage usage;
  10358. /* readonly */
  10359. uint useTimer;
  10360. /* readonly */
  10361. int weakRefs;
  10362. /* readonly */
  10363. int width;
  10364. };
  10365. class Texture2D
  10366. {
  10367. // Methods:
  10368. void ClearDataLost();
  10369. bool Load(File);
  10370. bool Load(VectorBuffer&);
  10371. bool Save(File) const;
  10372. bool Save(VectorBuffer&) const;
  10373. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10374. bool SetData(Image, bool = false);
  10375. void SetNumLevels(uint);
  10376. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10377. // Properties:
  10378. Array<TextureAddressMode> addressMode;
  10379. Texture backupTexture;
  10380. /* readonly */
  10381. StringHash baseType;
  10382. Color borderColor;
  10383. /* readonly */
  10384. String category;
  10385. /* readonly */
  10386. bool compressed;
  10387. /* readonly */
  10388. bool dataLost;
  10389. TextureFilterMode filterMode;
  10390. /* readonly */
  10391. uint format;
  10392. /* readonly */
  10393. int height;
  10394. /* readonly */
  10395. Array<int> levelHeight;
  10396. /* readonly */
  10397. Array<int> levelWidth;
  10398. /* readonly */
  10399. uint levels;
  10400. /* readonly */
  10401. uint memoryUse;
  10402. Array<int> mipsToSkip;
  10403. String name;
  10404. /* readonly */
  10405. int refs;
  10406. /* readonly */
  10407. RenderSurface renderSurface;
  10408. bool sRGB;
  10409. /* readonly */
  10410. StringHash type;
  10411. /* readonly */
  10412. String typeName;
  10413. /* readonly */
  10414. TextureUsage usage;
  10415. /* readonly */
  10416. uint useTimer;
  10417. /* readonly */
  10418. int weakRefs;
  10419. /* readonly */
  10420. int width;
  10421. };
  10422. class Texture3D
  10423. {
  10424. // Methods:
  10425. void ClearDataLost();
  10426. bool Load(File);
  10427. bool Load(VectorBuffer&);
  10428. bool Save(File) const;
  10429. bool Save(VectorBuffer&) const;
  10430. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10431. bool SetData(Image, bool = false);
  10432. void SetNumLevels(uint);
  10433. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  10434. // Properties:
  10435. Array<TextureAddressMode> addressMode;
  10436. Texture backupTexture;
  10437. /* readonly */
  10438. StringHash baseType;
  10439. Color borderColor;
  10440. /* readonly */
  10441. String category;
  10442. /* readonly */
  10443. bool compressed;
  10444. /* readonly */
  10445. bool dataLost;
  10446. TextureFilterMode filterMode;
  10447. /* readonly */
  10448. uint format;
  10449. /* readonly */
  10450. int height;
  10451. /* readonly */
  10452. Array<int> levelHeight;
  10453. /* readonly */
  10454. Array<int> levelWidth;
  10455. /* readonly */
  10456. uint levels;
  10457. /* readonly */
  10458. uint memoryUse;
  10459. Array<int> mipsToSkip;
  10460. String name;
  10461. /* readonly */
  10462. int refs;
  10463. /* readonly */
  10464. RenderSurface renderSurface;
  10465. bool sRGB;
  10466. /* readonly */
  10467. StringHash type;
  10468. /* readonly */
  10469. String typeName;
  10470. /* readonly */
  10471. TextureUsage usage;
  10472. /* readonly */
  10473. uint useTimer;
  10474. /* readonly */
  10475. int weakRefs;
  10476. /* readonly */
  10477. int width;
  10478. };
  10479. class TextureCube
  10480. {
  10481. // Methods:
  10482. void ClearDataLost();
  10483. bool Load(File);
  10484. bool Load(VectorBuffer&);
  10485. bool Save(File) const;
  10486. bool Save(VectorBuffer&) const;
  10487. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10488. bool SetData(CubeMapFace, Image, bool = false);
  10489. void SetNumLevels(uint);
  10490. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  10491. // Properties:
  10492. Array<TextureAddressMode> addressMode;
  10493. Texture backupTexture;
  10494. /* readonly */
  10495. StringHash baseType;
  10496. Color borderColor;
  10497. /* readonly */
  10498. String category;
  10499. /* readonly */
  10500. bool compressed;
  10501. /* readonly */
  10502. bool dataLost;
  10503. TextureFilterMode filterMode;
  10504. /* readonly */
  10505. uint format;
  10506. /* readonly */
  10507. int height;
  10508. /* readonly */
  10509. Array<int> levelHeight;
  10510. /* readonly */
  10511. Array<int> levelWidth;
  10512. /* readonly */
  10513. uint levels;
  10514. /* readonly */
  10515. uint memoryUse;
  10516. Array<int> mipsToSkip;
  10517. String name;
  10518. /* readonly */
  10519. int refs;
  10520. /* readonly */
  10521. Array<RenderSurface> renderSurfaces;
  10522. bool sRGB;
  10523. /* readonly */
  10524. StringHash type;
  10525. /* readonly */
  10526. String typeName;
  10527. /* readonly */
  10528. TextureUsage usage;
  10529. /* readonly */
  10530. uint useTimer;
  10531. /* readonly */
  10532. int weakRefs;
  10533. /* readonly */
  10534. int width;
  10535. };
  10536. class TextureFrame
  10537. {
  10538. // Properties:
  10539. float time;
  10540. Rect uv;
  10541. };
  10542. class Tile2D
  10543. {
  10544. // Methods:
  10545. bool HasProperty(const String&) const;
  10546. const String& GetProperty(const String&) const;
  10547. // Properties:
  10548. /* readonly */
  10549. int gid;
  10550. /* readonly */
  10551. int refs;
  10552. /* readonly */
  10553. Sprite2D sprite;
  10554. /* readonly */
  10555. int weakRefs;
  10556. };
  10557. class TileMap2D
  10558. {
  10559. // Methods:
  10560. void ApplyAttributes();
  10561. void DrawDebugGeometry(DebugRenderer, bool);
  10562. Variant GetAttribute(const String&) const;
  10563. ValueAnimation GetAttributeAnimation(const String&) const;
  10564. float GetAttributeAnimationSpeed(const String&) const;
  10565. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10566. Variant GetAttributeDefault(const String&) const;
  10567. bool GetInterceptNetworkUpdate(const String&) const;
  10568. TileMapLayer2D GetLayer(uint) const;
  10569. bool Load(File, bool = false);
  10570. bool Load(VectorBuffer&, bool = false);
  10571. bool LoadXML(const XMLElement&, bool = false);
  10572. void MarkNetworkUpdate() const;
  10573. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  10574. void Remove();
  10575. void RemoveInstanceDefault();
  10576. void ResetToDefault();
  10577. bool Save(File) const;
  10578. bool Save(VectorBuffer&) const;
  10579. bool SaveXML(XMLElement&) const;
  10580. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10581. bool SetAttribute(const String&, const Variant&);
  10582. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10583. void SetAttributeAnimationSpeed(const String&, float);
  10584. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10585. void SetInterceptNetworkUpdate(const String&, bool);
  10586. Vector2 TileIndexToPosition(int, int) const;
  10587. // Properties:
  10588. bool animationEnabled;
  10589. /* readonly */
  10590. Array<Variant> attributeDefaults;
  10591. /* readonly */
  10592. Array<AttributeInfo> attributeInfos;
  10593. Array<Variant> attributes;
  10594. /* readonly */
  10595. StringHash baseType;
  10596. /* readonly */
  10597. String category;
  10598. bool enabled;
  10599. /* readonly */
  10600. bool enabledEffective;
  10601. /* readonly */
  10602. uint id;
  10603. /* readonly */
  10604. TileMapInfo2D info;
  10605. /* readonly */
  10606. Node node;
  10607. /* readonly */
  10608. uint numAttributes;
  10609. /* readonly */
  10610. uint numLayers;
  10611. ObjectAnimation objectAnimation;
  10612. /* readonly */
  10613. int refs;
  10614. bool temporary;
  10615. TmxFile2D tmxFile;
  10616. /* readonly */
  10617. StringHash type;
  10618. /* readonly */
  10619. String typeName;
  10620. /* readonly */
  10621. int weakRefs;
  10622. };
  10623. class TileMapInfo2D
  10624. {
  10625. // Properties:
  10626. int height;
  10627. /* readonly */
  10628. float mapHeight;
  10629. /* readonly */
  10630. float mapWidth;
  10631. Orientation2D orientation;
  10632. float tileHeight;
  10633. float tileWidth;
  10634. int width;
  10635. };
  10636. class TileMapLayer2D
  10637. {
  10638. // Methods:
  10639. void ApplyAttributes();
  10640. void DrawDebugGeometry(DebugRenderer, bool);
  10641. Variant GetAttribute(const String&) const;
  10642. ValueAnimation GetAttributeAnimation(const String&) const;
  10643. float GetAttributeAnimationSpeed(const String&) const;
  10644. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10645. Variant GetAttributeDefault(const String&) const;
  10646. bool GetInterceptNetworkUpdate(const String&) const;
  10647. TileMapObject2D GetObject(uint) const;
  10648. Node GetObjectNode(uint) const;
  10649. Tile2D GetTile(int, int) const;
  10650. Node GetTileNode(int, int) const;
  10651. bool HasProperty(const String&) const;
  10652. bool Load(File, bool = false);
  10653. bool Load(VectorBuffer&, bool = false);
  10654. bool LoadXML(const XMLElement&, bool = false);
  10655. void MarkNetworkUpdate() const;
  10656. void Remove();
  10657. void RemoveInstanceDefault();
  10658. void ResetToDefault();
  10659. bool Save(File) const;
  10660. bool Save(VectorBuffer&) const;
  10661. bool SaveXML(XMLElement&) const;
  10662. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10663. bool SetAttribute(const String&, const Variant&);
  10664. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10665. void SetAttributeAnimationSpeed(const String&, float);
  10666. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10667. void SetInterceptNetworkUpdate(const String&, bool);
  10668. const String& GetProperty(const String&) const;
  10669. // Properties:
  10670. bool animationEnabled;
  10671. /* readonly */
  10672. Array<Variant> attributeDefaults;
  10673. /* readonly */
  10674. Array<AttributeInfo> attributeInfos;
  10675. Array<Variant> attributes;
  10676. /* readonly */
  10677. StringHash baseType;
  10678. /* readonly */
  10679. String category;
  10680. int drawOrder;
  10681. bool enabled;
  10682. /* readonly */
  10683. bool enabledEffective;
  10684. /* readonly */
  10685. int height;
  10686. /* readonly */
  10687. uint id;
  10688. /* readonly */
  10689. Node imageNode;
  10690. /* readonly */
  10691. TileMapLayerType2D layerType;
  10692. /* readonly */
  10693. Node node;
  10694. /* readonly */
  10695. uint numAttributes;
  10696. /* readonly */
  10697. uint numObjects;
  10698. ObjectAnimation objectAnimation;
  10699. /* readonly */
  10700. int refs;
  10701. bool temporary;
  10702. /* readonly */
  10703. StringHash type;
  10704. /* readonly */
  10705. String typeName;
  10706. bool visible;
  10707. /* readonly */
  10708. int weakRefs;
  10709. /* readonly */
  10710. int width;
  10711. };
  10712. class TileMapObject2D
  10713. {
  10714. // Methods:
  10715. bool HasProperty(const String&) const;
  10716. const String& GetProperty(const String&) const;
  10717. const Vector2& GetPoint(uint) const;
  10718. // Properties:
  10719. /* readonly */
  10720. String name;
  10721. /* readonly */
  10722. uint numPoints;
  10723. /* readonly */
  10724. TileObjectType2D objectType;
  10725. /* readonly */
  10726. Vector2 position;
  10727. /* readonly */
  10728. int refs;
  10729. /* readonly */
  10730. Vector2 size;
  10731. /* readonly */
  10732. int tileGid;
  10733. /* readonly */
  10734. Sprite2D tileSprite;
  10735. /* readonly */
  10736. String type;
  10737. /* readonly */
  10738. int weakRefs;
  10739. };
  10740. class Time
  10741. {
  10742. // Methods:
  10743. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10744. // Properties:
  10745. /* readonly */
  10746. StringHash baseType;
  10747. /* readonly */
  10748. String category;
  10749. /* readonly */
  10750. float elapsedTime;
  10751. /* readonly */
  10752. uint frameNumber;
  10753. /* readonly */
  10754. int refs;
  10755. /* readonly */
  10756. uint systemTime;
  10757. /* readonly */
  10758. uint timeSinceEpoch;
  10759. /* readonly */
  10760. String timeStamp;
  10761. /* readonly */
  10762. float timeStep;
  10763. /* readonly */
  10764. StringHash type;
  10765. /* readonly */
  10766. String typeName;
  10767. /* readonly */
  10768. int weakRefs;
  10769. };
  10770. class Timer
  10771. {
  10772. // Methods:
  10773. uint GetMSec(bool);
  10774. void Reset();
  10775. };
  10776. class TmxFile2D
  10777. {
  10778. // Methods:
  10779. bool Load(File);
  10780. bool Load(VectorBuffer&);
  10781. bool Save(File) const;
  10782. bool Save(VectorBuffer&) const;
  10783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10784. // Properties:
  10785. /* readonly */
  10786. StringHash baseType;
  10787. /* readonly */
  10788. String category;
  10789. /* readonly */
  10790. uint memoryUse;
  10791. String name;
  10792. /* readonly */
  10793. int refs;
  10794. /* readonly */
  10795. StringHash type;
  10796. /* readonly */
  10797. String typeName;
  10798. /* readonly */
  10799. uint useTimer;
  10800. /* readonly */
  10801. int weakRefs;
  10802. };
  10803. class ToolTip
  10804. {
  10805. // Methods:
  10806. void AddChild(UIElement);
  10807. void ApplyAttributes();
  10808. void BringToFront();
  10809. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10810. void DisableLayoutUpdate();
  10811. IntVector2 ElementToScreen(const IntVector2&);
  10812. void EnableLayoutUpdate();
  10813. uint FindChild(UIElement) const;
  10814. Variant GetAttribute(const String&) const;
  10815. ValueAnimation GetAttributeAnimation(const String&) const;
  10816. float GetAttributeAnimationSpeed(const String&) const;
  10817. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10818. Variant GetAttributeDefault(const String&) const;
  10819. UIElement GetChild(const String&, bool = false) const;
  10820. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10821. Array<UIElement> GetChildren(bool = false) const;
  10822. UIElement GetElementEventSender() const;
  10823. bool GetInterceptNetworkUpdate(const String&) const;
  10824. uint GetNumChildren(bool) const;
  10825. void InsertChild(uint, UIElement);
  10826. bool IsInside(IntVector2, bool);
  10827. bool IsInsideCombined(IntVector2, bool);
  10828. bool Load(File, bool = false);
  10829. bool Load(VectorBuffer&, bool = false);
  10830. bool LoadChildXML(XMLFile, XMLFile = null);
  10831. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10832. bool LoadXML(File);
  10833. bool LoadXML(VectorBuffer&);
  10834. bool LoadXML(XMLFile, XMLFile);
  10835. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10836. bool LoadXML(const XMLElement&, bool = false);
  10837. void MarkNetworkUpdate() const;
  10838. void Remove();
  10839. void RemoveAllChildren();
  10840. void RemoveChild(UIElement, uint = 0);
  10841. void RemoveChild(uint);
  10842. void RemoveInstanceDefault();
  10843. void ResetDeepEnabled();
  10844. void ResetToDefault();
  10845. bool Save(File) const;
  10846. bool Save(VectorBuffer&) const;
  10847. bool SaveXML(File, const String& = "\t");
  10848. bool SaveXML(VectorBuffer&, const String& = "\t");
  10849. bool SaveXML(XMLElement&) const;
  10850. IntVector2 ScreenToElement(const IntVector2&);
  10851. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10852. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10853. bool SetAttribute(const String&, const Variant&);
  10854. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10855. void SetAttributeAnimationSpeed(const String&, float);
  10856. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10857. void SetDeepEnabled(bool);
  10858. void SetEnabledRecursive(bool);
  10859. void SetFixedHeight(int);
  10860. void SetFixedSize(int, int);
  10861. void SetFixedWidth(int);
  10862. void SetInterceptNetworkUpdate(const String&, bool);
  10863. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10864. void SetMaxSize(int, int);
  10865. void SetMinSize(int, int);
  10866. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10867. void SetPosition(int, int);
  10868. void SetSize(int, int);
  10869. bool SetStyle(const String&, XMLFile = null);
  10870. bool SetStyle(const XMLElement&);
  10871. bool SetStyleAuto(XMLFile = null);
  10872. void UpdateLayout();
  10873. const Variant& GetVar(const StringHash&);
  10874. // Properties:
  10875. bool animationEnabled;
  10876. /* readonly */
  10877. Array<Variant> attributeDefaults;
  10878. /* readonly */
  10879. Array<AttributeInfo> attributeInfos;
  10880. Array<Variant> attributes;
  10881. /* readonly */
  10882. StringHash baseType;
  10883. bool bringToBack;
  10884. bool bringToFront;
  10885. /* readonly */
  10886. String category;
  10887. /* readonly */
  10888. IntVector2 childOffset;
  10889. /* readonly */
  10890. Array<UIElement> children;
  10891. IntRect clipBorder;
  10892. bool clipChildren;
  10893. /* writeonly */
  10894. Color color;
  10895. /* readonly */
  10896. bool colorGradient;
  10897. Array<Color> colors;
  10898. /* readonly */
  10899. IntRect combinedScreenRect;
  10900. XMLFile defaultStyle;
  10901. float delay;
  10902. /* readonly */
  10903. float derivedOpacity;
  10904. /* readonly */
  10905. uint dragButtonCombo;
  10906. /* readonly */
  10907. int dragButtonCount;
  10908. uint dragDropMode;
  10909. bool editable;
  10910. bool elementEventSender;
  10911. bool enabled;
  10912. /* readonly */
  10913. bool enabledSelf;
  10914. /* readonly */
  10915. bool fixedHeight;
  10916. /* readonly */
  10917. bool fixedSize;
  10918. /* readonly */
  10919. bool fixedWidth;
  10920. bool focus;
  10921. FocusMode focusMode;
  10922. int height;
  10923. HorizontalAlignment horizontalAlignment;
  10924. /* readonly */
  10925. bool hovering;
  10926. int indent;
  10927. int indentSpacing;
  10928. /* readonly */
  10929. int indentWidth;
  10930. bool internal;
  10931. IntRect layoutBorder;
  10932. Vector2 layoutFlexScale;
  10933. LayoutMode layoutMode;
  10934. int layoutSpacing;
  10935. int maxHeight;
  10936. IntVector2 maxSize;
  10937. int maxWidth;
  10938. int minHeight;
  10939. IntVector2 minSize;
  10940. int minWidth;
  10941. String name;
  10942. /* readonly */
  10943. uint numAllChildren;
  10944. /* readonly */
  10945. uint numAttributes;
  10946. /* readonly */
  10947. uint numChildren;
  10948. ObjectAnimation objectAnimation;
  10949. float opacity;
  10950. UIElement parent;
  10951. IntVector2 position;
  10952. int priority;
  10953. /* readonly */
  10954. int refs;
  10955. /* readonly */
  10956. UIElement root;
  10957. /* readonly */
  10958. IntVector2 screenPosition;
  10959. bool selected;
  10960. IntVector2 size;
  10961. bool sortChildren;
  10962. String style;
  10963. bool temporary;
  10964. TraversalMode traversalMode;
  10965. /* readonly */
  10966. StringHash type;
  10967. /* readonly */
  10968. String typeName;
  10969. bool useDerivedOpacity;
  10970. /* readonly */
  10971. VariantMap vars;
  10972. VerticalAlignment verticalAlignment;
  10973. bool visible;
  10974. /* readonly */
  10975. int weakRefs;
  10976. int width;
  10977. };
  10978. class TouchState
  10979. {
  10980. // Properties:
  10981. IntVector2 delta;
  10982. IntVector2 lastPosition;
  10983. IntVector2 position;
  10984. float pressure;
  10985. int touchID;
  10986. /* readonly */
  10987. UIElement touchedElement;
  10988. };
  10989. class UI
  10990. {
  10991. // Methods:
  10992. void Clear();
  10993. void DebugDraw(UIElement);
  10994. UIElement GetElementAt(const IntVector2&, bool = true);
  10995. UIElement GetElementAt(int, int, bool = true);
  10996. bool HasModalElement() const;
  10997. bool IsDragging() const;
  10998. UIElement LoadLayout(File);
  10999. UIElement LoadLayout(File, XMLFile);
  11000. UIElement LoadLayout(VectorBuffer&);
  11001. UIElement LoadLayout(VectorBuffer&, XMLFile);
  11002. UIElement LoadLayout(XMLFile);
  11003. UIElement LoadLayout(XMLFile, XMLFile);
  11004. bool SaveLayout(File, UIElement);
  11005. bool SaveLayout(VectorBuffer&, UIElement);
  11006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11007. void SetFocusElement(UIElement, bool = false);
  11008. const Array<UIElement> GetDragElements();
  11009. // Properties:
  11010. /* readonly */
  11011. StringHash baseType;
  11012. /* readonly */
  11013. String category;
  11014. String clipBoardText;
  11015. Cursor cursor;
  11016. /* readonly */
  11017. IntVector2 cursorPosition;
  11018. float defaultToolTipDelay;
  11019. float doubleClickInterval;
  11020. int dragBeginDistance;
  11021. float dragBeginInterval;
  11022. UIElement focusElement;
  11023. bool forceAutoHint;
  11024. /* readonly */
  11025. UIElement frontElement;
  11026. int maxFontTextureSize;
  11027. /* readonly */
  11028. UIElement modalRoot;
  11029. bool nonFocusedMouseWheel;
  11030. /* readonly */
  11031. int refs;
  11032. /* readonly */
  11033. UIElement root;
  11034. /* readonly */
  11035. StringHash type;
  11036. /* readonly */
  11037. String typeName;
  11038. bool useMutableGlyphs;
  11039. bool useScreenKeyboard;
  11040. bool useSystemClipboard;
  11041. /* readonly */
  11042. int weakRefs;
  11043. };
  11044. class UIElement
  11045. {
  11046. // Methods:
  11047. void AddChild(UIElement);
  11048. void ApplyAttributes();
  11049. void BringToFront();
  11050. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11051. void DisableLayoutUpdate();
  11052. IntVector2 ElementToScreen(const IntVector2&);
  11053. void EnableLayoutUpdate();
  11054. uint FindChild(UIElement) const;
  11055. Variant GetAttribute(const String&) const;
  11056. ValueAnimation GetAttributeAnimation(const String&) const;
  11057. float GetAttributeAnimationSpeed(const String&) const;
  11058. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11059. Variant GetAttributeDefault(const String&) const;
  11060. UIElement GetChild(const String&, bool = false) const;
  11061. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11062. Array<UIElement> GetChildren(bool = false) const;
  11063. UIElement GetElementEventSender() const;
  11064. bool GetInterceptNetworkUpdate(const String&) const;
  11065. uint GetNumChildren(bool) const;
  11066. void InsertChild(uint, UIElement);
  11067. bool IsInside(IntVector2, bool);
  11068. bool IsInsideCombined(IntVector2, bool);
  11069. bool Load(File, bool = false);
  11070. bool Load(VectorBuffer&, bool = false);
  11071. bool LoadChildXML(XMLFile, XMLFile = null);
  11072. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11073. bool LoadXML(File);
  11074. bool LoadXML(VectorBuffer&);
  11075. bool LoadXML(XMLFile, XMLFile);
  11076. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11077. bool LoadXML(const XMLElement&, bool = false);
  11078. void MarkNetworkUpdate() const;
  11079. void Remove();
  11080. void RemoveAllChildren();
  11081. void RemoveChild(UIElement, uint = 0);
  11082. void RemoveChild(uint);
  11083. void RemoveInstanceDefault();
  11084. void ResetDeepEnabled();
  11085. void ResetToDefault();
  11086. bool Save(File) const;
  11087. bool Save(VectorBuffer&) const;
  11088. bool SaveXML(File, const String& = "\t");
  11089. bool SaveXML(VectorBuffer&, const String& = "\t");
  11090. bool SaveXML(XMLElement&) const;
  11091. IntVector2 ScreenToElement(const IntVector2&);
  11092. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11093. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11094. bool SetAttribute(const String&, const Variant&);
  11095. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11096. void SetAttributeAnimationSpeed(const String&, float);
  11097. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11098. void SetDeepEnabled(bool);
  11099. void SetEnabledRecursive(bool);
  11100. void SetFixedHeight(int);
  11101. void SetFixedSize(int, int);
  11102. void SetFixedWidth(int);
  11103. void SetInterceptNetworkUpdate(const String&, bool);
  11104. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11105. void SetMaxSize(int, int);
  11106. void SetMinSize(int, int);
  11107. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11108. void SetPosition(int, int);
  11109. void SetSize(int, int);
  11110. bool SetStyle(const String&, XMLFile = null);
  11111. bool SetStyle(const XMLElement&);
  11112. bool SetStyleAuto(XMLFile = null);
  11113. void UpdateLayout();
  11114. const Variant& GetVar(const StringHash&);
  11115. // Properties:
  11116. bool animationEnabled;
  11117. /* readonly */
  11118. Array<Variant> attributeDefaults;
  11119. /* readonly */
  11120. Array<AttributeInfo> attributeInfos;
  11121. Array<Variant> attributes;
  11122. /* readonly */
  11123. StringHash baseType;
  11124. bool bringToBack;
  11125. bool bringToFront;
  11126. /* readonly */
  11127. String category;
  11128. /* readonly */
  11129. IntVector2 childOffset;
  11130. /* readonly */
  11131. Array<UIElement> children;
  11132. IntRect clipBorder;
  11133. bool clipChildren;
  11134. /* writeonly */
  11135. Color color;
  11136. /* readonly */
  11137. bool colorGradient;
  11138. Array<Color> colors;
  11139. /* readonly */
  11140. IntRect combinedScreenRect;
  11141. XMLFile defaultStyle;
  11142. /* readonly */
  11143. float derivedOpacity;
  11144. /* readonly */
  11145. uint dragButtonCombo;
  11146. /* readonly */
  11147. int dragButtonCount;
  11148. uint dragDropMode;
  11149. bool editable;
  11150. bool elementEventSender;
  11151. bool enabled;
  11152. /* readonly */
  11153. bool enabledSelf;
  11154. /* readonly */
  11155. bool fixedHeight;
  11156. /* readonly */
  11157. bool fixedSize;
  11158. /* readonly */
  11159. bool fixedWidth;
  11160. bool focus;
  11161. FocusMode focusMode;
  11162. int height;
  11163. HorizontalAlignment horizontalAlignment;
  11164. /* readonly */
  11165. bool hovering;
  11166. int indent;
  11167. int indentSpacing;
  11168. /* readonly */
  11169. int indentWidth;
  11170. bool internal;
  11171. IntRect layoutBorder;
  11172. Vector2 layoutFlexScale;
  11173. LayoutMode layoutMode;
  11174. int layoutSpacing;
  11175. int maxHeight;
  11176. IntVector2 maxSize;
  11177. int maxWidth;
  11178. int minHeight;
  11179. IntVector2 minSize;
  11180. int minWidth;
  11181. String name;
  11182. /* readonly */
  11183. uint numAllChildren;
  11184. /* readonly */
  11185. uint numAttributes;
  11186. /* readonly */
  11187. uint numChildren;
  11188. ObjectAnimation objectAnimation;
  11189. float opacity;
  11190. UIElement parent;
  11191. IntVector2 position;
  11192. int priority;
  11193. /* readonly */
  11194. int refs;
  11195. /* readonly */
  11196. UIElement root;
  11197. /* readonly */
  11198. IntVector2 screenPosition;
  11199. bool selected;
  11200. IntVector2 size;
  11201. bool sortChildren;
  11202. String style;
  11203. bool temporary;
  11204. TraversalMode traversalMode;
  11205. /* readonly */
  11206. StringHash type;
  11207. /* readonly */
  11208. String typeName;
  11209. bool useDerivedOpacity;
  11210. /* readonly */
  11211. VariantMap vars;
  11212. VerticalAlignment verticalAlignment;
  11213. bool visible;
  11214. /* readonly */
  11215. int weakRefs;
  11216. int width;
  11217. };
  11218. class ValueAnimation
  11219. {
  11220. // Methods:
  11221. bool Load(File);
  11222. bool Load(VectorBuffer&);
  11223. bool Save(File) const;
  11224. bool Save(VectorBuffer&) const;
  11225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11226. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  11227. void SetKeyFrame(float, const Variant&);
  11228. // Properties:
  11229. /* readonly */
  11230. StringHash baseType;
  11231. /* readonly */
  11232. String category;
  11233. InterpMethod interpolationMethod;
  11234. /* readonly */
  11235. uint memoryUse;
  11236. String name;
  11237. /* readonly */
  11238. int refs;
  11239. float splineTension;
  11240. /* readonly */
  11241. StringHash type;
  11242. /* readonly */
  11243. String typeName;
  11244. /* readonly */
  11245. uint useTimer;
  11246. VariantType valueType;
  11247. /* readonly */
  11248. int weakRefs;
  11249. };
  11250. class Variant
  11251. {
  11252. // Methods:
  11253. void Clear();
  11254. const Color& GetColor() const;
  11255. void FromString(VariantType, const String&);
  11256. void FromString(const String&, const String&);
  11257. bool GetBool() const;
  11258. VectorBuffer GetBuffer() const;
  11259. float GetFloat() const;
  11260. int GetInt() const;
  11261. RefCounted GetPtr() const;
  11262. ScriptObject GetScriptObject() const;
  11263. StringHash GetStringHash() const;
  11264. uint GetUInt() const;
  11265. Array<Variant> GetVariantVector() const;
  11266. const IntRect& GetIntRect() const;
  11267. const IntVector2& GetIntVector2() const;
  11268. const Matrix3& GetMatrix3() const;
  11269. const Matrix3x4& GetMatrix3x4() const;
  11270. const Matrix4& GetMatrix4() const;
  11271. const Quaternion& GetQuaternion() const;
  11272. const ResourceRef& GetResourceRef() const;
  11273. const ResourceRefList& GetResourceRefList() const;
  11274. const String& GetString() const;
  11275. String ToString() const;
  11276. const VariantMap& GetVariantMap() const;
  11277. const Vector2& GetVector2() const;
  11278. const Vector3& GetVector3() const;
  11279. const Vector4& GetVector4() const;
  11280. // Properties:
  11281. /* readonly */
  11282. bool empty;
  11283. /* readonly */
  11284. VariantType type;
  11285. /* readonly */
  11286. String typeName;
  11287. /* readonly */
  11288. bool zero;
  11289. };
  11290. class VariantMap
  11291. {
  11292. // Methods:
  11293. void Clear();
  11294. bool Contains(StringHash) const;
  11295. bool Contains(const String&) const;
  11296. bool Erase(StringHash);
  11297. bool Erase(const String&);
  11298. // Properties:
  11299. /* readonly */
  11300. Array<StringHash> keys;
  11301. /* readonly */
  11302. uint length;
  11303. /* readonly */
  11304. Array<Variant> values;
  11305. };
  11306. class Vector2
  11307. {
  11308. // Methods:
  11309. float AbsDotProduct(const Vector2&) const;
  11310. float DotProduct(const Vector2&) const;
  11311. bool Equals(const Vector2&) const;
  11312. bool IsNaN() const;
  11313. Vector2 Lerp(const Vector2&, float) const;
  11314. void Normalize();
  11315. Vector2 Normalized() const;
  11316. String ToString() const;
  11317. // Properties:
  11318. /* readonly */
  11319. Array<float> data;
  11320. /* readonly */
  11321. float length;
  11322. /* readonly */
  11323. float lengthSquared;
  11324. float x;
  11325. float y;
  11326. };
  11327. class Vector3
  11328. {
  11329. // Methods:
  11330. float AbsDotProduct(const Vector3&) const;
  11331. float Angle(const Vector3&) const;
  11332. Vector3 CrossProduct(const Vector3&) const;
  11333. float DotProduct(const Vector3&) const;
  11334. bool Equals(const Vector3&) const;
  11335. bool IsNaN() const;
  11336. Vector3 Lerp(const Vector3&, float) const;
  11337. void Normalize();
  11338. Vector3 Normalized() const;
  11339. String ToString() const;
  11340. // Properties:
  11341. /* readonly */
  11342. Array<float> data;
  11343. /* readonly */
  11344. float length;
  11345. /* readonly */
  11346. float lengthSquared;
  11347. float x;
  11348. float y;
  11349. float z;
  11350. };
  11351. class Vector4
  11352. {
  11353. // Methods:
  11354. float AbsDotProduct(const Vector4&) const;
  11355. float DotProduct(const Vector4&) const;
  11356. bool Equals(const Vector4&) const;
  11357. bool IsNaN() const;
  11358. Vector4 Lerp(const Vector4&, float) const;
  11359. String ToString() const;
  11360. // Properties:
  11361. /* readonly */
  11362. Array<float> data;
  11363. float w;
  11364. float x;
  11365. float y;
  11366. float z;
  11367. };
  11368. class VectorBuffer
  11369. {
  11370. // Methods:
  11371. void Clear();
  11372. Array<uint8> Read(uint);
  11373. bool ReadBool();
  11374. BoundingBox ReadBoundingBox();
  11375. int8 ReadByte();
  11376. Color ReadColor();
  11377. String ReadFileID();
  11378. float ReadFloat();
  11379. int ReadInt();
  11380. IntRect ReadIntRect();
  11381. IntVector2 ReadIntVector2();
  11382. String ReadLine();
  11383. Matrix3 ReadMatrix3();
  11384. Matrix3x4 ReadMatrix3x4();
  11385. Matrix4 ReadMatrix4();
  11386. uint ReadNetID();
  11387. Quaternion ReadPackedQuaternion();
  11388. Vector3 ReadPackedVector3(float);
  11389. Quaternion ReadQuaternion();
  11390. int16 ReadShort();
  11391. String ReadString();
  11392. StringHash ReadStringHash();
  11393. uint8 ReadUByte();
  11394. uint ReadUInt();
  11395. uint16 ReadUShort();
  11396. uint ReadVLE();
  11397. Variant ReadVariant();
  11398. VariantMap ReadVariantMap();
  11399. Vector2 ReadVector2();
  11400. Vector3 ReadVector3();
  11401. Vector4 ReadVector4();
  11402. VectorBuffer ReadVectorBuffer(uint);
  11403. void Resize(uint);
  11404. uint Seek(uint);
  11405. void SetData(Deserializer, uint);
  11406. uint Write(Array<uint8>);
  11407. bool WriteBool(bool);
  11408. bool WriteBoundingBox(const BoundingBox&);
  11409. bool WriteByte(int8);
  11410. bool WriteColor(const Color&);
  11411. bool WriteFileID(const String&);
  11412. bool WriteFloat(float);
  11413. bool WriteInt(int);
  11414. bool WriteIntRect(const IntRect&);
  11415. bool WriteIntVector2(const IntVector2&);
  11416. bool WriteLine(const String&);
  11417. bool WriteMatrix3(const Matrix3&);
  11418. bool WriteMatrix3x4(const Matrix3x4&);
  11419. bool WriteMatrix4(const Matrix4&);
  11420. bool WriteNetID(uint);
  11421. bool WritePackedQuaternion(const Quaternion&);
  11422. bool WritePackedVector3(const Vector3&, float);
  11423. bool WriteQuaternion(const Quaternion&);
  11424. bool WriteShort(int16);
  11425. bool WriteString(const String&);
  11426. bool WriteStringHash(const StringHash&);
  11427. bool WriteUByte(uint8);
  11428. bool WriteUInt(uint);
  11429. bool WriteUShort(uint16);
  11430. bool WriteVLE(uint);
  11431. bool WriteVariant(const Variant&);
  11432. bool WriteVariantMap(const VariantMap&);
  11433. bool WriteVector2(const Vector2&);
  11434. bool WriteVector3(const Vector3&);
  11435. bool WriteVector4(const Vector4&);
  11436. bool WriteVectorBuffer(const VectorBuffer&);
  11437. // Properties:
  11438. /* readonly */
  11439. uint checksum;
  11440. /* readonly */
  11441. bool eof;
  11442. /* readonly */
  11443. String name;
  11444. /* readonly */
  11445. uint position;
  11446. /* readonly */
  11447. uint size;
  11448. };
  11449. class VertexBuffer
  11450. {
  11451. // Methods:
  11452. VectorBuffer GetData();
  11453. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11454. bool SetData(VectorBuffer&);
  11455. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  11456. void SetSize(uint, uint, bool = false);
  11457. // Properties:
  11458. /* readonly */
  11459. StringHash baseType;
  11460. /* readonly */
  11461. String category;
  11462. /* readonly */
  11463. bool dynamic;
  11464. /* readonly */
  11465. uint elementMask;
  11466. /* readonly */
  11467. int refs;
  11468. bool shadowed;
  11469. /* readonly */
  11470. StringHash type;
  11471. /* readonly */
  11472. String typeName;
  11473. /* readonly */
  11474. uint vertexCount;
  11475. /* readonly */
  11476. uint vertexSize;
  11477. /* readonly */
  11478. int weakRefs;
  11479. };
  11480. class View3D
  11481. {
  11482. // Methods:
  11483. void AddChild(UIElement);
  11484. void ApplyAttributes();
  11485. void BringToFront();
  11486. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11487. void DisableLayoutUpdate();
  11488. IntVector2 ElementToScreen(const IntVector2&);
  11489. void EnableLayoutUpdate();
  11490. uint FindChild(UIElement) const;
  11491. Variant GetAttribute(const String&) const;
  11492. ValueAnimation GetAttributeAnimation(const String&) const;
  11493. float GetAttributeAnimationSpeed(const String&) const;
  11494. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11495. Variant GetAttributeDefault(const String&) const;
  11496. UIElement GetChild(const String&, bool = false) const;
  11497. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11498. Array<UIElement> GetChildren(bool = false) const;
  11499. UIElement GetElementEventSender() const;
  11500. bool GetInterceptNetworkUpdate(const String&) const;
  11501. uint GetNumChildren(bool) const;
  11502. void InsertChild(uint, UIElement);
  11503. bool IsInside(IntVector2, bool);
  11504. bool IsInsideCombined(IntVector2, bool);
  11505. bool Load(File, bool = false);
  11506. bool Load(VectorBuffer&, bool = false);
  11507. bool LoadChildXML(XMLFile, XMLFile = null);
  11508. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11509. bool LoadXML(File);
  11510. bool LoadXML(VectorBuffer&);
  11511. bool LoadXML(XMLFile, XMLFile);
  11512. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11513. bool LoadXML(const XMLElement&, bool = false);
  11514. void MarkNetworkUpdate() const;
  11515. void QueueUpdate();
  11516. void Remove();
  11517. void RemoveAllChildren();
  11518. void RemoveChild(UIElement, uint = 0);
  11519. void RemoveChild(uint);
  11520. void RemoveInstanceDefault();
  11521. void ResetDeepEnabled();
  11522. void ResetToDefault();
  11523. bool Save(File) const;
  11524. bool Save(VectorBuffer&) const;
  11525. bool SaveXML(File, const String& = "\t");
  11526. bool SaveXML(VectorBuffer&, const String& = "\t");
  11527. bool SaveXML(XMLElement&) const;
  11528. IntVector2 ScreenToElement(const IntVector2&);
  11529. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11530. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11531. bool SetAttribute(const String&, const Variant&);
  11532. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11533. void SetAttributeAnimationSpeed(const String&, float);
  11534. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11535. void SetDeepEnabled(bool);
  11536. void SetEnabledRecursive(bool);
  11537. void SetFixedHeight(int);
  11538. void SetFixedSize(int, int);
  11539. void SetFixedWidth(int);
  11540. void SetInterceptNetworkUpdate(const String&, bool);
  11541. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11542. void SetMaxSize(int, int);
  11543. void SetMinSize(int, int);
  11544. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11545. void SetPosition(int, int);
  11546. void SetSize(int, int);
  11547. bool SetStyle(const String&, XMLFile = null);
  11548. bool SetStyle(const XMLElement&);
  11549. bool SetStyleAuto(XMLFile = null);
  11550. void SetView(Scene, Camera, bool = true);
  11551. void UpdateLayout();
  11552. const Variant& GetVar(const StringHash&);
  11553. // Properties:
  11554. bool animationEnabled;
  11555. /* readonly */
  11556. Array<Variant> attributeDefaults;
  11557. /* readonly */
  11558. Array<AttributeInfo> attributeInfos;
  11559. Array<Variant> attributes;
  11560. bool autoUpdate;
  11561. /* readonly */
  11562. StringHash baseType;
  11563. bool bringToBack;
  11564. bool bringToFront;
  11565. /* readonly */
  11566. Node cameraNode;
  11567. /* readonly */
  11568. String category;
  11569. /* readonly */
  11570. IntVector2 childOffset;
  11571. /* readonly */
  11572. Array<UIElement> children;
  11573. IntRect clipBorder;
  11574. bool clipChildren;
  11575. /* writeonly */
  11576. Color color;
  11577. /* readonly */
  11578. bool colorGradient;
  11579. Array<Color> colors;
  11580. /* readonly */
  11581. IntRect combinedScreenRect;
  11582. XMLFile defaultStyle;
  11583. /* readonly */
  11584. Texture2D depthTexture;
  11585. /* readonly */
  11586. float derivedOpacity;
  11587. /* readonly */
  11588. uint dragButtonCombo;
  11589. /* readonly */
  11590. int dragButtonCount;
  11591. uint dragDropMode;
  11592. bool editable;
  11593. bool elementEventSender;
  11594. bool enabled;
  11595. /* readonly */
  11596. bool enabledSelf;
  11597. /* readonly */
  11598. bool fixedHeight;
  11599. bool fixedHeightResizing;
  11600. /* readonly */
  11601. bool fixedSize;
  11602. /* readonly */
  11603. bool fixedWidth;
  11604. bool fixedWidthResizing;
  11605. bool focus;
  11606. FocusMode focusMode;
  11607. uint format;
  11608. int height;
  11609. HorizontalAlignment horizontalAlignment;
  11610. /* readonly */
  11611. bool hovering;
  11612. int indent;
  11613. int indentSpacing;
  11614. /* readonly */
  11615. int indentWidth;
  11616. bool internal;
  11617. IntRect layoutBorder;
  11618. Vector2 layoutFlexScale;
  11619. LayoutMode layoutMode;
  11620. int layoutSpacing;
  11621. int maxHeight;
  11622. IntVector2 maxSize;
  11623. int maxWidth;
  11624. int minHeight;
  11625. IntVector2 minSize;
  11626. int minWidth;
  11627. bool modal;
  11628. bool modalAutoDismiss;
  11629. Color modalFrameColor;
  11630. IntVector2 modalFrameSize;
  11631. Color modalShadeColor;
  11632. bool movable;
  11633. String name;
  11634. /* readonly */
  11635. uint numAllChildren;
  11636. /* readonly */
  11637. uint numAttributes;
  11638. /* readonly */
  11639. uint numChildren;
  11640. ObjectAnimation objectAnimation;
  11641. float opacity;
  11642. UIElement parent;
  11643. IntVector2 position;
  11644. int priority;
  11645. /* readonly */
  11646. int refs;
  11647. /* readonly */
  11648. Texture2D renderTexture;
  11649. bool resizable;
  11650. IntRect resizeBorder;
  11651. /* readonly */
  11652. UIElement root;
  11653. /* readonly */
  11654. Scene scene;
  11655. /* readonly */
  11656. IntVector2 screenPosition;
  11657. bool selected;
  11658. IntVector2 size;
  11659. bool sortChildren;
  11660. String style;
  11661. bool temporary;
  11662. TraversalMode traversalMode;
  11663. /* readonly */
  11664. StringHash type;
  11665. /* readonly */
  11666. String typeName;
  11667. bool useDerivedOpacity;
  11668. /* readonly */
  11669. VariantMap vars;
  11670. VerticalAlignment verticalAlignment;
  11671. /* readonly */
  11672. Viewport viewport;
  11673. bool visible;
  11674. /* readonly */
  11675. int weakRefs;
  11676. int width;
  11677. };
  11678. class Viewport
  11679. {
  11680. // Methods:
  11681. Ray GetScreenRay(int, int) const;
  11682. Vector3 ScreenToWorldPoint(int, int, float) const;
  11683. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11684. void SetRenderPath(XMLFile);
  11685. Vector2 WorldToScreenPoint(const Vector3&) const;
  11686. // Properties:
  11687. /* readonly */
  11688. StringHash baseType;
  11689. Camera camera;
  11690. /* readonly */
  11691. String category;
  11692. bool drawDebug;
  11693. IntRect rect;
  11694. /* readonly */
  11695. int refs;
  11696. RenderPath renderPath;
  11697. Scene scene;
  11698. /* readonly */
  11699. StringHash type;
  11700. /* readonly */
  11701. String typeName;
  11702. /* readonly */
  11703. int weakRefs;
  11704. };
  11705. class WeakHandle
  11706. {
  11707. // Methods:
  11708. RefCounted Get() const;
  11709. // Properties:
  11710. /* readonly */
  11711. bool expired;
  11712. /* readonly */
  11713. int refs;
  11714. /* readonly */
  11715. int weakRefs;
  11716. };
  11717. class Window
  11718. {
  11719. // Methods:
  11720. void AddChild(UIElement);
  11721. void ApplyAttributes();
  11722. void BringToFront();
  11723. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11724. void DisableLayoutUpdate();
  11725. IntVector2 ElementToScreen(const IntVector2&);
  11726. void EnableLayoutUpdate();
  11727. uint FindChild(UIElement) const;
  11728. Variant GetAttribute(const String&) const;
  11729. ValueAnimation GetAttributeAnimation(const String&) const;
  11730. float GetAttributeAnimationSpeed(const String&) const;
  11731. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11732. Variant GetAttributeDefault(const String&) const;
  11733. UIElement GetChild(const String&, bool = false) const;
  11734. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11735. Array<UIElement> GetChildren(bool = false) const;
  11736. UIElement GetElementEventSender() const;
  11737. bool GetInterceptNetworkUpdate(const String&) const;
  11738. uint GetNumChildren(bool) const;
  11739. void InsertChild(uint, UIElement);
  11740. bool IsInside(IntVector2, bool);
  11741. bool IsInsideCombined(IntVector2, bool);
  11742. bool Load(File, bool = false);
  11743. bool Load(VectorBuffer&, bool = false);
  11744. bool LoadChildXML(XMLFile, XMLFile = null);
  11745. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11746. bool LoadXML(File);
  11747. bool LoadXML(VectorBuffer&);
  11748. bool LoadXML(XMLFile, XMLFile);
  11749. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11750. bool LoadXML(const XMLElement&, bool = false);
  11751. void MarkNetworkUpdate() const;
  11752. void Remove();
  11753. void RemoveAllChildren();
  11754. void RemoveChild(UIElement, uint = 0);
  11755. void RemoveChild(uint);
  11756. void RemoveInstanceDefault();
  11757. void ResetDeepEnabled();
  11758. void ResetToDefault();
  11759. bool Save(File) const;
  11760. bool Save(VectorBuffer&) const;
  11761. bool SaveXML(File, const String& = "\t");
  11762. bool SaveXML(VectorBuffer&, const String& = "\t");
  11763. bool SaveXML(XMLElement&) const;
  11764. IntVector2 ScreenToElement(const IntVector2&);
  11765. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11766. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11767. bool SetAttribute(const String&, const Variant&);
  11768. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11769. void SetAttributeAnimationSpeed(const String&, float);
  11770. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11771. void SetDeepEnabled(bool);
  11772. void SetEnabledRecursive(bool);
  11773. void SetFixedHeight(int);
  11774. void SetFixedSize(int, int);
  11775. void SetFixedWidth(int);
  11776. void SetInterceptNetworkUpdate(const String&, bool);
  11777. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11778. void SetMaxSize(int, int);
  11779. void SetMinSize(int, int);
  11780. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11781. void SetPosition(int, int);
  11782. void SetSize(int, int);
  11783. bool SetStyle(const String&, XMLFile = null);
  11784. bool SetStyle(const XMLElement&);
  11785. bool SetStyleAuto(XMLFile = null);
  11786. void UpdateLayout();
  11787. const Variant& GetVar(const StringHash&);
  11788. // Properties:
  11789. bool animationEnabled;
  11790. /* readonly */
  11791. Array<Variant> attributeDefaults;
  11792. /* readonly */
  11793. Array<AttributeInfo> attributeInfos;
  11794. Array<Variant> attributes;
  11795. /* readonly */
  11796. StringHash baseType;
  11797. bool bringToBack;
  11798. bool bringToFront;
  11799. /* readonly */
  11800. String category;
  11801. /* readonly */
  11802. IntVector2 childOffset;
  11803. /* readonly */
  11804. Array<UIElement> children;
  11805. IntRect clipBorder;
  11806. bool clipChildren;
  11807. /* writeonly */
  11808. Color color;
  11809. /* readonly */
  11810. bool colorGradient;
  11811. Array<Color> colors;
  11812. /* readonly */
  11813. IntRect combinedScreenRect;
  11814. XMLFile defaultStyle;
  11815. /* readonly */
  11816. float derivedOpacity;
  11817. /* readonly */
  11818. uint dragButtonCombo;
  11819. /* readonly */
  11820. int dragButtonCount;
  11821. uint dragDropMode;
  11822. bool editable;
  11823. bool elementEventSender;
  11824. bool enabled;
  11825. /* readonly */
  11826. bool enabledSelf;
  11827. /* readonly */
  11828. bool fixedHeight;
  11829. bool fixedHeightResizing;
  11830. /* readonly */
  11831. bool fixedSize;
  11832. /* readonly */
  11833. bool fixedWidth;
  11834. bool fixedWidthResizing;
  11835. bool focus;
  11836. FocusMode focusMode;
  11837. int height;
  11838. HorizontalAlignment horizontalAlignment;
  11839. /* readonly */
  11840. bool hovering;
  11841. int indent;
  11842. int indentSpacing;
  11843. /* readonly */
  11844. int indentWidth;
  11845. bool internal;
  11846. IntRect layoutBorder;
  11847. Vector2 layoutFlexScale;
  11848. LayoutMode layoutMode;
  11849. int layoutSpacing;
  11850. int maxHeight;
  11851. IntVector2 maxSize;
  11852. int maxWidth;
  11853. int minHeight;
  11854. IntVector2 minSize;
  11855. int minWidth;
  11856. bool modal;
  11857. bool modalAutoDismiss;
  11858. Color modalFrameColor;
  11859. IntVector2 modalFrameSize;
  11860. Color modalShadeColor;
  11861. bool movable;
  11862. String name;
  11863. /* readonly */
  11864. uint numAllChildren;
  11865. /* readonly */
  11866. uint numAttributes;
  11867. /* readonly */
  11868. uint numChildren;
  11869. ObjectAnimation objectAnimation;
  11870. float opacity;
  11871. UIElement parent;
  11872. IntVector2 position;
  11873. int priority;
  11874. /* readonly */
  11875. int refs;
  11876. bool resizable;
  11877. IntRect resizeBorder;
  11878. /* readonly */
  11879. UIElement root;
  11880. /* readonly */
  11881. IntVector2 screenPosition;
  11882. bool selected;
  11883. IntVector2 size;
  11884. bool sortChildren;
  11885. String style;
  11886. bool temporary;
  11887. TraversalMode traversalMode;
  11888. /* readonly */
  11889. StringHash type;
  11890. /* readonly */
  11891. String typeName;
  11892. bool useDerivedOpacity;
  11893. /* readonly */
  11894. VariantMap vars;
  11895. VerticalAlignment verticalAlignment;
  11896. bool visible;
  11897. /* readonly */
  11898. int weakRefs;
  11899. int width;
  11900. };
  11901. class XMLElement
  11902. {
  11903. // Methods:
  11904. XMLElement CreateChild(const String&);
  11905. String GetAttribute(const String& = String ( )) const;
  11906. String GetAttributeLower(const String&) const;
  11907. Array<String> GetAttributeNames() const;
  11908. String GetAttributeUpper(const String&) const;
  11909. bool GetBool(const String&) const;
  11910. BoundingBox GetBoundingBox() const;
  11911. XMLElement GetChild(const String& = String ( )) const;
  11912. Color GetColor(const String&) const;
  11913. float GetFloat(const String&) const;
  11914. int GetInt(const String&) const;
  11915. Matrix3 GetMatrix3(const String&) const;
  11916. Matrix3x4 GetMatrix3x4(const String&) const;
  11917. Matrix4 GetMatrix4(const String&) const;
  11918. XMLElement GetNext(const String& = String ( )) const;
  11919. Quaternion GetQuaternion(const String&) const;
  11920. ResourceRef GetResourceRef() const;
  11921. ResourceRefList GetResourceRefList() const;
  11922. uint GetUInt(const String&) const;
  11923. String GetValue() const;
  11924. Variant GetVariant() const;
  11925. VariantMap GetVariantMap() const;
  11926. Array<Variant> GetVariantVector() const;
  11927. Vector2 GetVector2(const String&) const;
  11928. Vector3 GetVector3(const String&) const;
  11929. Vector4 GetVector4(const String&) const;
  11930. Variant GetVectorVariant(const String&) const;
  11931. bool HasAttribute(const String&) const;
  11932. bool HasChild(const String&) const;
  11933. bool RemoveAttribute(const String& = String ( ));
  11934. bool RemoveChild(const String&);
  11935. bool RemoveChild(const XMLElement&);
  11936. bool RemoveChildren(const String& = String ( ));
  11937. XPathResultSet Select(const String&);
  11938. XPathResultSet SelectPrepared(const XPathQuery&);
  11939. XMLElement SelectSingle(const String&);
  11940. XMLElement SelectSinglePrepared(const XPathQuery&);
  11941. bool SetAttribute(const String&);
  11942. bool SetAttribute(const String&, const String&);
  11943. bool SetBool(const String&, bool);
  11944. bool SetBoundingBox(const BoundingBox&);
  11945. bool SetColor(const String&, const Color&);
  11946. bool SetFloat(const String&, float);
  11947. bool SetInt(const String&, int);
  11948. bool SetMatrix3(const String&, const Matrix3&);
  11949. bool SetMatrix3x4(const String&, const Matrix3x4&);
  11950. bool SetMatrix4(const String&, const Matrix4&);
  11951. bool SetQuaternion(const String&, const Quaternion&);
  11952. bool SetResourceRef(const String&, const ResourceRef&);
  11953. bool SetResourceRefList(const String&, const ResourceRefList&);
  11954. bool SetUInt(const String&, uint);
  11955. bool SetValue(const String&);
  11956. bool SetVariant(const Variant&);
  11957. bool SetVariantMap(const VariantMap&);
  11958. bool SetVariantVector(Array<Variant>);
  11959. bool SetVector2(const String&, const Vector2&);
  11960. bool SetVector3(const String&, const Vector3&);
  11961. bool SetVector4(const String&, const Vector4&);
  11962. bool SetVectorVariant(const String&, const Variant&);
  11963. // Properties:
  11964. /* readonly */
  11965. XMLFile file;
  11966. /* readonly */
  11967. bool isNull;
  11968. /* readonly */
  11969. String name;
  11970. /* readonly */
  11971. XMLElement nextResult;
  11972. /* readonly */
  11973. bool notNull;
  11974. /* readonly */
  11975. uint numAttributes;
  11976. /* readonly */
  11977. XMLElement parent;
  11978. String value;
  11979. };
  11980. class XMLFile
  11981. {
  11982. // Methods:
  11983. XMLElement CreateRoot(const String&);
  11984. bool FromString(const String&);
  11985. XMLElement GetRoot(const String& = String ( ));
  11986. bool Load(File);
  11987. bool Load(VectorBuffer&);
  11988. void Patch(XMLElement);
  11989. void Patch(XMLFile);
  11990. bool Save(File) const;
  11991. bool Save(File, const String&) const;
  11992. bool Save(VectorBuffer&) const;
  11993. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11994. String ToString(const String& = String ( "\t" )) const;
  11995. // Properties:
  11996. /* readonly */
  11997. StringHash baseType;
  11998. /* readonly */
  11999. String category;
  12000. /* readonly */
  12001. uint memoryUse;
  12002. String name;
  12003. /* readonly */
  12004. int refs;
  12005. /* readonly */
  12006. XMLElement root;
  12007. /* readonly */
  12008. StringHash type;
  12009. /* readonly */
  12010. String typeName;
  12011. /* readonly */
  12012. uint useTimer;
  12013. /* readonly */
  12014. int weakRefs;
  12015. };
  12016. class XPathQuery
  12017. {
  12018. // Methods:
  12019. void Bind();
  12020. void Clear();
  12021. XPathResultSet Evaluate(XMLElement);
  12022. bool EvaluateToBool(XMLElement);
  12023. float EvaluateToFloat(XMLElement);
  12024. String EvaluateToString(XMLElement);
  12025. bool SetQuery(const String&, const String& = String ( ), bool = true);
  12026. bool SetVariable(const String&, bool);
  12027. bool SetVariable(const String&, const String&);
  12028. bool SetVariable(const String&, const XPathResultSet&);
  12029. bool SetVariable(const String&, float);
  12030. // Properties:
  12031. String query;
  12032. };
  12033. class XPathResultSet
  12034. {
  12035. // Properties:
  12036. /* readonly */
  12037. bool empty;
  12038. /* readonly */
  12039. XMLElement firstResult;
  12040. /* readonly */
  12041. uint size;
  12042. };
  12043. class Zone
  12044. {
  12045. // Methods:
  12046. void ApplyAttributes();
  12047. void DrawDebugGeometry(DebugRenderer, bool);
  12048. Variant GetAttribute(const String&) const;
  12049. ValueAnimation GetAttributeAnimation(const String&) const;
  12050. float GetAttributeAnimationSpeed(const String&) const;
  12051. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12052. Variant GetAttributeDefault(const String&) const;
  12053. bool GetInterceptNetworkUpdate(const String&) const;
  12054. bool IsInView(Camera) const;
  12055. bool Load(File, bool = false);
  12056. bool Load(VectorBuffer&, bool = false);
  12057. bool LoadXML(const XMLElement&, bool = false);
  12058. void MarkNetworkUpdate() const;
  12059. void Remove();
  12060. void RemoveInstanceDefault();
  12061. void ResetToDefault();
  12062. bool Save(File) const;
  12063. bool Save(VectorBuffer&) const;
  12064. bool SaveXML(XMLElement&) const;
  12065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12066. bool SetAttribute(const String&, const Variant&);
  12067. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12068. void SetAttributeAnimationSpeed(const String&, float);
  12069. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12070. void SetInterceptNetworkUpdate(const String&, bool);
  12071. // Properties:
  12072. Color ambientColor;
  12073. /* readonly */
  12074. Color ambientEndColor;
  12075. bool ambientGradient;
  12076. /* readonly */
  12077. Color ambientStartColor;
  12078. bool animationEnabled;
  12079. /* readonly */
  12080. Array<Variant> attributeDefaults;
  12081. /* readonly */
  12082. Array<AttributeInfo> attributeInfos;
  12083. Array<Variant> attributes;
  12084. /* readonly */
  12085. StringHash baseType;
  12086. BoundingBox boundingBox;
  12087. bool castShadows;
  12088. /* readonly */
  12089. String category;
  12090. float drawDistance;
  12091. bool enabled;
  12092. /* readonly */
  12093. bool enabledEffective;
  12094. Color fogColor;
  12095. float fogEnd;
  12096. float fogHeight;
  12097. float fogHeightScale;
  12098. float fogStart;
  12099. bool heightFog;
  12100. /* readonly */
  12101. uint id;
  12102. /* readonly */
  12103. bool inView;
  12104. /* readonly */
  12105. Matrix3x4 inverseWorldTransform;
  12106. uint lightMask;
  12107. float lodBias;
  12108. uint maxLights;
  12109. /* readonly */
  12110. Node node;
  12111. /* readonly */
  12112. uint numAttributes;
  12113. ObjectAnimation objectAnimation;
  12114. bool occludee;
  12115. bool occluder;
  12116. bool override;
  12117. int priority;
  12118. /* readonly */
  12119. int refs;
  12120. float shadowDistance;
  12121. uint shadowMask;
  12122. bool temporary;
  12123. /* readonly */
  12124. StringHash type;
  12125. /* readonly */
  12126. String typeName;
  12127. uint viewMask;
  12128. /* readonly */
  12129. int weakRefs;
  12130. /* readonly */
  12131. BoundingBox worldBoundingBox;
  12132. uint zoneMask;
  12133. Texture zoneTexture;
  12134. };
  12135. // Enumerations
  12136. enum BlendMode
  12137. {
  12138. BLEND_REPLACE,
  12139. BLEND_ADD,
  12140. BLEND_MULTIPLY,
  12141. BLEND_ALPHA,
  12142. BLEND_ADDALPHA,
  12143. BLEND_PREMULALPHA,
  12144. BLEND_INVDESTALPHA,
  12145. BLEND_SUBTRACT,
  12146. BLEND_SUBTRACTALPHA,
  12147. };
  12148. enum BodyType2D
  12149. {
  12150. BT_STATIC,
  12151. BT_DYNAMIC,
  12152. BT_KINEMATIC,
  12153. };
  12154. enum CollisionEventMode
  12155. {
  12156. COLLISION_NEVER,
  12157. COLLISION_ACTIVE,
  12158. COLLISION_ALWAYS,
  12159. };
  12160. enum CompareMode
  12161. {
  12162. CMP_ALWAYS,
  12163. CMP_EQUAL,
  12164. CMP_NOTEQUAL,
  12165. CMP_LESS,
  12166. CMP_LESSEQUAL,
  12167. CMP_GREATER,
  12168. CMP_GREATEREQUAL,
  12169. };
  12170. enum CompressedFormat
  12171. {
  12172. CF_NONE,
  12173. CF_RGBA,
  12174. CF_DXT1,
  12175. CF_DXT3,
  12176. CF_DXT5,
  12177. CF_ETC1,
  12178. CF_PVRTC_RGB_2BPP,
  12179. CF_PVRTC_RGBA_2BPP,
  12180. CF_PVRTC_RGB_4BPP,
  12181. CF_PVRTC_RGBA_4BPP,
  12182. };
  12183. enum ConstraintType
  12184. {
  12185. CONSTRAINT_POINT,
  12186. CONSTRAINT_HINGE,
  12187. CONSTRAINT_SLIDER,
  12188. CONSTRAINT_CONETWIST,
  12189. };
  12190. enum Corner
  12191. {
  12192. C_TOPLEFT,
  12193. C_TOPRIGHT,
  12194. C_BOTTOMLEFT,
  12195. C_BOTTOMRIGHT,
  12196. };
  12197. enum CreateMode
  12198. {
  12199. REPLICATED,
  12200. LOCAL,
  12201. };
  12202. enum CrowdAgentState
  12203. {
  12204. CROWD_AGENT_INVALID,
  12205. CROWD_AGENT_READY,
  12206. CROWD_AGENT_TRAVERSINGLINK,
  12207. };
  12208. enum CrowdTargetState
  12209. {
  12210. CROWD_AGENT_TARGET_NONE,
  12211. CROWD_AGENT_TARGET_FAILED,
  12212. CROWD_AGENT_TARGET_VALID,
  12213. CROWD_AGENT_TARGET_REQUESTING,
  12214. CROWD_AGENT_TARGET_WAITINGFORQUEUE,
  12215. CROWD_AGENT_TARGET_WAITINGFORPATH,
  12216. CROWD_AGENT_TARGET_VELOCITY,
  12217. };
  12218. enum CubeMapFace
  12219. {
  12220. FACE_POSITIVE_X,
  12221. FACE_NEGATIVE_X,
  12222. FACE_POSITIVE_Y,
  12223. FACE_NEGATIVE_Y,
  12224. FACE_POSITIVE_Z,
  12225. FACE_NEGATIVE_Z,
  12226. };
  12227. enum CullMode
  12228. {
  12229. CULL_NONE,
  12230. CULL_CCW,
  12231. CULL_CW,
  12232. };
  12233. enum CursorShape
  12234. {
  12235. CS_NORMAL,
  12236. CS_IBEAM,
  12237. CS_CROSS,
  12238. CS_RESIZEVERTICAL,
  12239. CS_RESIZEDIAGONAL_TOPRIGHT,
  12240. CS_RESIZEHORIZONTAL,
  12241. CS_RESIZEDIAGONAL_TOPLEFT,
  12242. CS_RESIZE_ALL,
  12243. CS_ACCEPTDROP,
  12244. CS_REJECTDROP,
  12245. CS_BUSY,
  12246. CS_BUSY_ARROW,
  12247. };
  12248. enum DumpMode
  12249. {
  12250. DOXYGEN,
  12251. C_HEADER,
  12252. };
  12253. enum EmitterType
  12254. {
  12255. EMITTER_SPHERE,
  12256. EMITTER_BOX,
  12257. };
  12258. enum EmitterType2D
  12259. {
  12260. EMITTER_TYPE_GRAVITY,
  12261. EMITTER_TYPE_RADIAL,
  12262. };
  12263. enum FaceCameraMode
  12264. {
  12265. FC_NONE,
  12266. FC_ROTATE_XYZ,
  12267. FC_ROTATE_Y,
  12268. FC_LOOKAT_XYZ,
  12269. FC_LOOKAT_Y,
  12270. };
  12271. enum FileMode
  12272. {
  12273. FILE_READ,
  12274. FILE_WRITE,
  12275. FILE_READWRITE,
  12276. };
  12277. enum FillMode
  12278. {
  12279. FILL_SOLID,
  12280. FILL_WIREFRAME,
  12281. FILL_POINT,
  12282. };
  12283. enum FocusMode
  12284. {
  12285. FM_NOTFOCUSABLE,
  12286. FM_RESETFOCUS,
  12287. FM_FOCUSABLE,
  12288. FM_FOCUSABLE_DEFOCUSABLE,
  12289. };
  12290. enum HighlightMode
  12291. {
  12292. HM_NEVER,
  12293. HM_FOCUS,
  12294. HM_ALWAYS,
  12295. };
  12296. enum HorizontalAlignment
  12297. {
  12298. HA_LEFT,
  12299. HA_CENTER,
  12300. HA_RIGHT,
  12301. };
  12302. enum HttpRequestState
  12303. {
  12304. HTTP_INITIALIZING,
  12305. HTTP_ERROR,
  12306. HTTP_OPEN,
  12307. HTTP_CLOSED,
  12308. };
  12309. enum InterpMethod
  12310. {
  12311. IM_LINEAR,
  12312. IM_SPLINE,
  12313. };
  12314. enum InterpolationMode
  12315. {
  12316. BEZIER_CURVE,
  12317. };
  12318. enum Intersection
  12319. {
  12320. OUTSIDE,
  12321. INTERSECTS,
  12322. INSIDE,
  12323. };
  12324. enum JSONValueType
  12325. {
  12326. JSON_ANY,
  12327. JSON_OBJECT,
  12328. JSON_ARRAY,
  12329. };
  12330. enum LayoutMode
  12331. {
  12332. LM_FREE,
  12333. LM_HORIZONTAL,
  12334. LM_VERTICAL,
  12335. };
  12336. enum LightType
  12337. {
  12338. LIGHT_DIRECTIONAL,
  12339. LIGHT_SPOT,
  12340. LIGHT_POINT,
  12341. };
  12342. enum LoadMode
  12343. {
  12344. LOAD_RESOURCES_ONLY,
  12345. LOAD_SCENE,
  12346. LOAD_SCENE_AND_RESOURCES,
  12347. };
  12348. enum LoopMode2D
  12349. {
  12350. LM_DEFAULT,
  12351. LM_FORCE_LOOPED,
  12352. LM_FORCE_CLAMPED,
  12353. };
  12354. enum MouseMode
  12355. {
  12356. MM_ABSOLUTE,
  12357. MM_RELATIVE,
  12358. MM_WRAP,
  12359. };
  12360. enum NavigationAvoidanceQuality
  12361. {
  12362. NAVIGATIONQUALITY_LOW,
  12363. NAVIGATIONQUALITY_MEDIUM,
  12364. NAVIGATIONQUALITY_HIGH,
  12365. };
  12366. enum NavigationPushiness
  12367. {
  12368. PUSHINESS_LOW,
  12369. PUSHINESS_MEDIUM,
  12370. PUSHINESS_HIGH,
  12371. };
  12372. enum NavmeshPartitionType
  12373. {
  12374. NAVMESH_PARTITION_WATERSHED,
  12375. NAVMESH_PARTITION_MONOTONE,
  12376. };
  12377. enum Orientation
  12378. {
  12379. O_HORIZONTAL,
  12380. O_VERTICAL,
  12381. };
  12382. enum Orientation2D
  12383. {
  12384. O_ORTHOGONAL,
  12385. O_ISOMETRIC,
  12386. O_STAGGERED,
  12387. };
  12388. enum PassLightingMode
  12389. {
  12390. LIGHTING_UNLIT,
  12391. LIGHTING_PERVERTEX,
  12392. LIGHTING_PERPIXEL,
  12393. };
  12394. enum PrimitiveType
  12395. {
  12396. TRIANGLE_LIST,
  12397. LINE_LIST,
  12398. POINT_LIST,
  12399. TRIANGLE_STRIP,
  12400. LINE_STRIP,
  12401. TRIANGLE_FAN,
  12402. };
  12403. enum RayQueryLevel
  12404. {
  12405. RAY_AABB,
  12406. RAY_OBB,
  12407. RAY_TRIANGLE,
  12408. };
  12409. enum RenderCommandSortMode
  12410. {
  12411. SORT_FRONTTOBACK,
  12412. SORT_BACKTOFRONT,
  12413. };
  12414. enum RenderCommandType
  12415. {
  12416. CMD_NONE,
  12417. CMD_CLEAR,
  12418. CMD_SCENEPASS,
  12419. CMD_QUAD,
  12420. CMD_FORWARDLIGHTS,
  12421. CMD_LIGHTVOLUMES,
  12422. CMD_RENDERUI,
  12423. };
  12424. enum RenderSurfaceUpdateMode
  12425. {
  12426. SURFACE_MANUALUPDATE,
  12427. SURFACE_UPDATEVISIBLE,
  12428. SURFACE_UPDATEALWAYS,
  12429. };
  12430. enum RenderTargetSizeMode
  12431. {
  12432. SIZE_ABSOLUTE,
  12433. SIZE_VIEWPORTDIVISOR,
  12434. SIZE_VIEWPORTMULTIPLIER,
  12435. };
  12436. enum ShapeType
  12437. {
  12438. SHAPE_BOX,
  12439. SHAPE_SPHERE,
  12440. SHAPE_STATICPLANE,
  12441. SHAPE_CYLINDER,
  12442. SHAPE_CAPSULE,
  12443. SHAPE_CONE,
  12444. SHAPE_TRIANGLEMESH,
  12445. SHAPE_CONVEXHULL,
  12446. SHAPE_TERRAIN,
  12447. };
  12448. enum TextEffect
  12449. {
  12450. TE_NONE,
  12451. TE_SHADOW,
  12452. TE_STROKE,
  12453. };
  12454. enum TextureAddressMode
  12455. {
  12456. ADDRESS_WRAP,
  12457. ADDRESS_MIRROR,
  12458. ADDRESS_CLAMP,
  12459. ADDRESS_BORDER,
  12460. };
  12461. enum TextureCoordinate
  12462. {
  12463. COORD_U,
  12464. COORD_V,
  12465. COORD_W,
  12466. };
  12467. enum TextureFilterMode
  12468. {
  12469. FILTER_NEAREST,
  12470. FILTER_BILINEAR,
  12471. FILTER_TRILINEAR,
  12472. FILTER_ANISOTROPIC,
  12473. FILTER_DEFAULT,
  12474. };
  12475. enum TextureUnit
  12476. {
  12477. TU_DIFFUSE,
  12478. TU_ALBEDOBUFFER,
  12479. TU_NORMAL,
  12480. TU_NORMALBUFFER,
  12481. TU_SPECULAR,
  12482. TU_EMISSIVE,
  12483. TU_ENVIRONMENT,
  12484. TU_LIGHTRAMP,
  12485. TU_LIGHTSHAPE,
  12486. TU_SHADOWMAP,
  12487. TU_CUSTOM1,
  12488. TU_CUSTOM2,
  12489. TU_VOLUMEMAP,
  12490. TU_FACESELECT,
  12491. TU_INDIRECTION,
  12492. TU_DEPTHBUFFER,
  12493. TU_LIGHTBUFFER,
  12494. TU_ZONE,
  12495. MAX_MATERIAL_TEXTURE_UNITS,
  12496. MAX_TEXTURE_UNITS,
  12497. };
  12498. enum TextureUsage
  12499. {
  12500. TEXTURE_STATIC,
  12501. TEXTURE_DYNAMIC,
  12502. TEXTURE_RENDERTARGET,
  12503. TEXTURE_DEPTHSTENCIL,
  12504. };
  12505. enum TileMapLayerType2D
  12506. {
  12507. LT_TILE_LAYER,
  12508. LT_OBJECT_GROUP,
  12509. LT_IMAGE_LAYER,
  12510. LT_INVALID,
  12511. };
  12512. enum TileObjectType2D
  12513. {
  12514. OT_RECTANGLE,
  12515. OT_ELLIPSE,
  12516. OT_POLYGON,
  12517. OT_POLYLINE,
  12518. OT_TILE,
  12519. OT_INVALID,
  12520. };
  12521. enum TransformSpace
  12522. {
  12523. TS_LOCAL,
  12524. TS_PARENT,
  12525. TS_WORLD,
  12526. };
  12527. enum TraversalMode
  12528. {
  12529. TM_BREADTH_FIRST,
  12530. TM_DEPTH_FIRST,
  12531. };
  12532. enum VariantType
  12533. {
  12534. VAR_NONE,
  12535. VAR_INT,
  12536. VAR_BOOL,
  12537. VAR_FLOAT,
  12538. VAR_VECTOR2,
  12539. VAR_VECTOR3,
  12540. VAR_VECTOR4,
  12541. VAR_QUATERNION,
  12542. VAR_COLOR,
  12543. VAR_STRING,
  12544. VAR_BUFFER,
  12545. VAR_VOIDPTR,
  12546. VAR_RESOURCEREF,
  12547. VAR_RESOURCEREFLIST,
  12548. VAR_VARIANTVECTOR,
  12549. VAR_VARIANTMAP,
  12550. VAR_INTRECT,
  12551. VAR_INTVECTOR2,
  12552. VAR_PTR,
  12553. VAR_MATRIX3,
  12554. VAR_MATRIX3X4,
  12555. VAR_MATRIX4,
  12556. };
  12557. enum VerticalAlignment
  12558. {
  12559. VA_TOP,
  12560. VA_CENTER,
  12561. VA_BOTTOM,
  12562. };
  12563. enum WrapMode
  12564. {
  12565. WM_LOOP,
  12566. WM_ONCE,
  12567. WM_CLAMP,
  12568. };
  12569. // Global functions
  12570. float Abs(float);
  12571. float Acos(float);
  12572. String AddTrailingSlash(const String&);
  12573. float Asin(float);
  12574. float Atan(float);
  12575. float Atan2(float, float);
  12576. float Ceil(float);
  12577. float Clamp(float, float, float);
  12578. int Clamp(int, int, int);
  12579. void ClearDelayedExecute(const String& = String ( ));
  12580. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  12581. float Cos(float);
  12582. uint CountSetBits(uint);
  12583. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  12584. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  12585. bool Equals(float, float);
  12586. void ErrorDialog(const String&, const String&);
  12587. float Floor(float);
  12588. uint GetAlphaFormat();
  12589. Array<String> GetArguments();
  12590. String GetConsoleInput();
  12591. uint GetDepthStencilFormat();
  12592. Object GetEventSender();
  12593. String GetExtension(const String&, bool = true);
  12594. String GetFileName(const String&);
  12595. String GetFileNameAndExtension(const String&, bool = false);
  12596. uint GetFloat16Format();
  12597. uint GetFloat32Format();
  12598. uint GetFormat(const String&);
  12599. String GetInternalPath(const String&);
  12600. uint GetLinearDepthFormat();
  12601. uint GetLuminanceAlphaFormat();
  12602. uint GetLuminanceFormat();
  12603. uint GetMaxBones();
  12604. uint GetNumLogicalCPUs();
  12605. uint GetNumPhysicalCPUs();
  12606. Array<String> GetObjectCategories();
  12607. Array<String> GetObjectsByCategory(const String&);
  12608. String GetParentPath(const String&);
  12609. String GetPath(const String&);
  12610. String GetPlatform();
  12611. uint GetRG16Format();
  12612. uint GetRGBA16Format();
  12613. uint GetRGBAFloat16Format();
  12614. uint GetRGBAFloat32Format();
  12615. uint GetRGBAFormat();
  12616. uint GetRGBFormat();
  12617. uint GetRGFloat16Format();
  12618. uint GetRGFloat32Format();
  12619. uint GetRandomSeed();
  12620. uint GetReadableDepthFormat();
  12621. String GetTextureUnitName(TextureUnit);
  12622. bool IsAbsolutePath(const String&);
  12623. bool IsAlpha(uint);
  12624. bool IsDigit(uint);
  12625. bool IsNaN(float);
  12626. bool IsPowerOfTwo(uint);
  12627. String Join(Array<String>&, const String&);
  12628. float Lerp(float, float, float);
  12629. void MarkNetworkUpdate();
  12630. float Max(float, float);
  12631. int Max(int, int);
  12632. float Min(float, float);
  12633. int Min(int, int);
  12634. float Mod(float, float);
  12635. uint NextPowerOfTwo(uint);
  12636. void OpenConsoleWindow();
  12637. float Pow(float, float);
  12638. void Print(bool, bool = false);
  12639. void Print(const String&, bool = false);
  12640. void Print(const Variant&, bool = false);
  12641. void Print(float, bool = false);
  12642. void Print(int, bool = false);
  12643. void Print(uint, bool = false);
  12644. void PrintCallStack(bool = false);
  12645. float Random();
  12646. float Random(float);
  12647. float Random(float, float);
  12648. int RandomInt();
  12649. int RandomInt(int);
  12650. int RandomInt(int, int);
  12651. float RandomNormal(float, float);
  12652. void Remove();
  12653. String RemoveTrailingSlash(const String&);
  12654. String ReplaceExtension(const String&, const String&);
  12655. uint SDBMHash(uint, uint8);
  12656. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12657. void SetRandomSeed(uint);
  12658. float Sign(float);
  12659. float Sin(float);
  12660. float SmoothStep(float, float, float);
  12661. float Sqrt(float);
  12662. const String& GetTypeName(StringHash);
  12663. void SubscribeToEvent(Object, const String&, const String&);
  12664. void SubscribeToEvent(const String&, const String&);
  12665. float Tan(float);
  12666. uint ToLower(uint);
  12667. String ToStringHex(int);
  12668. uint ToUpper(uint);
  12669. void UnsubscribeFromAllEvents();
  12670. void UnsubscribeFromAllEventsExcept(Array<String>);
  12671. void UnsubscribeFromEvent(Object, const String&);
  12672. void UnsubscribeFromEvent(const String&);
  12673. void UnsubscribeFromEvents(Object);
  12674. // Global properties
  12675. Audio audio;
  12676. ResourceCache cache;
  12677. Console console;
  12678. DebugHud debugHud;
  12679. DebugRenderer debugRenderer;
  12680. Engine engine;
  12681. FileSystem fileSystem;
  12682. Graphics graphics;
  12683. Input input;
  12684. Log log;
  12685. Network network;
  12686. Node node;
  12687. Octree octree;
  12688. PhysicsWorld physicsWorld;
  12689. PhysicsWorld2D physicsWorld2D;
  12690. Renderer renderer;
  12691. ResourceCache resourceCache;
  12692. Scene scene;
  12693. Script script;
  12694. ScriptFile scriptFile;
  12695. ScriptInstance self;
  12696. Time time;
  12697. UI ui;
  12698. // Global constants
  12699. uint AM_COMPONENTID;
  12700. uint AM_DEFAULT;
  12701. uint AM_FILE;
  12702. uint AM_LATESTDATA;
  12703. uint AM_NET;
  12704. uint AM_NODEID;
  12705. uint AM_NODEIDVECTOR;
  12706. uint AM_NOEDIT;
  12707. Color BLACK;
  12708. Color BLUE;
  12709. uint CLEAR_COLOR;
  12710. uint CLEAR_DEPTH;
  12711. uint CLEAR_STENCIL;
  12712. int CONTROLLER_AXIS_LEFTX;
  12713. int CONTROLLER_AXIS_LEFTY;
  12714. int CONTROLLER_AXIS_RIGHTX;
  12715. int CONTROLLER_AXIS_RIGHTY;
  12716. int CONTROLLER_AXIS_TRIGGERLEFT;
  12717. int CONTROLLER_AXIS_TRIGGERRIGHT;
  12718. int CONTROLLER_BUTTON_A;
  12719. int CONTROLLER_BUTTON_B;
  12720. int CONTROLLER_BUTTON_BACK;
  12721. int CONTROLLER_BUTTON_DPAD_DOWN;
  12722. int CONTROLLER_BUTTON_DPAD_LEFT;
  12723. int CONTROLLER_BUTTON_DPAD_RIGHT;
  12724. int CONTROLLER_BUTTON_DPAD_UP;
  12725. int CONTROLLER_BUTTON_GUIDE;
  12726. int CONTROLLER_BUTTON_LEFTSHOULDER;
  12727. int CONTROLLER_BUTTON_LEFTSTICK;
  12728. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  12729. int CONTROLLER_BUTTON_RIGHTSTICK;
  12730. int CONTROLLER_BUTTON_START;
  12731. int CONTROLLER_BUTTON_X;
  12732. int CONTROLLER_BUTTON_Y;
  12733. Color CYAN;
  12734. uint DD_DISABLED;
  12735. uint DD_SOURCE;
  12736. uint DD_SOURCE_AND_TARGET;
  12737. uint DD_TARGET;
  12738. uint DEBUGHUD_SHOW_ALL;
  12739. uint DEBUGHUD_SHOW_MODE;
  12740. uint DEBUGHUD_SHOW_NONE;
  12741. uint DEBUGHUD_SHOW_PROFILER;
  12742. uint DEBUGHUD_SHOW_STATS;
  12743. uint DEFAULT_LIGHTMASK;
  12744. uint DEFAULT_VIEWMASK;
  12745. uint DRAWABLE_ANY;
  12746. uint DRAWABLE_GEOMETRY;
  12747. uint DRAWABLE_GEOMETRY2D;
  12748. uint DRAWABLE_LIGHT;
  12749. uint DRAWABLE_ZONE;
  12750. uint FIRST_LOCAL_ID;
  12751. uint FIRST_REPLICATED_ID;
  12752. Color GRAY;
  12753. Color GREEN;
  12754. int HAT_CENTER;
  12755. int HAT_DOWN;
  12756. int HAT_LEFT;
  12757. int HAT_RIGHT;
  12758. int HAT_UP;
  12759. int KEY_0;
  12760. int KEY_1;
  12761. int KEY_2;
  12762. int KEY_3;
  12763. int KEY_4;
  12764. int KEY_5;
  12765. int KEY_6;
  12766. int KEY_7;
  12767. int KEY_8;
  12768. int KEY_9;
  12769. int KEY_A;
  12770. int KEY_ALT;
  12771. int KEY_APPLICATION;
  12772. int KEY_B;
  12773. int KEY_BACKSPACE;
  12774. int KEY_C;
  12775. int KEY_CAPSLOCK;
  12776. int KEY_CTRL;
  12777. int KEY_D;
  12778. int KEY_DELETE;
  12779. int KEY_DOWN;
  12780. int KEY_E;
  12781. int KEY_END;
  12782. int KEY_ESC;
  12783. int KEY_F;
  12784. int KEY_F1;
  12785. int KEY_F10;
  12786. int KEY_F11;
  12787. int KEY_F12;
  12788. int KEY_F13;
  12789. int KEY_F14;
  12790. int KEY_F15;
  12791. int KEY_F16;
  12792. int KEY_F17;
  12793. int KEY_F18;
  12794. int KEY_F19;
  12795. int KEY_F2;
  12796. int KEY_F20;
  12797. int KEY_F21;
  12798. int KEY_F22;
  12799. int KEY_F23;
  12800. int KEY_F24;
  12801. int KEY_F3;
  12802. int KEY_F4;
  12803. int KEY_F5;
  12804. int KEY_F6;
  12805. int KEY_F7;
  12806. int KEY_F8;
  12807. int KEY_F9;
  12808. int KEY_G;
  12809. int KEY_GUI;
  12810. int KEY_H;
  12811. int KEY_HOME;
  12812. int KEY_I;
  12813. int KEY_INSERT;
  12814. int KEY_J;
  12815. int KEY_K;
  12816. int KEY_KP_0;
  12817. int KEY_KP_1;
  12818. int KEY_KP_2;
  12819. int KEY_KP_3;
  12820. int KEY_KP_4;
  12821. int KEY_KP_5;
  12822. int KEY_KP_6;
  12823. int KEY_KP_7;
  12824. int KEY_KP_8;
  12825. int KEY_KP_9;
  12826. int KEY_KP_DIVIDE;
  12827. int KEY_KP_ENTER;
  12828. int KEY_KP_MINUS;
  12829. int KEY_KP_MULTIPLY;
  12830. int KEY_KP_PERIOD;
  12831. int KEY_KP_PLUS;
  12832. int KEY_L;
  12833. int KEY_LALT;
  12834. int KEY_LCTRL;
  12835. int KEY_LEFT;
  12836. int KEY_LGUI;
  12837. int KEY_LSHIFT;
  12838. int KEY_M;
  12839. int KEY_N;
  12840. int KEY_NUMLOCKCLEAR;
  12841. int KEY_O;
  12842. int KEY_P;
  12843. int KEY_PAGEDOWN;
  12844. int KEY_PAGEUP;
  12845. int KEY_PAUSE;
  12846. int KEY_PRINTSCREEN;
  12847. int KEY_Q;
  12848. int KEY_R;
  12849. int KEY_RALT;
  12850. int KEY_RCTRL;
  12851. int KEY_RETURN;
  12852. int KEY_RETURN2;
  12853. int KEY_RGUI;
  12854. int KEY_RIGHT;
  12855. int KEY_RSHIFT;
  12856. int KEY_S;
  12857. int KEY_SCROLLLOCK;
  12858. int KEY_SELECT;
  12859. int KEY_SHIFT;
  12860. int KEY_SPACE;
  12861. int KEY_T;
  12862. int KEY_TAB;
  12863. int KEY_U;
  12864. int KEY_UP;
  12865. int KEY_V;
  12866. int KEY_W;
  12867. int KEY_X;
  12868. int KEY_Y;
  12869. int KEY_Z;
  12870. uint LAST_LOCAL_ID;
  12871. uint LAST_REPLICATED_ID;
  12872. int LOG_DEBUG;
  12873. int LOG_ERROR;
  12874. int LOG_INFO;
  12875. int LOG_NONE;
  12876. int LOG_WARNING;
  12877. Color MAGENTA;
  12878. uint MASK_BLENDINDICES;
  12879. uint MASK_BLENDWEIGHTS;
  12880. uint MASK_COLOR;
  12881. uint MASK_CUBETEXCOORD1;
  12882. uint MASK_CUBETEXCOORD2;
  12883. uint MASK_DEFAULT;
  12884. uint MASK_INSTANCEMATRIX1;
  12885. uint MASK_INSTANCEMATRIX2;
  12886. uint MASK_INSTANCEMATRIX3;
  12887. uint MASK_NONE;
  12888. uint MASK_NORMAL;
  12889. uint MASK_POSITION;
  12890. uint MASK_TANGENT;
  12891. uint MASK_TEXCOORD1;
  12892. uint MASK_TEXCOORD2;
  12893. int MOUSEB_LEFT;
  12894. int MOUSEB_MIDDLE;
  12895. int MOUSEB_RIGHT;
  12896. float M_DEGTORAD;
  12897. float M_DEGTORAD_2;
  12898. float M_EPSILON;
  12899. float M_HALF_PI;
  12900. float M_INFINITY;
  12901. float M_LARGE_EPSILON;
  12902. float M_LARGE_VALUE;
  12903. int M_MAX_INT;
  12904. uint M_MAX_UNSIGNED;
  12905. int M_MIN_INT;
  12906. uint M_MIN_UNSIGNED;
  12907. float M_PI;
  12908. float M_RADTODEG;
  12909. float PIXEL_SIZE;
  12910. int QUALITY_HIGH;
  12911. int QUALITY_LOW;
  12912. int QUALITY_MAX;
  12913. int QUALITY_MEDIUM;
  12914. int QUAL_ALT;
  12915. int QUAL_ANY;
  12916. int QUAL_CTRL;
  12917. int QUAL_SHIFT;
  12918. Color RED;
  12919. int SCANCODE_0;
  12920. int SCANCODE_1;
  12921. int SCANCODE_2;
  12922. int SCANCODE_3;
  12923. int SCANCODE_4;
  12924. int SCANCODE_5;
  12925. int SCANCODE_6;
  12926. int SCANCODE_7;
  12927. int SCANCODE_8;
  12928. int SCANCODE_9;
  12929. int SCANCODE_A;
  12930. int SCANCODE_AC_BACK;
  12931. int SCANCODE_AC_BOOKMARKS;
  12932. int SCANCODE_AC_FORWARD;
  12933. int SCANCODE_AC_HOME;
  12934. int SCANCODE_AC_REFRESH;
  12935. int SCANCODE_AC_SEARCH;
  12936. int SCANCODE_AC_STOP;
  12937. int SCANCODE_AGAIN;
  12938. int SCANCODE_ALT;
  12939. int SCANCODE_ALTERASE;
  12940. int SCANCODE_APOSTROPHE;
  12941. int SCANCODE_APP1;
  12942. int SCANCODE_APP2;
  12943. int SCANCODE_APPLICATION;
  12944. int SCANCODE_AUDIOMUTE;
  12945. int SCANCODE_AUDIONEXT;
  12946. int SCANCODE_AUDIOPLAY;
  12947. int SCANCODE_AUDIOPREV;
  12948. int SCANCODE_AUDIOSTOP;
  12949. int SCANCODE_B;
  12950. int SCANCODE_BACKSLASH;
  12951. int SCANCODE_BACKSPACE;
  12952. int SCANCODE_BRIGHTNESSDOWN;
  12953. int SCANCODE_BRIGHTNESSUP;
  12954. int SCANCODE_C;
  12955. int SCANCODE_CALCULATOR;
  12956. int SCANCODE_CANCEL;
  12957. int SCANCODE_CAPSLOCK;
  12958. int SCANCODE_CLEAR;
  12959. int SCANCODE_CLEARAGAIN;
  12960. int SCANCODE_COMMA;
  12961. int SCANCODE_COMPUTER;
  12962. int SCANCODE_COPY;
  12963. int SCANCODE_CRSEL;
  12964. int SCANCODE_CTRL;
  12965. int SCANCODE_CURRENCYSUBUNIT;
  12966. int SCANCODE_CURRENCYUNIT;
  12967. int SCANCODE_CUT;
  12968. int SCANCODE_D;
  12969. int SCANCODE_DECIMALSEPARATOR;
  12970. int SCANCODE_DELETE;
  12971. int SCANCODE_DISPLAYSWITCH;
  12972. int SCANCODE_DOWN;
  12973. int SCANCODE_E;
  12974. int SCANCODE_EJECT;
  12975. int SCANCODE_END;
  12976. int SCANCODE_EQUALS;
  12977. int SCANCODE_ESCAPE;
  12978. int SCANCODE_EXECUTE;
  12979. int SCANCODE_EXSEL;
  12980. int SCANCODE_F;
  12981. int SCANCODE_F1;
  12982. int SCANCODE_F10;
  12983. int SCANCODE_F11;
  12984. int SCANCODE_F12;
  12985. int SCANCODE_F13;
  12986. int SCANCODE_F14;
  12987. int SCANCODE_F15;
  12988. int SCANCODE_F16;
  12989. int SCANCODE_F17;
  12990. int SCANCODE_F18;
  12991. int SCANCODE_F19;
  12992. int SCANCODE_F2;
  12993. int SCANCODE_F20;
  12994. int SCANCODE_F21;
  12995. int SCANCODE_F22;
  12996. int SCANCODE_F23;
  12997. int SCANCODE_F24;
  12998. int SCANCODE_F3;
  12999. int SCANCODE_F4;
  13000. int SCANCODE_F5;
  13001. int SCANCODE_F6;
  13002. int SCANCODE_F7;
  13003. int SCANCODE_F8;
  13004. int SCANCODE_F9;
  13005. int SCANCODE_FIND;
  13006. int SCANCODE_G;
  13007. int SCANCODE_GRAVE;
  13008. int SCANCODE_GUI;
  13009. int SCANCODE_H;
  13010. int SCANCODE_HELP;
  13011. int SCANCODE_HOME;
  13012. int SCANCODE_I;
  13013. int SCANCODE_INSERT;
  13014. int SCANCODE_INTERNATIONAL1;
  13015. int SCANCODE_INTERNATIONAL2;
  13016. int SCANCODE_INTERNATIONAL3;
  13017. int SCANCODE_INTERNATIONAL4;
  13018. int SCANCODE_INTERNATIONAL5;
  13019. int SCANCODE_INTERNATIONAL6;
  13020. int SCANCODE_INTERNATIONAL7;
  13021. int SCANCODE_INTERNATIONAL8;
  13022. int SCANCODE_INTERNATIONAL9;
  13023. int SCANCODE_J;
  13024. int SCANCODE_K;
  13025. int SCANCODE_KBDILLUMDOWN;
  13026. int SCANCODE_KBDILLUMTOGGLE;
  13027. int SCANCODE_KBDILLUMUP;
  13028. int SCANCODE_KP_0;
  13029. int SCANCODE_KP_00;
  13030. int SCANCODE_KP_000;
  13031. int SCANCODE_KP_1;
  13032. int SCANCODE_KP_2;
  13033. int SCANCODE_KP_3;
  13034. int SCANCODE_KP_4;
  13035. int SCANCODE_KP_5;
  13036. int SCANCODE_KP_6;
  13037. int SCANCODE_KP_7;
  13038. int SCANCODE_KP_8;
  13039. int SCANCODE_KP_9;
  13040. int SCANCODE_KP_A;
  13041. int SCANCODE_KP_AMPERSAND;
  13042. int SCANCODE_KP_AT;
  13043. int SCANCODE_KP_B;
  13044. int SCANCODE_KP_BACKSPACE;
  13045. int SCANCODE_KP_BINARY;
  13046. int SCANCODE_KP_C;
  13047. int SCANCODE_KP_CLEAR;
  13048. int SCANCODE_KP_CLEARENTRY;
  13049. int SCANCODE_KP_COLON;
  13050. int SCANCODE_KP_COMMA;
  13051. int SCANCODE_KP_D;
  13052. int SCANCODE_KP_DBLAMPERSAND;
  13053. int SCANCODE_KP_DBLVERTICALBAR;
  13054. int SCANCODE_KP_DECIMAL;
  13055. int SCANCODE_KP_DIVIDE;
  13056. int SCANCODE_KP_E;
  13057. int SCANCODE_KP_ENTER;
  13058. int SCANCODE_KP_EQUALS;
  13059. int SCANCODE_KP_EQUALSAS400;
  13060. int SCANCODE_KP_EXCLAM;
  13061. int SCANCODE_KP_F;
  13062. int SCANCODE_KP_GREATER;
  13063. int SCANCODE_KP_HASH;
  13064. int SCANCODE_KP_HEXADECIMAL;
  13065. int SCANCODE_KP_LEFTBRACE;
  13066. int SCANCODE_KP_LEFTPAREN;
  13067. int SCANCODE_KP_LESS;
  13068. int SCANCODE_KP_MEMADD;
  13069. int SCANCODE_KP_MEMCLEAR;
  13070. int SCANCODE_KP_MEMDIVIDE;
  13071. int SCANCODE_KP_MEMMULTIPLY;
  13072. int SCANCODE_KP_MEMRECALL;
  13073. int SCANCODE_KP_MEMSTORE;
  13074. int SCANCODE_KP_MEMSUBTRACT;
  13075. int SCANCODE_KP_MINUS;
  13076. int SCANCODE_KP_MULTIPLY;
  13077. int SCANCODE_KP_OCTAL;
  13078. int SCANCODE_KP_PERCENT;
  13079. int SCANCODE_KP_PERIOD;
  13080. int SCANCODE_KP_PLUS;
  13081. int SCANCODE_KP_PLUSMINUS;
  13082. int SCANCODE_KP_POWER;
  13083. int SCANCODE_KP_RIGHTBRACE;
  13084. int SCANCODE_KP_RIGHTPAREN;
  13085. int SCANCODE_KP_SPACE;
  13086. int SCANCODE_KP_TAB;
  13087. int SCANCODE_KP_VERTICALBAR;
  13088. int SCANCODE_KP_XOR;
  13089. int SCANCODE_L;
  13090. int SCANCODE_LALT;
  13091. int SCANCODE_LANG1;
  13092. int SCANCODE_LANG2;
  13093. int SCANCODE_LANG3;
  13094. int SCANCODE_LANG4;
  13095. int SCANCODE_LANG5;
  13096. int SCANCODE_LANG6;
  13097. int SCANCODE_LANG7;
  13098. int SCANCODE_LANG8;
  13099. int SCANCODE_LANG9;
  13100. int SCANCODE_LCTRL;
  13101. int SCANCODE_LEFT;
  13102. int SCANCODE_LEFTBRACKET;
  13103. int SCANCODE_LGUI;
  13104. int SCANCODE_LSHIFT;
  13105. int SCANCODE_M;
  13106. int SCANCODE_MAIL;
  13107. int SCANCODE_MEDIASELECT;
  13108. int SCANCODE_MENU;
  13109. int SCANCODE_MINUS;
  13110. int SCANCODE_MODE;
  13111. int SCANCODE_MUTE;
  13112. int SCANCODE_N;
  13113. int SCANCODE_NONUSBACKSLASH;
  13114. int SCANCODE_NONUSHASH;
  13115. int SCANCODE_NUMLOCKCLEAR;
  13116. int SCANCODE_O;
  13117. int SCANCODE_OPER;
  13118. int SCANCODE_OUT;
  13119. int SCANCODE_P;
  13120. int SCANCODE_PAGEDOWN;
  13121. int SCANCODE_PAGEUP;
  13122. int SCANCODE_PASTE;
  13123. int SCANCODE_PAUSE;
  13124. int SCANCODE_PERIOD;
  13125. int SCANCODE_POWER;
  13126. int SCANCODE_PRINTSCREEN;
  13127. int SCANCODE_PRIOR;
  13128. int SCANCODE_Q;
  13129. int SCANCODE_R;
  13130. int SCANCODE_RALT;
  13131. int SCANCODE_RCTRL;
  13132. int SCANCODE_RETURN;
  13133. int SCANCODE_RETURN2;
  13134. int SCANCODE_RGUI;
  13135. int SCANCODE_RIGHT;
  13136. int SCANCODE_RIGHTBRACKET;
  13137. int SCANCODE_RSHIFT;
  13138. int SCANCODE_S;
  13139. int SCANCODE_SCROLLLOCK;
  13140. int SCANCODE_SELECT;
  13141. int SCANCODE_SEMICOLON;
  13142. int SCANCODE_SEPARATOR;
  13143. int SCANCODE_SHIFT;
  13144. int SCANCODE_SLASH;
  13145. int SCANCODE_SLEEP;
  13146. int SCANCODE_SPACE;
  13147. int SCANCODE_STOP;
  13148. int SCANCODE_SYSREQ;
  13149. int SCANCODE_T;
  13150. int SCANCODE_TAB;
  13151. int SCANCODE_THOUSANDSSEPARATOR;
  13152. int SCANCODE_U;
  13153. int SCANCODE_UNDO;
  13154. int SCANCODE_UNKNOWN;
  13155. int SCANCODE_UP;
  13156. int SCANCODE_V;
  13157. int SCANCODE_VOLUMEDOWN;
  13158. int SCANCODE_VOLUMEUP;
  13159. int SCANCODE_W;
  13160. int SCANCODE_WWW;
  13161. int SCANCODE_X;
  13162. int SCANCODE_Y;
  13163. int SCANCODE_Z;
  13164. uint SCAN_DIRS;
  13165. uint SCAN_FILES;
  13166. uint SCAN_HIDDEN;
  13167. int SHADOWQUALITY_HIGH_16BIT;
  13168. int SHADOWQUALITY_HIGH_24BIT;
  13169. int SHADOWQUALITY_LOW_16BIT;
  13170. int SHADOWQUALITY_LOW_24BIT;
  13171. String SOUND_AMBIENT;
  13172. String SOUND_EFFECT;
  13173. String SOUND_MASTER;
  13174. String SOUND_MUSIC;
  13175. String SOUND_VOICE;
  13176. Color TRANSPARENT;
  13177. uint VO_DISABLE_OCCLUSION;
  13178. uint VO_DISABLE_SHADOWS;
  13179. uint VO_LOW_MATERIAL_QUALITY;
  13180. uint VO_NONE;
  13181. Color WHITE;
  13182. Color YELLOW;