AngelScriptAPI.h 325 KB

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