AngelScriptAPI.h 325 KB

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