1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822 |
- <section id="General">
- <table>
- <tr>
- <th class="command">
- + - * / % & | ^ ~ = += -= *= /= %= ++ -- << <<= >>
- >>= &= ^= |= || && () < > <= >= == ! !=
- if while break continue elseif else
- </th>
- <th class="desc">work as in any general purpose programming language</th>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>a = 3 * (5 - 1);<br>a++;<br>a <<= 3;</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">for</th>
- <th class="desc">executes the start instruction once, and repeats the block and the per loop function until the loop check is false</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>for(start_instruction; loop_check; per_loop) { } </td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>for(i = 0; i < 5; i++) { print("hi"); }</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">functions</th>
- <th class="desc">functions can be written and have their own scope, global variables can be accessed by using a $</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>function function_name(vars, ...) { } </td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>c = 6;<br>function printStuff(a, b)<br>{<br>print(a, b, $c);<br>}<br>printStuff(4, "Hallo");</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">print</th>
- <th class="desc">prints all arguments connected to the default console</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>print(arg, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">getVar</th>
- <th class="desc">returns the value of a variable</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>getVar(variable_name_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">setVar</th>
- <th class="desc">sets the value of a variable</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>setVar(variable_name_string, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">swap</th>
- <th class="desc">swaps the values of two variables</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>swap(var1, var2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">nothing</th>
- <th class="desc">does nothing</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>nothing()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">error</th>
- <th class="desc">sets if full stack exceptions are printed to the logger</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>error(boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">array.new</th>
- <th class="desc">initializes an array with the given size and returns the array</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>array.new(size, ...)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>a = array.new(3);<br>a[0] = 2;<br>b = array.new(3, 2)<br>b[0, 0] = 3;</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">array.getSize</th>
- <th class="desc">returns the size of an array</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>array.getSize(array)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>array.new(a[3, 2])<br>array.getSize(a)<br>array.getSize(a[0])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">read.number</th>
- <th class="desc">returns a double parsed from a string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>read.number(double_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">wait</th>
- <th class="desc">stops a script until an event is received</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>wait()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">term</th>
- <th class="desc">terminates a script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>term()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">goto</th>
- <th class="desc">jumps to a label</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>goto(label)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>the label can either be a string or @label_name, labels can be made by writing @label_name</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sgoto</th>
- <th class="desc">jumps to a label after a specific amount of scheduler ticks</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sgoto(ticks, label)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>all scheduled tasks are instantly executed on server stop</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">ignoreGoto</th>
- <th class="desc">jumps to a label if it exists</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>ignoreGoto(label)</td>
- </tr>
- <tr>
- <td class="bold">Alias</td>
- <td>iGoto(label)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">gosub</th>
- <th class="desc">jumps to a label and remembers the old position</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gosub(label)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">return</th>
- <th class="desc">returns to the previous execution position returning nothing or a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>return<br>return 5</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">waitfor</th>
- <th class="desc">waits a specific amount of scheduler ticks, no events are received while waiting, sgotos until now won´t be received anymore</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>waitfor(ticks)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">assert</th>
- <th class="desc">throws an exception of the given bool is false</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>assert(boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">isBool</th>
- <th class="desc">returns true if a value is a boolean</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>isBool(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">isDouble</th>
- <th class="desc">returns true if a value is a double</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>isDouble(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">isLong</th>
- <th class="desc">returns true if a value is a long</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>isLong(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">class</th>
- <th class="desc">returns the class of any object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>class(object)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">usedMemory</th>
- <th class="desc">returns used memory in mega bytes</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>usedmemory()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">allocatedMemory</th>
- <th class="desc">returns allocated memory in mega bytes</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>allocatedmemory()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">iterator</th>
- <th class="desc">returns an iterator</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>iterator(collection / list / set)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">hasNext</th>
- <th class="desc">returns true if the iterator has a next entry</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>hasNext(iterator)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">next</th>
- <th class="desc">returns the next entry of an iterator</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>next(iterator)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">remove</th>
- <th class="desc">removes the actual entry of an iterator</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>remove(iterator)</td>
- </tr>
- </table>
- </section>
- <section id="Event">
- <table>
- <tr>
- <th class="command">event.load</th>
- <th class="desc">loads an event, a script does not receive non loaded events</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>event.load(event_name_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">event.unload</th>
- <th class="desc">unloads an event</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>event.unload(event_name_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">event.isloaded</th>
- <th class="desc">returns true if the given event is loaded</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>event.isloaded(event_name_string)</td>
- </tr>
- </table>
- </section>
- <section id="Script">
- <table>
- <tr>
- <th class="command">script.get</th>
- <th class="desc">returns a script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.get()<br>script.get(script_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.getId</th>
- <th class="desc">returns the id of a script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.getId(script)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.getFromId</th>
- <th class="desc">returns the script with this id</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.getFromId(script_id)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.getAll</th>
- <th class="desc">returns a list with all active scripts with this name</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.getAll(script_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.term</th>
- <th class="desc">terminates a script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.term(script)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.getVar</th>
- <th class="desc">returns the value from a var from script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.getVar(script, var_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.setVar</th>
- <th class="desc">sets the value from a var from script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.setVar(script, var_name, value)</td>
- </tr>
- </table>
- </section>
- <section id="ScriptVar">
- <table>
- <tr>
- <th class="command">getScriptVar</th>
- <th class="desc">returns the value from a scriptvar (scriptvars are script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>getScriptVar(String varname)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">setScriptVar</th>
- <th class="desc">sets the value from a scriptvar (scriptvars are script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>setScriptVar(String varname, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">delScriptVar</th>
- <th class="desc">deletes a scriptvar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>delScriptVar(String varname)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">clearScriptVars</th>
- <th class="desc">clears all scriptvars</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>clearScriptVars()</td>
- </tr>
- </table>
- </section>
- <section id="Bit-Operations">
- <table>
- <tr>
- <th class="command">bit.set</th>
- <th class="desc">returns a value, where a single bit is set to 1</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>bit.set(value, bit_index)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>bit_index should be from 0 to 31</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bit.unset</th>
- <th class="desc">returns a value, where a single bit is set to 0</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>bit.unset(value, bit_index)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>bit_index should be from 0 to 31</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bit.get</th>
- <th class="desc">returns a single bit as boolean</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>bit.get(value, bit_index)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>bit_index should be from 0 to 31</td>
- </tr>
- <tr>
- <td class="bold">Returns</td>
- <td>true or false depending on the bit</td>
- </tr>
- </table>
- </section>
- <section id="Math">
- <table>
- <tr>
- <th class="command">math.min</th>
- <th class="desc">returns the lower value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.min(value1, value2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.max</th>
- <th class="desc">returns the higher value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.max(value1, value2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.abs</th>
- <th class="desc">returns the absolute value of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.abs(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.pow</th>
- <th class="desc">returns a value to the power of another</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.pow(value, power)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.root</th>
- <th class="desc">returns the given root of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.root(value, root)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.sqrt</th>
- <th class="desc">returns the square root a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.sqrt(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.hypot</th>
- <th class="desc">returns sqrt(x² + y²)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.hypot(x, y)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.sin</th>
- <th class="desc">returns the sine of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.sin(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.cos</th>
- <th class="desc">returns the cosine of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.cos(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.tan</th>
- <th class="desc">returns the tangent of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.tan(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.asin</th>
- <th class="desc">returns the arcsine of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.asin(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.acos</th>
- <th class="desc">returns the arccosine of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.acos(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.atan</th>
- <th class="desc">returns the arctangent of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.atan(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.e</th>
- <th class="desc">returns Euler's number</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.e()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.pi</th>
- <th class="desc">returns pi</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.pi()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.ln</th>
- <th class="desc">returns the natural logarithm of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.ln(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.log</th>
- <th class="desc">returns the decadic logarithm of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.log(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.random</th>
- <th class="desc">returns a random natural number between both values including both borders</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.random(from, to)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.round</th>
- <th class="desc">returns a value rounded</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.round(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.roundUp</th>
- <th class="desc">returns a value rounded up</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.roundUp(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.roundDown</th>
- <th class="desc">returns a value rounded down</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.roundDown(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.roundComma</th>
- <th class="desc">returns a value rounded to a specific number of decimals</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.roundComma(value, number_of_dezimals)</td>
- </tr>
- </table>
- </section>
- <section id="List">
- <table>
- <tr>
- <th class="command">list.new</th>
- <th class="desc">returns a new list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.new()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.exists</th>
- <th class="desc">returns true if the given value is a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.exists(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.add</th>
- <th class="desc">adds an element to a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.add(list, element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.addAll</th>
- <th class="desc">adds all given elements to the list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.addAll(List, element, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.remove</th>
- <th class="desc">removes an element from a list and returns true on success</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.remove(list, element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.removeIndex</th>
- <th class="desc">removes an element from a list at the given index and returns true on success</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.removeIndex(list, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.contains</th>
- <th class="desc">returns true if a list contains a given element</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.contains(list, element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.getSize</th>
- <th class="desc">returns the size of a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.getSize(list)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.getIndex</th>
- <th class="desc">returns the element at a given index of a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.getIndex(list, index)</td>
- </tr>
- <tr>
- <td class="bold">Alias</td>
- <td>list.get(list, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.setIndex</th>
- <th class="desc">sets the element at a given index of a list and returns the old element</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.setIndex(list, index, element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.getIndexOf</th>
- <th class="desc">returns the index of a given element in a list or -1 if the list does not contain the element</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.getIndexOf(list, element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.clear</th>
- <th class="desc">removes all elements of a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.clear(list)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.sort</th>
- <th class="desc">sorts a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.sort(list)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.reverse</th>
- <th class="desc">reverses the order of a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.reverse(list)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.shuffle</th>
- <th class="desc">shuffles a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.shuffle(list)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.iterator (deprecated)</th>
- <th class="desc">returns the iterator of a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.iterator(list)</td>
- </tr>
- </table>
- </section>
- <section id="Map">
- <table>
- <tr>
- <th class="command">map.new</th>
- <th class="desc">returns a new map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.new()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.exists</th>
- <th class="desc">returns true if the given value is a map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.exists(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.add</th>
- <th class="desc">adds a key value pair to a map and returns the old value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.add(map, key, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.remove</th>
- <th class="desc">removes a key from a map and returns the old value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.remove(map, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.contains</th>
- <th class="desc">returns true if a map contains a given key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.contains(map, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.getSize</th>
- <th class="desc">returns the size of a map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.getSize(map)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.get</th>
- <th class="desc">returns the value associated with a key in a map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.get(map, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.getOrDefault</th>
- <th class="desc">returns the value associated with a key in a map or the default value if the key is not present</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.getOrDefault(map, key, default)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.iterator</th>
- <th class="desc">returns the iterator of a map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.iterator(map)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.getKey</th>
- <th class="desc">returns the key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.getKey(iterator_element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.getValue</th>
- <th class="desc">returns the value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.getValue(iterator_element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.setValue</th>
- <th class="desc">sets the newValue and returns the oldValue</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.setValue(iterator_element, newValue)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.clear</th>
- <th class="desc">removes all key value pairs from a map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.clear(map)</td>
- </tr>
- </table>
- </section>
- <section id="Set">
- <table>
- <tr>
- <th class="command">set.new</th>
- <th class="desc">returns a new set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.new()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.exists</th>
- <th class="desc">returns true if the given value is a set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.exists(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.add</th>
- <th class="desc">adds a key to a set and returns true if the key was added</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.add(set, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.addAll</th>
- <th class="desc">adds all given keys to a set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.addAll(set, key, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.remove</th>
- <th class="desc">removes a key from a set and returns true if the key was removed</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.remove(set, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.contains</th>
- <th class="desc">returns true if a set contains a given key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.contains(set, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.getSize</th>
- <th class="desc">returns the size of a set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.getSize(set)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.clear</th>
- <th class="desc">removes all keys from a map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.clear(set)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.toList</th>
- <th class="desc">returns all keys of a set as list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.toList(set)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.iterator (deprecated)</th>
- <th class="desc">returns the iterator of a set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.iterator(set)</td>
- </tr>
- </table>
- </section>
- <section id="Time">
- <table>
- <tr>
- <th class="command">time.new</th>
- <th class="desc">returns a calendar of a given time in milliseconds</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.new(time_millis)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>time_millis are milliseconds passed since 01.01.1970</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getMillis</th>
- <th class="desc">returns the current millisecond time</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getMillis()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getNanos</th>
- <th class="desc">returns the current nanosecond time of the whole engine</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getNanos()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.from</th>
- <th class="desc">returns the millisecond time of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.from(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.nextDay</th>
- <th class="desc">sets the time of a calendar to the beginning of the next day</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.nextDay(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getYear</th>
- <th class="desc">returns the year of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getYear(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getMonth</th>
- <th class="desc">returns the month of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getMonth(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getDay</th>
- <th class="desc">returns the day of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getDay(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getHour</th>
- <th class="desc">returns the hours of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getHour(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getMinute</th>
- <th class="desc">returns the minutes of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getMinute(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getSecond</th>
- <th class="desc">returns the seconds of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getSecond(calendar)</td>
- </tr>
- </table>
- </section>
- <section id="Text">
- <table>
- <tr>
- <th class="command">text</th>
- <th class="desc">returns any object as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text(object)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.number</th>
- <th class="desc">returns a number as string without unnecessary .0</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.number(number)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.class</th>
- <th class="desc">returns the class of any object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.class(objekt)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.toUpperCase</th>
- <th class="desc">returns a string capitalized</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.toUpperCase(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.toLowerCase</th>
- <th class="desc">returns a string decapitalized</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.toLowerCase(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.split</th>
- <th class="desc">returns a string splitted by a given separator as list </th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.split(separator, string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.concatList</th>
- <th class="desc">returns one string which connects all elements of a sub list with a connector</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.concatList(list, connector, fromIndex, toIndex)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.concat</th>
- <th class="desc">returns one string which connects all given arguments</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.concat(arg, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.concatSpace</th>
- <th class="desc">returns one string which connects all given arguments with a space</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.concatSpace(arg, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.startsWith</th>
- <th class="desc">returns true if a string starts with another starting from a given index</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.startsWith(string, search_text, start_index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.endsWith</th>
- <th class="desc">returns true if a string ends with another</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.endsWith(string, search_text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.contains</th>
- <th class="desc">returns true if a string is in another</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.contains(string, search_text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.indexOf</th>
- <th class="desc">returns the index of string in another starting from a given index or -1 if not found</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.indexOf(string, search_text, start_index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.lastIndexOf</th>
- <th class="desc">returns the last index of a string in another starting from a given index or -1 if not found</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.lastIndexOf(string, search_text, start_index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.replace</th>
- <th class="desc">replaces all occurrences of a given string in another with a given string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.replace(string, search_text, swap_text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.trim</th>
- <th class="desc">returns a string without leading and trailing whitespaces</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.trim(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.matches</th>
- <th class="desc">returns true if a string matches a regex</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.matches(string, regex)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.charcode</th>
- <th class="desc">returns the character code of an index in a string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.charcode(string, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.fromCode</th>
- <th class="desc">returns a string from a character code</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.fromCode(character_code)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.length</th>
- <th class="desc">returns the length of a string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.length(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.subString</th>
- <th class="desc">returns a sub string starting at one index and ending at another exclusively</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.subString(string, from_index, to_index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.onlyLetters</th>
- <th class="desc">returns true if a text has only letters</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.onlyLetters(String)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.convert</th>
- <th class="desc">converts strings into objects</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.convert(any object)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>
- null -> null<br>
- "null" -> null<br>
- "true" -> true<br>
- "false" -> false<br>
- "\"" -> \"<br>
- "1" -> 1.0<br>
- "string" -> "string"
- </td>
- </tr>
- </table>
- </section>
- <section id="File">
- <table>
- <tr>
- <th class="command">file.new</th>
- <th class="desc">returns a new file</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.new(path)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.exists</th>
- <th class="desc">returns true if a file exists</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.exists(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.delete</th>
- <th class="desc">removes a file and returns true on success</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.delete(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.getName</th>
- <th class="desc">returns the name of a file</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.getName(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.getList</th>
- <th class="desc">returns all files in a folder as list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.getList(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.read</th>
- <th class="desc">returns all lines in a file as list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.read(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.write</th>
- <th class="desc">writes all entries of a list to a file</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.write(file, list)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.isFile</th>
- <th class="desc">returns true if a file is a file</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.isFile(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.isDirectory</th>
- <th class="desc">returns true if a file is a directory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.isDirectory(file)</td>
- </tr>
- </table>
- </section>
- <section id="Config">
- <table>
- <tr>
- <th class="command">config.new</th>
- <th class="desc">returns a new config</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.new(path, name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.exists</th>
- <th class="desc">returns true if the config exists</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.exists(config)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.save</th>
- <th class="desc">saves a config and returns true on success</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.save(config)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.load</th>
- <th class="desc">loads a config</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.load(config)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.delete</th>
- <th class="desc">removes a config</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.delete(config)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.set</th>
- <th class="desc">sets a key value pair in a config</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.set(config, key, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.getBool</th>
- <th class="desc">returns a boolean or a default value from a config key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.getBool(config, key, default)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.getDouble</th>
- <th class="desc">returns a double or a default value from a config key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.getDouble(config, key, default)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.getString</th>
- <th class="desc">returns a string or a default value from a config key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.getString(config, key, default)</td>
- </tr>
- </table>
- </section>
- <section id="Matrix">
- <table>
- <tr>
- <th class="command">matrix.new</th>
- <th class="desc">returns a new matrix</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>matrix.new()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">matrix.newRotationX</th>
- <th class="desc">returns a new rotated matrix</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>matrix.newRotationX(angle in radiant)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">matrix.newRotationY</th>
- <th class="desc">returns a new rotated matrix</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>matrix.newRotationY(angle in radiant)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">matrix.mul</th>
- <th class="desc">multiplies two matrices</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>matrix.mul(matrix1, matrix2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">matrix.mulVector</th>
- <th class="desc">multiplies a matrix and a vector</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>matrix.mulVector(matrix, vector)</td>
- </tr>
- </table>
- </section>
- <section id="Vector">
- <table>
- <tr>
- <th class="command">vector.new</th>
- <th class="desc">returns a new vector</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>vector.new(x, y, z)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">vector.set</th>
- <th class="desc">modifies a vector</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>vector.set(vector, x, y, z)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">vector.getX</th>
- <th class="desc">returns x from a vector</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>vector.getX(vector)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">vector.getY</th>
- <th class="desc">returns y from a vector</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>vector.getY(vector)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">vector.getZ</th>
- <th class="desc">returns z from a vector</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>vector.getZ(vector)</td>
- </tr>
- </table>
- </section>
|