Added Module: ExpGamingCore

This commit is contained in:
Cooldude2606
2018-05-30 13:50:38 +01:00
parent eeb44c0c93
commit 24598e594a
33 changed files with 250 additions and 189 deletions

View File

@@ -410,7 +410,7 @@ function table.val_to_str(v)
end
return '"'..string.gsub(v,'"', '\\"' )..'"'
else
return "table" == type( v) and table.to_string(v) or
return "table" == type( v) and table.tostring(v) or
"function" == type(v) and '"cant-display-function"' or
"userdata" == type(v) and '"cant-display-userdata"' or
tostring(v)
@@ -450,7 +450,7 @@ function table.tostring(tbl)
return "{"..table.concat(result,",") .."}"
end
--- Simmilar to table.to_string but converts a lua table to a json one
--- Simmilar to table.tostring but converts a lua table to a json one
-- @usage local a = {k1='foo',k2='bar'}
-- talbe.json(a) -- return '{"k1":"foo","k2":"bar"}'
-- @tparam table lua_table the table to convert

View File

@@ -1,10 +1,10 @@
{
"name": "FactorioStdLib",
"module": "StdLib",
"module": "Collection",
"description": "Factorio Standard Library Projects",
"keywords": ["Standard Library","Lib","StdLib"],
"version": "0.8.0",
"location": "nil",
"location": "url",
"submodules": {
"Color": {
"name": "Color",
@@ -12,7 +12,7 @@
"description": "A defines module for retrieving colors by name.",
"keywords": ["Standard Library","Lib","StdLib","Color","Extends"],
"version": "0.8.0",
"location": "color",
"location": "url",
"dependencies": {}
},
"Game": {
@@ -21,7 +21,7 @@
"description": "The game module.",
"keywords": ["Standard Library","Lib","StdLib","Game","Extends"],
"version": "0.8.0",
"location": "game",
"location": "url",
"dependencies": {}
},
"String": {
@@ -30,7 +30,7 @@
"description": "Extends Lua 5.2 string.",
"keywords": ["Standard Library","Lib","StdLib","String","Extends"],
"version": "0.8.0",
"location": "string",
"location": "url",
"dependencies": {}
},
"Table": {
@@ -39,7 +39,7 @@
"description": "Extends Lua 5.2 table.",
"keywords": ["Standard Library","Lib","StdLib","Table","Extends"],
"version": "0.8.0",
"location": "table",
"location": "url",
"dependencies": {}
},
"Time": {
@@ -48,7 +48,7 @@
"description": "A defines module for retrieving the number of ticks in 1 unit of time.",
"keywords": ["Standard Library","Lib","StdLib","Time","Extends"],
"version": "0.8.0",
"location": "time",
"location": "url",
"dependencies": {}
}
},