AngelScriptAPI.h 228 KB

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