27 lines
775 B
Lua
Raw Normal View History

2024-08-25 12:49:07 +02:00
local version = "0.1.0"
2023-11-08 19:59:18 +01:00
local modpath = minetest.get_modpath("weapons_lib")
local srcpath = modpath .. "/src"
weapons_lib = {}
2023-12-15 21:10:48 +01:00
weapons_lib.mods = {}
weapons_lib.settings = {}
2023-12-15 21:10:48 +01:00
dofile(modpath .. "/SETTINGS.lua")
2023-11-08 19:59:18 +01:00
-- general
2023-12-15 21:10:48 +01:00
dofile(srcpath .. "/api/bullets.lua")
dofile(srcpath .. "/api/mods.lua")
dofile(srcpath .. "/api/weapons.lua")
2024-03-18 22:10:57 +01:00
dofile(srcpath .. "/api/weapons_utils.lua")
2023-11-08 19:59:18 +01:00
dofile(srcpath .. "/player_manager.lua")
dofile(srcpath .. "/utils.lua")
dofile(srcpath .. "/HUD/hud_crosshair.lua")
dofile(srcpath .. "/tests/_load.lua")
2023-11-08 19:59:18 +01:00
dofile(srcpath .. "/tests/test1.lua")
2023-11-11 13:17:42 +01:00
dofile(srcpath .. "/tests/test2.lua")
dofile(srcpath .. "/tests/test3.lua")
2023-11-08 19:59:18 +01:00
weapons_lib.register_mod("weapons_lib")
2024-08-25 12:49:07 +02:00
minetest.log("action", "[WEAPONS_LIB] Mod initialised, running version " .. version)