mirror of
https://github.com/Reuh/ubiquitousse.git
synced 2025-10-27 17:19:31 +00:00
Better dependecy management
This commit is contained in:
parent
fc40d440df
commit
8694400105
4 changed files with 5 additions and 8 deletions
|
|
@ -1,8 +1,7 @@
|
|||
-- abstract.event
|
||||
local abstract = require((...):match("^(.-abstract)%."))
|
||||
local input = abstract.input
|
||||
local time = abstract.time
|
||||
local scene = abstract.scene
|
||||
local input = require((...):match("^(.-abstract)%.")..".input")
|
||||
local time = require((...):match("^(.-abstract)%.")..".time")
|
||||
local scene = require((...):match("^(.-abstract)%.")..".scene")
|
||||
|
||||
--- The events: callback functions that will be called when something interesting occurs.
|
||||
-- Theses are expected to be redefined in the game.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
-- abstract.input
|
||||
local abstract = require((...):match("^(.-abstract)%."))
|
||||
local draw = abstract.draw
|
||||
local draw = require((...):match("^(.-abstract)%.")..".draw")
|
||||
|
||||
--- Used to store inputs which were updated this frame
|
||||
-- { Input: true, ... }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
-- abstract.scene
|
||||
local abstract = require((...):match("^(.-abstract)%."))
|
||||
local time = abstract.time
|
||||
local time = require((...):match("^(.-abstract)%.")..".time")
|
||||
|
||||
--- Returns the file path of the given module name.
|
||||
local function getPath(modname)
|
||||
|
|
|
|||
1
time.lua
1
time.lua
|
|
@ -1,5 +1,4 @@
|
|||
-- abstract.time
|
||||
local abstract = require((...):match("^(.-abstract)%."))
|
||||
local ease = require((...):match("^(.-abstract)%.")..".lib.easing")
|
||||
|
||||
--- Time related functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue