AngelScriptAPI.h 312 KB

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