mirror of
https://github.com/Reuh/ubiquitousse.git
synced 2025-10-28 09:39: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
|
-- abstract.event
|
||||||
local abstract = require((...):match("^(.-abstract)%."))
|
local input = require((...):match("^(.-abstract)%.")..".input")
|
||||||
local input = abstract.input
|
local time = require((...):match("^(.-abstract)%.")..".time")
|
||||||
local time = abstract.time
|
local scene = require((...):match("^(.-abstract)%.")..".scene")
|
||||||
local scene = abstract.scene
|
|
||||||
|
|
||||||
--- The events: callback functions that will be called when something interesting occurs.
|
--- The events: callback functions that will be called when something interesting occurs.
|
||||||
-- Theses are expected to be redefined in the game.
|
-- Theses are expected to be redefined in the game.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
-- abstract.input
|
-- abstract.input
|
||||||
local abstract = require((...):match("^(.-abstract)%."))
|
local abstract = require((...):match("^(.-abstract)%."))
|
||||||
local draw = abstract.draw
|
local draw = require((...):match("^(.-abstract)%.")..".draw")
|
||||||
|
|
||||||
--- Used to store inputs which were updated this frame
|
--- Used to store inputs which were updated this frame
|
||||||
-- { Input: true, ... }
|
-- { Input: true, ... }
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
-- abstract.scene
|
-- abstract.scene
|
||||||
local abstract = require((...):match("^(.-abstract)%."))
|
local time = require((...):match("^(.-abstract)%.")..".time")
|
||||||
local time = abstract.time
|
|
||||||
|
|
||||||
--- Returns the file path of the given module name.
|
--- Returns the file path of the given module name.
|
||||||
local function getPath(modname)
|
local function getPath(modname)
|
||||||
|
|
|
||||||
1
time.lua
1
time.lua
|
|
@ -1,5 +1,4 @@
|
||||||
-- abstract.time
|
-- abstract.time
|
||||||
local abstract = require((...):match("^(.-abstract)%."))
|
|
||||||
local ease = require((...):match("^(.-abstract)%.")..".lib.easing")
|
local ease = require((...):match("^(.-abstract)%.")..".lib.easing")
|
||||||
|
|
||||||
--- Time related functions
|
--- Time related functions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue