commit 06827893fb65bf13c77605507a4213a911031abb Author: Jordan Irwin Date: Thu May 27 22:12:23 2021 -0700 Create initial files diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..357bcd0 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright © 2021 Jordan Irwin (AntumDeluge) + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..f907ad5 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +## World Config mod for Minetest + +### Description: + +A [Minetest][] mod for simplifying reading & writing configuration files in the world directory. + +***WARNING:** this mod is in early development & not ready for live use* + +### Licensing: + +- [MIT](LICENSE.txt) + +### Usage: + +### Links + +- [Changelog](changelog.txt) +- [TODO](TODO.txt) + + +[Minetest]: http://minetest.net/ diff --git a/TODO.txt b/TODO.txt new file mode 100644 index 0000000..0810866 --- /dev/null +++ b/TODO.txt @@ -0,0 +1,2 @@ + +TODO: diff --git a/changelog.txt b/changelog.txt new file mode 100644 index 0000000..8c36c30 --- /dev/null +++ b/changelog.txt @@ -0,0 +1,3 @@ + +v0.1 +---- diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..5e21a2d --- /dev/null +++ b/init.lua @@ -0,0 +1,18 @@ + +wconfig = {} +wconfig.modname = core.get_current_modname() +wconfig.modpath = core.get_modpath(wconfig.modname) + +wconfig.log(lvl, msg) + if not msg then + msg = lvl + lvl = nil + end + + msg = "[" .. wconfig.modname .. "] " .. msg + if not lvl then + core.log(msg) + else + core.log(lvl, msg) + end +end diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..ad1845b --- /dev/null +++ b/mod.conf @@ -0,0 +1,6 @@ +name = wconfig +title = World Config +description = Bridging world configuration files & mods. +version = 0.1 +license = MIT +author = Jordan Irwin (AntumDeluge)