1
0
Fork 0
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:
Reuh 2016-04-26 16:15:20 +02:00
parent fc40d440df
commit 8694400105
4 changed files with 5 additions and 8 deletions

View file

@ -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.

View file

@ -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, ... }

View file

@ -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)

View file

@ -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