From e3957edfa1a6f6e6e40f6e9b2497b1716b3b8feb Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 15 May 2021 21:52:05 +0200 Subject: [PATCH] chore: move argument parsers into a single folder --- .../arguments.lua => datas/parsers/choregraphystep.lua} | 0 .../battle/arguments.lua => datas/parsers/ennemytype.lua} | 0 .../events/arguments.lua => datas/parsers/eventstep.lua} | 0 .../items/arguments.lua => datas/parsers/itemeffects.lua} | 0 .../utils/choregraphy/qte.lua => datas/parsers/qtesteps.lua} | 0 sonic-radiance.love/game/events/utils.lua | 2 +- sonic-radiance.love/game/utils/battle/init.lua | 2 +- sonic-radiance.love/game/utils/choregraphy/init.lua | 4 ++-- sonic-radiance.love/game/utils/items/init.lua | 2 +- 9 files changed, 5 insertions(+), 5 deletions(-) rename sonic-radiance.love/{game/utils/choregraphy/arguments.lua => datas/parsers/choregraphystep.lua} (100%) rename sonic-radiance.love/{game/utils/battle/arguments.lua => datas/parsers/ennemytype.lua} (100%) rename sonic-radiance.love/{game/events/arguments.lua => datas/parsers/eventstep.lua} (100%) rename sonic-radiance.love/{game/utils/items/arguments.lua => datas/parsers/itemeffects.lua} (100%) rename sonic-radiance.love/{game/utils/choregraphy/qte.lua => datas/parsers/qtesteps.lua} (100%) diff --git a/sonic-radiance.love/game/utils/choregraphy/arguments.lua b/sonic-radiance.love/datas/parsers/choregraphystep.lua similarity index 100% rename from sonic-radiance.love/game/utils/choregraphy/arguments.lua rename to sonic-radiance.love/datas/parsers/choregraphystep.lua diff --git a/sonic-radiance.love/game/utils/battle/arguments.lua b/sonic-radiance.love/datas/parsers/ennemytype.lua similarity index 100% rename from sonic-radiance.love/game/utils/battle/arguments.lua rename to sonic-radiance.love/datas/parsers/ennemytype.lua diff --git a/sonic-radiance.love/game/events/arguments.lua b/sonic-radiance.love/datas/parsers/eventstep.lua similarity index 100% rename from sonic-radiance.love/game/events/arguments.lua rename to sonic-radiance.love/datas/parsers/eventstep.lua diff --git a/sonic-radiance.love/game/utils/items/arguments.lua b/sonic-radiance.love/datas/parsers/itemeffects.lua similarity index 100% rename from sonic-radiance.love/game/utils/items/arguments.lua rename to sonic-radiance.love/datas/parsers/itemeffects.lua diff --git a/sonic-radiance.love/game/utils/choregraphy/qte.lua b/sonic-radiance.love/datas/parsers/qtesteps.lua similarity index 100% rename from sonic-radiance.love/game/utils/choregraphy/qte.lua rename to sonic-radiance.love/datas/parsers/qtesteps.lua diff --git a/sonic-radiance.love/game/events/utils.lua b/sonic-radiance.love/game/events/utils.lua index cd7e992..f3888ba 100644 --- a/sonic-radiance.love/game/events/utils.lua +++ b/sonic-radiance.love/game/events/utils.lua @@ -3,7 +3,7 @@ local EventUtils = {} -- steps utils function EventUtils.getStepStructure(stepName) - local stepTypeList = require "game.events.arguments" + local stepTypeList = require "datas.parsers.eventstep" return stepTypeList[stepName] end diff --git a/sonic-radiance.love/game/utils/battle/init.lua b/sonic-radiance.love/game/utils/battle/init.lua index 7f9d558..f5c62dc 100644 --- a/sonic-radiance.love/game/utils/battle/init.lua +++ b/sonic-radiance.love/game/utils/battle/init.lua @@ -3,7 +3,7 @@ local BattleUtils = {} -- ENNEMY FUNCTIONS function BattleUtils.getEnnemyTypeStructure(type) - local typeList = require "game.utils.battle.arguments" + local typeList = require "datas.parsers.ennemytype" return typeList[type] end diff --git a/sonic-radiance.love/game/utils/choregraphy/init.lua b/sonic-radiance.love/game/utils/choregraphy/init.lua index 65b8243..06fa49c 100644 --- a/sonic-radiance.love/game/utils/choregraphy/init.lua +++ b/sonic-radiance.love/game/utils/choregraphy/init.lua @@ -3,7 +3,7 @@ local ChoregraphyUtils = {} -- steps utils function ChoregraphyUtils.getStepStructure(stepName) - local stepTypeList = require "game.utils.choregraphy.arguments" + local stepTypeList = require "datas.parsers.choregraphystep" return stepTypeList[stepName] end @@ -47,7 +47,7 @@ end -- QTE utils function ChoregraphyUtils.getQteStructure(qteName) - local stepTypeList = require "game.utils.choregraphy.qte" + local stepTypeList = require "datas.parsers.qtesteps" return stepTypeList[qteName] end diff --git a/sonic-radiance.love/game/utils/items/init.lua b/sonic-radiance.love/game/utils/items/init.lua index e11e372..39b43a9 100644 --- a/sonic-radiance.love/game/utils/items/init.lua +++ b/sonic-radiance.love/game/utils/items/init.lua @@ -3,7 +3,7 @@ local ItemUtils = {} -- VALIDATION FUNCTIONS function ItemUtils.getItemEffectStructure(type) - local typeList = require "game.utils.items.arguments" + local typeList = require "datas.parsers.itemeffects" return typeList[type] end