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 = {}
|
2024-04-18 14:43:11 +02:00
|
|
|
weapons_lib.settings = {}
|
2023-12-15 21:10:48 +01:00
|
|
|
|
2024-04-18 14:43:11 +02: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")
|
2024-07-29 16:20:18 +02:00
|
|
|
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")
|
2023-11-16 18:13:24 +01:00
|
|
|
dofile(srcpath .. "/tests/test3.lua")
|
2023-11-08 19:59:18 +01:00
|
|
|
|
2024-01-24 16:38:47 +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)
|