AngelScriptAPI.h 326 KB

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