AngelScriptAPI.h 294 KB

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