From d5f446f4ed3e2a75a2edce29694af5c2424df954 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 12 Aug 2022 10:46:22 +0200 Subject: [PATCH] improvement: use the framework namespace --- birb/init.lua | 19 ++++++++++--------- examples/main.lua | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/birb/init.lua b/birb/init.lua index b6827c4..200f211 100644 --- a/birb/init.lua +++ b/birb/init.lua @@ -1,4 +1,5 @@ --- birb :: The main birb script, loading the core and main utilities +-- framework :: The main Épervier Framework script, loading the core and main +-- utilities --[[ Copyright © 2021 Kazhnuz @@ -21,7 +22,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -birb = {} +framework = {} -- GLOBAL UTILS/FUNCTION LOADING -- Load in the global namespace utilities that'll need to be reusable everywhere @@ -31,20 +32,20 @@ Object = require("birb.libs.classic") utils = require("birb.utils") enum = require("birb.utils.enum") -birb.Core = require("birb.core") +framework.Core = require("birb.core") -function birb.start(gamemodule, args) - birb.startCore(args) +function framework.start(gamemodule, args) + framework.startCore(args) if (gamemodule ~= nil) then - birb.startGame(gamemodule) + framework.startGame(gamemodule) end end -function birb.startCore(args) - core = birb.Core(args) +function framework.startCore(args) + core = framework.Core(args) end -function birb.startGame(gamemodule) +function framework.startGame(gamemodule) local GameObject = require(gamemodule) game = GameObject() end diff --git a/examples/main.lua b/examples/main.lua index 1efcb52..18de69f 100644 --- a/examples/main.lua +++ b/examples/main.lua @@ -27,6 +27,6 @@ scenes = require "scenes" function love.load(args) print(utils.table.toString(args)) - birb.start("game", args) + framework.start("game", args) scenes.MainMenu() end