AngelScriptAPI.h 299 KB

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