-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
24 lines (19 loc) · 927 Bytes
/
init.lua
File metadata and controls
24 lines (19 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- init file for the module
-- based on http://kiki.to/blog/2014/04/12/rule-5-beware-of-multiple-files/
local module_path = (...):gsub('%.init$', '')
local LoveMachine = {}
-- core
LoveMachine.Entity = require(module_path .. ".core.entity")
LoveMachine.World = require(module_path .. ".core.world")
LoveMachine.System = require(module_path .. ".core.system")
LoveMachine.Component = require(module_path .. ".core.component")
LoveMachine.LevelManager = require(module_path .. ".core.level_manager")
LoveMachine.EventSystem = require(module_path .. ".core.events")
LoveMachine.Command = require(module_path .. ".core.command")
LoveMachine.InputHandler = require(module_path .. ".core.input_handler")
-- math
LoveMachine.Vector2D = require(module_path .. ".math.Vector2D")
-- built-ins
LoveMachine.Components = require(module_path .. ".components")
LoveMachine.Systems = require(module_path .. ".systems")
return LoveMachine