AngelScriptAPI.h 323 KB

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