Go to file
A. Demant 1e303387b9 update Readme / license txt 2019-01-03 15:39:07 +01:00
README.md update Readme / license txt 2019-01-03 15:39:07 +01:00
functions.lua check if values set 2019-01-02 06:52:57 +01:00
init.lua corrections 2018-11-23 06:27:41 +01:00
license.txt update Readme / license txt 2019-01-03 15:39:07 +01:00
mod.conf initial commit with basic functions 2018-11-23 06:11:45 +01:00

README.md

Basic functions short api: function has_value(tab,val) check if val is inside list tab

function import_csv(infile,def) read configuration from infile def.as_numeric: all values not stated in col_num, col_tab or with name "name" are interpreted as numeric def.seperator: character to use as field delimiter def.col_num: turn this elements to numbers def.groups_num: put this elements as numbers into matrix groups

function parse_tree(mat,ind,val) split name of "ind" and store as nested matrix inside mat. Example: armor_fleshy_1 will be stored in armor={fleshy={[1]=val}}

basic_functions.import_settingtype(infile) infile - file to read configuration in style of settingtype.txt into minetest.settings, so it can be parsed by minetest.settings: methods