mirror of
https://github.com/AntumMT/mod-wdata.git
synced 2024-11-28 10:23:44 +01:00
Create initial files
This commit is contained in:
commit
06827893fb
21
LICENSE.txt
Normal file
21
LICENSE.txt
Normal file
@ -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.
|
21
README.md
Normal file
21
README.md
Normal file
@ -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/
|
2
TODO.txt
Normal file
2
TODO.txt
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
TODO:
|
3
changelog.txt
Normal file
3
changelog.txt
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
v0.1
|
||||
----
|
18
init.lua
Normal file
18
init.lua
Normal file
@ -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
|
6
mod.conf
Normal file
6
mod.conf
Normal file
@ -0,0 +1,6 @@
|
||||
name = wconfig
|
||||
title = World Config
|
||||
description = Bridging world configuration files & mods.
|
||||
version = 0.1
|
||||
license = MIT
|
||||
author = Jordan Irwin (AntumDeluge)
|
Loading…
Reference in New Issue
Block a user