awards/init.lua

31 lines
1.1 KiB
Lua
Raw Normal View History

2018-04-04 22:57:27 +01:00
-- Copyright (c) 2013-18 rubenwardy. MIT.
2015-06-10 18:48:20 +01:00
2017-02-21 04:45:45 -03:00
-- The global award namespace
awards = {
show_mode = "hud",
registered_triggers = {},
2017-02-21 04:45:45 -03:00
}
2013-02-22 17:53:42 +00:00
2017-02-21 04:45:45 -03:00
-- Internationalization support.
awards.gettext, awards.ngettext = dofile(minetest.get_modpath("awards").."/intllib.lua")
2018-04-04 17:42:12 +01:00
-- Load files
2013-02-22 20:43:40 +00:00
dofile(minetest.get_modpath("awards").."/api.lua")
dofile(minetest.get_modpath("awards").."/chat_commands.lua")
2018-04-04 17:37:43 +01:00
dofile(minetest.get_modpath("awards").."/gui.lua")
2015-06-10 19:18:56 +01:00
dofile(minetest.get_modpath("awards").."/triggers.lua")
2018-04-04 21:11:40 +01:00
dofile(minetest.get_modpath("awards").."/awards.lua")
2018-04-04 17:37:43 +01:00
-- Backwards compatibility
awards.give_achievement = awards.unlock
awards.getFormspec = awards.get_formspec
awards.showto = awards.show_to
awards.register_onDig = awards.register_on_dig
awards.register_onPlace = awards.register_on_place
awards.register_onDeath = awards.register_on_death
awards.register_onChat = awards.register_on_chat
awards.register_onJoin = awards.register_on_join
awards.register_onCraft = awards.register_on_craft
awards.def = awards.registered_awards
awards.register_achievement = awards.register_award