2
0

AngelScriptAPI.h 287 KB

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