2020-08-01 16:57:12 +02:00
|
|
|
local Obj = {}
|
|
|
|
|
|
|
|
-- On charge toutes les différentes types d'acteurs
|
|
|
|
local cwd = (...):gsub('%.init$', '') .. "."
|
|
|
|
Obj.Player = require(cwd .. "player")
|
2021-03-20 17:23:14 +01:00
|
|
|
Obj.Gizmo = require(cwd .. "gizmo")
|
2021-04-03 00:04:22 +02:00
|
|
|
Obj.Teleporter = require(cwd .. "teleport")
|
2021-04-05 16:29:51 +02:00
|
|
|
Obj.PNJ = require(cwd .. "pnj")
|
2021-04-10 15:58:53 +02:00
|
|
|
Obj.Encounter = require(cwd .. "encounter")
|
2021-04-21 21:14:45 +02:00
|
|
|
Obj.GFX = require(cwd .. "gfx")
|
2021-04-10 15:58:53 +02:00
|
|
|
|
|
|
|
Obj.loot = require(cwd .. "loot")
|
2020-08-01 16:57:12 +02:00
|
|
|
|
|
|
|
Obj.index = {}
|
|
|
|
Obj.index["player"] = Obj.Player
|
2021-03-20 17:23:14 +01:00
|
|
|
Obj.index["gizmo"] = Obj.Gizmo
|
2021-04-03 00:04:22 +02:00
|
|
|
Obj.index["teleporter"] = Obj.Teleporter
|
2021-04-05 16:29:51 +02:00
|
|
|
Obj.index["pnj"] = Obj.PNJ
|
2021-04-10 15:58:53 +02:00
|
|
|
Obj.index["encounter"] = Obj.Encounter
|
|
|
|
|
|
|
|
Obj.index["ring"] = Obj.loot.Ring
|
|
|
|
Obj.index["itembox"] = Obj.loot.ItemBox
|
|
|
|
Obj.index["ringbox"] = Obj.loot.RingBox
|
2020-08-01 16:57:12 +02:00
|
|
|
|
|
|
|
Obj.collisions = {}
|
|
|
|
Obj.collisions["wall"] = require(cwd .. "wall")
|
2021-03-20 17:23:14 +01:00
|
|
|
Obj.collisions["gizmo-collision"] = Obj.Gizmo
|
2020-08-01 16:57:12 +02:00
|
|
|
|
|
|
|
return Obj
|