Add licensing headers to all files, fix intllib global variable warnings.

This commit is contained in:
Calinou
2015-01-11 22:21:33 +01:00
parent 41bb46fb36
commit b5d62de9d8
18 changed files with 153 additions and 44 deletions

View File

@ -1,6 +1,5 @@
API documentation for Stairs+
================================
- - - - - - - - - - - - - - - -
=============================
* `stairsplus:register_all(modname, subname, recipeitem, fields)`
Registers a stair, slab, panel, microblock, and any other types of

View File

@ -1,3 +1,11 @@
--[[
======================================================================
This file is part of More Blocks.
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
======================================================================
--]]
local function register_stairsplus_alias(modname, origname, newname)
minetest.register_alias(modname.. ":slab_" ..origname, "moreblocks:slab_" ..newname)

View File

@ -1,3 +1,12 @@
--[[
======================================================================
This file is part of More Blocks.
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
======================================================================
--]]
-- Function to convert all stairs/slabs/etc nodes from
-- inverted, wall, etc to regular + 6d facedir

View File

@ -1,3 +1,12 @@
--[[
======================================================================
This file is part of More Blocks.
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
======================================================================
--]]
-- Nodes will be called <modname>:{stair,slab,panel,micro}_<subname>
local modpath = minetest.get_modpath("moreblocks").. "/stairsplus"

View File

@ -1,9 +1,13 @@
local S -- Load translation library if intllib is installed:
if intllib then
S = intllib.Getter(minetest.get_current_modname())
else
S = function(s) return s end
end
--[[
======================================================================
This file is part of More Blocks.
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
======================================================================
--]]
local S = moreblocks.intllib
-- Node will be called <modname>:micro_<subname>

View File

@ -1,9 +1,13 @@
local S -- Load translation library if intllib is installed:
if intllib then
S = intllib.Getter(minetest.get_current_modname())
else
S = function(s) return s end
end
--[[
======================================================================
This file is part of More Blocks.
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
======================================================================
--]]
local S = moreblocks.intllib
-- Node will be called <modname>:panel_<subname>

View File

@ -1,3 +1,12 @@
--[[
======================================================================
This file is part of More Blocks.
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
======================================================================
--]]
local default_nodes = { -- Default stairs/slabs/panels/microblocks:
"stone",
"cobble",

View File

@ -1,9 +1,13 @@
local S -- Load translation library if intllib is installed:
if intllib then
S = intllib.Getter(minetest.get_current_modname())
else
S = function(s) return s end
end
--[[
======================================================================
This file is part of More Blocks.
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
======================================================================
--]]
local S = moreblocks.intllib
-- Node will be called <modname>:slab_<subname>

View File

@ -1,9 +1,13 @@
local S -- Load translation library if intllib is installed:
if intllib then
S = intllib.Getter(minetest.get_current_modname())
else
S = function(s) return s end
end
--[[
======================================================================
This file is part of More Blocks.
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
======================================================================
--]]
local S = moreblocks.intllib
local box_slope = {
type = "fixed",

View File

@ -1,9 +1,13 @@
local S -- Load translation library if intllib is installed:
if intllib then
S = intllib.Getter(minetest.get_current_modname())
else
S = function(s) return s end
end
--[[
======================================================================
This file is part of More Blocks.
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
======================================================================
--]]
local S = moreblocks.intllib
-- Node will be called <modname>:stair_<subname>