AngelScriptAPI.h 325 KB

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