AngelScriptAPI.h 299 KB

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